Searched refs:revokeAllPermissions (Results 1 – 10 of 10) sorted by relevance
32 import static android.healthconnect.cts.utils.PermissionHelper.revokeAllPermissions;137 revokeAllPermissions(packageName, /* reason= */ "for test"); in testGetChangeLogs_somePermissionsAreNotGranted_expectError()
41 import static android.healthconnect.cts.utils.PermissionHelper.revokeAllPermissions;185 revokeAllPermissions(packageName, /* reason= */ "for test"); in testGetChangeLogs_noPermissions_expectError()202 revokeAllPermissions(packageName, /* reason= */ "for test"); in testGetChangeLogs_noPermissions_expectError()
143 public static void revokeAllPermissions(String packageName, @Nullable String reason) { in revokeAllPermissions() method in PermissionHelper159 revokeAllPermissions(packageName, reason); in revokeAllPermissionsWithDelay()
21 import static android.healthconnect.cts.utils.PermissionHelper.revokeAllPermissions;242 revokeAllPermissions(TEST_APP_1_PACKAGE_NAME, ""); in testPermissionRestoredBeforeHCRestore_expectGrantTimeIsRestoredCorrectly()295 revokeAllPermissions(TEST_APP_1_PACKAGE_NAME, ""); in testPermissionsRestoredAfterHCRestore_expectGrantTimeIsRestoredCorrectly()
276 public void revokeAllPermissions() { in revokeAllPermissions() method in TestContext
308 fun revokeAllPermissions(packageName: String): Boolean { in <lambda>() method in com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
198 if (!viewModel.revokeAllPermissions(packageName)) { in <lambda>()
196 val permissionsUpdated = appPermissionViewModel.revokeAllPermissions(packageName) in <lambda>()
168 mContext.revokeAllPermissions(); in tearDown()
540 val result = appPermissionViewModel.revokeAllPermissions(TEST_APP_PACKAGE_NAME) in <lambda>()