Home
last modified time | relevance | path

Searched refs:isHealthPermission (Results 1 – 10 of 10) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java365 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testUpdateHealthDataPriority_ifWritePermissionsForApp_doesNotRemoveApp()
781 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testOldReSyncHealthDataPriorityTable_maintainsExistingOrdering()
853 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testOldReSyncHealthDataPriorityTable_addsNewApps_withWritePermission()
918 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testOldReSyncHealthDataPriorityTable_removesApps_withoutWritePermissionAndData()
986 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testNewReSyncHealthDataPriorityTable_emptyListAndNoContributingApps_remainsEmpty()
1056 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testNewReSyncHealthDataPriorityTable_emptyList_populateContributingApps()
1126 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testNewReSyncHealthDataPriorityTable_oneEmptyList_leaveNonEmptyListsUnchanged()
1201 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testNewReSyncHealthDataPriorityTable_newWritePermission_doesNotUpdateTable()
1271 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testNewReSyncHealthDataPriorityTable_someAppsNoDataNopermission_removesApps()
1341 when(HealthConnectManager.isHealthPermission(any(), any())).thenReturn(true); in testNewReSyncHealthDataPriorityTable_noDataNorPermission_removesApps()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/logging/
DUsageStatsCollector.java132 if (HealthConnectManager.isHealthPermission( in hasRequestedHealthPermission()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/
DDailyLoggingServiceTest.java97 .when(() -> HealthConnectManager.isHealthPermission(mContext, HEALTH_PERMISSION)); in mockStatsLog()
101 HealthConnectManager.isHealthPermission( in mockStatsLog()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DPackageInfoUtils.java145 if (HealthConnectManager.isHealthPermission(context, currPerm) in anyRequestedHealthPermissionGranted()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java28 import static android.health.connect.HealthConnectManager.isHealthPermission;
204 assertThat(isHealthPermission(context, HealthPermissions.READ_ACTIVE_CALORIES_BURNED)) in testIsHealthPermission_forHealthPermission_returnsTrue()
206 assertThat(isHealthPermission(context, HealthPermissions.READ_ACTIVE_CALORIES_BURNED)) in testIsHealthPermission_forHealthPermission_returnsTrue()
213 assertThat(isHealthPermission(context, HealthPermissions.MANAGE_HEALTH_PERMISSIONS)) in testIsHealthPermission_forNonHealthGroupPermission_returnsFalse()
215 assertThat(isHealthPermission(context, CAMERA)).isFalse(); in testIsHealthPermission_forNonHealthGroupPermission_returnsFalse()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DPermissionMapping.kt350 fun isHealthPermission(permissionName: String): Boolean { in isHealthPermission() method
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt38 import android.health.connect.HealthConnectManager.isHealthPermission in <lambda>()
1106 .filter { permission -> isHealthPermission(activity, permission) } in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissions.java952 if (!HealthConnectManager.isHealthPermission(context, currPerm)) { in getDataCategoriesWithWritePermissionsForPackage()
DHealthConnectManager.java2014 public static boolean isHealthPermission(
/packages/modules/HealthFitness/framework/api/
Dsystem-current.txt59 …method public static boolean isHealthPermission(@NonNull android.content.Context, @NonNull String);