/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | SatelliteAccessControllerTest.kt | 155 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/ |
D | DefaultAppsPreferenceControllerTest.java | 94 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/ |
D | RoleManagerTest.java | 105 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/ |
D | RequestRoleActivity.java | 278 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/ |
D | DefaultSmsShortcutPreferenceController.java | 26 super(context, KEY, RoleManager.ROLE_SMS, packageName); in DefaultSmsShortcutPreferenceController()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | SatelliteAccessController.java | 72 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/ |
D | DefaultAppShortcuts.kt | 36 DefaultAppShortcut(RoleManager.ROLE_SMS, R.string.sms_application_title),
|
/packages/modules/Permission/framework-s/api/ |
D | current.txt | 16 field public static final String ROLE_SMS = "android.app.role.SMS";
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceController.java | 77 final CharSequence defaultSmsLabel = getDefaultAppLabel(RoleManager.ROLE_SMS); in getSummary()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | RcsProvisioningMonitorTest.java | 288 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/ |
D | RcsProvisioningMonitor.java | 142 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/ |
D | SipTransportController.java | 875 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/ |
D | EnhancedConfirmationService.java | 137 PROTECTED_SETTINGS.add(RoleManager.ROLE_SMS);
|
/packages/modules/Permission/service/java/com/android/role/ |
D | RoleService.java | 113 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/ |
D | SipTransportControllerTest.java | 131 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/ |
D | RoleManager.java | 109 public static final String ROLE_SMS = "android.app.role.SMS"; field in RoleManager
|