Home
last modified time | relevance | path

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

/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/
DGrantRevokeTests.kt86 private const val BG_PERM_NAME = Manifest.permission.ACCESS_BACKGROUND_LOCATION constant
371 perms[FG_PERM_2_NAME] = createMockPerm(pkg, FG_PERM_2_NAME, BG_PERM_NAME) in grantTwoPermTest()
423 val pkg = createMockPackage(mapOf(FG_PERM_NAME to true, BG_PERM_NAME to false)) in grantBgPermTest()
425 perms[FG_PERM_NAME] = createMockPerm(pkg, FG_PERM_NAME, BG_PERM_NAME) in grantBgPermTest()
426 perms[BG_PERM_NAME] = createMockPerm(pkg, BG_PERM_NAME, null, listOf(FG_PERM_NAME)) in grantBgPermTest()
433 verifyPermissionState(permName = BG_PERM_NAME, expectPermChange = true, in grantBgPermTest()
440 BG_PERM_NAME to (true to newFlags)) in grantBgPermTest()
451 val pkg = createMockPackage(mapOf(FG_PERM_NAME to false, BG_PERM_NAME to false)) in grantBgAndFgPermTest()
453 perms[FG_PERM_NAME] = createMockPerm(pkg, FG_PERM_NAME, BG_PERM_NAME) in grantBgAndFgPermTest()
454 perms[BG_PERM_NAME] = createMockPerm(pkg, BG_PERM_NAME, null, listOf(FG_PERM_NAME)) in grantBgAndFgPermTest()
[all …]