/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/ |
D | HealthPermissionsTest.java | 19 import static android.health.connect.HealthPermissions.HEALTH_PERMISSION_GROUP; 20 import static android.health.connect.HealthPermissions.READ_EXERCISE_ROUTE; 21 import static android.health.connect.HealthPermissions.READ_MEDICAL_DATA_IMMUNIZATION; 22 import static android.health.connect.HealthPermissions.WRITE_MEDICAL_DATA; 63 HealthPermissions.READ_HEALTH_DATA_HISTORY, 64 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, 65 HealthPermissions.READ_ACTIVE_CALORIES_BURNED, 66 HealthPermissions.READ_DISTANCE, 67 HealthPermissions.READ_ELEVATION_GAINED, 68 HealthPermissions.READ_EXERCISE, [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthPermissionsPresenceTest.java | 19 import static android.health.connect.HealthPermissions.HEALTH_PERMISSION_GROUP; 20 import static android.health.connect.HealthPermissions.READ_ACTIVE_CALORIES_BURNED; 21 import static android.health.connect.HealthPermissions.READ_BASAL_BODY_TEMPERATURE; 22 import static android.health.connect.HealthPermissions.READ_BASAL_METABOLIC_RATE; 23 import static android.health.connect.HealthPermissions.READ_BLOOD_GLUCOSE; 24 import static android.health.connect.HealthPermissions.READ_BLOOD_PRESSURE; 25 import static android.health.connect.HealthPermissions.READ_BODY_FAT; 26 import static android.health.connect.HealthPermissions.READ_BODY_TEMPERATURE; 27 import static android.health.connect.HealthPermissions.READ_BODY_WATER_MASS; 28 import static android.health.connect.HealthPermissions.READ_BONE_MASS; [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/ |
D | HealthPermissionReaderTest.kt | 4 import android.health.connect.HealthPermissions 5 import android.health.connect.HealthPermissions.READ_PLANNED_EXERCISE 6 import android.health.connect.HealthPermissions.READ_SKIN_TEMPERATURE 7 import android.health.connect.HealthPermissions.WRITE_PLANNED_EXERCISE 8 import android.health.connect.HealthPermissions.WRITE_SKIN_TEMPERATURE 50 HealthPermissions.WRITE_EXERCISE_ROUTE.toHealthPermission(), in <lambda>() 51 HealthPermissions.READ_ACTIVE_CALORIES_BURNED.toHealthPermission(), in <lambda>() 52 HealthPermissions.WRITE_ACTIVE_CALORIES_BURNED.toHealthPermission(), in <lambda>() 63 HealthPermissions.READ_ACTIVE_CALORIES_BURNED.toHealthPermission(), in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions() 64 HealthPermissions.WRITE_ACTIVE_CALORIES_BURNED.toHealthPermission(), in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/permissions/ |
D | RequestHealthPermissionUITest.kt | 20 import android.health.connect.HealthPermissions 46 context, TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEIGHT) in showsAppName_showsRequestedPermissions() 48 context, TEST_APP_PACKAGE_NAME, HealthPermissions.WRITE_BODY_FAT) in showsAppName_showsRequestedPermissions() 51 permissions = listOf(HealthPermissions.READ_HEIGHT, HealthPermissions.WRITE_BODY_FAT)) { in showsAppName_showsRequestedPermissions() 62 context, TEST_APP_PACKAGE_NAME, HealthPermissions.WRITE_BODY_FAT) in requestGrantedPermissions_doesNotShowGrantedPermissions() 64 context, TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEIGHT) in requestGrantedPermissions_doesNotShowGrantedPermissions() 68 permissions = listOf(HealthPermissions.READ_HEIGHT, HealthPermissions.WRITE_BODY_FAT)) { in requestGrantedPermissions_doesNotShowGrantedPermissions() 77 context, TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEIGHT) in grantPermission_grantsOnlyRequestedPermission() 79 context, TEST_APP_PACKAGE_NAME, HealthPermissions.WRITE_BODY_FAT) in grantPermission_grantsOnlyRequestedPermission() 82 permissions = listOf(HealthPermissions.READ_HEIGHT, HealthPermissions.WRITE_BODY_FAT)) { in grantPermission_grantsOnlyRequestedPermission() [all …]
|
D | ManageHealthPermissionsUITest.kt | 20 import android.health.connect.HealthPermissions 67 context, TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEIGHT) in revokeAllPermissions_revokeAllConnectedAppsPermission() 76 assertPermNotGrantedForApp(TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEIGHT) in revokeAllPermissions_revokeAllConnectedAppsPermission() 94 context, TEST_APP_PACKAGE_NAME, HealthPermissions.READ_HEIGHT) in tearDown() 96 context, TEST_APP_PACKAGE_NAME, HealthPermissions.WRITE_HEIGHT) in tearDown() 98 context, TEST_APP_PACKAGE_NAME, HealthPermissions.WRITE_BODY_FAT) in tearDown()
|
D | ManageAppHealthPermissionUITest.kt | 20 import android.health.connect.HealthPermissions.READ_HEIGHT 21 import android.health.connect.HealthPermissions.WRITE_BODY_FAT 22 import android.health.connect.HealthPermissions.WRITE_HEIGHT
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/ |
D | MockedConnectedAppFragmentTest.kt | 23 import android.health.connect.HealthPermissions 85 HealthPermissions.READ_EXERCISE, in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog() 86 HealthPermissions.READ_SLEEP, in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog() 87 HealthPermissions.READ_EXERCISE_ROUTES, in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog() 88 HealthPermissions.READ_HEALTH_DATA_HISTORY)) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog() 109 .revokeHealthPermission(TEST_APP_PACKAGE_NAME, HealthPermissions.READ_EXERCISE) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog() 111 .revokeHealthPermission(TEST_APP_PACKAGE_NAME, HealthPermissions.READ_EXERCISE_ROUTES) 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() 127 HealthPermissions.READ_EXERCISE, in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/ |
D | HealthDataCategoryPriorityHelperTest.java | 42 import android.health.connect.HealthPermissions; 252 List.of(HealthPermissions.READ_DISTANCE, HealthPermissions.WRITE_STEPS)); in testMaybeRemoveAppFromPriorityList_ifWritePermissionsForApp_doesNotRemoveApp() 275 .thenReturn(List.of(HealthPermissions.READ_DISTANCE)); in testNewMaybeRemoveAppFromPriorityList_ifDataForApp_doesNotRemoveApp() 301 .thenReturn(List.of(HealthPermissions.READ_DISTANCE)); in testNewMaybeRemoveAppFromPriorityList_ifNoDataForApp_removesApp() 330 .thenReturn(List.of(HealthPermissions.READ_DISTANCE)); in testOldMaybeRemoveAppFromPriorityList_ifNoWritePermissionsForApp_removesApp() 360 HealthPermissions.WRITE_SLEEP, in testUpdateHealthDataPriority_ifWritePermissionsForApp_doesNotRemoveApp() 361 HealthPermissions.WRITE_STEPS, in testUpdateHealthDataPriority_ifWritePermissionsForApp_doesNotRemoveApp() 362 HealthPermissions.READ_HEART_RATE, in testUpdateHealthDataPriority_ifWritePermissionsForApp_doesNotRemoveApp() 363 HealthPermissions.WRITE_OVULATION_TEST in testUpdateHealthDataPriority_ifWritePermissionsForApp_doesNotRemoveApp() 389 HealthPermissions.WRITE_SLEEP, in testNewUpdateHealthDataPriority_ifDataForApp_doesNotRemoveApp() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/ |
D | HealthPermission.kt | 18 import android.health.connect.HealthPermissions 26 HealthPermissions.READ_EXERCISE_ROUTES, 27 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, 28 HealthPermissions.READ_HEALTH_DATA_HISTORY) 33 HealthPermissions.WRITE_MEDICAL_DATA, 34 HealthPermissions.READ_MEDICAL_DATA_IMMUNIZATION) 93 AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY) in fromPermissionString() 95 AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in fromPermissionString() 96 val READ_EXERCISE_ROUTES = AdditionalPermission(HealthPermissions.READ_EXERCISE_ROUTES) in fromPermissionString() 104 this.additionalPermission == HealthPermissions.READ_EXERCISE_ROUTES in isExerciseRoutesPermission() [all …]
|
D | AdditionalPermissionStrings.kt | 18 import android.health.connect.HealthPermissions 47 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, 54 HealthPermissions.READ_HEALTH_DATA_HISTORY,
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/ |
D | HealthPermissionReader.kt | 25 import android.health.connect.HealthPermissions in <lambda>() 51 HealthPermissions.READ_EXERCISE, in <lambda>() 52 HealthPermissions.WRITE_EXERCISE, in <lambda>() 53 HealthPermissions.READ_SLEEP, in <lambda>() 54 HealthPermissions.WRITE_SLEEP, in <lambda>() 58 listOf(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 60 private val historyReadPermission = listOf(HealthPermissions.READ_HEALTH_DATA_HISTORY) in <lambda>() 65 HealthPermissions.READ_EXERCISE_ROUTES, in <lambda>() 66 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, in <lambda>() 67 HealthPermissions.READ_HEALTH_DATA_HISTORY) in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/ |
D | AdditionalPermissionsFragmentTest.kt | 18 import android.health.connect.HealthPermissions 253 HealthPermissions.READ_HEALTH_DATA_HISTORY, in allowButton_noAdditionalPermissionsSelected_isDisabled() 254 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in allowButton_noAdditionalPermissionsSelected_isDisabled() 271 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_noAdditionalPermissionsSelected_isDisabled() 273 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_noAdditionalPermissionsSelected_isDisabled() 290 HealthPermissions.READ_HEALTH_DATA_HISTORY, in allowButton_additionalPermissionsSelected_isEnabled() 291 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in allowButton_additionalPermissionsSelected_isEnabled() 310 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_additionalPermissionsSelected_isEnabled() 312 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_additionalPermissionsSelected_isEnabled() 328 HealthPermissions.READ_HEALTH_DATA_HISTORY, in allowButton_medicalRequestConcluded_isEnabled() [all …]
|
D | RequestPermissionViewModelTest.kt | 20 import android.health.connect.HealthPermissions.READ_EXERCISE 21 import android.health.connect.HealthPermissions.READ_EXERCISE_ROUTES 22 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_HISTORY 23 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND 24 import android.health.connect.HealthPermissions.READ_HEART_RATE 25 import android.health.connect.HealthPermissions.READ_PLANNED_EXERCISE 26 import android.health.connect.HealthPermissions.READ_SKIN_TEMPERATURE 27 import android.health.connect.HealthPermissions.READ_SLEEP 28 import android.health.connect.HealthPermissions.READ_STEPS 29 import android.health.connect.HealthPermissions.WRITE_DISTANCE [all …]
|
D | FitnessPermissionsFragmentTest.kt | 18 import android.health.connect.HealthPermissions.READ_DISTANCE in <lambda>() 19 import android.health.connect.HealthPermissions.READ_HEART_RATE in <lambda>() 20 import android.health.connect.HealthPermissions.READ_STEPS in <lambda>() 21 import android.health.connect.HealthPermissions.WRITE_DISTANCE in <lambda>() 22 import android.health.connect.HealthPermissions.WRITE_EXERCISE in <lambda>() 23 import android.health.connect.HealthPermissions.WRITE_HEART_RATE in <lambda>() 24 import android.health.connect.HealthPermissions.WRITE_STEPS in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/ |
D | AdditionalAccessViewModel.kt | 21 import android.health.connect.HealthPermissions in <lambda>() 22 import android.health.connect.HealthPermissions.READ_EXERCISE in <lambda>() 23 import android.health.connect.HealthPermissions.READ_EXERCISE_ROUTES in <lambda>() 117 additionalPermissions.contains(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND)) { in <lambda>() 125 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>() 129 additionalPermissions.contains(HealthPermissions.READ_HEALTH_DATA_HISTORY)) { in <lambda>() 137 HealthPermissions.READ_HEALTH_DATA_HISTORY), in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/ |
D | HealthConnectManagerNotAllPermissionsAreGrantedTest.java | 19 import static android.health.connect.HealthPermissions.READ_DISTANCE; 20 import static android.health.connect.HealthPermissions.READ_EXERCISE; 21 import static android.health.connect.HealthPermissions.READ_HEART_RATE; 22 import static android.health.connect.HealthPermissions.READ_SLEEP; 23 import static android.health.connect.HealthPermissions.READ_STEPS; 24 import static android.health.connect.HealthPermissions.READ_TOTAL_CALORIES_BURNED;
|
D | HealthConnectManagerNoPermissionsGrantedTest.java | 19 import static android.health.connect.HealthPermissions.READ_DISTANCE; 20 import static android.health.connect.HealthPermissions.READ_EXERCISE; 21 import static android.health.connect.HealthPermissions.READ_HEART_RATE; 22 import static android.health.connect.HealthPermissions.READ_SLEEP; 23 import static android.health.connect.HealthPermissions.READ_STEPS; 24 import static android.health.connect.HealthPermissions.READ_TOTAL_CALORIES_BURNED;
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | MedicalDataPermissionEnforcer.java | 19 import static android.health.connect.HealthPermissions.WRITE_MEDICAL_DATA; 20 import static android.health.connect.HealthPermissions.getMedicalReadPermission; 26 import android.health.connect.HealthPermissions; 90 for (String permission : HealthPermissions.getAllMedicalPermissions()) { in getGrantedMedicalPermissionsForPreflight()
|
D | DataPermissionEnforcer.java | 20 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 27 import android.health.connect.HealthPermissions; 74 HealthPermissions.getHealthReadPermission( in enforceRecordIdsReadPermissions() 222 HealthPermissions.getHealthWritePermission( in enforceRecordIdWritePermissionInternal()
|
D | HealthConnectPermissionHelper.java | 30 import android.health.connect.HealthPermissions; 291 if (HealthPermissions.isWritePermission(permissionName)) { in addToPriorityListIfRequired() 295 HealthPermissions.getHealthDataCategoryForWritePermission( in addToPriorityListIfRequired() 303 if (HealthPermissions.isWritePermission(permissionName)) { in removeFromPriorityListIfRequired() 307 HealthPermissions.getHealthDataCategoryForWritePermission( in removeFromPriorityListIfRequired() 413 HealthPermissions.MANAGE_HEALTH_PERMISSIONS, message); in enforceManageHealthPermissions()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | DataPermissionEnforcerTest.java | 20 import static android.health.connect.HealthPermissions.READ_ACTIVE_CALORIES_BURNED; 21 import static android.health.connect.HealthPermissions.READ_EXERCISE_ROUTE; 22 import static android.health.connect.HealthPermissions.READ_EXERCISE_ROUTES; 23 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 24 import static android.health.connect.HealthPermissions.READ_STEPS; 25 import static android.health.connect.HealthPermissions.WRITE_ACTIVE_CALORIES_BURNED; 26 import static android.health.connect.HealthPermissions.WRITE_EXERCISE; 27 import static android.health.connect.HealthPermissions.WRITE_EXERCISE_ROUTE; 28 import static android.health.connect.HealthPermissions.WRITE_STEPS;
|
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteTestHelper.java | 19 import static android.health.connect.HealthPermissions.READ_EXERCISE; 20 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 21 import static android.health.connect.HealthPermissions.WRITE_EXERCISE; 22 import static android.health.connect.HealthPermissions.WRITE_EXERCISE_ROUTE;
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/ |
D | HealthPermissionTest.kt | 18 import android.health.connect.HealthPermissions in <lambda>() 89 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_HISTORY)) in <lambda>() 92 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>()
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/ |
D | GrantTimeIntegrationTest.java | 19 import static android.health.connect.HealthPermissions.MANAGE_HEALTH_PERMISSIONS; 31 import android.health.connect.HealthPermissions; 56 private static final String DEFAULT_PERM = HealthPermissions.READ_ACTIVE_CALORIES_BURNED; 57 private static final String DEFAULT_PERM_2 = HealthPermissions.WRITE_ACTIVE_CALORIES_BURNED;
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/migration/ |
D | HealthConnectPermissionsMigrationTest.java | 19 import static android.health.connect.HealthPermissions.MANAGE_HEALTH_PERMISSIONS; 20 import static android.health.connect.HealthPermissions.READ_ACTIVE_CALORIES_BURNED; 21 import static android.health.connect.HealthPermissions.WRITE_ACTIVE_CALORIES_BURNED;
|