/packages/apps/DeskClock/src/com/android/deskclock/data/ |
Stopwatch.java | 23 import static com.android.deskclock.data.Stopwatch.State.RUNNING; 30 public enum State { RESET, RUNNING, PAUSED } 38 /** Elapsed time in ms the stopwatch was last started; {@link Long#MIN_VALUE} if not running. */ 41 /** Elapsed time in ms this stopwatch has accumulated while running. */ 54 public boolean isRunning() { return mState == RUNNING; } 60 if (mState != RUNNING) { 79 * @return a copy of this stopwatch that is running 82 if (mState == RUNNING) { 86 return new Stopwatch(RUNNING, now(), getTotalTime()); 93 if (mState != RUNNING) { [all...] |
Timer.java | 32 import static com.android.deskclock.data.Timer.State.RUNNING; 40 RUNNING(1), PAUSED(2), EXPIRED(3), RESET(4); 89 /** The time at which the timer was last started; {@link Long#MIN_VALUE} when not running. */ 120 public boolean isRunning() { return mState == RUNNING; } 129 if (mState == RUNNING || mState == EXPIRED) { 140 if (mState != RUNNING && mState != EXPIRED) { 159 * @return a copy of this timer that is running or expired 162 if (mState == RUNNING || mState == EXPIRED) { 166 return new Timer(mId, RUNNING, mLength, mTotalLength, now(), mRemainingTime, mLabel, 231 state = RUNNING; [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
ServiceTest.java | 21 import static com.google.common.util.concurrent.Service.State.RUNNING; 39 assertLessThan(STARTING, RUNNING); 43 assertLessThan(RUNNING, STOPPING); 44 assertLessThan(RUNNING, FAILED);
|
AbstractServiceTest.java | 57 assertFalse(service.running); 60 assertEquals(State.RUNNING, service.state()); 62 assertTrue(service.running); 67 assertFalse(service.running); 71 State.RUNNING, 81 assertEquals(State.RUNNING, service.state()); 91 assertEquals(State.RUNNING, service.state()); 101 assertEquals(State.RUNNING, service.state()); 109 State.RUNNING, 129 assertEquals(State.RUNNING, service.state()) 155 boolean running = false; field in class:AbstractServiceTest.NoOpService 843 @Override public synchronized void running() { method in class:AbstractServiceTest.RecordingListener [all...] |
AbstractExecutionThreadServiceTest.java | 69 assertEquals(Service.State.RUNNING, service.state()); 99 service.expectedShutdownState = Service.State.RUNNING; 103 assertEquals(Service.State.RUNNING, service.state()); 136 assertEquals(State.RUNNING, state()); 256 assertEquals(Service.State.RUNNING, service.state());
|
/libcore/ojluni/src/main/java/java/lang/ |
Shutdown.java | 42 private static final int RUNNING = 0; 45 private static int state = RUNNING; 58 // the index of the currently running shutdown hook to the hooks array 103 if (state > RUNNING) 156 * we're running hooks or finalizers. In the latter case a finalizer could 189 case RUNNING: /* Initiate shutdown */ 228 case RUNNING: /* Initiate shutdown */
|
/frameworks/base/services/core/java/com/android/server/notification/ |
RankingReconsideration.java | 29 private static final int RUNNING = 1; 53 mState = RUNNING; 69 if (mState == START) { // can't cancel if running or done
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
AbstractService.java | 24 import static com.google.common.util.concurrent.Service.State.RUNNING; 64 new Callback<Listener>("running()") { 66 listener.running(); 72 stoppingCallback(RUNNING); 77 terminatedCallback(RUNNING); 107 return state().compareTo(RUNNING) <= 0; 113 return state().compareTo(RUNNING) >= 0; 201 case RUNNING: 203 stopping(RUNNING); 229 checkCurrentState(RUNNING); [all...] |
Service.java | 34 * <li>{@linkplain State#RUNNING RUNNING} -> 40 * before the {@link Service} reaches the {@linkplain State#RUNNING RUNNING} state. The set of legal 68 * Returns {@code true} if this service is {@linkplain State#RUNNING running}. 78 * If the service is {@linkplain State#STARTING starting} or {@linkplain State#RUNNING running}, 90 * Waits for the {@link Service} to reach the {@linkplain State#RUNNING running state} 267 public void running() {} method in class:Service.Listener [all...] |
AbstractFuture.java | 49 * failure in changing the future's state. Valid states are running, 217 * RUNNING to COMPLETING, that thread will then set the result of the 229 static final int RUNNING = 0; 361 * from {@link #RUNNING}. If the state is not in the RUNNING state we 372 boolean doCompletion = compareAndSetState(RUNNING, COMPLETING);
|
/external/autotest/client/common_lib/ |
host_queue_entry_states.py | 11 'Pending', 'Waiting', 'Running', 'Gathering', 'Parsing', 17 Status.PROVISIONING, Status.PENDING, Status.RUNNING,
|
/external/testng/src/test/java/test/ |
DynamicGraphTest.java | 36 dg.setStatus(freeNodes, Status.RUNNING); 43 dg.setStatus("b2", Status.RUNNING); 63 dg.setStatus(freeNodes, Status.RUNNING); 70 dg.setStatus("b2", Status.RUNNING);
|
/frameworks/base/core/java/android/os/ |
SystemService.java | 37 RUNNING("running"), 96 * Check if given service is {@link State#RUNNING}. 99 return State.RUNNING.equals(getState(service));
|
/external/testng/src/main/java/org/testng/internal/ |
DynamicGraph.java | 31 READY, RUNNING, FINISHED 114 case RUNNING: m_nodesRunning.add(node); break; 139 case RUNNING: return m_nodesRunning.size(); 156 result.append("\n Running:" + m_nodesRunning); 181 String RUNNING = "[style=filled color=green]"; 191 color = freeNodes.contains(n) ? FREE : RUNNING;
|
/packages/apps/Camera2/src/com/android/camera/burst/ |
BurstFacadeImpl.java | 48 RUNNING, 79 Log.e(TAG, "Exception while running the burst" + error); 111 * running. 131 BurstModuleState.RUNNING)) { 171 if (mBurstModuleState.compareAndSet(BurstModuleState.RUNNING,
|
/development/samples/Snake/src/com/example/android/snake/ |
SnakeView.java | 40 * Current mode of application: READY to run, RUNNING, or you have already lost. static final 46 public static final int RUNNING = 2; 268 setMode(RUNNING); 277 setMode(RUNNING); 324 * Updates the current mode of the application (RUNNING or PAUSED or the like) as well as sets 333 if (newMode == RUNNING && oldMode != RUNNING) { 367 * @return the Game state as Running, Ready, Paused, Lose 407 * Handles the basic update loop, checking to see if we are in the running state, determining if 411 if (mMode == RUNNING) { [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
Breakpoint002Test.java | 169 checkThreadState(eventThreadID, JDWPConstants.ThreadStatus.RUNNING,
|
MethodEntryTest.java | 75 checkThreadState(eventThreadID, JDWPConstants.ThreadStatus.RUNNING,
|
MethodExitTest.java | 75 checkThreadState(eventThreadID, JDWPConstants.ThreadStatus.RUNNING,
|
/external/autotest/site_utils/ |
job_overhead.py | 27 _qs.RUNNING, _qs.GATHERING, _qs.PARSING]
|
/frameworks/av/cmds/screenrecord/ |
Overlay.h | 112 enum { UNINITIALIZED, INIT, RUNNING, STOPPING, STOPPED } mState;
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/ |
StatusTest.java | 53 * <BR> - returned thread status is RUNNING status; 83 if (threadStatus != JDWPConstants.ThreadStatus.RUNNING) { 112 * <BR> - returned thread status is RUNNING status; 140 if (threadStatus != JDWPConstants.ThreadStatus.RUNNING) {
|
/external/valgrind/memcheck/tests/ |
client-msg-as-xml.stderr.exp | 27 <state>RUNNING</state>
|
long_namespace_xml.stderr.exp | 27 <state>RUNNING</state>
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
GraphRunner.java | 56 public static final int RUNNING = 4; 198 if (mState.check(State.RUNNING)) { 249 if (mState.current() == State.RUNNING) { 256 if (mState.addState(State.HALTED) && mState.check(State.RUNNING)) { 263 if (mState.current() == State.RUNNING) { 306 mState.setState(State.RUNNING); 326 if (mState.check(State.RUNNING)) { 347 if (mState.current() == State.RUNNING) { 374 Log.w("GraphRunner", "State is not running! (" + mState.current() + ")"); 638 * Returns the currently running graph-runner [all...] |