Home
last modified time | relevance | path

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

123456

/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/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/libs/net/common/device/android/net/util/
DFdEventsReader.java205 if (!isRunning() || !handleInput()) { in createAndRegisterFd()
215 private boolean isRunning() { in isRunning() method in FdEventsReader
221 while (isRunning()) { in handleInput()
227 if (isRunning()) logError("Socket closed, exiting", null); in handleInput()
238 if (isRunning()) logError("readPacket error: ", e); in handleInput()
242 if (isRunning()) logError("readPacket error: ", e); in handleInput()
/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.java152 assertThat(stopwatch.isRunning()).isFalse(); in correctlyTracksTimeOnBattery()
155 assertThat(stopwatch.isRunning()).isTrue(); in correctlyTracksTimeOnBattery()
159 assertThat(stopwatch.isRunning()).isTrue(); in correctlyTracksTimeOnBattery()
168 assertThat(stopwatch.isRunning()).isFalse(); in correctlyTracksTimeOnBattery()
176 assertThat(stopwatch.isRunning()).isFalse(); in correctlyTracksTimeOnBattery()
/frameworks/base/core/java/android/app/
DTaskInfo.java57 public boolean isRunning; field in TaskInfo
171 isRunning = source.readBoolean(); in readFromParcel()
199 dest.writeBoolean(isRunning); in writeToParcel()
230 + " isRunning=" + isRunning in toString()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DAsyncRunner.java171 if (isRunning()) { in setGraph()
188 if (isRunning()) { in run()
213 if (isRunning()) { in close()
222 synchronized public boolean isRunning() { in isRunning() method in AsyncRunner
/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/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/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/av/services/oboeservice/
DAAudioServiceStreamBase.cpp73 result << std::setw(4) << (isRunning() ? "yes" : " no"); in dump()
177 if (isRunning()) { in start()
207 if (!isRunning()) { in pause()
239 if (!isRunning()) { in stop()
DAAudioServiceStreamMMAP.cpp106 if (!isRunning()) { in pause()
118 if (!isRunning()) { in stop()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DViewFilter.java51 if (isRunning()) { in bindToView()
59 if (isRunning()) { in setScaleMode()
/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DRotationButtonController.java199 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) { in setRotateSuggestionButtonState()
222 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) { in setRotateSuggestionButtonState()
230 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) return; in setRotateSuggestionButtonState()
373 if (mRotateHideAnimator != null && mRotateHideAnimator.isRunning()) return; in rescheduleRotationTimeout()

123456