Searched refs:getMigrationState (Results 1 – 8 of 8) sorted by relevance
96 when(mMigrationStateManager.getMigrationState()) in testStateChanged_idle_noNotificationSent()109 when(mMigrationStateManager.getMigrationState()) in testStateChanged_appUpdateNeeded_noMigrationUiAppUpdateNeededNotificationSent()125 when(mMigrationStateManager.getMigrationState()) in testStateChanged_moduleUpdateNeeded_migrationUiModuleUpdateNeededNotificationSent()141 when(mMigrationStateManager.getMigrationState()) in testStateChanged_allowedPaused_noMigrationUiPausedNotificationSent()161 when(mMigrationStateManager.getMigrationState()) in testStateChanged_allowedError_noMigrationUiCancelledNotificationSent()179 when(mMigrationStateManager.getMigrationState()) in testStateChanged_inProgressPaused_migrationUiPausedNotificationSent()198 when(mMigrationStateManager.getMigrationState()) in testStateChanged_inProgress_noMigrationUiInProgressNotificationSent()213 when(mMigrationStateManager.getMigrationState()) in testStateChanged_completeFromIdle_noNotificationSent()227 when(mMigrationStateManager.getMigrationState()) in testStateChanged_complete_noMigrationUiCompleteNotificationSent()243 when(mMigrationStateManager.getMigrationState()) in getMigrationUiState_migrationStateIdle()[all …]
163 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testExecutePauseJob_timeNotExpired()177 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testExecutePauseJob_timeExpired_shouldChangeState()187 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecutePauseJob_inAllowedState()196 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_COMPLETE); in testExecutePauseJob_inCompleteState()206 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IDLE); in testExecuteCompleteJob_fromIdleState_timeNotExpired()218 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IDLE); in testExecuteCompleteJob_fromIdleState()229 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_fromAllowedState_timeNotExpired()238 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_fromAllowedState()247 when(mMigrationStateManager.getMigrationState()) in testExecuteCompleteJob_fromAppUpgradeRequiredState_timeNotExpired()257 when(mMigrationStateManager.getMigrationState()) in testExecuteCompleteJob_fromAppUpgradeRequiredState()[all …]
140 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testScheduling_migrationInProgressIntervalGreaterThanMinimum_periodicJobScheduled()152 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testScheduling_migrationInProgressIntervalEqualToMinimum_periodicJobScheduled()164 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testScheduling_migrationInProgressIntervalLessThanMinimum_periodicJobScheduled()177 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_migrationAllowedIntervalGreaterThanMinimum_periodicJobScheduled()189 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_requiredCountEqualToZero_noJobScheduled()203 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_migrationAllowedIntervalEqualToMinimum_periodicJobScheduled()215 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_migrationAllowedIntervalLessThanMinimum_periodicJobScheduled()229 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testReinvocation_origAndNewIntervalsGreaterThanMin_previouslyScheduledJobsCancelled()246 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testReinvocation_origAndNewIntervalsEqualToMinimum_previouslyScheduledJobsCancelled()262 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testReinvocation_previouslyScheduledJobsCancelled()[all …]
182 return getMigrationState() == MIGRATION_STATE_IN_PROGRESS; in isMigrationInProgress()186 public int getMigrationState() { in getMigrationState() method in MigrationStateManager238 if (state == getMigrationState()) { in updateMigrationStateGuarded()337 if (getMigrationState() != MIGRATION_STATE_IN_PROGRESS in finishMigration()338 && getMigrationState() != MIGRATION_STATE_ALLOWED) { in finishMigration()352 if (getMigrationState() != MIGRATION_STATE_IN_PROGRESS) { in validateWriteMigrationData()365 if (getMigrationState() == MIGRATION_STATE_IN_PROGRESS) { in validateSetMinSdkVersion()387 int migrationState = getMigrationState(); in onPackageInstalledOrChangedGuarded()423 if (getMigrationState() != MIGRATION_STATE_COMPLETE) { in onPackageRemovedGuarded()443 @HealthConnectDataState.DataMigrationState int previousMigrationState = getMigrationState(); in updateMigrationStatePreference()[all …]
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()161 if (MigrationStateManager.getInitialisedInstance().getMigrationState() in executeMigrationPauseJob()
78 int migrationState = mMigrationStateManager.getMigrationState(); in getHealthConnectMigrationUiState()
82 int migrationState = MigrationStateManager.getInitialisedInstance().getMigrationState(); in scheduleNewJobs()
1945 mMigrationStateManager.getMigrationState())); in getHealthConnectDataState()