Lines Matching refs:mAction
42 private TestChatAction mAction;
54 mAction = new TestChatAction(mActionKey, parameter);
66 assertEquals(mAction, mTransitions.get(index).action);
75 ActionMonitor.registerActionMonitor(mAction.actionKey, mMonitor);
76 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
78 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
80 mAction.markStart();
85 ActionMonitor.unregisterActionMonitor(mAction.actionKey, mMonitor);
87 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
95 ActionMonitor.registerActionMonitor(mAction.actionKey, mMonitor);
96 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
98 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
101 mAction.markStart();
105 ActionMonitor.unregisterActionMonitor(mAction.actionKey, mMonitor);
107 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
115 ActionMonitor.registerActionMonitor(mAction.actionKey, mMonitor);
116 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
118 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
120 mAction.markStart();
124 mAction.markBeginExecute();
128 final Object result = mAction.executeAction();
129 mAction.requestBackgroundWork();
133 mAction.markEndExecute(result);
138 mAction.markBackgroundWorkStarting();
143 mAction.markBackgroundWorkQueued();
148 mAction.markBackgroundWorkStarting();
155 mAction.markBackgroundCompletionQueued();
160 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
162 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
164 mAction.processBackgroundWorkResponse(response);
172 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
180 ActionMonitor.registerActionMonitor(mAction.actionKey, mMonitor);
181 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
183 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
185 mAction.markStart();
189 mAction.markBeginExecute();
193 final Object result = mAction.executeAction();
194 mAction.requestBackgroundWork();
198 mAction.markEndExecute(result);
203 mAction.markBackgroundWorkStarting();
208 mAction.markBackgroundWorkQueued();
213 mAction.markBackgroundWorkStarting();
218 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
220 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
222 mAction.processBackgroundWorkFailure();
227 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
235 ActionMonitor.registerActionMonitor(mAction.actionKey, mMonitor);
236 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
238 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
240 mAction.markStart();
244 mAction.markBeginExecute();
248 final Object result = mAction.executeAction();
252 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));
254 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor);
256 mAction.markEndExecute(result);
261 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey));