Home
last modified time | relevance | path

Searched refs:ActionMonitor (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTest.java52 mMonitor = new StubChatActionMonitor(ActionMonitor.STATE_CREATED, mActionKey, in setUp()
73 mMonitor.setState(ActionMonitor.STATE_CREATED); in testActionStartTransitionsCorrectly()
75 ActionMonitor.registerActionMonitor(mAction.actionKey, mMonitor); in testActionStartTransitionsCorrectly()
76 assertTrue(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartTransitionsCorrectly()
77 assertTrue(ActionMonitor.sActionMonitors.containsValue(mMonitor)); in testActionStartTransitionsCorrectly()
78 assertEquals(ActionMonitor.sActionMonitors.get(mAction.actionKey), mMonitor); in testActionStartTransitionsCorrectly()
81 assertEquals("After start state: STATE_QUEUED", ActionMonitor.STATE_QUEUED, in testActionStartTransitionsCorrectly()
83 verifyState(1, ActionMonitor.STATE_CREATED, ActionMonitor.STATE_QUEUED); in testActionStartTransitionsCorrectly()
85 ActionMonitor.unregisterActionMonitor(mAction.actionKey, mMonitor); in testActionStartTransitionsCorrectly()
87 assertFalse(ActionMonitor.sActionMonitors.containsKey(mAction.actionKey)); in testActionStartTransitionsCorrectly()
[all …]
DActionServiceTest.java34 import com.android.messaging.datamodel.action.ActionMonitor.ActionCompletedListener;
35 import com.android.messaging.datamodel.action.ActionMonitor.ActionStateChangedListener;
53 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded()
68 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed()
110 ActionMonitor.STATE_QUEUED); in testChatServiceCreatesIntentAndExecutesAction()
112 ActionMonitor.STATE_EXECUTING); in testChatServiceCreatesIntentAndExecutesAction()
114 ActionMonitor.STATE_COMPLETE); in testChatServiceCreatesIntentAndExecutesAction()
243 public static class TestChatActionMonitor extends ActionMonitor {
DActionServiceSystemTest.java34 import com.android.messaging.datamodel.action.ActionMonitor.ActionCompletedListener;
35 import com.android.messaging.datamodel.action.ActionMonitor.ActionExecutedListener;
53 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded()
65 public void onActionFailed(final ActionMonitor monitor, final Action action, in onActionFailed()
77 public void onActionExecuted(final ActionMonitor monitor, final Action action, in onActionExecuted()
415 public static class TestChatActionMonitor extends ActionMonitor {
DReadWriteDraftMessageActionTest.java142 final ActionMonitor monitor = in testReadDraft()
201 final ActionMonitor monitor = in testReadDraftForNewConversation()
254 final ActionMonitor monitor = in testWriteAndReadDraft()
DActionTestHelpers.java82 static class StubChatActionMonitor extends ActionMonitor {
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DAction.java26 import com.android.messaging.datamodel.action.ActionMonitor.ActionCompletedListener;
27 import com.android.messaging.datamodel.action.ActionMonitor.ActionExecutedListener;
142 protected void start(final ActionMonitor monitor) { in start()
143 ActionMonitor.registerActionMonitor(this.actionKey, monitor); in start()
165 ActionMonitor.setState(this, ActionMonitor.STATE_CREATED, in markStart()
166 ActionMonitor.STATE_QUEUED); in markStart()
173 ActionMonitor.setState(this, ActionMonitor.STATE_QUEUED, in markBeginExecute()
174 ActionMonitor.STATE_EXECUTING); in markBeginExecute()
183 ActionMonitor.setExecutedState(this, ActionMonitor.STATE_EXECUTING, in markEndExecute()
186 ActionMonitor.setCompleteState(this, ActionMonitor.STATE_EXECUTING, in markEndExecute()
[all …]
DActionMonitor.java44 public class ActionMonitor { class
55 abstract void onActionExecuted(ActionMonitor monitor, final Action action, in onActionExecuted()
70 abstract void onActionSucceeded(ActionMonitor monitor, in onActionSucceeded()
76 abstract void onActionFailed(ActionMonitor monitor, final Action action, in onActionFailed()
188 protected ActionMonitor(final int initialState, final String actionKey, in ActionMonitor() method in ActionMonitor
270 final ActionMonitor monitor in setState()
271 = ActionMonitor.lookupActionMonitor(action.actionKey); in setState()
318 listener.onActionSucceeded(ActionMonitor.this, in complete()
321 listener.onActionFailed(ActionMonitor.this, in complete()
342 final ActionMonitor monitor in setCompleteState()
[all …]
DGetOrCreateConversationAction.java27 import com.android.messaging.datamodel.action.ActionMonitor.ActionCompletedListener;
46 abstract void onGetOrCreateConversationSucceeded(final ActionMonitor monitor, in onGetOrCreateConversationSucceeded()
50 abstract void onGetOrCreateConversationFailed(final ActionMonitor monitor, in onGetOrCreateConversationFailed()
121 public static class GetOrCreateConversationActionMonitor extends ActionMonitor
133 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded()
143 public void onActionFailed(final ActionMonitor monitor, in onActionFailed()
DUpdateDestinationBlockedAction.java37 public static class UpdateDestinationBlockedActionMonitor extends ActionMonitor
38 implements ActionMonitor.ActionCompletedListener {
49 final ActionMonitor monitor, in onActionDone()
61 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded()
69 public void onActionFailed(final ActionMonitor monitor, in onActionFailed()
DReadDraftDataAction.java25 import com.android.messaging.datamodel.action.ActionMonitor.ActionCompletedListener;
114 public static class ReadDraftDataActionMonitor extends ActionMonitor
127 public void onActionSucceeded(final ActionMonitor monitor, in onActionSucceeded()
139 public void onActionFailed(final ActionMonitor monitor, in onActionFailed()
DDownloadMmsAction.java54 abstract void onDownloadMessageStarting(final ActionMonitor monitor, in onDownloadMessageStarting()
57 abstract void onDownloadMessageSucceeded(final ActionMonitor monitor, in onDownloadMessageSucceeded()
60 abstract void onDownloadMessageFailed(final ActionMonitor monitor, in onDownloadMessageFailed()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DLaunchConversationData.java19 import com.android.messaging.datamodel.action.ActionMonitor;
65 public void onGetOrCreateConversationSucceeded(final ActionMonitor monitor, in onGetOrCreateConversationSucceeded()
80 public void onGetOrCreateConversationFailed(final ActionMonitor monitor, in onGetOrCreateConversationFailed()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java44 import com.android.messaging.datamodel.action.ActionMonitor;
587 public void onGetOrCreateConversationSucceeded(final ActionMonitor monitor, in onGetOrCreateConversationSucceeded()
601 public void onGetOrCreateConversationFailed(final ActionMonitor monitor, in onGetOrCreateConversationFailed()