Home
last modified time | relevance | path

Searched refs:mHealthConnectDeviceConfigManager (Results 1 – 9 of 9) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationStateChangeJobTest.java94 @Mock private HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager; field in MigrationStateChangeJobTest
132 .thenReturn(mHealthConnectDeviceConfigManager); in setUp()
133 when(mHealthConnectDeviceConfigManager.getExecutionTimeBuffer()) in setUp()
135 when(mHealthConnectDeviceConfigManager.getIdleStateTimeoutPeriod()) in setUp()
137 when(mHealthConnectDeviceConfigManager.getNonIdleStateTimeoutPeriod()) in setUp()
139 when(mHealthConnectDeviceConfigManager.getInProgressStateTimeoutPeriod()) in setUp()
141 when(mHealthConnectDeviceConfigManager.isPauseStateChangeJobEnabled()) in setUp()
143 when(mHealthConnectDeviceConfigManager.isCompleteStateChangeJobEnabled()) in setUp()
145 when(mHealthConnectDeviceConfigManager.getMigrationCompletionJobRunInterval()) in setUp()
147 when(mHealthConnectDeviceConfigManager.getMigrationPauseJobRunInterval()) in setUp()
[all …]
DMigrationBroadcastSchedulingTest.java79 @Mock private HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager; field in MigrationBroadcastSchedulingTest
103 .thenReturn(mHealthConnectDeviceConfigManager); in setUp()
104 when(mHealthConnectDeviceConfigManager.getMigrationStateAllowedCount()) in setUp()
106 when(mHealthConnectDeviceConfigManager.getMigrationStateInProgressCount()) in setUp()
108 when(mHealthConnectDeviceConfigManager.getNonIdleStateTimeoutPeriod()) in setUp()
DMigrationStateManagerTest.java119 @Mock private HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager; field in MigrationStateManagerTest
142 .thenReturn(mHealthConnectDeviceConfigManager); in setUp()
143 when(mHealthConnectDeviceConfigManager.getExecutionTimeBuffer()) in setUp()
145 when(mHealthConnectDeviceConfigManager.getNonIdleStateTimeoutPeriod()) in setUp()
147 when(mHealthConnectDeviceConfigManager.getMaxStartMigrationCalls()) in setUp()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationBroadcastScheduler.java55 private final HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager = field in MigrationBroadcastScheduler
155 return mHealthConnectDeviceConfigManager.getMigrationStateInProgressCount(); in getRequiredCount()
157 return mHealthConnectDeviceConfigManager.getMigrationStateAllowedCount(); in getRequiredCount()
169 mHealthConnectDeviceConfigManager.getInProgressStateTimeoutPeriod(), in getRequiredInterval()
173 mHealthConnectDeviceConfigManager.getNonIdleStateTimeoutPeriod(), in getRequiredInterval()
DMigrationStateManager.java88 private final HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager = field in MigrationStateManager
263 >= mHealthConnectDeviceConfigManager.getMaxStartMigrationCalls()) { in updateMigrationStateGuarded()
625 mHealthConnectDeviceConfigManager in getAllowedStateTimeout()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java108 @Mock private HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager; field in HealthDataCategoryPriorityHelperTest
146 .thenReturn(mHealthConnectDeviceConfigManager); in setUp()
161 clearInvocations(mHealthConnectDeviceConfigManager); in tearDown()
271 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testNewMaybeRemoveAppFromPriorityList_ifDataForApp_doesNotRemoveApp()
297 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testNewMaybeRemoveAppFromPriorityList_ifNoDataForApp_removesApp()
326 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testOldMaybeRemoveAppFromPriorityList_ifNoWritePermissionsForApp_removesApp()
395 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testNewUpdateHealthDataPriority_ifDataForApp_doesNotRemoveApp()
423 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testNewUpdateHealthDataPriority_ifNoDataForApp_removesApp()
456 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testOldUpdateHealthDataPriority_ifNoWritePermissionsForApp_removesApp()
479 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testOldMaybeRemoveAppWithoutWritePermissionsFromPriorityList_removesApp()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DPermissionPackageChangesOrchestratorTest.java69 @Mock private HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager; field in PermissionPackageChangesOrchestratorTest
80 .thenReturn(mHealthConnectDeviceConfigManager); in setUp()
121 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in testPackageRemoved_removesFromPriorityList_whenNewAggregationOff()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/aggregation/
DSessionPriorityAggregationTest.java57 @Mock HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager; field in SessionPriorityAggregationTest
76 .thenReturn(mHealthConnectDeviceConfigManager); in setUp()
77 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in setUp()
DValuePriorityAggregationTest.java45 @Mock HealthConnectDeviceConfigManager mHealthConnectDeviceConfigManager; field in ValuePriorityAggregationTest
76 .thenReturn(mHealthConnectDeviceConfigManager); in setUp()
77 when(mHealthConnectDeviceConfigManager.isAggregationSourceControlsEnabled()) in setUp()