Home
last modified time | relevance | path

Searched refs:getHealthPermissionsFlags (Results 1 – 13 of 13) sorted by relevance

/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/
DHealthConnectWithManagePermissionsTest.java120 getHealthPermissionsFlags(DEFAULT_APP_PACKAGE, List.of(DEFAULT_PERM)); in testGrantHealthPermission_appHasPermissionDeclared_flagUserSetEnabled()
134 getHealthPermissionsFlags(DEFAULT_APP_PACKAGE, List.of(DEFAULT_PERM)); in testGrantHealthPermission_revokeTwiceThenGrant_flagUserSetEnabled()
141 permissionsFlags = getHealthPermissionsFlags(DEFAULT_APP_PACKAGE, List.of(DEFAULT_PERM)); in testGrantHealthPermission_revokeTwiceThenGrant_flagUserSetEnabled()
228 getHealthPermissionsFlags(DEFAULT_APP_PACKAGE, List.of(DEFAULT_PERM)); in testRevokeHealthPermission_firstRevoke_flagUserSetEnabled()
241 getHealthPermissionsFlags(DEFAULT_APP_PACKAGE, List.of(DEFAULT_PERM)); in testRevokeHealthPermission_grantThenRevoke_flagUserSetEnabled()
254 getHealthPermissionsFlags(DEFAULT_APP_PACKAGE, List.of(DEFAULT_PERM)); in testRevokeHealthPermission_secondRevoke_flagUserFixedEnabled()
346 getHealthPermissionsFlags( in testGetHealthPermissionsFlags_returnsFlags()
359 getHealthPermissionsFlags( in testGetHealthPermissionsFlags_invalidPermission_throwsException()
369 getHealthPermissionsFlags( in testGetHealthPermissionsFlags_nonHealthPermission_throwsException()
379 getHealthPermissionsFlags( in testGetHealthPermissionsFlags_undeclaredPermissions_throwsException()
[all …]
DHealthConnectWithoutManagePermissionsTest.java109 mHealthConnectManager.getHealthPermissionsFlags( in testGetHealthPermissionsFlags_noManageHealthPermissions_throwsSecurityException()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/api/
DHealthPermissionManagerImpl.kt29 override fun getHealthPermissionsFlags( in getHealthPermissionsFlags() method in com.android.healthconnect.controller.permissions.api.HealthPermissionManagerImpl
33 return manager.getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags()
DGetHealthPermissionsFlagsUseCase.kt35 healthPermissionManager.getHealthPermissionsFlags(packageName, permissions) in invoke()
DHealthPermissionManager.kt25 fun getHealthPermissionsFlags(packageName: String, permissions: List<String>): Map<String, Int> method
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DGetHealthPermissionsFlagsUseCaseTest.kt48 .getHealthPermissionsFlags( in invoke_callsHealthPermissionManager()
54 whenever(healthPermissionManager.getHealthPermissionsFlags(any(), any())) in invoke_whenHealthPermissionManagerFails_returnsEmptyMap()
DHealthPermissionManagerImplTest.kt56 healthPermissionManager.getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags_callsHealthConnectManager()
58 verify(healthConnectManager, times(1)).getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags_callsHealthConnectManager()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeHealthPermissionManager.kt40 override fun getHealthPermissionsFlags( in getHealthPermissionsFlags() method in com.android.healthconnect.controller.tests.utils.di.FakeHealthPermissionManager
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DMockedConnectedAppFragmentTest.kt177 healthPermissionManager.getHealthPermissionsFlags( in exerciseRoutesAskEveryTime_revokeExercise_lastReadPermission_doesNotShowDialog()
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DIHealthConnectService.aidl60 …Map getHealthPermissionsFlags(String packageName, in UserHandle user, in List<String> permissions); in getHealthPermissionsFlags() method
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DHealthConnectPermissionHelper.java200 public Map<String, Integer> getHealthPermissionsFlags( in getHealthPermissionsFlags() method in HealthConnectPermissionHelper
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectManager.java478 public Map<String, Integer> getHealthPermissionsFlags( in getHealthPermissionsFlags() method in HealthConnectManager
481 return mService.getHealthPermissionsFlags(packageName, mContext.getUser(), permissions); in getHealthPermissionsFlags()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java307 public Map<String, Integer> getHealthPermissionsFlags( in getHealthPermissionsFlags() method in HealthConnectServiceImpl
313 mPermissionHelper.getHealthPermissionsFlags(packageName, user, permissions); in getHealthPermissionsFlags()