Searched refs:roleManager (Results 1 – 8 of 8) sorted by relevance
46 val roleManager = context.getSystemService(RoleManager::class.java)!! in makeSelfActivityRecognizer() constant47 oldActivityRecognizers = roleManager.getRoleHolders( in makeSelfActivityRecognizer()49 roleManager.isBypassingRoleQualification = true in makeSelfActivityRecognizer()61 val roleManager = context.getSystemService(RoleManager::class.java)!! in restoreActivityRecognizers() constant62 roleManager.isBypassingRoleQualification = false in restoreActivityRecognizers()77 val roleManager = context.getSystemService(RoleManager::class.java)!! in addActivityRecognizer() constant78 roleManager.addRoleHolderAsUser(RoleManager.ROLE_SYSTEM_ACTIVITY_RECOGNIZER, in addActivityRecognizer()
46 RoleManager roleManager = context.getSystemService(RoleManager.class); in ensureDefaultSmsApp() local54 roleManager.addRoleHolderAsUser( in ensureDefaultSmsApp()81 RoleManager roleManager = context.getSystemService(RoleManager.class); in stopBeingDefaultSmsApp() local89 roleManager.removeRoleHolderAsUser( in stopBeingDefaultSmsApp()
38 RoleManager roleManager = getSystemService(RoleManager.class); in onCreate() local39 Intent intent = roleManager.createRequestRoleIntent(roleName); in onCreate()
65 final RoleManager roleManager = context.getSystemService(RoleManager.class); in cannotGetSmsRoleHolderForAnotherUser() local66 final Field serviceField = roleManager.getClass().getDeclaredField("mService"); in cannotGetSmsRoleHolderForAnotherUser()68 final Object roleService = serviceField.get(roleManager); in cannotGetSmsRoleHolderForAnotherUser()
54 private val roleManager: RoleManager = context.getSystemService(RoleManager::class.java)!! constant in android.app.role.cts.RoleControllerManagerTest99 roleManager.isApplicationVisibleForRole( in assertAppIsVisibleForRole()125 roleManager.isRoleVisible( in isRoleVisible()
74 final RoleManager roleManager = mActivity.getSystemService(RoleManager.class); in DefaultDialerChanger()75 final Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_DIALER); in DefaultDialerChanger()
316 RoleManager roleManager = mInstrumentation.getContext() in setDefaultSmsApp() local321 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(roleManager, in setDefaultSmsApp()328 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(roleManager, in setDefaultSmsApp()342 RoleManager roleManager = mInstrumentation.getContext() in getDefaultSmsApp() local344 List<String> result = ShellIdentityUtils.invokeMethodWithShellPermissions(roleManager, in getDefaultSmsApp()
572 RoleManager roleManager = context.getSystemService(RoleManager.class); in setSmsApp() local574 if (roleManager.getRoleHoldersAsUser(RoleManager.ROLE_SMS, in setSmsApp()578 roleManager.addRoleHolderAsUser(RoleManager.ROLE_SMS, pkg, in setSmsApp()