/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/permissions/ |
D | AdditionalPermissionsRequestUITest.kt | 56 context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_IN_BACKGROUND) in setup() 64 context, TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_IN_BACKGROUND) in tearDown() 70 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsBoth() 80 assertPermGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsBoth() 86 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_deniesBoth() 96 assertPermNotGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_deniesBoth() 102 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsOnlySelected() 111 assertPermNotGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsBothAdditionalPermissions_grantsOnlySelected() 117 val permissions = listOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsOnlyNotGrantedPermissions() 127 assertPermGrantedForApp(TEST_APP_PACKAGE_NAME, READ_HEALTH_DATA_IN_BACKGROUND) in requestAdditionalPermissions_showsOnlyNotGrantedPermissions() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/ |
D | RequestPermissionViewModelTest.kt | 23 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND 147 READ_HEALTH_DATA_IN_BACKGROUND, in <lambda>() 170 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>() 178 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>() 186 arrayOf(READ_EXERCISE, READ_SLEEP, READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>() 199 arrayOf(READ_STEPS, READ_HEART_RATE, READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>() 204 .isEqualTo(listOf(fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND))) in <lambda>() 223 READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>() 233 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND))) in <lambda>() 279 TEST_APP_PACKAGE_NAME, listOf(READ_EXERCISE, READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>() [all …]
|
D | AdditionalPermissionsFragmentTest.kt | 97 AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND), in displaysCombinedAdditionalPermissions() 139 listOf(AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND), in displaysBackgroundReadPermission() 200 AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND), in toggleOn_updatesAdditionalPermission() 224 AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND), in toggleOff_updatesAdditionalPermission() 254 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in allowButton_noAdditionalPermissionsSelected_isDisabled() 273 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_noAdditionalPermissionsSelected_isDisabled() 291 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in allowButton_additionalPermissionsSelected_isEnabled() 312 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_additionalPermissionsSelected_isEnabled() 329 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in allowButton_medicalRequestConcluded_isEnabled() 349 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_medicalRequestConcluded_isEnabled()
|
D | MockedPermissionsActivityTest.kt | 31 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND in <lambda>() 210 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 228 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND) to PermissionState.GRANTED, in <lambda>() 240 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 258 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND) to PermissionState.GRANTED, in <lambda>() 270 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 288 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND) to PermissionState.GRANTED, in <lambda>() 312 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 333 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND) to PermissionState.NOT_GRANTED, in <lambda>() 371 READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() [all …]
|
D | PermissionsActivityTest.kt | 36 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND in <lambda>() 110 arrayOf(WRITE_SLEEP, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 114 arrayOf(READ_MEDICAL_DATA_IMMUNIZATION, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 116 arrayOf(READ_HEALTH_DATA_IN_BACKGROUND, READ_SLEEP, READ_MEDICAL_DATA_IMMUNIZATION) 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>() 375 val permissions = arrayOf(READ_HEALTH_DATA_IN_BACKGROUND) 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>() 501 val permissions = arrayOf(READ_HEALTH_DATA_HISTORY, READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/ |
D | HealthPermission.kt | 27 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, 94 val READ_HEALTH_DATA_IN_BACKGROUND = in fromPermissionString() constant 95 AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in fromPermissionString() 107 this.additionalPermission == HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND in isExerciseRoutesPermission()
|
D | AdditionalPermissionStrings.kt | 47 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND,
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/ |
D | BackgroundReadTest.java | 21 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 267 PKG_TEST_APP, READ_HEALTH_DATA_IN_BACKGROUND, mContext.getUser())); in grantBackgroundReadPermissionForTestApp() 274 PKG_TEST_APP, READ_HEALTH_DATA_IN_BACKGROUND, mContext.getUser())); in revokeBackgroundReadPermissionForTestApp() 282 assertThat(TestReceiver.getErrorMessage()).contains(READ_HEALTH_DATA_IN_BACKGROUND); in assertSecurityError()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/ |
D | HealthPermissionReaderTest.kt | 71 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND, in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions() 102 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in getDeclaredHealthPermissions_returnsAllPermissions() 119 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, in getDeclaredHealthPermissions_medicalFlagOn_returnsAllPermissions()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/ |
D | HomeFragment.kt | 43 import com.android.healthconnect.testapps.toolbox.Constants.READ_HEALTH_DATA_IN_BACKGROUND in <lambda>() 266 if (!isPermissionGranted(READ_HEALTH_DATA_IN_BACKGROUND)) { in <lambda>() 267 mRequestPermissionLauncher.launch(arrayOf(READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteTestHelper.java | 20 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 77 READ_HEALTH_DATA_IN_BACKGROUND, in assertCorrectHealthPermissions()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | DataPermissionEnforcer.java | 20 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 183 mContext.enforcePermission(READ_HEALTH_DATA_IN_BACKGROUND, pid, uid, errorMessage); in enforceBackgroundReadRestrictions()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/ |
D | HealthPermissionReader.kt | 58 listOf(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in <lambda>() 66 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/ |
D | AdditionalAccessViewModel.kt | 117 additionalPermissions.contains(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND)) { in <lambda>() 125 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>()
|
D | AdditionalAccessFragment.kt | 198 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/ |
D | GrantHealthPermissionUseCaseTest.kt | 53 useCase.invoke("TEST_APP", HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in invoke_withAdditionalPermission_callsHealthPermissionManager()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthPermissionsPresenceTest.java | 34 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 120 READ_HEALTH_DATA_IN_BACKGROUND,
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/ |
D | AdditionalAccessViewModelTest.kt | 22 import android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND 121 READ_HEALTH_DATA_IN_BACKGROUND, in setup() 134 READ_HEALTH_DATA_IN_BACKGROUND, in setup()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ |
D | Constants.kt | 155 const val READ_HEALTH_DATA_IN_BACKGROUND = 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/ |
D | HealthPermissionTest.kt | 92 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | DataPermissionEnforcerTest.java | 23 import static android.health.connect.HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND; 291 .enforcePermission(READ_HEALTH_DATA_IN_BACKGROUND, pid, uid, message); in testEnforceBackgroundReadRestrictions_permissionDenied_throwsSecurityException()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/ |
D | AdditionalPermissionsFragment.kt | 153 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND in <lambda>()
|
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/ |
D | HealthPermissionsTest.java | 64 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND,
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/ |
D | AppPermissionViewModelTest.kt | 99 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | HealthPermissions.java | 142 public static final String READ_HEALTH_DATA_IN_BACKGROUND = field in HealthPermissions
|