Searched refs:MIGRATION_STATE_ALLOWED (Results 1 – 11 of 11) sorted by relevance
19 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_ALLOWED;177 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_migrationAllowedIntervalGreaterThanMinimum_periodicJobScheduled()178 when(mMigrationBroadcastScheduler.getRequiredInterval(eq(MIGRATION_STATE_ALLOWED))) in testScheduling_migrationAllowedIntervalGreaterThanMinimum_periodicJobScheduled()189 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_requiredCountEqualToZero_noJobScheduled()190 when(mMigrationBroadcastScheduler.getRequiredCount(eq(MIGRATION_STATE_ALLOWED))) in testScheduling_requiredCountEqualToZero_noJobScheduled()192 when(mMigrationBroadcastScheduler.getRequiredInterval(eq(MIGRATION_STATE_ALLOWED))) in testScheduling_requiredCountEqualToZero_noJobScheduled()203 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_migrationAllowedIntervalEqualToMinimum_periodicJobScheduled()204 when(mMigrationBroadcastScheduler.getRequiredInterval(eq(MIGRATION_STATE_ALLOWED))) in testScheduling_migrationAllowedIntervalEqualToMinimum_periodicJobScheduled()215 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testScheduling_migrationAllowedIntervalLessThanMinimum_periodicJobScheduled()216 when(mMigrationBroadcastScheduler.getRequiredInterval(eq(MIGRATION_STATE_ALLOWED))) in testScheduling_migrationAllowedIntervalLessThanMinimum_periodicJobScheduled()[all …]
19 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_ALLOWED;172 verifyStateChange(MIGRATION_STATE_ALLOWED); in testOnPackageInstalledOrChanged_fromIdleState_migrationAwarePackage()213 verifyStateChange(MIGRATION_STATE_ALLOWED); in testOnPackageInstalledOrChanged_fromAppUpgradeRequiredState_migrationAwarePackage()242 setMigrationState(MIGRATION_STATE_ALLOWED); in testOnPackageInstalledOrChanged_fromAllowedState()296 setMigrationState(MIGRATION_STATE_ALLOWED); in testOnPackageRemoved_migratorPackageExists_nonMigratorPackagePassed()353 setMigrationState(MIGRATION_STATE_ALLOWED); in testOnPackageRemoved_fromAllowedState_migrationAwarePackage()398 verifyStateChange(MIGRATION_STATE_ALLOWED); in testReconcilePackageChangesWithStates_fromIdleState_migrationAwarePackageAvailable()457 setMigrationState(MIGRATION_STATE_ALLOWED); in testReconcilePackageChangesWithStates_fromAllowedState_noMigratorPackageAvailable()480 verifyStateChange(MIGRATION_STATE_ALLOWED); in testHandleIsUpdateStillRequired_isMinSdkExtensionVersion()553 verifyStateChange(MIGRATION_STATE_ALLOWED); in testReconcilePackageChangesWithStates_fromAppUpgradeRequiredState_migratorPackage()[all …]
142 .thenReturn(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in testStateChanged_allowedPaused_noMigrationUiPausedNotificationSent()151 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in testStateChanged_allowedPaused_noMigrationUiPausedNotificationSent()162 .thenReturn(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in testStateChanged_allowedError_noMigrationUiCancelledNotificationSent()169 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in testStateChanged_allowedError_noMigrationUiCancelledNotificationSent()180 .thenReturn(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in testStateChanged_inProgressPaused_migrationUiPausedNotificationSent()188 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in testStateChanged_inProgressPaused_migrationUiPausedNotificationSent()284 .thenReturn(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in getMigrationUiState_migrationStateAllowedPaused()293 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in getMigrationUiState_migrationStateAllowedPaused()301 .thenReturn(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in getMigrationUiState_migrationStateInProgressPaused()310 captor.getValue().onChanged(HealthConnectDataState.MIGRATION_STATE_ALLOWED); in getMigrationUiState_migrationStateInProgressPaused()[all …]
19 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_ALLOWED;181 verifyStateChange(MIGRATION_STATE_ALLOWED, true); in testExecutePauseJob_timeExpired_shouldChangeState()187 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecutePauseJob_inAllowedState()229 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_fromAllowedState_timeNotExpired()238 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_fromAllowedState()297 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_afterAllowedStateTimeoutPeriod_fromAllowedState()307 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_beforeAllowedStateTimeoutPeriod_fromAllowedState()336 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_stateChangeJobsNotEnabled()347 when(mMigrationStateManager.getMigrationState()).thenReturn(MIGRATION_STATE_ALLOWED); in testExecuteCompleteJob_stateChangeJobsEnabled()
19 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_ALLOWED;167 updateMigrationState(context, MIGRATION_STATE_ALLOWED); in setMinDataMigrationSdkExtensionVersion()260 case MIGRATION_STATE_ALLOWED: in updateMigrationStateGuarded()268 updateMigrationStatePreference(context, MIGRATION_STATE_ALLOWED, timeoutReached); in updateMigrationStateGuarded()338 && getMigrationState() != MIGRATION_STATE_ALLOWED) { in finishMigration()392 updateMigrationState(context, MIGRATION_STATE_ALLOWED); in onPackageInstalledOrChangedGuarded()403 if (migrationState == MIGRATION_STATE_ALLOWED) { in onPackageInstalledOrChangedGuarded()458 if (migrationState == MIGRATION_STATE_ALLOWED && timeoutReached) { in updateMigrationStatePreference()469 if (migrationState == MIGRATION_STATE_ALLOWED && Objects.isNull(getAllowedStateTimeout())) { in updateMigrationStatePreference()549 updateMigrationState(context, MIGRATION_STATE_ALLOWED); in reconcilePackageChangesWithStates()[all …]
19 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_ALLOWED;156 case MIGRATION_STATE_ALLOWED: in getRequiredCount()171 case MIGRATION_STATE_ALLOWED: in getRequiredInterval()174 getRequiredCount(MIGRATION_STATE_ALLOWED)); in getRequiredInterval()
19 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_ALLOWED;131 == MIGRATION_STATE_ALLOWED in executeMigrationCompletionJob()184 context, MIGRATION_STATE_ALLOWED, /* timeoutReached= */ true); in executeMigrationPauseJob()
90 case HealthConnectDataState.MIGRATION_STATE_ALLOWED: in getHealthConnectMigrationUiState()
217 @SystemApi public static final int MIGRATION_STATE_ALLOWED = 4; field in HealthConnectDataState243 MIGRATION_STATE_ALLOWED,
21 import static android.health.connect.HealthConnectDataState.MIGRATION_STATE_ALLOWED;766 .isEqualTo(MIGRATION_STATE_ALLOWED); in testInsertMinDataMigrationSdkExtensionVersion_noUpgradeRequired()795 .isEqualTo(MIGRATION_STATE_ALLOWED); in testInsertMinDataMigrationSdkExtensionVersion_jobsDisabled()
35 field public static final int MIGRATION_STATE_ALLOWED = 4; // 0x4