Home
last modified time | relevance | path

Searched refs:READ_HEALTH_DATA_HISTORY (Results 1 – 25 of 25) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DRequestPermissionViewModelTest.kt22 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY
148 READ_HEALTH_DATA_HISTORY) in <lambda>()
171 fromPermissionString(READ_HEALTH_DATA_HISTORY))) in <lambda>()
179 fromPermissionString(READ_HEALTH_DATA_HISTORY))) in <lambda>()
222 READ_HEALTH_DATA_HISTORY, in <lambda>()
303 val permissions = arrayOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY) in <lambda>()
306 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>()
314 val permissions = arrayOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY) in <lambda>()
328 READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
331 val historyReadPermission = fromPermissionString(READ_HEALTH_DATA_HISTORY) in <lambda>()
[all …]
DAdditionalPermissionsFragmentTest.kt96 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in displaysCombinedAdditionalPermissions()
169 listOf(AdditionalPermission.READ_HEALTH_DATA_HISTORY), in displaysHistoryReadPermission()
199 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in toggleOn_updatesAdditionalPermission()
223 AdditionalPermission.READ_HEALTH_DATA_HISTORY, in toggleOff_updatesAdditionalPermission()
229 MutableLiveData(setOf(AdditionalPermission.READ_HEALTH_DATA_HISTORY)) in toggleOff_updatesAdditionalPermission()
233 eq(AdditionalPermission.READ_HEALTH_DATA_HISTORY))) in toggleOff_updatesAdditionalPermission()
253 HealthPermissions.READ_HEALTH_DATA_HISTORY, in allowButton_noAdditionalPermissionsSelected_isDisabled()
271 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_noAdditionalPermissionsSelected_isDisabled()
290 HealthPermissions.READ_HEALTH_DATA_HISTORY, in allowButton_additionalPermissionsSelected_isEnabled()
310 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_additionalPermissionsSelected_isEnabled()
[all …]
DMockedPermissionsActivityTest.kt30 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY in <lambda>()
210 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
227 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>()
240 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
257 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>()
270 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
287 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>()
312 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
332 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.NOT_GRANTED, in <lambda>()
370 READ_HEALTH_DATA_HISTORY, in <lambda>()
[all …]
DPermissionsActivityTest.kt35 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY in <lambda>()
283 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
356 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
396 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY) in <lambda>()
439 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
471 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
473 TEST_APP_PACKAGE_NAME, listOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY)) in <lambda>()
501 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
503 TEST_APP_PACKAGE_NAME, listOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_HISTORY)) in <lambda>()
530 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>()
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/permissions/
DAdditionalPermissionsRequestUITest.kt54 revokePermissionViaPackageManager(context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in setup()
62 revokePermissionViaPackageManager(context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in tearDown()
70 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsBoth()
79 assertPermGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsBoth()
86 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_deniesBoth()
95 assertPermNotGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsBothAdditionalPermissions_deniesBoth()
102 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsOnlySelected()
110 assertPermGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsOnlySelected()
117 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsOnlyNotGrantedPermissions()
119 grantPermissionViaPackageManager(context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_HISTORY) in requestAdditionalPermissions_showsOnlyNotGrantedPermissions()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DMockedConnectedAppFragmentTest.kt88 HealthPermissions.READ_HEALTH_DATA_HISTORY)) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
114 TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
124 HealthPermissions.READ_EXERCISE, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
129 HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
167 TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
174 listOf(HealthPermissions.READ_EXERCISE, HealthPermissions.READ_HEALTH_DATA_HISTORY)) in exerciseRoutesAskEveryTime_revokeExercise_lastReadPermission_doesNotShowDialog()
202 TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEALTH_DATA_HISTORY) in exerciseRoutesAskEveryTime_revokeExercise_lastReadPermission_doesNotShowDialog()
DAppPermissionViewModelTest.kt97 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermission.kt28 HealthPermissions.READ_HEALTH_DATA_HISTORY)
92 val READ_HEALTH_DATA_HISTORY = in fromPermissionString() constant
93 AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY) in fromPermissionString()
110 this.additionalPermission == HealthPermissions.READ_HEALTH_DATA_HISTORY in isExerciseRoutesPermission()
DAdditionalPermissionStrings.kt54 HealthPermissions.READ_HEALTH_DATA_HISTORY,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DAdditionalAccessViewModelTest.kt21 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY
120 READ_HEALTH_DATA_HISTORY, in setup()
133 READ_HEALTH_DATA_HISTORY, in setup()
158 .thenReturn(listOf(READ_EXERCISE, READ_EXERCISE_ROUTES, READ_HEALTH_DATA_HISTORY)) in <lambda>()
197 .thenReturn(listOf(READ_EXERCISE, READ_EXERCISE_ROUTES, READ_HEALTH_DATA_HISTORY)) in <lambda>()
236 .thenReturn(listOf(READ_EXERCISE, READ_EXERCISE_ROUTES, READ_HEALTH_DATA_HISTORY)) in loadAdditionalAccessPreferences_backgroundReadNotEnabled_doesNotReturnBackgroundRead()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DAdditionalPermissionsFragment.kt176 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>()
199 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>()
215 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>()
DRequestPermissionViewModel.kt330 return permission == HealthPermissions.READ_HEALTH_DATA_HISTORY in <lambda>()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DHomeFragment.kt42 import com.android.healthconnect.testapps.toolbox.Constants.READ_HEALTH_DATA_HISTORY in <lambda>()
278 if (!isPermissionGranted(READ_HEALTH_DATA_HISTORY)) { in <lambda>()
279 mRequestPermissionLauncher.launch(arrayOf(READ_HEALTH_DATA_HISTORY)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthPermissionReader.kt60 private val historyReadPermission = listOf(HealthPermissions.READ_HEALTH_DATA_HISTORY) in <lambda>()
67 HealthPermissions.READ_HEALTH_DATA_HISTORY) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DAdditionalAccessViewModel.kt129 additionalPermissions.contains(HealthPermissions.READ_HEALTH_DATA_HISTORY)) { in <lambda>()
137 HealthPermissions.READ_HEALTH_DATA_HISTORY), in <lambda>()
DAdditionalAccessFragment.kt163 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in <lambda>()
183 packageName, HealthPermissions.READ_HEALTH_DATA_HISTORY, newValue as Boolean) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DRevokeHealthPermissionUseCaseTest.kt55 useCase.invoke("TEST_APP", HealthPermissions.READ_HEALTH_DATA_HISTORY) in invoke_withAdditionalPermission_callsHealthPermissionManager()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionsPresenceTest.java38 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY;
121 READ_HEALTH_DATA_HISTORY,
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt157 const val READ_HEALTH_DATA_HISTORY = "android.permission.health.READ_HEALTH_DATA_HISTORY" constant
159 val ADDITIONAL_PERMISSIONS = arrayOf(READ_HEALTH_DATA_IN_BACKGROUND, READ_HEALTH_DATA_HISTORY)
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/
DHealthPermissionTest.kt89 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY)) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthPermissionReaderTest.kt72 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthPermissionsTest.java63 HealthPermissions.READ_HEALTH_DATA_HISTORY,
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissions.java151 public static final String READ_HEALTH_DATA_HISTORY = field in HealthPermissions
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java27 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY;
2508 && isPermissionGranted(READ_HEALTH_DATA_HISTORY, uid, pid); in hasReadHistoryPermission()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt107 …ry_read") public static final String READ_HEALTH_DATA_HISTORY = "android.permission.health.READ_HE…