Home
last modified time | relevance | path

Searched refs:MIGRATION_STATE_IN_PROGRESS (Results 1 – 13 of 13) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationBroadcastSchedulingTest.java20 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS;
131 migrationStateManager.updateMigrationState(mContext, MIGRATION_STATE_IN_PROGRESS); in testPrescheduleNewJobs_updateMigrationState_newJobsScheduled()
140 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testScheduling_migrationInProgressIntervalGreaterThanMinimum_periodicJobScheduled()
141 when(mMigrationBroadcastScheduler.getRequiredInterval(eq(MIGRATION_STATE_IN_PROGRESS))) in testScheduling_migrationInProgressIntervalGreaterThanMinimum_periodicJobScheduled()
152 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testScheduling_migrationInProgressIntervalEqualToMinimum_periodicJobScheduled()
153 when(mMigrationBroadcastScheduler.getRequiredInterval(eq(MIGRATION_STATE_IN_PROGRESS))) in testScheduling_migrationInProgressIntervalEqualToMinimum_periodicJobScheduled()
164 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testScheduling_migrationInProgressIntervalLessThanMinimum_periodicJobScheduled()
165 when(mMigrationBroadcastScheduler.getRequiredInterval(eq(MIGRATION_STATE_IN_PROGRESS))) in testScheduling_migrationInProgressIntervalLessThanMinimum_periodicJobScheduled()
DMigrationStateManagerTest.java23 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS;
256 setMigrationState(MIGRATION_STATE_IN_PROGRESS); in testOnPackageInstalledOrChanged_fromInProgressState()
367 setMigrationState(MIGRATION_STATE_IN_PROGRESS); in testOnPackageRemoved_fromInProgressState_migrationAwarePackage()
565 setMigrationState(MIGRATION_STATE_IN_PROGRESS); in testReconcilePackageChangesWithStates_fromInProgressState_noMigratorPackageAvailable()
580 setMigrationState(MIGRATION_STATE_IN_PROGRESS); in testReconcilePackageChangesWithStates_fromInProgressState_migratorPackageAvailable()
610 mMigrationStateManager.updateMigrationState(mContext, MIGRATION_STATE_IN_PROGRESS); in testStartMigration_startMigrationCountIsUpdated()
618 setMigrationState(MIGRATION_STATE_IN_PROGRESS); in testPauseMigration_maxStartMigrationCountReached_shouldCompleteMigration()
629 setMigrationState(MIGRATION_STATE_IN_PROGRESS); in testPauseMigration_maxStartMigrationCountNotReached_shouldNotCompleteMigration()
644 mMigrationStateManager.updateMigrationState(mContext, MIGRATION_STATE_IN_PROGRESS); in testUpdateState_toInProgress_shouldSchedulePauseJob()
645 verifyStateChange(MIGRATION_STATE_IN_PROGRESS); in testUpdateState_toInProgress_shouldSchedulePauseJob()
[all …]
DMigrationStateChangeJobTest.java23 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS;
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()
317 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testExecuteCompleteJob_afterAllowedStateTimeoutPeriod_fromInProgressState()
327 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IN_PROGRESS); in testExecuteCompleteJob_beforeAllowedStateTimeoutPeriod_fromInProgressState()
DMigrationUiStateManagerTest.java199 .thenReturn(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testStateChanged_inProgress_noMigrationUiInProgressNotificationSent()
204 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testStateChanged_inProgress_noMigrationUiInProgressNotificationSent()
334 .thenReturn(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in getMigrationUiState_migrationStateInProgress()
339 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in getMigrationUiState_migrationStateInProgress()
DMigrationCleanerTest.java78 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testStateChanged_notComplete_noTablesCleared()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationBroadcastScheduler.java20 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS;
154 case MIGRATION_STATE_IN_PROGRESS: in getRequiredCount()
167 case MIGRATION_STATE_IN_PROGRESS: in getRequiredInterval()
170 getRequiredCount(MIGRATION_STATE_IN_PROGRESS)); in getRequiredInterval()
DMigrationStateManager.java23 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS;
182 return getMigrationState() == MIGRATION_STATE_IN_PROGRESS; in isMigrationInProgress()
253 case MIGRATION_STATE_IN_PROGRESS: in updateMigrationStateGuarded()
256 context, MIGRATION_STATE_IN_PROGRESS, timeoutReached); in updateMigrationStateGuarded()
306 updateMigrationStateGuarded(context, MIGRATION_STATE_IN_PROGRESS, false); in startMigration()
337 if (getMigrationState() != MIGRATION_STATE_IN_PROGRESS in finishMigration()
352 if (getMigrationState() != MIGRATION_STATE_IN_PROGRESS) { in validateWriteMigrationData()
365 if (getMigrationState() == MIGRATION_STATE_IN_PROGRESS) { in validateSetMinSdkVersion()
453 if (migrationState == MIGRATION_STATE_IN_PROGRESS) { in updateMigrationStatePreference()
587 case MIGRATION_STATE_IN_PROGRESS: in reconcileStateChangeJob()
DMigrationStateChangeJob.java22 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS;
133 == MIGRATION_STATE_IN_PROGRESS) { in executeMigrationCompletionJob()
162 != MIGRATION_STATE_IN_PROGRESS) { in executeMigrationPauseJob()
DMigrationUiStateManager.java101 case HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS: in getHealthConnectMigrationUiState()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectDataState.java196 @SystemApi public static final int MIGRATION_STATE_IN_PROGRESS = 3; field in HealthConnectDataState
242 MIGRATION_STATE_IN_PROGRESS,
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java711 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testStartMigrationFromIdleState()
740 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testInsertMinDataMigrationSdkExtensionVersion_upgradeRequired()
770 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testInsertMinDataMigrationSdkExtensionVersion_noUpgradeRequired()
799 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testInsertMinDataMigrationSdkExtensionVersion_jobsDisabled()
/packages/modules/HealthFitness/framework/api/
Dsystem-current.txt39 field public static final int MIGRATION_STATE_IN_PROGRESS = 3; // 0x3
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java1579 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_IN_PROGRESS); in testDataApis_migrationInProgress_apisBlocked()