/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/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
|
D | NotificationController.java | 95 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/ |
D | AutomaticStorageManagementJobServiceTest.java | 72 @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/ |
D | BaseTask.java | 61 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/ |
D | MockClock.java | 19 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/ |
D | Clock.java | 24 public interface Clock { interface 56 Clock SYSTEM = 57 new Clock() {
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | InputTaskScheduler.java | 29 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()
|
D | ScheduledProgramReaper.java | 20 import com.android.tv.common.util.Clock; 33 private final Clock mClock; 35 ScheduledProgramReaper(WritableDvrDataManager dvrDataManager, Clock clock) { in ScheduledProgramReaper()
|
D | RecordingScheduler.java | 37 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/ |
D | StorageManagerUpsellDialog.java | 56 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
|
D | AppStateUsageStatsBridge.java | 57 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/ |
D | ProgramUtils.java | 29 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/ |
D | ApplicationModule.java | 24 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/ |
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()
|
D | ContactsTableUtil.java | 29 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/ |
D | VoicemailEntryText.java | 23 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/ |
D | BaseApplication.java | 28 import com.android.tv.common.util.Clock; 99 public Clock getClock() { in getClock() 100 return Clock.SYSTEM; in getClock()
|
D | BaseSingletons.java | 22 import com.android.tv.common.util.Clock; 40 Clock getClock(); in getClock()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpServer.java | 115 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/ |
D | CachedStorageValuesHelper.java | 54 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/ |
D | CachedStorageValuesHelper.java | 54 protected Clock mClock; 59 mClock = new Clock(); in CachedStorageValuesHelper() 168 static class Clock { class in CachedStorageValuesHelper
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallLogEntryText.java | 26 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/ |
D | FakeClock.java | 19 import com.android.tv.common.util.Clock; 28 public class FakeClock implements Clock {
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/ |
D | NewCallLogAdapter.java | 31 import com.android.dialer.time.Clock; 65 private final Clock clock; 88 Clock clock, in NewCallLogAdapter()
|