/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceControllerTest.java | 25 import android.app.role.RoleManager; 53 private RoleManager mRoleManager; 68 when(mContext.getSystemService(RoleManager.class)).thenReturn(mRoleManager); in setUp() 90 when(mRoleManager.getRoleHolders(RoleManager.ROLE_BROWSER)).thenReturn( in getSummary_allAvailable_shouldReturnAll() 92 when(mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER)).thenReturn( in getSummary_allAvailable_shouldReturnAll() 94 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_allAvailable_shouldReturnAll() 102 when(mRoleManager.getRoleHolders(RoleManager.ROLE_BROWSER)).thenReturn( in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer() 104 when(mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER)).thenReturn( in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer() 106 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer() 113 when(mRoleManager.getRoleHolders(RoleManager.ROLE_BROWSER)).thenReturn( in getSummary_browserAndSmsAvailable_shouldReturnBrowserAndSms() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | ButtonRoleHolderControllerTest.java | 28 import android.app.role.RoleManager; 70 private RoleManager mRoleManager; 103 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in addAllButtonsWithRoleName_roleAssigned_appIconEnabled_useAssignedAppIcon() 113 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in addAllButtonsWithRoleName_roleUnassigned_appIconEnabled_useDefaultIcon() 123 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_currentUser_appIconEnabled_useAssignedAppIcon() 127 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_currentUser_appIconEnabled_useAssignedAppIcon() 130 mControllerUnderTest.onRoleChanged(RoleManager.ROLE_ASSISTANT, TEST_CURRENT_USER); in onRoleChanged_currentUser_appIconEnabled_useAssignedAppIcon() 138 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_nonCurrentUser_appIconEnabled_iconIsNotUpdated() 143 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_nonCurrentUser_appIconEnabled_iconIsNotUpdated() 146 mControllerUnderTest.onRoleChanged(RoleManager.ROLE_ASSISTANT, TEST_NON_CURRENT_USER); in onRoleChanged_nonCurrentUser_appIconEnabled_iconIsNotUpdated() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
D | RequestRoleActivity.java | 19 import android.app.role.RoleManager; 144 RoleManager roleManager = getSystemService(RoleManager.class); in onCreate() 199 mRoleName = RoleManager.ROLE_DIALER; in handleChangeDefaultDialerDialogCompatibility() 213 RoleManager roleManager = getSystemService(RoleManager.class); in handleChangeDefaultDialerDialogCompatibility() 215 RoleManager.ROLE_DIALER)); in handleChangeDefaultDialerDialogCompatibility() 242 mRoleName = RoleManager.ROLE_SMS; in handleSmsDefaultDialogCompatibility() 253 RoleManager.ROLE_SMS, Process.myUserHandle(), this) in handleSmsDefaultDialogCompatibility() 265 RoleManager roleManager = getSystemService(RoleManager.class); in handleSmsDefaultDialogCompatibility() 267 RoleManager.ROLE_SMS)); in handleSmsDefaultDialogCompatibility()
|
D | RoleLiveData.java | 20 import android.app.role.RoleManager; 63 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onActive() 69 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onInactive() 81 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in loadValueInBackground()
|
D | RoleListLiveData.java | 20 import android.app.role.RoleManager; 63 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onActive() 70 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onInactive() 86 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in loadValueInBackground()
|
D | ManageRoleHolderStateLiveData.java | 19 import android.app.role.RoleManager; 83 RoleManager roleManager = context.getSystemService(RoleManager.class); in setRoleHolderAsUser() 133 RoleManager roleManager = context.getSystemService(RoleManager.class); in clearRoleHoldersAsUser()
|
D | HomeSettingsActivity.java | 20 import android.app.role.RoleManager; 34 Intent intent = DefaultAppActivity.createIntent(RoleManager.ROLE_HOME, in onCreate()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceController.java | 19 import android.app.role.RoleManager; 36 private final RoleManager mRoleManager; 42 mRoleManager = context.getSystemService(RoleManager.class); in DefaultAppsPreferenceController() 53 final CharSequence defaultBrowserLabel = getDefaultAppLabel(RoleManager.ROLE_BROWSER); in getSummary() 57 final CharSequence defaultPhoneLabel = getDefaultAppLabel(RoleManager.ROLE_DIALER); in getSummary() 61 final CharSequence defaultSmsLabel = getDefaultAppLabel(RoleManager.ROLE_SMS); in getSummary()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/service/ |
D | RoleControllerServiceImpl.java | 20 import android.app.role.RoleManager; 49 private RoleManager mRoleManager; 55 mRoleManager = getSystemService(RoleManager.class); in onCreate() 192 if (!checkFlags(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP)) { in onAddRoleHolder() 234 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onAddRoleHolder() 251 if (!checkFlags(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP)) { in onRemoveRoleHolder() 265 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onRemoveRoleHolder() 285 if (!checkFlags(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP)) { in onClearRoleHolders() 299 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onClearRoleHolders()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RoleManagerAdapterImpl.java | 19 import android.app.role.RoleManager; 35 private static final String ROLE_CALL_REDIRECTION_APP = RoleManager.ROLE_CALL_REDIRECTION; 36 private static final String ROLE_CALL_SCREENING = RoleManager.ROLE_CALL_SCREENING; 37 private static final String ROLE_DIALER = RoleManager.ROLE_DIALER; 44 private RoleManager mRoleManager; 47 public RoleManagerAdapterImpl(Context context, RoleManager roleManager) { in RoleManagerAdapterImpl()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyAssistanceHelper.java | 19 import android.app.role.RoleManager; 121 List<String> roleHolders = context.getSystemService(RoleManager.class) in getDefaultEmergencyPackage() 122 .getRoleHolders(RoleManager.ROLE_EMERGENCY); in getDefaultEmergencyPackage() 132 context.getSystemService(RoleManager.class).addRoleHolderAsUser( in setDefaultEmergencyPackageAsync() 133 RoleManager.ROLE_EMERGENCY, pkgName, 0, Process.myUserHandle(), in setDefaultEmergencyPackageAsync()
|
/packages/modules/Permission/framework-s/java/android/app/role/ |
D | RoleControllerService.java | 187 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) { 193 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) { 199 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) { 233 @RoleManager.ManageHoldersFlags int flags); 249 @NonNull String packageName, @RoleManager.ManageHoldersFlags int flags); 263 @RoleManager.ManageHoldersFlags int flags);
|
D | RoleFrameworkInitializer.java | 44 SystemServiceRegistry.registerContextAwareService(Context.ROLE_SERVICE, RoleManager.class, in registerServiceWrappers() 45 (context, serviceBinder) -> new RoleManager(context, in registerServiceWrappers()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | NotificationBackendTest.java | 27 import android.app.role.RoleManager; 94 roles.add(RoleManager.ROLE_DIALER); in testMarkAppRow_defaultPackage() 95 RoleManager rm = mock(RoleManager.class); in testMarkAppRow_defaultPackage() 111 roles.add(RoleManager.ROLE_HOME); in testMarkAppRow_notDefaultPackage() 112 RoleManager rm = mock(RoleManager.class); in testMarkAppRow_notDefaultPackage()
|
/packages/modules/Permission/service/java/com/android/role/ |
D | RoleService.java | 30 import android.app.role.RoleManager; 416 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in addRoleHolderAsUser() 437 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in removeRoleHolderAsUser() 458 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in clearRoleHoldersAsUser() 536 RoleManager.PERMISSION_MANAGE_ROLES_FROM_CONTROLLER, in setRoleNamesFromController() 549 RoleManager.PERMISSION_MANAGE_ROLES_FROM_CONTROLLER, in addRoleHolderFromController() 563 RoleManager.PERMISSION_MANAGE_ROLES_FROM_CONTROLLER, in removeRoleHolderFromController() 576 RoleManager.PERMISSION_MANAGE_ROLES_FROM_CONTROLLER, in getHeldRolesFromController() 636 return CollectionUtils.firstOrNull(getRoleHoldersAsUser(RoleManager.ROLE_BROWSER, in getBrowserRoleHolder() 688 addRoleHolderAsUser(RoleManager.ROLE_BROWSER, packageName, 0, userId, callback); in setBrowserRoleHolder() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | ButtonRoleHolderController.java | 21 import android.app.role.RoleManager; 55 private final RoleManager mRoleManager; 63 RoleManager roleManager, CarDeviceProvisionedController deviceController) { in ButtonRoleHolderController() 111 if (RoleManager.ROLE_ASSISTANT.equals(roleName) in onRoleChanged()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 17 import android.app.role.RoleManager; 42 private final RoleManager mRoleManager; 57 mRoleManager = context.getSystemService(RoleManager.class); in DefaultAppShortcutPreferenceControllerBase()
|
D | DefaultBrowserShortcutPreferenceController.java | 17 import android.app.role.RoleManager; 26 super(context, KEY, RoleManager.ROLE_BROWSER, packageName); in DefaultBrowserShortcutPreferenceController()
|
D | DefaultSmsShortcutPreferenceController.java | 17 import android.app.role.RoleManager; 26 super(context, KEY, RoleManager.ROLE_SMS, packageName); in DefaultSmsShortcutPreferenceController()
|
D | DefaultHomeShortcutPreferenceController.java | 17 import android.app.role.RoleManager; 26 super(context, KEY, RoleManager.ROLE_HOME, packageName); in DefaultHomeShortcutPreferenceController()
|
D | DefaultPhoneShortcutPreferenceController.java | 17 import android.app.role.RoleManager; 26 super(context, KEY, RoleManager.ROLE_DIALER, packageName); in DefaultPhoneShortcutPreferenceController()
|
D | DefaultEmergencyShortcutPreferenceController.java | 17 import android.app.role.RoleManager; 26 super(context, KEY, RoleManager.ROLE_EMERGENCY, packageName); in DefaultEmergencyShortcutPreferenceController()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationBackend.java | 29 import android.app.role.RoleManager; 107 RoleManager roleManager, PackageInfo app) { in loadAppRow() 113 void recordCanBeBlocked(Context context, PackageManager pm, RoleManager rm, PackageInfo app, in recordCanBeBlocked() 117 if (roles.contains(RoleManager.ROLE_DIALER) in recordCanBeBlocked() 118 || roles.contains(RoleManager.ROLE_EMERGENCY)) { in recordCanBeBlocked() 177 RoleManager rm = context.getSystemService(RoleManager.class); in isSystemApp()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/ |
D | RoleManagerCompat.java | 19 import android.app.role.RoleManager; 35 public static boolean isBypassingRoleQualification(@NonNull RoleManager roleManager) { in isBypassingRoleQualification()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | SelfManagedCallingActivity.java | 25 import android.app.role.RoleManager; 323 RoleManager roleManager = (RoleManager) getSystemService(ROLE_SERVICE); in requestCallScreeningRole() 324 Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_CALL_SCREENING); in requestCallScreeningRole()
|