Home
last modified time | relevance | path

Searched refs:getDeclaredHealthPermissions (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/additionalaccess/
DLoadDeclaredHealthPermissionUseCaseTest.kt48 whenever(healthPermissionReader.getDeclaredHealthPermissions(TEST_APP_PACKAGE_NAME)).then { in setup()
57 verify(healthPermissionReader).getDeclaredHealthPermissions(safeEq(TEST_APP_PACKAGE_NAME)) in execute_callsGetHealthPermissions()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthPermissionReader.kt140 val permissions = getDeclaredHealthPermissions(packageName) in <lambda>()
148 fun getDeclaredHealthPermissions(packageName: String): List<String> { in <lambda>() method in com.android.healthconnect.controller.shared.HealthPermissionReader
161 return getDeclaredHealthPermissions(packageName).filter { perm -> in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DLoadDeclaredHealthPermissionUseCase.kt30 return healthPermissionReader.getDeclaredHealthPermissions(packageName) in invoke()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthPermissionReaderTest.kt92 assertThat(permissionReader.getDeclaredHealthPermissions(TEST_APP_PACKAGE_NAME)) in getDeclaredHealthPermissions_returnsAllPermissions()
109 assertThat(permissionReader.getDeclaredHealthPermissions(TEST_APP_PACKAGE_NAME)) in getDeclaredHealthPermissions_medicalFlagOn_returnsAllPermissions()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DExerciseRouteRequestTest.kt35 import android.healthconnect.cts.utils.PermissionHelper.getDeclaredHealthPermissions
341 assertThat(getDeclaredHealthPermissions(context.packageName)) in requestRoute_readRoutesPermissionNotDeclared_doesNotShowDialog_returnsNull()
358 assertThat(getDeclaredHealthPermissions(context.packageName)) in requestRoute_ownSession_readRoutesPermissionNotDeclared_doesNotShowDialog_returnsNull()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DPermissionHelper.java62 public static List<String> getDeclaredHealthPermissions(String pkgName) { in getDeclaredHealthPermissions() method in PermissionHelper
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DRequestPermissionViewModel.kt341 val declaredPermissions = healthPermissionReader.getDeclaredHealthPermissions(packageName) in <lambda>()