Home
last modified time | relevance | path

Searched refs:MIGRATION_STATE_COMPLETE (Results 1 – 11 of 11) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationStateManagerTest.java21 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_COMPLETE;
284 setMigrationState(MIGRATION_STATE_COMPLETE); in testOnPackageInstalledOrChanged_fromCompleteState()
313 verifyStateChange(MIGRATION_STATE_COMPLETE); in testOnPackageRemoved_fromIdleState_migrationAwarePackage()
327 verifyStateChange(MIGRATION_STATE_COMPLETE); in testOnPackageRemoved_fromAppUpgradeRequiredState_migrationAwarePackage()
341 verifyStateChange(MIGRATION_STATE_COMPLETE); in testOnPackageRemoved_fromModuleUpgradeRequiredState_migrationAwarePackage()
355 verifyStateChange(MIGRATION_STATE_COMPLETE); in testOnPackageRemoved_fromAllowedState_migrationAwarePackage()
369 verifyStateChange(MIGRATION_STATE_COMPLETE); in testOnPackageRemoved_fromInProgressState_migrationAwarePackage()
378 setMigrationState(MIGRATION_STATE_COMPLETE); in testOnPackageRemoved_fromCompleteState_migrationAwarePackage()
461 verifyStateChange(MIGRATION_STATE_COMPLETE); in testReconcilePackageChangesWithStates_fromAllowedState_noMigratorPackageAvailable()
520 verifyStateChange(MIGRATION_STATE_COMPLETE); in testHandleIsUpdateStillRequired_noMigratorPackageAvailable()
[all …]
DMigrationStateChangeJobTest.java21 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_COMPLETE;
196 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_COMPLETE); in testExecutePauseJob_inCompleteState()
222 verifyStateChange(MIGRATION_STATE_COMPLETE, true); in testExecuteCompleteJob_fromIdleState()
240 verifyStateChange(MIGRATION_STATE_COMPLETE, true); in testExecuteCompleteJob_fromAllowedState()
260 verifyStateChange(MIGRATION_STATE_COMPLETE, true); in testExecuteCompleteJob_fromAppUpgradeRequiredState()
280 verifyStateChange(MIGRATION_STATE_COMPLETE, true); in testExecuteCompleteJob_fromModuleUpgradeRequiredState()
286 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_COMPLETE); in testExecuteCompleteJob_alreadyComplete()
299 verifyStateChange(MIGRATION_STATE_COMPLETE, true); in testExecuteCompleteJob_afterAllowedStateTimeoutPeriod_fromAllowedState()
319 verifyStateChange(MIGRATION_STATE_COMPLETE, true); in testExecuteCompleteJob_afterAllowedStateTimeoutPeriod_fromInProgressState()
349 verifyStateChange(MIGRATION_STATE_COMPLETE, true); in testExecuteCompleteJob_stateChangeJobsEnabled()
DMigrationUiStateManagerTest.java214 .thenReturn(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testStateChanged_completeFromIdle_noNotificationSent()
220 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testStateChanged_completeFromIdle_noNotificationSent()
228 .thenReturn(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testStateChanged_complete_noMigrationUiCompleteNotificationSent()
234 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testStateChanged_complete_noMigrationUiCompleteNotificationSent()
347 .thenReturn(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in getMigrationUiState_migrationStateCompleteFromIdle()
354 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in getMigrationUiState_migrationStateCompleteFromIdle()
362 .thenReturn(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in getMigrationUiState_migrationStateComplete()
368 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in getMigrationUiState_migrationStateComplete()
DMigrationCleanerTest.java66 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testStateChanged_complete_tablesCleared()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationStateManager.java21 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_COMPLETE;
264 updateMigrationState(context, MIGRATION_STATE_COMPLETE); in updateMigrationStateGuarded()
271 case MIGRATION_STATE_COMPLETE: in updateMigrationStateGuarded()
272 updateMigrationStatePreference(context, MIGRATION_STATE_COMPLETE, timeoutReached); in updateMigrationStateGuarded()
341 updateMigrationStateGuarded(context, MIGRATION_STATE_COMPLETE, false); in finishMigration()
423 if (getMigrationState() != MIGRATION_STATE_COMPLETE) { in onPackageRemovedGuarded()
428 updateMigrationState(context, MIGRATION_STATE_COMPLETE); in onPackageRemovedGuarded()
462 if (migrationState == MIGRATION_STATE_COMPLETE in updateMigrationStatePreference()
566 if (migrationState != MIGRATION_STATE_IDLE && migrationState != MIGRATION_STATE_COMPLETE) { in reconcilePackageChangesWithStates()
594 case MIGRATION_STATE_COMPLETE: in reconcileStateChangeJob()
[all …]
DMigrationStateChangeJob.java20 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_COMPLETE;
106 == MIGRATION_STATE_COMPLETE) { in executeMigrationCompletionJob()
150 .updateMigrationState(context, MIGRATION_STATE_COMPLETE, true); in executeMigrationCompletionJob()
DMigrationCleaner.java53 if (state == HealthConnectDataState.MIGRATION_STATE_COMPLETE) { in onMigrationStateChanged()
DMigrationUiStateManager.java104 case HealthConnectDataState.MIGRATION_STATE_COMPLETE: in getHealthConnectMigrationUiState()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectDataState.java234 @SystemApi public static final int MIGRATION_STATE_COMPLETE = 5; field in HealthConnectDataState
244 MIGRATION_STATE_COMPLETE
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java715 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testStartMigrationFromIdleState()
744 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testInsertMinDataMigrationSdkExtensionVersion_upgradeRequired()
774 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testInsertMinDataMigrationSdkExtensionVersion_noUpgradeRequired()
803 .isEqualTo(HealthConnectDataState.MIGRATION_STATE_COMPLETE); in testInsertMinDataMigrationSdkExtensionVersion_jobsDisabled()
/packages/modules/HealthFitness/framework/api/
Dsystem-current.txt37 field public static final int MIGRATION_STATE_COMPLETE = 5; // 0x5