Home
last modified time | relevance | path

Searched refs:Clock (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DClock.java19 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/
DBestClock.java21 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/
DAdsRelevanceExecutionLoggerFactoryTest.java33 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/
DCustomAudienceLoggerFactory.java21 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()
DSelectAdsFromOutcomesExecutionLoggerFactory.java23 import com.android.adservices.shared.util.Clock;
28 private final Clock mClock;
35 @NonNull Clock clock, in SelectAdsFromOutcomesExecutionLoggerFactory()
DServerAuctionKeyFetchExecutionLoggerFactory.java23 import com.android.adservices.shared.util.Clock;
28 private final Clock mClock;
35 @NonNull Clock clock, in ServerAuctionKeyFetchExecutionLoggerFactory()
DApiServiceLatencyCalculator.java22 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/
DClock.java22 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/
DAutomaticStorageManagementJobService.java47 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/
DTemplateBuilderImpl.java19 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/
DPasspointObjectFactory.java23 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/
DCanonicalPreparedModel.cpp138 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/
DUserProfileIdManager.java26 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/
DMockClock.java19 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/
DUserProfileIdDaoSharedPreferencesImpl.java24 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/
DClock.java24 public interface Clock { interface
56 Clock SYSTEM =
57 new Clock() {
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DFakeClock.java19 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/
DAutomaticStorageManagementJobServiceTest.java75 @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/
DTimedQuotaManager.java19 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/
DWifiTrackerLibProvider.java27 import java.time.Clock;
37 Handler mainHandler, Handler workerHandler, Clock clock, in createWifiPickerTracker()
44 Handler mainHandler, Handler workerHandler, Clock clock, in createNetworkDetailsTracker()
DWifiTrackerLibProviderImpl.java29 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/
DApplicationModule.java24 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/
DBootBroadcastReceiverTest.java44 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/
DScheduledProgramReaper.java20 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/
DDeletedContactsTableUtil.java24 import com.android.providers.contacts.util.Clock;
60 Clock.getInstance().currentTimeMillis()); in insertDeletedContact()
73 long time = Clock.getInstance().currentTimeMillis() - in deleteOldLogs()

12345678910>>...20