Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DSatelliteAccessControllerTest.kt155 RoleManager.ROLE_SMS, in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
158 mRoleHolderChangedListener.onRoleHoldersChanged(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
163 .`when`(mDeps).getRoleHoldersAsUser(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
164 mRoleHolderChangedListener.onRoleHoldersChanged(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
169 RoleManager.ROLE_SMS, in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
172 mRoleHolderChangedListener.onRoleHoldersChanged(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
177 RoleManager.ROLE_SMS, in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
180 mRoleHolderChangedListener.onRoleHoldersChanged(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser()
188 RoleManager.ROLE_SMS, in test_onRoleHoldersChanged_NoSatelliteCommunicationPermission()
191 mRoleHolderChangedListener.onRoleHoldersChanged(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_NoSatelliteCommunicationPermission()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DDefaultAppsPreferenceControllerTest.java94 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_allAvailable_shouldReturnAll()
106 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer()
117 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_browserAndSmsAvailable_shouldReturnBrowserAndSms()
129 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_dialerAndSmsAvailable_shouldReturnDialerAndSms()
141 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_browserAvailable_shouldReturnBrowser()
152 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_dialerAvailable_shouldReturnDialer()
163 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_smsAvailable_shouldReturnSms()
175 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_noneAvailable_shouldReturnNull()
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleManagerTest.java105 private static final String ROLE_SMS_NAME = RoleManager.ROLE_SMS;
270 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in requestRoleThenBlockRequestRoleDialogByRestrictedSettingDialog()
522 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetCurrentSdkAndChangeDefaultSmsThenDeniedAutomatically()
558 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsAndAllowThenIsDefaultSms()
592 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsForAnotherAppThenDeniedAutomatically()
655 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultSms()
657 addRoleHolder(RoleManager.ROLE_SMS, APP_28_PACKAGE_NAME); in targetSdk28AndChangeDefaultSmsForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultSms()
1136 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in smsRoleHasHolder()
1138 assertThat(getRoleHolders(RoleManager.ROLE_SMS)).isNotEmpty(); in smsRoleHasHolder()
1143 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in addSmsRoleHolderThenPermissionIsGranted()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRequestRoleActivity.java278 mRoleName = RoleManager.ROLE_SMS; in handleSmsDefaultDialogCompatibility()
289 RoleManager.ROLE_SMS, Process.myUserHandle(), this) in handleSmsDefaultDialogCompatibility()
303 RoleManager.ROLE_SMS)); in handleSmsDefaultDialogCompatibility()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DDefaultSmsShortcutPreferenceController.java26 super(context, KEY, RoleManager.ROLE_SMS, packageName); in DefaultSmsShortcutPreferenceController()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DSatelliteAccessController.java72 if (RoleManager.ROLE_SMS.equals(role)) { in onRoleHoldersChanged()
178 mDeps.getRoleHoldersAsUser(RoleManager.ROLE_SMS, userHandle); in onRoleSmsChanged()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DDefaultAppShortcuts.kt36 DefaultAppShortcut(RoleManager.ROLE_SMS, R.string.sms_application_title),
/packages/modules/Permission/framework-s/api/
Dcurrent.txt16 field public static final String ROLE_SMS = "android.app.role.SMS";
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultAppsPreferenceController.java77 final CharSequence defaultSmsLabel = getDefaultAppLabel(RoleManager.ROLE_SMS); in getSummary()
/packages/services/Telephony/tests/src/com/android/phone/
DRcsProvisioningMonitorTest.java288 when(mRoleManager.getRoleHolders(eq(RoleManager.ROLE_SMS))).thenReturn(dmas); in setUp()
882 when(mRoleManager.getRoleHolders(eq(RoleManager.ROLE_SMS))).thenReturn(dmas); in updateDefaultMessageApplication()
884 RoleManager.ROLE_SMS, UserHandle.ALL)); in updateDefaultMessageApplication()
/packages/services/Telephony/src/com/android/phone/
DRcsProvisioningMonitor.java142 if (RoleManager.ROLE_SMS.equals(role)) { in onRoleHoldersChanged()
882 return CollectionUtils.firstOrNull(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)); in getDmaPackageName()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DSipTransportController.java875 if (!RoleManager.ROLE_SMS.equals(roleName)) { in onRoleHoldersChanged()
902 newSmsRolePackageName = mRoleManagerAdapter.getRoleHolders(RoleManager.ROLE_SMS) in updateRoleCache()
/packages/modules/Permission/service/java/com/android/ecm/
DEnhancedConfirmationService.java137 PROTECTED_SETTINGS.add(RoleManager.ROLE_SMS);
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java113 defaultApplicationRoles.add(RoleManager.ROLE_SMS);
926 packageName = CollectionUtils.firstOrNull(getRoleHoldersAsUser(RoleManager.ROLE_SMS, in getSmsRoleHolder()
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipTransportControllerTest.java131 doReturn(mSmsPackageName).when(mMockRoleManager).getRoleHolders(RoleManager.ROLE_SMS); in setUp()
951 c.onRoleHoldersChanged(RoleManager.ROLE_SMS, UserHandle.SYSTEM); in setSmsRoleAndEvaluate()
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleManager.java109 public static final String ROLE_SMS = "android.app.role.SMS"; field in RoleManager