Home
last modified time | relevance | path

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

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/permissions/
DAdditionalPermissionsRequestUITest.kt56 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/
DRequestPermissionViewModelTest.kt23 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 …]
DAdditionalPermissionsFragmentTest.kt97 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()
DMockedPermissionsActivityTest.kt31 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 …]
DPermissionsActivityTest.kt36 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/
DHealthPermission.kt27 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()
DAdditionalPermissionStrings.kt47 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND,
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/
DBackgroundReadTest.java21 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/
DHealthPermissionReaderTest.kt71 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/
DHomeFragment.kt43 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/
DExerciseRouteTestHelper.java20 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/
DDataPermissionEnforcer.java20 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/
DHealthPermissionReader.kt58 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/
DAdditionalAccessViewModel.kt117 additionalPermissions.contains(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND)) { in <lambda>()
125 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>()
DAdditionalAccessFragment.kt198 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND, in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DGrantHealthPermissionUseCaseTest.kt53 useCase.invoke("TEST_APP", HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) in invoke_withAdditionalPermission_callsHealthPermissionManager()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionsPresenceTest.java34 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/
DAdditionalAccessViewModelTest.kt22 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/
DConstants.kt155 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/
DHealthPermissionTest.kt92 .isEqualTo(AdditionalPermission(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND)) in <lambda>()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DDataPermissionEnforcerTest.java23 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/
DAdditionalPermissionsFragment.kt153 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND in <lambda>()
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthPermissionsTest.java64 HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DAppPermissionViewModelTest.kt99 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissions.java142 public static final String READ_HEALTH_DATA_IN_BACKGROUND = field in HealthPermissions

12