Home
last modified time | relevance | path

Searched refs:MigrationStateManager (Results 1 – 18 of 18) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationUiStateManagerTest.java61 @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 …]
DMigrationBroadcastSchedulingTest.java68 .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 …]
DMigratorPackageChangesReceiverTest.java60 .mockStatic(MigrationStateManager.class)
64 @Mock MigrationStateManager mMigrationStateManager;
76 when(MigrationStateManager.getInitialisedInstance()).thenReturn(mMigrationStateManager); in setUp()
DMigrationCleanerTest.java28 import com.android.server.healthconnect.migration.MigrationStateManager.StateChangedListener;
43 @Mock private MigrationStateManager mMigrationStateManager;
DMigrationStateManagerTest.java77 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()
DMigrationStateChangeJobTest.java83 .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/
DMigrationStateChangeJob.java105 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()
DMigrationUiStateManager.java49 private final MigrationStateManager mMigrationStateManager;
55 @NonNull MigrationStateManager migrationStateManager, in MigrationUiStateManager()
69 public void attachTo(@NonNull MigrationStateManager migrationStateManager) { in attachTo()
DMigrationStateManager.java81 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()
DMigratorPackageChangesReceiver.java44 private final MigrationStateManager mMigrationStateManager;
46 public MigratorPackageChangesReceiver(MigrationStateManager migrationStateManager) { in MigratorPackageChangesReceiver()
DMigrationCleaner.java48 public void attachTo(@NonNull MigrationStateManager migrationStateManager) { in attachTo()
DMigrationBroadcastScheduler.java82 int migrationState = MigrationStateManager.getInitialisedInstance().getMigrationState(); in scheduleNewJobs()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectManagerService.java33 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()
DHealthConnectServiceImpl.java143 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/
DHealthConnectServiceImplTest.java76 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/
DFirstGrantTimeManager.java37 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/
DBackupRestore.java69 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/
DBackupRestoreTest.java83 import com.android.server.healthconnect.migration.MigrationStateManager;
131 @Mock private MigrationStateManager mMigrationStateManager;