/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | OneShotTimerTest.cpp | 51 fake::FakeClock* clock = new fake::FakeClock(); in TEST_F() local 53 "TestTimer", 3ms, [] {}, [] {}, std::unique_ptr<fake::FakeClock>(clock)); in TEST_F() 57 fake::FakeClock* clock = new fake::FakeClock(); in TEST_F() local 61 std::unique_ptr<fake::FakeClock>(clock)); in TEST_F() 66 clock->advanceTime(2ms); in TEST_F() 69 clock->advanceTime(2ms); in TEST_F() 76 fake::FakeClock* clock = new fake::FakeClock(); in TEST_F() local 80 std::unique_ptr<fake::FakeClock>(clock)); in TEST_F() 85 clock->advanceTime(2ms); in TEST_F() 89 clock->advanceTime(2ms); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | FakeExecutorTest.java | 53 FakeSystemClock clock = new FakeSystemClock(); in testNoDelay() local 54 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testNoDelay() 57 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 63 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 67 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 73 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 78 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 88 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 93 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 102 FakeSystemClock clock = new FakeSystemClock(); in testDelayed() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ClockOptionsProvider.java | 16 package com.android.keyguard.clock; 102 ClockInfo clock = clocks.get(i); in query() local 104 .add(COLUMN_NAME, clock.getName()) in query() 105 .add(COLUMN_TITLE, clock.getTitle()) in query() 106 .add(COLUMN_ID, clock.getId()) in query() 107 .add(COLUMN_THUMBNAIL, createThumbnailUri(clock)) in query() 108 .add(COLUMN_PREVIEW, createPreviewUri(clock)); in query() 139 ClockInfo clock = null; in openFile() local 143 clock = clocks.get(i); in openFile() 147 if (clock == null) { in openFile() [all …]
|
D | ClockManager.java | 16 package com.android.keyguard.clock; 247 final ClockPlugin clock = clocks.getCurrentClock(); in reload() local 249 listener.onClockChanged(clock instanceof DefaultClockController ? null : clock); in reload() 252 clock instanceof DefaultClockController ? null : clock)); in reload() 266 void onClockChanged(ClockPlugin clock); in onClockChanged() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | SmartspaceDedupingCoordinatorTest.kt | 94 private val clock = FakeSystemClock() constant 95 private val executor = FakeExecutor(clock) 96 private val now = clock.currentTimeMillis() 115 clock in setUp() 219 clock.advanceTime(20000) in testExceptionExpires() 238 clock.advanceTime(20000) in testExceptionIsEventuallyFiltered() 241 assertTrue(filter.shouldFilterOut(entry1HasRecentlyAlerted, clock.uptimeMillis())) in testExceptionIsEventuallyFiltered() 250 assertFalse(filter.shouldFilterOut(entry1HasRecentlyAlerted, clock.uptimeMillis())) in testExceptionIsUpdated() 254 .setLastAudiblyAlertedMs(clock.currentTimeMillis() - 500) in testExceptionIsUpdated() 257 assertFalse(filter.shouldFilterOut(entry1HasRecentlyAlerted, clock.uptimeMillis())) in testExceptionIsUpdated() [all …]
|
/frameworks/base/location/java/android/location/ |
D | GnssClock.java | 78 public void set(GnssClock clock) { in set() argument 79 mFlags = clock.mFlags; in set() 80 mLeapSecond = clock.mLeapSecond; in set() 81 mTimeNanos = clock.mTimeNanos; in set() 82 mTimeUncertaintyNanos = clock.mTimeUncertaintyNanos; in set() 83 mFullBiasNanos = clock.mFullBiasNanos; in set() 84 mBiasNanos = clock.mBiasNanos; in set() 85 mBiasUncertaintyNanos = clock.mBiasUncertaintyNanos; in set() 86 mDriftNanosPerSecond = clock.mDriftNanosPerSecond; in set() 87 mDriftUncertaintyNanosPerSecond = clock.mDriftUncertaintyNanosPerSecond; in set() [all …]
|
D | GpsClock.java | 83 public void set(GpsClock clock) { in set() argument 84 mFlags = clock.mFlags; in set() 85 mLeapSecond = clock.mLeapSecond; in set() 86 mType = clock.mType; in set() 87 mTimeInNs = clock.mTimeInNs; in set() 88 mTimeUncertaintyInNs = clock.mTimeUncertaintyInNs; in set() 89 mFullBiasInNs = clock.mFullBiasInNs; in set() 90 mBiasInNs = clock.mBiasInNs; in set() 91 mBiasUncertaintyInNs = clock.mBiasUncertaintyInNs; in set() 92 mDriftInNsPerSec = clock.mDriftInNsPerSec; in set() [all …]
|
D | GpsMeasurementsEvent.java | 82 public GpsMeasurementsEvent(GpsClock clock, GpsMeasurement[] measurements) { in GpsMeasurementsEvent() argument 83 if (clock == null) { in GpsMeasurementsEvent() 91 mClock = clock; in GpsMeasurementsEvent() 115 GpsClock clock = in.readParcelable(classLoader); 121 return new GpsMeasurementsEvent(clock, measurementsArray);
|
D | GnssMeasurementsEvent.java | 122 public GnssMeasurementsEvent(GnssClock clock, GnssMeasurement[] measurements) { in GnssMeasurementsEvent() argument 123 if (clock == null) { in GnssMeasurementsEvent() 133 mClock = clock; in GnssMeasurementsEvent() 159 GnssClock clock = in.readParcelable(classLoader); 165 return new GnssMeasurementsEvent(clock, measurementsArray);
|
/frameworks/base/services/core/jni/gnss/ |
D | GnssMeasurementCallback.cpp | 151 void setMeasurementData(JNIEnv* env, jobject& callbacksObj, jobject clock, in setMeasurementData() argument 154 env->NewObject(class_gnssMeasurementsEvent, method_gnssMeasurementsEventCtor, clock, in setMeasurementData() 216 void setClockFields_V1_0(const T_Clock& clock, JavaObject& object) { in setClockFields_V1_0() argument 217 uint32_t flags = static_cast<uint32_t>(clock.gnssClockFlags); in setClockFields_V1_0() 219 SET(LeapSecond, static_cast<int32_t>(clock.leapSecond)); in setClockFields_V1_0() 223 SET(TimeUncertaintyNanos, clock.timeUncertaintyNs); in setClockFields_V1_0() 227 SET(FullBiasNanos, clock.fullBiasNs); in setClockFields_V1_0() 231 SET(BiasNanos, clock.biasNs); in setClockFields_V1_0() 235 SET(BiasUncertaintyNanos, clock.biasUncertaintyNs); in setClockFields_V1_0() 239 SET(DriftNanosPerSecond, clock.driftNsps); in setClockFields_V1_0() [all …]
|
D | GnssMeasurementCallback.h | 48 void setMeasurementData(JNIEnv* env, jobject& callbacksObj, jobject clock, 135 jobject clock = gnssClockJavaObject.get(); in translateAndSetGnssData() local 140 setMeasurementData(env, mCallbacksObj, clock, measurementArray); in translateAndSetGnssData() 142 env->DeleteLocalRef(clock); in translateAndSetGnssData() 186 translateGnssClock(data.clock, object); in translateGnssClock() 191 const hardware::gnss::V1_0::IGnssMeasurementCallback::GnssClock& clock, JavaObject& object); 195 const hardware::gnss::V2_1::IGnssMeasurementCallback::GnssClock& clock, JavaObject& object);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/ |
D | LogBufferFreezerTest.kt | 53 val clock = FakeSystemClock() constant 54 val executor = FakeExecutor(clock) 89 clock.advanceTime(501) in testBuffersAreUnfrozenAfterTimeout() 100 clock.advanceTime(499) in testBuffersAreNotPrematurelyUnfrozen() 109 clock.advanceTime(101) in testBuffersAreNotPrematurelyUnfrozen() 113 clock.advanceTime(401) in testBuffersAreNotPrematurelyUnfrozen()
|
D | LogEulogizerTest.kt | 57 private val clock = FakeSystemClock() constant in com.android.systemui.dump.LogEulogizerTest 72 LogBufferEulogizer(dumpManager, clock, files, path, MIN_WRITE_GAP, MAX_READ_AGE) in setUp() 107 fileAttrs.setLastModifiedTime(clock.currentTimeMillis() - MIN_WRITE_GAP - 20) in testExistingFileIsOverwritten() 121 fileAttrs.setLastModifiedTime(clock.currentTimeMillis() - MIN_WRITE_GAP + 7) in testYoungFileIsNotOverwritten() 135 fileAttrs.setLastModifiedTime(clock.currentTimeMillis() - MAX_READ_AGE + 7) in testRecentFileIsDumped() 149 fileAttrs.setLastModifiedTime(clock.currentTimeMillis() - MAX_READ_AGE - 7) in testOldFileIsNotDumped()
|
/frameworks/rs/perf-test-scripts/ |
D | set-gpu-freq | 49 elif fileexists /d/clock/gbus/possible_rates; then 50 frequencies=(`getprop /d/clock/gbus/possible_rates`) 85 setprop /d/clock/override.gbus/state 1 86 setprop /d/clock/override.gbus/rate $freq
|
D | get-freq | 79 elif fileexists /d/clock/gbus/possible_rates; then 80 frequencies=(`getprop /d/clock/gbus/possible_rates`) 95 elif fileexists /d/clock/override.gbus/rate; then 96 freq=`getprop /d/clock/override.gbus/rate`
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | ScanResultUpdater.java | 46 public ScanResultUpdater(Clock clock) { in ScanResultUpdater() argument 47 this(clock, Long.MAX_VALUE); in ScanResultUpdater() 54 public ScanResultUpdater(Clock clock, long maxScanAgeMillis) { in ScanResultUpdater() argument 56 mClock = clock; in ScanResultUpdater()
|
D | NetworkDetailsTracker.java | 70 @NonNull Clock clock, in createNetworkDetailsTracker() argument 76 connectivityManager, networkScoreManager, mainHandler, workerHandler, clock, in createNetworkDetailsTracker() 80 connectivityManager, networkScoreManager, mainHandler, workerHandler, clock, in createNetworkDetailsTracker() 100 @NonNull Clock clock, in NetworkDetailsTracker() argument 105 mainHandler, workerHandler, clock, maxScanAgeMillis, scanIntervalMillis, in NetworkDetailsTracker()
|
/frameworks/base/packages/SystemUI/docs/ |
D | executors.md | 205 the clock.) 219 according to the supplied clock. 232 Move the internal clock to the item at 268 Here we advance the clock directly: 271 FakeSystemClock clock = new FakeSystemClock(); 272 FakeExecutor executor = new FakeExecutor(clock); 277 clock.synchronizeListeners(); // The clock just told the Executor it's time-0. 279 clock.setUptimeMillis(500); // The clock just told the Executor it's time-500. 286 FakeSystemClock clock = new FakeSystemClock(); 287 FakeExecutor executor = new FakeExecutor(clock); [all …]
|
D | clock-plugins.md | 5 The clock appearing on the lock screen and always on display (AOD) can be 18 blocks of color, and the clock should be moved around the screen to 21 (clock movement) scheme and shape of the clock. 30 For clock face that contain color, it is recommended to use an all white 32 the clock face represents the worst case scenario. 91 action should be taken to change the shape of the clock face or increase the
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
D | MediaDataFilterTest.kt | 84 private val clock = FakeSystemClock() in eq() constant 90 lockscreenUserManager, executor, clock) in eq() 258 val dataOld = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in eq() 260 clock.advanceTime(SMARTSPACE_MAX_AGE + 100) in eq() 272 val dataOld = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in eq() 274 clock.advanceTime(SMARTSPACE_MAX_AGE + 100) in eq() 286 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in eq() 306 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in eq() 326 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in eq() 355 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in eq()
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestHandler.java | 64 public TestHandler(Callback callback, LongSupplier clock) { in TestHandler() argument 65 this(Looper.getMainLooper(), callback, clock); in TestHandler() 68 public TestHandler(Looper looper, Callback callback, LongSupplier clock) { in TestHandler() argument 70 mClock = clock; in TestHandler()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryStateNotifierTest.kt | 50 private val clock = FakeSystemClock() constant 51 private val executor = FakeExecutor(clock) 75 clock.advanceTime(DELAY_MILLIS + 1) in testCancelAfterDelay()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | ThreadBaseTests.cpp | 53 using clock = WorkQueue::clock; in TEST() typedef 56 auto queuedAt = clock::now(); in TEST() 57 queue().postDelayed(100_us, [&]() { ranAtPromise.set_value(clock::now()); }); in TEST()
|
D | CanvasContextTests.cpp | 30 virtual AnimationContext* createAnimationContext(renderthread::TimeLord& clock) override { in createAnimationContext() argument 31 return new AnimationContext(clock); in createAnimationContext()
|
/frameworks/base/core/java/android/os/ |
D | BestClock.java | 47 for (Clock clock : clocks) { in millis() 49 return clock.millis(); in millis()
|