Home
last modified time | relevance | path

Searched refs:CURRENT_STATE_START_TIME_KEY (Results 1 – 5 of 5) sorted by relevance

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationStateChangeJob.java26 … static com.android.server.healthconnect.migration.MigrationConstants.CURRENT_STATE_START_TIME_KEY;
111 String currentStateStartTime = preferenceHelper.getPreference(CURRENT_STATE_START_TIME_KEY); in executeMigrationCompletionJob()
116 CURRENT_STATE_START_TIME_KEY, Instant.now().toString()); in executeMigrationCompletionJob()
166 String currentStateStartTime = preferenceHelper.getPreference(CURRENT_STATE_START_TIME_KEY); in executeMigrationPauseJob()
170 CURRENT_STATE_START_TIME_KEY, Instant.now().toString()); in executeMigrationPauseJob()
DMigrationConstants.java38 static final String CURRENT_STATE_START_TIME_KEY = "current_state_start_time"; field in MigrationConstants
DMigrationStateManager.java27 … static com.android.server.healthconnect.migration.MigrationConstants.CURRENT_STATE_START_TIME_KEY;
450 CURRENT_STATE_START_TIME_KEY, in updateMigrationStatePreference()
821 PreferenceHelper.getInstance().getPreference(CURRENT_STATE_START_TIME_KEY); in hasMigrationTimedOutPrematurely()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationStateChangeJobTest.java29 … static com.android.server.healthconnect.migration.MigrationConstants.CURRENT_STATE_START_TIME_KEY;
164 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in testExecutePauseJob_timeNotExpired()
178 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in testExecutePauseJob_timeExpired_shouldChangeState()
207 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in testExecuteCompleteJob_fromIdleState_timeNotExpired()
219 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in testExecuteCompleteJob_fromIdleState()
366 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in setStartTime_notExpired_nonIdleState()
373 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in setStartTime_expired_nonIdleState()
DMigrationStateManagerTest.java26 … static com.android.server.healthconnect.migration.MigrationConstants.CURRENT_STATE_START_TIME_KEY;
878 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in testSwitchToSetupForUser_migrationHasTimedOutPrematurely()
899 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in testSwitchToSetupForUser_migrationHasTimedOutNotPrematurely()
915 when(mPreferenceHelper.getPreference(eq(CURRENT_STATE_START_TIME_KEY))) in testSwitchToSetupForUser_migrationHasTimedOutPrematurely_stateAlreadyReset()