Home
last modified time | relevance | path

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

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDeviceIdentifiersTest.java61 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()
DCheckFinancedTest.java197 .setAsRoleHolder(ROLE_FINANCED_DEVICE_KIOSK); in setUpFinancedDeviceKioskRole()
DPersonalAppsSuspensionTest.java135 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in setPersonalAppsSuspended_smsApp_canStartActivity()
DQuietModeTest.java303 return sTestAppWithLauncherActivity.pkg().setAsRoleHolder(RoleManager.ROLE_HOME); in setTestAppAsDefaultLauncher()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/roles/
DRoleContext.java59 roleHolderPackage.setAsRoleHolder(mRole, mUser); in close()
/cts/tests/devicepolicy/telephony/src/android/devicepolicy/cts/telephony/
DWorkProfileTelephonyTest.java175 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()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java1001 public RoleContext setAsRoleHolder(String role) { in setAsRoleHolder() method in Package
1002 return setAsRoleHolder(role, TestApis.users().instrumented()); in setAsRoleHolder()
1010 public RoleContext setAsRoleHolder(String role, UserReference user) { in setAsRoleHolder() method in Package
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.kt552 return pkg.setAsRoleHolder(RoleManager.ROLE_DEVICE_POLICY_MANAGEMENT, user) in <lambda>()