/frameworks/av/media/libstagefright/tests/fuzzers/ |
D | MediaClockFuzzer.cpp | 26 sp<MediaClock> mClock(new MediaClock); in LLVMFuzzerTestOneInput() local 33 mClock->init(); in LLVMFuzzerTestOneInput() 40 mClock->setStartingTimeMedia(startingTimeMediaUs); in LLVMFuzzerTestOneInput() 44 mClock->clearAnchor(); in LLVMFuzzerTestOneInput() 51 mClock->updateAnchor(anchorTimeMediaUs, anchorTimeRealUs, in LLVMFuzzerTestOneInput() 57 mClock->updateMaxTimeMedia(maxTimeMediaUs); in LLVMFuzzerTestOneInput() 62 mClock->setNotificationMessage(msg.promote()); in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/rtsp/ |
D | TrafficRecorder.h | 43 Time mClock; variable 97 mClock = 0; in init() 105 mClock = now; in updateClock() 116 if (period > mClock) in readBytesForLastPeriod() 123 << " \t EndOfPeriod " << mClock - period in readBytesForLastPeriod() 125 if (mTimeArray[i] < mClock - period) { in readBytesForLastPeriod() 139 if (mClock == mTimeArray[mHeadIdx]) { in writeBytes() 144 mTimeArray[writeIdx] = mClock; in writeBytes() 148 LOG(VERBOSE) << "WRITE " << writeIdx << " time " << mClock; in writeBytes() 159 Time timeSinceLastPrint = mClock - mLastTimeOfPrint; in printAccuBitsForLastPeriod() [all …]
|
/frameworks/base/location/java/android/location/ |
D | GnssMeasurementsEvent.java | 40 private final GnssClock mClock; field in GnssMeasurementsEvent 130 mClock = clock; in GnssMeasurementsEvent() 139 return mClock; in getClock() 183 parcel.writeParcelable(mClock, flags); in writeToParcel() 191 builder.append(mClock); in toString() 200 private GnssClock mClock; field in GnssMeasurementsEvent.Builder 208 mClock = new GnssClock(); in Builder() 218 mClock = event.getClock(); in Builder() 229 mClock = clock; in setClock() 282 return new GnssMeasurementsEvent(mClock, mMeasurements, mGnssAgcs); in build()
|
D | GpsMeasurementsEvent.java | 58 private final GpsClock mClock; field in GpsMeasurementsEvent 91 mClock = clock; in GpsMeasurementsEvent() 98 return mClock; in getClock() 137 parcel.writeParcelable(mClock, flags); in writeToParcel() 151 builder.append(mClock.toString()); in toString()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
D | FakeExecutor.java | 27 private final FakeSystemClock mClock; field in FakeExecutor 40 mClock = clock; in FakeExecutor() 41 mClock.addListener(() -> { in FakeExecutor() 59 if (!mQueuedRunnables.isEmpty() && mQueuedRunnables.peek().mWhen <= mClock.uptimeMillis()) { in runNextReady() 102 long startTime = mClock.uptimeMillis(); in advanceClockToNext() 126 long startTime = mClock.uptimeMillis(); in advanceClockToLast() 149 return executeAtTime(r, mClock.uptimeMillis() + unit.toMillis(delay)); in executeDelayed() 190 mClock.setUptimeMillis(nextTime); in updateClock()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | PersistentServiceConnectionTest.java | 73 private OffsettableClock mClock; field in PersistentServiceConnectionTest 79 mClock = new OffsettableClock.Stopped(); in setup() 80 mHandler = spy(new TestHandler(null, mClock)); in setup() 92 new TestInjector(mClock)); in setup() 94 mClock.fastForward(1000); in setup() 178 mClock.fastForward(millis); in advanceTime() 183 private final OffsettableClock mClock; field in PersistentServiceConnectionTest.TestInjector 186 mClock = clock; in TestInjector() 191 return mClock.now(); in uptimeMillis()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardClockSwitchTest.java | 65 ClockController mClock; field in KeyguardClockSwitchTest 85 when(mClock.getSmallClock()).thenReturn(mSmallClock); in setUp() 86 when(mClock.getLargeClock()).thenReturn(mLargeClock); in setUp() 124 mKeyguardClockSwitch.setClock(mClock, StatusBarState.KEYGUARD); in pluginConnectedThenDisconnected_showNothing() 135 mKeyguardClockSwitch.setClock(mClock, StatusBarState.KEYGUARD); in onPluginConnected_showClock() 137 assertEquals(mClock.getSmallClock().getView().getParent(), mSmallClockFrame); in onPluginConnected_showClock() 138 assertEquals(mClock.getLargeClock().getView().getParent(), mLargeClockFrame); in onPluginConnected_showClock() 151 mKeyguardClockSwitch.setClock(mClock, StatusBarState.KEYGUARD); in onPluginConnected_showSecondPluginClock() 157 assertThat(mClock.getSmallClock().getView().getParent()).isNull(); in onPluginConnected_showSecondPluginClock() 158 assertThat(mClock.getLargeClock().getView().getParent()).isNull(); in onPluginConnected_showSecondPluginClock() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coalescer/ |
D | GroupCoalescerTest.java | 70 private final FakeSystemClock mClock = new FakeSystemClock(); field in GroupCoalescerTest 71 private final FakeExecutor mExecutor = new FakeExecutor(mClock); 80 mClock, in setUp() 99 mClock.advanceTime(MIN_LINGER_DURATION); in testUngroupedNotificationsAreNotCoalesced() 147 mClock.advanceTime(2); in testCoalescedNotificationsArePosted() 155 mClock.advanceTime(3); in testCoalescedNotificationsArePosted() 168 mClock.advanceTime(MIN_LINGER_DURATION); in testCoalescedNotificationsArePosted() 219 mClock.advanceTime(MIN_LINGER_DURATION); in testCoalescedEventsThatAreLaterUngroupedAreEmittedImmediatelyAndNotLater() 232 mClock.advanceTime(2); in testUpdatingCoalescedNotifTriggersBatchEmit() 238 mClock.advanceTime(4); in testUpdatingCoalescedNotifTriggersBatchEmit() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 76 private OffsettableClock mClock = new OffsettableClock(); field in AutomaticBrightnessControllerTest 116 mClock = new OffsettableClock.Stopped(); in setupController() 117 mTestLooper = new TestLooper(mClock::now); in setupController() 128 return mClock::now; in setupController() 358 mClock.fastForward(increment); in testAmbientLightHorizon() 362 mClock.fastForward(increment); in testAmbientLightHorizon() 367 mClock.fastForward(increment); in testAmbientLightHorizon() 373 mClock.fastForward(increment); in testAmbientLightHorizon() 379 mClock.fastForward(increment); in testAmbientLightHorizon() 386 mClock.fastForward(increment); in testAmbientLightHorizon() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationWindowedCountTest.java | 44 @Mock private Clock mClock; field in TertiaryKeyRotationWindowedCountTest 54 mWindowedcount = new TertiaryKeyRotationWindowedCount(mFile, mClock); in setUp() 60 new TertiaryKeyRotationWindowedCount(mTemporaryFolder.newFolder(), mClock); in constructor_doesNotFailForBadFile() local 103 new TertiaryKeyRotationWindowedCount(mTemporaryFolder.newFolder(), mClock).record(); in record_doesNotFailForBadFile() 111 assertThat(new TertiaryKeyRotationWindowedCount(mFile, mClock).getCount()).isEqualTo(1); in record_persistsStateToDisk() 129 when(mClock.millis()).thenReturn(timeMillis); in setTimeMillis()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ClockPreference.java | 33 private final String mClock; field in ClockPreference 43 mClock = context.getString(com.android.internal.R.string.status_bar_clock); in ClockPreference() 65 mClockEnabled = !mHideList.contains(mClock); in onTuningChanged() 90 mHideList.add(mClock); in persistString() 92 mHideList.remove(mClock); in persistString()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | DropboxRateLimiterTest.java | 36 private TestClock mClock; field in DropboxRateLimiterTest 40 mClock = new TestClock(); in setUp() 41 mRateLimiter = new DropboxRateLimiter(mClock); in setUp() 74 mClock.setOffsetMillis(11 * 60 * 1000); in testBufferClearing() 99 mClock.setOffsetMillis(11 * 60 * 1000); in testRecentlyDroppedCount()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationWindowedCount.java | 51 private final Clock mClock; field in TertiaryKeyRotationWindowedCount 65 mClock = clock; in TertiaryKeyRotationWindowedCount() 76 mEvents.add(mClock.millis()); in record() 93 long now = mClock.millis(); in compact() 104 return mClock.millis() - TimeUnit.HOURS.toMillis(WINDOW_IN_HOURS) + 1; in getMinimumTimestamp()
|
D | SecondaryKeyRotationScheduler.java | 42 private final Clock mClock; field in SecondaryKeyRotationScheduler 51 mClock = clock; in SecondaryKeyRotationScheduler() 84 long now = mClock.millis(); in startRotationIfScheduled() 114 mCryptoSettings.setSecondaryLastRotated(mClock.millis()); in scheduleRotationFromNow()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/touch/ |
D | HideComplicationTouchHandlerTest.java | 77 FakeSystemClock mClock; field in HideComplicationTouchHandlerTest 84 mClock = new FakeSystemClock(); in setup() 85 mFakeExecutor = new FakeExecutor(mClock); in setup() 114 mClock.advanceTime(HIDE_DELAY); in testSessionEndOnMultipleSessions() 146 mClock.advanceTime(HIDE_DELAY); in testSessionEndWhenBouncerShowing() 194 mClock.advanceTime(HIDE_DELAY); in testSessionEndWithTouchInInset() 243 mClock.advanceTime(HIDE_DELAY); in testSessionLifecycle() 255 mClock.advanceTime(RESTORE_TIMEOUT); in testSessionLifecycle()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | PendingRemoteAnimationRegistryTest.java | 51 private final OffsettableClock mClock = new OffsettableClock.Stopped(); field in PendingRemoteAnimationRegistryTest 58 mHandler = new TestHandler(null, mClock); in setUp() 96 mClock.fastForward(5000); in testTimeout() 104 mClock.fastForward(2500); in testTimeout_overridenEntry() 107 mClock.fastForward(1000); in testTimeout_overridenEntry()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | OneShotTimer.cpp | 45 : mClock(std::move(clock)), in OneShotTimer() 51 LOG_ALWAYS_FATAL_IF(!mClock, "Clock must not be provided"); in OneShotTimer() 118 auto triggerTime = mClock->now() + mInterval; in loop() 122 if (const auto triggerInterval = triggerTime - mClock->now(); triggerInterval > 0ns) { in loop() 140 if (state == TimerState::WAITING && (triggerTime - mClock->now()) <= 0ns) { in loop() 172 mLastResetTime = mClock->now(); in reset()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ScreenUndimDetector.java | 94 private InternalClock mClock; field in ScreenUndimDetector 97 mClock = new InternalClock(); in ScreenUndimDetector() 101 mClock = clock; in ScreenUndimDetector() 149 final long now = mClock.getCurrentTime(); in recordScreenPolicy() 172 mUndimOccurredTime = mClock.getCurrentTime(); in recordScreenPolicy() 277 mInteractionAfterUndimTime = mClock.getCurrentTime(); in userActivity() 290 long now = mClock.getCurrentTime(); in checkAndLogUndim()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | ScanResultUpdater.java | 39 private final Clock mClock; field in ScanResultUpdater 56 mClock = clock; in ScanResultUpdater() 97 if (mClock.millis() - result.timestamp / 1000 <= maxScanAgeMillis) { in getScanResults() 108 mClock.millis() - entry.getValue().timestamp / 1000 > mMaxScanAgeMillis); in evictOldScans()
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestHandler.java | 57 private final LongSupplier mClock; field in TestHandler 70 mClock = clock; in TestHandler() 81 if (mClock != DEFAULT_CLOCK) { in sendMessageAtTime() 82 uptimeMillis = uptimeMillis - SystemClock.uptimeMillis() + mClock.getAsLong(); in sendMessageAtTime() 92 long now = mClock.getAsLong(); in timeAdvance()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 205 protected Clock mClock; field in BatteryStatsImpl 403 final long uptimeMs = mClock.uptimeMillis(); 404 final long elapsedRealtimeMs = mClock.elapsedRealtime(); 506 long cutOffTimeMs = mClock.elapsedRealtime() - mConstants.UID_REMOVE_DELAY_MS; in clearPendingRemovedUidsLocked() 544 final long timestampMs = mClock.elapsedRealtime(); in updateCpuTimesForAllUids() 1247 stats = new RadioAccessTechnologyBatteryStats(freqCount, mClock, mOnBatteryTimeBase); in getRatBatteryStatsLocked() 1493 final long realtimeMs = mClock.elapsedRealtime(); in getWakeLockStats() 1525 final long elapsedRealtimeUs = mClock.elapsedRealtime() * 1000; in getBluetoothBatteryStats() 1646 mClock = clock; in init() 2411 protected final Clock mClock; field in BatteryStatsImpl.Timer [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ScreenOffBrightnessSensorController.java | 43 private final Clock mClock; field in ScreenOffBrightnessSensorController 66 mClock = clock; in ScreenOffBrightnessSensorController() 91 mSensorDisableTime = mClock.uptimeMillis(); in setLightSensorEnabled() 102 && mClock.uptimeMillis() - mSensorDisableTime > SENSOR_VALUE_VALID_TIME_MILLIS)) { in getAutomaticScreenBrightness()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FpsReporterTest.cpp | 97 fake::FakeClock* mClock = new fake::FakeClock(); member in android::FpsReporterTest 99 new FpsReporter(mFrameTimeline, *(mFlinger.flinger()), std::unique_ptr<Clock>(mClock)); 178 mClock->advanceTime(600ms); in TEST_F() 203 mClock->advanceTime(600ms); in TEST_F() 206 mClock->advanceTime(200ms); in TEST_F() 209 mClock->advanceTime(200ms); in TEST_F() 212 mClock->advanceTime(200ms); in TEST_F()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardDisplayManager.java | 269 private View mClock; field in KeyguardDisplayManager.KeyguardPresentation 277 int x = mMarginLeft + (int) (Math.random() * (mUsableWidth - mClock.getWidth())); 278 int y = mMarginTop + (int) (Math.random() * (mUsableHeight - mClock.getHeight())); 279 mClock.setTranslationX(x); 280 mClock.setTranslationY(y); 281 mClock.postDelayed(mMoveTextRunnable, MOVE_CLOCK_TIMEOUT); 300 mClock.removeCallbacks(mMoveTextRunnable); in onDetachedFromWindow() 327 mClock = findViewById(R.id.clock); in onCreate() 330 mClock.post(mMoveTextRunnable); in onCreate()
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
D | History.java | 37 private Clock mClock; field in History 60 mClock = clock; in History() 70 mTimes[mEnd] = mClock.millis(); in add()
|