Home
last modified time | relevance | path

Searched refs:MIGRATION_STATE_IDLE (Results 1 – 12 of 12) sorted by relevance

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationStateManager.java22 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IDLE;
190 return MIGRATION_STATE_IDLE; in getMigrationState()
246 case MIGRATION_STATE_IDLE: in updateMigrationStateGuarded()
284 updateMigrationStatePreference(context, MIGRATION_STATE_IDLE, false); in clearCaches()
388 if ((migrationState == MIGRATION_STATE_IDLE in onPackageInstalledOrChangedGuarded()
396 if (migrationState == MIGRATION_STATE_IDLE in onPackageInstalledOrChangedGuarded()
463 && previousMigrationState == MIGRATION_STATE_IDLE in updateMigrationStatePreference()
553 if (migrationState == MIGRATION_STATE_IDLE) { in reconcilePackageChangesWithStates()
566 if (migrationState != MIGRATION_STATE_IDLE && migrationState != MIGRATION_STATE_COMPLETE) { in reconcilePackageChangesWithStates()
575 case MIGRATION_STATE_IDLE: in reconcileStateChangeJob()
[all …]
DMigrationStateChangeJob.java21 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IDLE;
123 == MIGRATION_STATE_IDLE in executeMigrationCompletionJob()
DMigrationUiStateManager.java81 case HealthConnectDataState.MIGRATION_STATE_IDLE: in getHealthConnectMigrationUiState()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/migration/api/
DLoadMigrationRestoreStateUseCaseTest.kt184 HealthConnectDataState.MIGRATION_STATE_IDLE)) in <lambda>()
200 HealthConnectDataState.MIGRATION_STATE_IDLE)) in <lambda>()
216 HealthConnectDataState.MIGRATION_STATE_IDLE)) in <lambda>()
232 HealthConnectDataState.MIGRATION_STATE_IDLE)) in <lambda>()
248 HealthConnectDataState.MIGRATION_STATE_IDLE)) in <lambda>()
264 HealthConnectDataState.MIGRATION_STATE_IDLE)) in <lambda>()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationStateManagerTest.java22 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IDLE;
168 setMigrationState(MIGRATION_STATE_IDLE); in testOnPackageInstalledOrChanged_fromIdleState_migrationAwarePackage()
184 setMigrationState(MIGRATION_STATE_IDLE); in testOnPackageInstalledOrChanged_fromIdleState_migrationUnawarePackage()
197 setMigrationState(MIGRATION_STATE_IDLE); in testOnPackageInstalledOrChanged_fromIdleState_migrationUnawareStubPackage()
311 setMigrationState(MIGRATION_STATE_IDLE); in testOnPackageRemoved_fromIdleState_migrationAwarePackage()
389 setMigrationState(MIGRATION_STATE_IDLE); in testReconcilePackageChangesWithStates_fromIdleState_migrationAwarePackageAvailable()
408 setMigrationState(MIGRATION_STATE_IDLE); in testReconcilePackageChangesWithStates_fromIdleState_migrationUnawarePackageAvailable()
426 setMigrationState(MIGRATION_STATE_IDLE); in testReconcilePackageChangesWithStates_fromIdleState_migrationUnawareStubPackage()
442 setMigrationState(MIGRATION_STATE_IDLE); in testReconcilePackageChangesWithStates_fromIdleState_noMigratorPackageAvailable()
701 setMigrationState(MIGRATION_STATE_IDLE); in testReconcileStateChangeJob_fromIdleState_shouldReschedule()
[all …]
DMigrationUiStateManagerTest.java97 .thenReturn(HealthConnectDataState.MIGRATION_STATE_IDLE); in testStateChanged_idle_noNotificationSent()
102 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_IDLE); in testStateChanged_idle_noNotificationSent()
244 .thenReturn(HealthConnectDataState.MIGRATION_STATE_IDLE); in getMigrationUiState_migrationStateIdle()
249 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_IDLE); in getMigrationUiState_migrationStateIdle()
DMigrationStateChangeJobTest.java22 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IDLE;
206 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IDLE); in testExecuteCompleteJob_fromIdleState_timeNotExpired()
218 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_IDLE); in testExecuteCompleteJob_fromIdleState()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectDataState.java144 @SystemApi public static final int MIGRATION_STATE_IDLE = 0; field in HealthConnectDataState
239 MIGRATION_STATE_IDLE,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeHealthMigrationManager.kt34 HealthConnectDataState.MIGRATION_STATE_IDLE)
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java22 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IDLE;
708 .isEqualTo(MIGRATION_STATE_IDLE); in testStartMigrationFromIdleState()
733 .isEqualTo(MIGRATION_STATE_IDLE); in testInsertMinDataMigrationSdkExtensionVersion_upgradeRequired()
763 .isEqualTo(MIGRATION_STATE_IDLE); in testInsertMinDataMigrationSdkExtensionVersion_noUpgradeRequired()
792 .isEqualTo(MIGRATION_STATE_IDLE); in testInsertMinDataMigrationSdkExtensionVersion_jobsDisabled()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java20 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_IDLE;
1535 .isEqualTo(MIGRATION_STATE_IDLE); in testDataMigrationState_byDefault_returnsIdleState()
/packages/modules/HealthFitness/framework/api/
Dsystem-current.txt38 field public static final int MIGRATION_STATE_IDLE = 0; // 0x0