Searched refs:isHealthPermission (Results 1 – 10 of 10) sorted by relevance
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/ |
D | HealthDataCategoryPriorityHelperTest.java | 365 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/ |
D | UsageStatsCollector.java | 132 if (HealthConnectManager.isHealthPermission( in hasRequestedHealthPermission()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/ |
D | DailyLoggingServiceTest.java | 97 .when(() -> HealthConnectManager.isHealthPermission(mContext, HEALTH_PERMISSION)); in mockStatsLog() 101 HealthConnectManager.isHealthPermission( in mockStatsLog()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | PackageInfoUtils.java | 145 if (HealthConnectManager.isHealthPermission(context, currPerm) in anyRequestedHealthPermissionGranted()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectManagerTest.java | 28 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/ |
D | PermissionMapping.kt | 350 fun isHealthPermission(permissionName: String): Boolean { in isHealthPermission() method
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | GrantPermissionsViewModel.kt | 38 import android.health.connect.HealthConnectManager.isHealthPermission in <lambda>() 1106 .filter { permission -> isHealthPermission(activity, permission) } in <lambda>()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | HealthPermissions.java | 952 if (!HealthConnectManager.isHealthPermission(context, currPerm)) { in getDataCategoriesWithWritePermissionsForPackage()
|
D | HealthConnectManager.java | 2014 public static boolean isHealthPermission(
|
/packages/modules/HealthFitness/framework/api/ |
D | system-current.txt | 59 …method public static boolean isHealthPermission(@NonNull android.content.Context, @NonNull String);
|