/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/robotests/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobServiceTest.java | 82 @Mock private AutomaticStorageManagementJobService.Clock mClock; 266 AutomaticStorageManagementJobService.Clock fakeClock = in disableSmartStorageIfPastThreshold() 267 mock(AutomaticStorageManagementJobService.Clock.class); in disableSmartStorageIfPastThreshold() 287 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 288 mock(AutomaticStorageManagementJobService.Clock.class); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 306 AutomaticStorageManagementJobService.Clock fakeClock = in logDisabledByPolicyIfPastThreshold() 307 mock(AutomaticStorageManagementJobService.Clock.class); in logDisabledByPolicyIfPastThreshold() 326 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfNotPastThreshold() 327 mock(AutomaticStorageManagementJobService.Clock.class); in dontDisableSmartStorageIfNotPastThreshold()
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobService.java | 47 private Clock mClock; 139 StorageManagementJobProvider provider, ContentResolver cr, Clock clock) { in maybeDisableDueToPolicy() 162 private Clock getClock() { in getClock() 164 mClock = new Clock(); in getClock() 170 void setClock(Clock clock) { in setClock() 175 protected static class Clock { class in AutomaticStorageManagementJobService
|
D | NotificationController.java | 95 private Clock mClock; 135 protected void setClock(Clock clock) { in setClock() 281 mClock = new Clock(); in getCurrentTime() 295 protected static class Clock { class in NotificationController
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | Clock.java | 23 public class Clock { class 24 public static final Clock INSTANCE = new Clock(); 26 protected Clock() { in Clock() method in Clock
|
D | Throttle.java | 46 private final Clock mClock; 80 this(name, callback, handler, minTimeout, maxTimeout, Clock.INSTANCE, TIMER); in Throttle() 86 int maxTimeout, Clock clock, Timer timer) { in Throttle()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | InputTaskScheduler.java | 36 import com.android.tv.util.Clock; 113 private final Clock mClock; 125 DvrDataManager dataManager, InputSessionManager sessionManager, Clock clock) { in InputTaskScheduler() 133 DvrDataManager dataManager, InputSessionManager sessionManager, Clock clock, in InputTaskScheduler() 150 WritableDvrDataManager dataManager, Clock clock) { in InputTaskScheduler() 401 WritableDvrDataManager dataManager, Clock clock); in createRecordingTask()
|
D | ScheduledProgramReaper.java | 25 import com.android.tv.util.Clock; 39 private final Clock mClock; 41 ScheduledProgramReaper(WritableDvrDataManager dvrDataManager, Clock clock) { in ScheduledProgramReaper()
|
D | RecordingScheduler.java | 47 import com.android.tv.util.Clock; 84 private final Clock mClock; 131 Clock.SYSTEM, (AlarmManager) context.getSystemService(Context.ALARM_SERVICE)); in createScheduler() 137 TvInputManagerHelper inputManager, Context context, Clock clock, in RecordingScheduler()
|
D | RecordingTask.java | 44 import com.android.tv.util.Clock; 140 private final Clock mClock; 147 WritableDvrDataManager dataManager, Clock clock) { in RecordingTask()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/ |
D | BaseTask.java | 59 private static Clock sClock = new Clock(); 212 static class Clock { class in BaseTask 221 static void setClockForTesting(Clock clock) { in setClockForTesting()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | StorageManagerUpsellDialog.java | 53 private Clock mClock; 64 protected void setClock(Clock clock) { in setClock() 158 mClock = new Clock(); in getCurrentTime() 167 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
|
D | AppsAsyncLoader.java | 68 protected Clock mClock; 91 mClock = new Clock(); in AppsAsyncLoader() 532 static class Clock { class in AppsAsyncLoader
|
/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/src/com/android/tv/util/ |
D | Clock.java | 24 public interface Clock { interface 49 Clock SYSTEM = new Clock() {
|
/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/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageWebView.java | 27 import com.android.mail.utils.Clock; 45 private final Clock mClock = Clock.INSTANCE;
|
/packages/apps/Email/tests/src/com/android/email/ |
D | ThrottleTest.java | 24 import com.android.mail.utils.Clock; 172 private final Clock mClock; 181 public MockTimer(Clock clock) {
|
D | MockClock.java | 19 import com.android.mail.utils.Clock; 21 public class MockClock extends Clock {
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | CachedStorageValuesHelper.java | 53 protected Clock mClock; 58 mClock = new Clock(); in CachedStorageValuesHelper() 167 static class Clock { class in CachedStorageValuesHelper
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | BaseDvrDataManager.java | 33 import com.android.tv.util.Clock; 53 protected final Clock mClock; 64 BaseDvrDataManager(Context context, Clock clock) { in BaseDvrDataManager()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ProgramDataManager.java | 40 import com.android.tv.util.Clock; 85 private final Clock mClock; 117 this(context.getContentResolver(), Clock.SYSTEM, Looper.myLooper()); in ProgramDataManager() 121 ProgramDataManager(ContentResolver contentResolver, Clock time, Looper looper) { in ProgramDataManager()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | FakeClock.java | 19 import com.android.tv.util.Clock; 29 public class FakeClock implements Clock {
|