Home
last modified time | relevance | path

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

123

/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/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
DNotificationController.java95 private Clock mClock;
137 protected void setClock(Clock clock) { in setClock()
283 mClock = new Clock(); in getCurrentTime()
297 protected static class Clock { class in NotificationController
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java72 @Mock private AutomaticStorageManagementJobService.Clock mClock;
269 AutomaticStorageManagementJobService.Clock fakeClock = in disableSmartStorageIfPastThreshold()
270 mock(AutomaticStorageManagementJobService.Clock.class); in disableSmartStorageIfPastThreshold()
290 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast()
291 mock(AutomaticStorageManagementJobService.Clock.class); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast()
309 AutomaticStorageManagementJobService.Clock fakeClock = in logDisabledByPolicyIfPastThreshold()
310 mock(AutomaticStorageManagementJobService.Clock.class); in logDisabledByPolicyIfPastThreshold()
329 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfNotPastThreshold()
330 mock(AutomaticStorageManagementJobService.Clock.class); in dontDisableSmartStorageIfNotPastThreshold()
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DBaseTask.java61 private static Clock clock = new Clock();
214 static class Clock { class in BaseTask
223 static void setClockForTesting(Clock clock) { in setClockForTesting()
/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/apps/TV/common/src/com/android/tv/common/util/
DClock.java24 public interface Clock { interface
56 Clock SYSTEM =
57 new Clock() {
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DInputTaskScheduler.java29 import com.android.tv.common.util.Clock;
107 private final Clock mClock;
125 Clock clock) { in InputTaskScheduler()
147 Clock clock, in InputTaskScheduler()
170 Clock clock) { in InputTaskScheduler()
428 Clock clock); in createRecordingTask()
DScheduledProgramReaper.java20 import com.android.tv.common.util.Clock;
33 private final Clock mClock;
35 ScheduledProgramReaper(WritableDvrDataManager dvrDataManager, Clock clock) { in ScheduledProgramReaper()
DRecordingScheduler.java37 import com.android.tv.common.util.Clock;
82 private final Clock mClock;
134 Clock.SYSTEM, in createScheduler()
147 Clock clock, in RecordingScheduler()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DStorageManagerUpsellDialog.java56 private Clock mClock;
67 protected void setClock(Clock clock) { in setClock()
160 mClock = new Clock(); in getCurrentTime()
169 protected static class Clock { class in StorageManagerUpsellDialog
DAppStateUsageStatsBridge.java57 protected Clock mClock;
65 mClock = new Clock(); in AppStateUsageStatsBridge()
217 static class Clock { class in AppStateUsageStatsBridge
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramUtils.java29 import com.android.tv.common.util.Clock;
49 Context context, Uri channelUri, ProgramInfo program, Clock clock) { in populatePrograms()
57 Clock clock, in populatePrograms()
137 Context context, String inputId, Clock clock, long durationMs) { in updateProgramForAllChannelsOf()
/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/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()
DContactsTableUtil.java29 import com.android.providers.contacts.util.Clock;
61 Clock.getInstance().currentTimeMillis()); in updateContactLastUpdateByContactId()
95 + Clock.getInstance().currentTimeMillis() in buildUpdateLastUpdateSql()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DVoicemailEntryText.java23 import com.android.dialer.time.Clock;
67 Context context, Clock clock, VoicemailEntry voicemailEntry) { in buildSecondaryVoicemailText()
72 Context context, Clock clock, VoicemailEntry voicemailEntry) { in secondaryTextPrefix()
/packages/apps/TV/common/src/com/android/tv/common/
DBaseApplication.java28 import com.android.tv.common.util.Clock;
99 public Clock getClock() { in getClock()
100 return Clock.SYSTEM; in getClock()
DBaseSingletons.java22 import com.android.tv.common.util.Clock;
40 Clock getClock(); in getClock()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java115 private final Clock mClock;
142 public static class Clock { class in DhcpServer
172 @NonNull SharedLog log, @NonNull Clock clock); in makeLeaseRepository()
182 Clock makeClock(); in makeClock()
209 @NonNull SharedLog log, @NonNull Clock clock) { in makeLeaseRepository()
222 public Clock makeClock() { in makeClock()
223 return new Clock(); in makeClock()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DCachedStorageValuesHelper.java54 protected Clock mClock;
59 mClock = new Clock(); in CachedStorageValuesHelper()
168 static class Clock { class in CachedStorageValuesHelper
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DCachedStorageValuesHelper.java54 protected Clock mClock;
59 mClock = new Clock(); in CachedStorageValuesHelper()
168 static class Clock { class in CachedStorageValuesHelper
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogEntryText.java26 import com.android.dialer.time.Clock;
97 Context context, Clock clock, CoalescedRow row) { in buildSecondaryTextForEntries()
138 Context context, Clock clock, CoalescedRow row, boolean abbreviateDateTime) { in buildSecondaryTextListForEntries()
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeClock.java19 import com.android.tv.common.util.Clock;
28 public class FakeClock implements Clock {
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogAdapter.java31 import com.android.dialer.time.Clock;
65 private final Clock clock;
88 Clock clock, in NewCallLogAdapter()

123