Home
last modified time | relevance | path

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

12

/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/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java82 @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/
DAutomaticStorageManagementJobService.java47 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
DNotificationController.java95 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/
DClock.java23 public class Clock { class
24 public static final Clock INSTANCE = new Clock();
26 protected Clock() { in Clock() method in Clock
DThrottle.java46 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/
DInputTaskScheduler.java36 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()
DScheduledProgramReaper.java25 import com.android.tv.util.Clock;
39 private final Clock mClock;
41 ScheduledProgramReaper(WritableDvrDataManager dvrDataManager, Clock clock) { in ScheduledProgramReaper()
DRecordingScheduler.java47 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()
DRecordingTask.java44 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/
DBaseTask.java59 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/
DStorageManagerUpsellDialog.java53 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
DAppStateUsageStatsBridge.java57 protected Clock mClock;
65 mClock = new Clock(); in AppStateUsageStatsBridge()
217 static class Clock { class in AppStateUsageStatsBridge
DAppsAsyncLoader.java68 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/
DMockClock.java19 public class MockClock extends Clock {
24 Clock.injectInstance(this); in install()
30 Clock.resetInstance(); in uninstall()
/packages/apps/TV/src/com/android/tv/util/
DClock.java24 public interface Clock { interface
49 Clock SYSTEM = new Clock() {
/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/UnifiedEmail/src/com/android/mail/browse/
DMessageWebView.java27 import com.android.mail.utils.Clock;
45 private final Clock mClock = Clock.INSTANCE;
/packages/apps/Email/tests/src/com/android/email/
DThrottleTest.java24 import com.android.mail.utils.Clock;
172 private final Clock mClock;
181 public MockTimer(Clock clock) {
DMockClock.java19 import com.android.mail.utils.Clock;
21 public class MockClock extends Clock {
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DCachedStorageValuesHelper.java53 protected Clock mClock;
58 mClock = new Clock(); in CachedStorageValuesHelper()
167 static class Clock { class in CachedStorageValuesHelper
/packages/apps/TV/src/com/android/tv/dvr/
DBaseDvrDataManager.java33 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/
DProgramDataManager.java40 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/
DFakeClock.java19 import com.android.tv.util.Clock;
29 public class FakeClock implements Clock {

12