Home
last modified time | relevance | path

Searched refs:SNAPSHOT_UNINITIALIZED (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/hibernation/
DHibernationPolicyTest.kt39 import com.android.permissioncontroller.hibernation.SNAPSHOT_UNINITIALIZED
114 SNAPSHOT_UNINITIALIZED in onReceive_shouldInitializeAndAdjustStartTimeOfUnusedAppTracking()
117 sharedPreferences.getLong(PREF_KEY_BOOT_TIME_SNAPSHOT, SNAPSHOT_UNINITIALIZED) in onReceive_shouldInitializeAndAdjustStartTimeOfUnusedAppTracking()
119 sharedPreferences.getLong(PREF_KEY_ELAPSED_REALTIME_SNAPSHOT, SNAPSHOT_UNINITIALIZED) in onReceive_shouldInitializeAndAdjustStartTimeOfUnusedAppTracking()
122 assertThat(startTimeOfUnusedAppTracking).isNotEqualTo(SNAPSHOT_UNINITIALIZED) in onReceive_shouldInitializeAndAdjustStartTimeOfUnusedAppTracking()
124 assertThat(systemTimeSnapshot).isNotEqualTo(SNAPSHOT_UNINITIALIZED) in onReceive_shouldInitializeAndAdjustStartTimeOfUnusedAppTracking()
125 assertThat(realtimeSnapshot).isNotEqualTo(SNAPSHOT_UNINITIALIZED) in onReceive_shouldInitializeAndAdjustStartTimeOfUnusedAppTracking()
139 .isNotEqualTo(SNAPSHOT_UNINITIALIZED) in getStartTimeOfUnusedAppTracking_shouldReturnExpectedValue()
142 sharedPreferences.getLong(PREF_KEY_BOOT_TIME_SNAPSHOT, SNAPSHOT_UNINITIALIZED) in getStartTimeOfUnusedAppTracking_shouldReturnExpectedValue()
155 SNAPSHOT_UNINITIALIZED in assertAdjustedTime()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionStorageTimeChangeReceiver.kt62 @VisibleForTesting const val SNAPSHOT_UNINITIALIZED = -1L constant
93 realtimeSnapshot == SNAPSHOT_UNINITIALIZED || in checkForTimeChanged()
94 systemTimeSnapshot == SNAPSHOT_UNINITIALIZED in checkForTimeChanged()
136 SNAPSHOT_UNINITIALIZED in getSystemTimeSnapshot()
143 SNAPSHOT_UNINITIALIZED in getElapsedRealtimeSnapshot()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/
DHibernationPolicy.kt152 const val SNAPSHOT_UNINITIALIZED = -1L in getCheckFrequencyMs() constant
759 var actualSystemTime: Long = SNAPSHOT_UNINITIALIZED
760 var actualRealtime: Long = SNAPSHOT_UNINITIALIZED
761 var diffSystemTime: Long = SNAPSHOT_UNINITIALIZED
767 sharedPreferences.getLong(PREF_KEY_BOOT_TIME_SNAPSHOT, SNAPSHOT_UNINITIALIZED) in getSystemTime()
768 if (systemTimeSnapshot == SNAPSHOT_UNINITIALIZED) { in getSystemTime()
774 sharedPreferences.getLong(PREF_KEY_ELAPSED_REALTIME_SNAPSHOT, SNAPSHOT_UNINITIALIZED) in getSystemTime()
775 if (realtimeSnapshot == SNAPSHOT_UNINITIALIZED) { in getSystemTime()
790 SNAPSHOT_UNINITIALIZED in getStartTimeOfUnusedAppTracking()
794 if (startTimeOfUnusedAppTracking == SNAPSHOT_UNINITIALIZED) { in getStartTimeOfUnusedAppTracking()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DPermissionStorageTimeChangeReceiverTest.kt35 …ncontroller.permission.service.PermissionStorageTimeChangeReceiver.Companion.SNAPSHOT_UNINITIALIZED
98 .thenReturn(SNAPSHOT_UNINITIALIZED) in setup()
100 .thenReturn(SNAPSHOT_UNINITIALIZED) in setup()