Searched refs:setAsRoleHolder (Results 1 – 8 of 8) sorted by relevance
61 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getDeviceId_smsAppReturnsSameValue()75 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getImei_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()89 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getMeid_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()103 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getSubscriberId_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()117 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getSimSerialNumber_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()131 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getNai_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
197 .setAsRoleHolder(ROLE_FINANCED_DEVICE_KIOSK); in setUpFinancedDeviceKioskRole()
135 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in setPersonalAppsSuspended_smsApp_canStartActivity()
303 return sTestAppWithLauncherActivity.pkg().setAsRoleHolder(RoleManager.ROLE_HOME); in setTestAppAsDefaultLauncher()
59 roleHolderPackage.setAsRoleHolder(mRole, mUser); in close()
175 RoleContext c = smsApp.testApp().pkg().setAsRoleHolder(ROLE_SMS, workProfileUser)) { in sendTextMessage_fromWorkProfile_allManagedSubscriptions_smsSentSuccessfully()214 RoleContext c1 = personalSmsApp.testApp().pkg().setAsRoleHolder(ROLE_SMS, in sendTextMessage_fromPersonalProfile_allManagedSubscriptions_errorUserNotAllowed()219 RoleContext c2 = workSmsApp.testApp().pkg().setAsRoleHolder(ROLE_SMS, in sendTextMessage_fromPersonalProfile_allManagedSubscriptions_errorUserNotAllowed()277 RoleContext c = smsApp.testApp().pkg().setAsRoleHolder(ROLE_SMS, workProfileUser)) { in allManagedSubscriptions_accessWorkMessageFromPersonalProfile_fails()323 RoleContext c = smsApp.testApp().pkg().setAsRoleHolder(ROLE_SMS, workProfileUser)) { in allManagedSubscriptions_accessWorkMessageFromWorkProfile_works()
1001 public RoleContext setAsRoleHolder(String role) { in setAsRoleHolder() method in Package1002 return setAsRoleHolder(role, TestApis.users().instrumented()); in setAsRoleHolder()1010 public RoleContext setAsRoleHolder(String role, UserReference user) { in setAsRoleHolder() method in Package
552 return pkg.setAsRoleHolder(RoleManager.ROLE_DEVICE_POLICY_MANAGEMENT, user) in <lambda>()