/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigrationUiStateManagerTest.java | 61 @Mock private MigrationStateManager mMigrationStateManager; 98 final ArgumentCaptor<MigrationStateManager.StateChangedListener> captor = in testStateChanged_idle_noNotificationSent() 99 ArgumentCaptor.forClass(MigrationStateManager.StateChangedListener.class); in testStateChanged_idle_noNotificationSent() 111 final ArgumentCaptor<MigrationStateManager.StateChangedListener> captor = in testStateChanged_appUpdateNeeded_noMigrationUiAppUpdateNeededNotificationSent() 112 ArgumentCaptor.forClass(MigrationStateManager.StateChangedListener.class); in testStateChanged_appUpdateNeeded_noMigrationUiAppUpdateNeededNotificationSent() 127 final ArgumentCaptor<MigrationStateManager.StateChangedListener> captor = in testStateChanged_moduleUpdateNeeded_migrationUiModuleUpdateNeededNotificationSent() 128 ArgumentCaptor.forClass(MigrationStateManager.StateChangedListener.class); in testStateChanged_moduleUpdateNeeded_migrationUiModuleUpdateNeededNotificationSent() 147 final ArgumentCaptor<MigrationStateManager.StateChangedListener> captor = in testStateChanged_allowedPaused_noMigrationUiPausedNotificationSent() 148 ArgumentCaptor.forClass(MigrationStateManager.StateChangedListener.class); in testStateChanged_allowedPaused_noMigrationUiPausedNotificationSent() 165 final ArgumentCaptor<MigrationStateManager.StateChangedListener> captor = in testStateChanged_allowedError_noMigrationUiCancelledNotificationSent() [all …]
|
D | MigrationBroadcastSchedulingTest.java | 68 .mockStatic(MigrationStateManager.class) 77 @Mock private MigrationStateManager mMigrationStateManager; 116 when(MigrationStateManager.initializeInstance(anyInt())).thenCallRealMethod(); in testPrescheduleNewJobs_updateMigrationState_newJobsScheduled() 129 MigrationStateManager migrationStateManager = MigrationStateManager.initializeInstance(0); in testPrescheduleNewJobs_updateMigrationState_newJobsScheduled() 139 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in testScheduling_migrationInProgressIntervalGreaterThanMinimum_periodicJobScheduled() 151 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in testScheduling_migrationInProgressIntervalEqualToMinimum_periodicJobScheduled() 163 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in testScheduling_migrationInProgressIntervalLessThanMinimum_periodicJobScheduled() 176 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in testScheduling_migrationAllowedIntervalGreaterThanMinimum_periodicJobScheduled() 188 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in testScheduling_requiredCountEqualToZero_noJobScheduled() 202 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in testScheduling_migrationAllowedIntervalEqualToMinimum_periodicJobScheduled() [all …]
|
D | MigratorPackageChangesReceiverTest.java | 60 .mockStatic(MigrationStateManager.class) 64 @Mock MigrationStateManager mMigrationStateManager; 76 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in setUp()
|
D | MigrationCleanerTest.java | 28 import com.android.server.healthconnect.migration.MigrationStateManager.StateChangedListener; 43 @Mock private MigrationStateManager mMigrationStateManager;
|
D | MigrationStateManagerTest.java | 77 import com.android.server.healthconnect.migration.MigrationStateManager.IllegalMigrationStateExcept… 120 private MigrationStateManager mMigrationStateManager; 149 MigrationStateManager.resetInitializedInstanceForTest(); in setUp() 151 MigrationStateManager.initializeInstance(DEFAULT_USER_HANDLE.getIdentifier()); in setUp() 158 MigrationStateManager.resetInitializedInstanceForTest(); in tearDown()
|
D | MigrationStateChangeJobTest.java | 83 .mockStatic(MigrationStateManager.class) 88 @Mock MigrationStateManager mMigrationStateManager; 125 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in setUp()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/ |
D | MigrationStateChangeJob.java | 105 if (MigrationStateManager.getInitialisedInstance().getMigrationState() in executeMigrationCompletionJob() 122 MigrationStateManager.getInitialisedInstance().getMigrationState() in executeMigrationCompletionJob() 130 if (MigrationStateManager.getInitialisedInstance().getMigrationState() in executeMigrationCompletionJob() 132 || MigrationStateManager.getInitialisedInstance().getMigrationState() in executeMigrationCompletionJob() 135 MigrationStateManager.getInitialisedInstance().getAllowedStateTimeout(); in executeMigrationCompletionJob() 149 MigrationStateManager.getInitialisedInstance() in executeMigrationCompletionJob() 161 if (MigrationStateManager.getInitialisedInstance().getMigrationState() in executeMigrationPauseJob() 182 MigrationStateManager.getInitialisedInstance() in executeMigrationPauseJob()
|
D | MigrationUiStateManager.java | 49 private final MigrationStateManager mMigrationStateManager; 55 @NonNull MigrationStateManager migrationStateManager, in MigrationUiStateManager() 69 public void attachTo(@NonNull MigrationStateManager migrationStateManager) { in attachTo()
|
D | MigrationStateManager.java | 81 public final class MigrationStateManager { class 84 private static MigrationStateManager sMigrationStateManager; 99 private MigrationStateManager(@UserIdInt int userId) { in MigrationStateManager() method in MigrationStateManager 108 public static MigrationStateManager initializeInstance(@UserIdInt int userId) { in initializeInstance() 111 sMigrationStateManager = new MigrationStateManager(userId); in initializeInstance() 128 public static MigrationStateManager getInitialisedInstance() { in getInitialisedInstance()
|
D | MigratorPackageChangesReceiver.java | 44 private final MigrationStateManager mMigrationStateManager; 46 public MigratorPackageChangesReceiver(MigrationStateManager migrationStateManager) { in MigratorPackageChangesReceiver()
|
D | MigrationCleaner.java | 48 public void attachTo(@NonNull MigrationStateManager migrationStateManager) { in attachTo()
|
D | MigrationBroadcastScheduler.java | 82 int migrationState = MigrationStateManager.getInitialisedInstance().getMigrationState(); in scheduleNewJobs()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/ |
D | HealthConnectManagerService.java | 33 import com.android.server.healthconnect.migration.MigrationStateManager; 95 final MigrationStateManager migrationStateManager = in HealthConnectManagerService() 96 MigrationStateManager.initializeInstance(mCurrentForegroundUser.getIdentifier()); in HealthConnectManagerService() 122 new MigratorPackageChangesReceiver(MigrationStateManager.getInitialisedInstance()) in onStart() 145 MigrationStateManager migrationStateManager = in onUserSwitching() 146 MigrationStateManager.getInitialisedInstance(); in onUserSwitching() 215 MigrationStateManager.getInitialisedInstance() in switchToSetupForUser()
|
D | HealthConnectServiceImpl.java | 143 import com.android.server.healthconnect.migration.MigrationStateManager; 205 private final MigrationStateManager mMigrationStateManager; 228 MigrationStateManager migrationStateManager, in HealthConnectServiceImpl()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | HealthConnectServiceImplTest.java | 76 import com.android.server.healthconnect.migration.MigrationStateManager; 192 @Mock private MigrationStateManager mMigrationStateManager; 391 throws MigrationStateManager.IllegalMigrationStateException, in testStartMigration_showMigrationInfoIntentAvailable() 414 throws MigrationStateManager.IllegalMigrationStateException, in testFinishMigration_showMigrationInfoIntentAvailable() 440 throws MigrationStateManager.IllegalMigrationStateException, in testWriteMigration_showMigrationInfoIntentAvailable() 467 throws MigrationStateManager.IllegalMigrationStateException, in testInsertMinSdkExtVersion_showMigrationInfoIntentAvailable()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | FirstGrantTimeManager.java | 37 import com.android.server.healthconnect.migration.MigrationStateManager; 225 if (!MigrationStateManager.getInitialisedInstance().isMigrationInProgress()) { in updateFirstGrantTimesFromPermissionState() 244 if (!MigrationStateManager.getInitialisedInstance().isMigrationInProgress()) { in updateFirstGrantTimesFromPermissionState()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/backuprestore/ |
D | BackupRestore.java | 69 import com.android.server.healthconnect.migration.MigrationStateManager; 181 private final MigrationStateManager mMigrationStateManager; 195 MigrationStateManager migrationStateManager, in BackupRestore()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/backuprestore/ |
D | BackupRestoreTest.java | 83 import com.android.server.healthconnect.migration.MigrationStateManager; 131 @Mock private MigrationStateManager mMigrationStateManager;
|