/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | Clock.java | 19 public class Clock { class 20 private static final Clock INSTANCE = new Clock(); 22 private static Clock sInstance = INSTANCE; 24 public static final Clock getInstance() { in getInstance() 29 static void injectInstance(Clock clock) { in injectInstance()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | BestClock.java | 21 import java.time.Clock; 39 final public class BestClock extends Clock { 42 private final Clock[] mClocks; 44 public BestClock(ZoneId zone, Clock... clocks) { in BestClock() 52 for (Clock clock : mClocks) { in millis() 70 public Clock withZone(ZoneId zone) { in withZone()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | AdsRelevanceExecutionLoggerFactoryTest.java | 33 import com.android.adservices.shared.util.Clock; 75 Clock.getInstance(), in testPersistAdSelectionResultAdsRelevanceExecutionLogger_telemetryEnabled() 89 Clock.getInstance(), in testPersistAdSelectionResultAdsRelevanceExecutionLogger_telemetryDisabled() 103 Clock.getInstance(), in testGetAdSelectionDataAdsRelevanceExecutionLogger_telemetryEnabled() 117 Clock.getInstance(), in testGetAdSelectionDataAdsRelevanceExecutionLogger_telemetryDisabled() 131 Clock.getInstance(), in testUpdateSignalsAdsRelevanceExecutionLogger() 145 Clock.getInstance(), in testUnknownApiAdsRelevanceExecutionLogger()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/ |
D | CustomAudienceLoggerFactory.java | 21 import com.android.adservices.shared.util.Clock; 29 private Clock mClock; 33 CustomAudienceLoggerFactory(@NonNull Clock clock, @NonNull AdServicesLogger adServicesLogger) { in CustomAudienceLoggerFactory() 47 Clock.getInstance(), AdServicesLoggerImpl.getInstance()); in getInstance() 57 return new CustomAudienceLoggerFactory(Clock.getInstance(), new NoOpLoggerImpl()); in getNoOpInstance()
|
D | SelectAdsFromOutcomesExecutionLoggerFactory.java | 23 import com.android.adservices.shared.util.Clock; 28 private final Clock mClock; 35 @NonNull Clock clock, in SelectAdsFromOutcomesExecutionLoggerFactory()
|
D | ServerAuctionKeyFetchExecutionLoggerFactory.java | 23 import com.android.adservices.shared.util.Clock; 28 private final Clock mClock; 35 @NonNull Clock clock, in ServerAuctionKeyFetchExecutionLoggerFactory()
|
D | ApiServiceLatencyCalculator.java | 22 import com.android.adservices.shared.util.Clock; 44 private final Clock mClock; 46 ApiServiceLatencyCalculator(@NonNull Clock clock) { in ApiServiceLatencyCalculator()
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/util/ |
D | Clock.java | 22 public final class Clock { class 23 private static final Clock SYSTEM_CLOCK = new Clock(); 26 public static Clock getInstance() { in getInstance()
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobService.java | 47 private Clock mClock; 136 StorageManagementJobProvider provider, Context context, Clock clock) { in maybeDisableDueToPolicy() 165 private Clock getClock() { in getClock() 167 mClock = new Clock(); in getClock() 173 void setClock(Clock clock) { in setClock() 178 protected static class Clock { class in AutomaticStorageManagementJobService
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/ |
D | TemplateBuilderImpl.java | 19 import androidx.slice.Clock; 31 private Clock mClock; 37 protected TemplateBuilderImpl(Slice.Builder b, SliceSpec spec, Clock clock) { in TemplateBuilderImpl() 66 public Clock getClock() { in getClock()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointObjectFactory.java | 23 import com.android.server.wifi.Clock; 69 int creatorUid, String packageName, boolean isFromSuggestion, Clock clock) { in makePasspointProvider() 85 PasspointConfigUserStoreData.DataSource dataSource, Clock clock) { in makePasspointConfigUserStoreData() 106 public AnqpCache makeAnqpCache(Clock clock) { in makeAnqpCache() 118 Clock clock, WifiInjector wifiInjector, Handler handler) { in makeANQPRequestManager()
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | CanonicalPreparedModel.cpp | 138 if (measure == MeasureTiming::YES) driverStart = Clock::now(); in execute() 162 if (measure == MeasureTiming::YES) deviceStart = Clock::now(); in execute() 164 if (measure == MeasureTiming::YES) deviceEnd = Clock::now(); in execute() 181 driverEnd = Clock::now(); in execute() 200 if (measure == MeasureTiming::YES) driverStart = Clock::now(); in executeFenced() 233 if (measure == MeasureTiming::YES) driverStartAfterFence = Clock::now(); in executeFenced() 249 if (measure == MeasureTiming::YES) deviceStart = Clock::now(); in executeFenced() 251 if (measure == MeasureTiming::YES) deviceEnd = Clock::now(); in executeFenced() 271 driverEnd = Clock::now(); in executeFenced()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | UserProfileIdManager.java | 26 import com.android.adservices.shared.util.Clock; 40 private final Clock mClock; 49 @NonNull final UserProfileIdDao userProfileIdDao, @NonNull Clock clock) { in UserProfileIdManager() 65 Clock.getInstance()); in getInstance()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | MockClock.java | 19 public class MockClock extends Clock { 24 Clock.injectInstance(this); in install() 30 Clock.resetInstance(); in uninstall()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/ |
D | UserProfileIdDaoSharedPreferencesImpl.java | 24 import com.android.adservices.shared.util.Clock; 44 private final Clock mClock; 51 @NonNull final SharedPreferences sharedPreferences, @NonNull final Clock clock) { in UserProfileIdDaoSharedPreferencesImpl() 68 Clock.getInstance()); in getInstance()
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | Clock.java | 24 public interface Clock { interface 56 Clock SYSTEM = 57 new Clock() {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | FakeClock.java | 19 import java.time.Clock; 25 public final class FakeClock extends Clock { 41 public Clock withZone(ZoneId zone) { in withZone()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobServiceTest.java | 75 @Mock private AutomaticStorageManagementJobService.Clock mClock; 272 AutomaticStorageManagementJobService.Clock fakeClock = in disableSmartStorageIfPastThreshold() 273 mock(AutomaticStorageManagementJobService.Clock.class); in disableSmartStorageIfPastThreshold() 293 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 294 mock(AutomaticStorageManagementJobService.Clock.class); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 312 AutomaticStorageManagementJobService.Clock fakeClock = in logDisabledByPolicyIfPastThreshold() 313 mock(AutomaticStorageManagementJobService.Clock.class); in logDisabledByPolicyIfPastThreshold() 332 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfNotPastThreshold() 333 mock(AutomaticStorageManagementJobService.Clock.class); in dontDisableSmartStorageIfNotPastThreshold()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | TimedQuotaManager.java | 19 import com.android.server.wifi.Clock; 25 private final Clock mClock; 45 public TimedQuotaManager(Clock clock, long quota, long periodMillis) { in TimedQuotaManager()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiTrackerLibProvider.java | 27 import java.time.Clock; 37 Handler mainHandler, Handler workerHandler, Clock clock, in createWifiPickerTracker() 44 Handler mainHandler, Handler workerHandler, Clock clock, in createNetworkDetailsTracker()
|
D | WifiTrackerLibProviderImpl.java | 29 import java.time.Clock; 42 Handler mainHandler, Handler workerHandler, Clock clock, in createWifiPickerTracker() 60 Handler mainHandler, Handler workerHandler, Clock clock, in createNetworkDetailsTracker()
|
/packages/apps/TV/common/src/com/android/tv/common/dagger/ |
D | ApplicationModule.java | 24 import com.android.tv.common.util.Clock; 65 static Clock providesClock() { in providesClock() 66 return Clock.SYSTEM; in providesClock()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BootBroadcastReceiverTest.java | 44 import java.time.Clock; 136 mContext, Clock.systemUTC().millis() + 60000, "com.android.systemui"); in onReceive_withTimeChangedIntentSetEarlierTime_refreshesJob() 150 mContext, Clock.systemUTC().millis() - 60000, "com.android.systemui"); in onReceive_withTimeChangedIntentSetLaterTime_clearNoDataAndRefreshesJob() 163 mContext, Clock.systemUTC().millis() + 60000, "com.android.systemui"); in onReceive_withTimeFormatChangedIntent_skipRefreshJob() 182 mContext, Clock.systemUTC().millis(), "com.android.systemui"); in onReceive_withTimeZoneChangedIntent_clearAllDataAndRefreshesJob()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | ScheduledProgramReaper.java | 20 import com.android.tv.common.util.Clock; 33 private final Clock mClock; 35 ScheduledProgramReaper(WritableDvrDataManager dvrDataManager, Clock clock) { in ScheduledProgramReaper()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
D | DeletedContactsTableUtil.java | 24 import com.android.providers.contacts.util.Clock; 60 Clock.getInstance().currentTimeMillis()); in insertDeletedContact() 73 long time = Clock.getInstance().currentTimeMillis() - in deleteOldLogs()
|