Home
last modified time | relevance | path

Searched refs:isRunning (Results 1 – 25 of 134) sorted by relevance

123456

/frameworks/base/core/java/com/android/internal/os/
DCachedDeviceState.java123 mStartTimeMillis = isRunning() ? SystemClock.elapsedRealtime() : 0; in reset()
129 if (!isRunning()) { in start()
137 if (isRunning()) { in stop()
145 return isRunning() ? SystemClock.elapsedRealtime() - mStartTimeMillis : 0; in elapsedTime()
149 public boolean isRunning() { in isRunning() method in CachedDeviceState.TimeInStateStopwatch
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRemotePrintServicePlugin.java53 private boolean isRunning; field in RemotePrintServicePlugin
87 isRunning = false; in RemotePrintServicePlugin()
98 isRunning = true; in start()
114 isRunning = false; in stop()
133 Preconditions.checkState(isRunning); in onChanged()
/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java95 assertFalse(a.isRunning()); in testStartDelay()
99 assertFalse(a.isRunning()); in testStartDelay()
194 assertFalse(a1.isRunning()); in testIsStarted()
195 assertFalse(a2.isRunning()); in testIsStarted()
218 assertFalse(a1.isRunning()); in testIsStarted()
228 assertTrue(a1.isRunning()); in testIsStarted()
229 assertTrue(a2.isRunning()); in testIsStarted()
239 assertFalse(a1.isRunning()); in testIsStarted()
241 assertFalse(a2.isRunning()); in testIsStarted()
268 assertTrue(a1.isRunning()); in testPause()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsBackgroundStatsTest.java51 assertFalse(bgtb.isRunning()); in testBgTimeBase()
58 assertFalse(bgtb.isRunning()); in testBgTimeBase()
65 assertFalse(bgtb.isRunning()); in testBgTimeBase()
73 assertTrue(bgtb.isRunning()); in testBgTimeBase()
80 assertTrue(bgtb.isRunning()); in testBgTimeBase()
87 assertTrue(bgtb.isRunning()); in testBgTimeBase()
95 assertFalse(bgtb.isRunning()); in testBgTimeBase()
102 assertFalse(bgtb.isRunning()); in testBgTimeBase()
119 assertFalse(bgtb.isRunning()); in testScreenOffBgTimeBase()
124 assertFalse(bgtb.isRunning()); in testScreenOffBgTimeBase()
[all …]
DBatteryStatsNoteTest.java210 assertFalse(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()
212 assertFalse(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()
214 assertFalse(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()
217 assertTrue(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()
218 assertFalse(bi.getOnBatteryScreenOffTimeBase().isRunning()); in testUpdateTimeBasesLocked()
220 assertTrue(bi.getOnBatteryScreenOffTimeBase().isRunning()); in testUpdateTimeBasesLocked()
222 assertTrue(bi.getOnBatteryScreenOffTimeBase().isRunning()); in testUpdateTimeBasesLocked()
236 assertTrue(bi.getOnBatteryScreenOffTimeBase().isRunning()); in testNoteScreenStateLocked()
239 assertFalse(bi.getOnBatteryScreenOffTimeBase().isRunning()); in testNoteScreenStateLocked()
242 assertTrue(bi.getOnBatteryScreenOffTimeBase().isRunning()); in testNoteScreenStateLocked()
DBatteryStatsTimeBaseTest.java107 Assert.assertTrue(tb.isRunning()); in testRunning()
114 + " isRunning=" + tb.isRunning()); in testRunning()
141 Assert.assertFalse(tb.isRunning()); in testRunning()
148 + " isRunning=" + tb.isRunning()); in testRunning()
DLongSamplingCounterArrayTest.java123 when(mTimeBase.isRunning()).thenReturn(false); in testGetCountsLocked()
126 when(mTimeBase.isRunning()).thenReturn(true); in testGetCountsLocked()
144 when(mTimeBase.isRunning()).thenReturn(true); in testAddCountLocked()
DLongSamplingCounterTest.java119 when(mTimeBase.isRunning()).thenReturn(true); in testAddCountLocked()
125 when(mTimeBase.isRunning()).thenReturn(false); in testAddCountLocked()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngineThread.java36 public boolean isRunning() { in isRunning() method in FullRestoreEngineThread
37 return mEngine.isRunning(); in isRunning()
47 while (mEngine.isRunning()) { in run()
DRestoreEngine.java36 public boolean isRunning() { in isRunning() method in RestoreEngine
49 while (isRunning()) { in waitForResult()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java154 assertThat(stopwatch.isRunning()).isFalse(); in correctlyTracksTimeOnBattery()
157 assertThat(stopwatch.isRunning()).isTrue(); in correctlyTracksTimeOnBattery()
161 assertThat(stopwatch.isRunning()).isTrue(); in correctlyTracksTimeOnBattery()
170 assertThat(stopwatch.isRunning()).isFalse(); in correctlyTracksTimeOnBattery()
178 assertThat(stopwatch.isRunning()).isFalse(); in correctlyTracksTimeOnBattery()
/frameworks/base/core/java/android/app/
DTaskInfo.java60 public boolean isRunning; field in TaskInfo
223 isRunning = source.readBoolean(); in readFromParcel()
260 dest.writeBoolean(isRunning); in writeToParcel()
306 + " isRunning=" + isRunning in toString()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAmbientBrightnessStatsTrackerTest.java372 assertFalse(timer.isRunning()); in testTimer()
375 assertTrue(timer.isRunning()); in testTimer()
378 assertTrue(timer.isRunning()); in testTimer()
383 assertFalse(timer.isRunning()); in testTimer()
386 assertTrue(timer.isRunning()); in testTimer()
389 assertTrue(timer.isRunning()); in testTimer()
394 assertFalse(timer.isRunning()); in testTimer()
/frameworks/base/libs/hwui/thread/
DThreadBase.h50 bool isRunning() const { return Thread::isRunning(); } in isRunning() function
/frameworks/base/media/mca/samples/CameraEffectsRecordingSample/java/android/media/filterfw/samples/
DCameraEffectsRecordingSample.java83 if (mRunner.isRunning()) { in onPause()
92 if (mRunner.isRunning()) {
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatable.java38 boolean isRunning(); in isRunning() method
DAnimationDrawable.java157 if (!isRunning()) { in start()
175 if (isRunning()) { in stop()
187 public boolean isRunning() { in isRunning() method in AnimationDrawable
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DViewFilter.java51 if (isRunning()) { in bindToView()
59 if (isRunning()) { in setScaleMode()
DFilter.java429 protected final boolean isRunning() { in isRunning() method in Filter
431 && mFilterGraph.mRunner.isRunning(); in isRunning()
534 if (isRunning()) { in wakeUp()
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java377 if (isRunning() && mState == STATE_READY_TO_SWAP) { in draw()
462 if (!isRunning()) { in start()
474 if (isRunning()) { in stop()
480 public boolean isRunning() { in isRunning() method in FrameSequenceDrawable
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java167 public boolean isRunning() { in isRunning() method in Nat464Xlat
279 boolean wasRunning = isRunning(); in stop()
414 if (!isRunning()) { in fixupLinkProperties()
501 if (!isRunning()) { in handleInterfaceRemoved()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamMMAP.cpp96 if (!isRunning()) { in pause_l()
108 if (!isRunning()) { in stop_l()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DRotationButtonController.java206 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) { in setRotateSuggestionButtonState()
229 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) { in setRotateSuggestionButtonState()
237 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) return; in setRotateSuggestionButtonState()
393 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) return; in rescheduleRotationTimeout()
/frameworks/base/core/java/android/animation/
DAnimator.java235 public abstract boolean isRunning(); in isRunning() method in Animator
253 return isRunning(); in isStarted()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGraphRunner.java92 public abstract boolean isRunning(); in isRunning() method in GraphRunner

123456