OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:ActionMonitor
(Results
1 - 3
of
3
) sorted by null
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
Action.java
26
import com.android.messaging.datamodel.action.
ActionMonitor
.ActionCompletedListener;
27
import com.android.messaging.datamodel.action.
ActionMonitor
.ActionExecutedListener;
142
protected void start(final
ActionMonitor
monitor) {
143
ActionMonitor
.registerActionMonitor(this.actionKey, monitor);
165
ActionMonitor
.setState(this,
ActionMonitor
.STATE_CREATED,
166
ActionMonitor
.STATE_QUEUED);
173
ActionMonitor
.setState(this,
ActionMonitor
.STATE_QUEUED,
174
ActionMonitor
.STATE_EXECUTING)
[
all
...]
ActionMonitor.java
44
public class
ActionMonitor
{
55
abstract void onActionExecuted(
ActionMonitor
monitor, final Action action,
70
abstract void onActionSucceeded(
ActionMonitor
monitor,
76
abstract void onActionFailed(
ActionMonitor
monitor, final Action action,
188
protected
ActionMonitor
(final int initialState, final String actionKey,
270
final
ActionMonitor
monitor
271
=
ActionMonitor
.lookupActionMonitor(action.actionKey);
318
listener.onActionSucceeded(
ActionMonitor
.this,
321
listener.onActionFailed(
ActionMonitor
.this,
342
final
ActionMonitor
monito
[
all
...]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
ActionTest.java
52
mMonitor = new StubChatActionMonitor(
ActionMonitor
.STATE_CREATED, mActionKey,
73
mMonitor.setState(
ActionMonitor
.STATE_CREATED);
75
ActionMonitor
.registerActionMonitor(mAction.actionKey, mMonitor);
76
assertTrue(
ActionMonitor
.sActionMonitors.containsKey(mAction.actionKey));
77
assertTrue(
ActionMonitor
.sActionMonitors.containsValue(mMonitor));
78
assertEquals(
ActionMonitor
.sActionMonitors.get(mAction.actionKey), mMonitor);
81
assertEquals("After start state: STATE_QUEUED",
ActionMonitor
.STATE_QUEUED,
83
verifyState(1,
ActionMonitor
.STATE_CREATED,
ActionMonitor
.STATE_QUEUED);
85
ActionMonitor
.unregisterActionMonitor(mAction.actionKey, mMonitor)
[
all
...]
Completed in 217 milliseconds