/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceControllerTest.java | 53 private RoleManager mRoleManager; field in DefaultAppsPreferenceControllerTest 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() 115 when(mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER)).thenReturn( in getSummary_browserAndSmsAvailable_shouldReturnBrowserAndSms() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/service/ |
D | RoleControllerServiceImpl.java | 51 private RoleManager mRoleManager; field in RoleControllerServiceImpl 57 mRoleManager = getSystemService(RoleManager.class); in onCreate() 82 if (!mRoleManager.isRoleAvailable(roleName)) { in onGrantDefaultRoles() 90 mRoleManager.setRoleNamesFromController(roleNames); in onGrantDefaultRoles() 109 List<String> currentPackageNames = mRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles() 130 currentPackageNames = mRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles() 163 currentPackageNames = mRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles() 213 List<String> currentPackageNames = mRoleManager.getRoleHolders(roleName); in onAddRoleHolder() 328 added = mRoleManager.addRoleHolderFromController(roleName, packageName); in addRoleHolderInternal() 350 boolean removed = mRoleManager.removeRoleHolderFromController(roleName, packageName); in removeRoleHolderInternal() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RoleManagerAdapterImpl.java | 44 private RoleManager mRoleManager; field in RoleManagerAdapterImpl 49 mRoleManager = roleManager; in RoleManagerAdapterImpl() 88 mRoleManager.addOnRoleHoldersChangedListenerAsUser(executor, (roleName, user) -> in observeDefaultDialerApp() 119 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(ROLE_CALL_SCREENING, in getRoleManagerCallScreeningApp() 128 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(ROLE_DIALER, in getRoleManagerDefaultDialerApp() 142 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(ROLE_CALL_REDIRECTION_APP, in getRoleManagerCallRedirectionApp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBaseTest.java | 64 private RoleManager mRoleManager; field in DefaultAppShortcutPreferenceControllerBaseTest 79 shadowApplication.setSystemService(Context.ROLE_SERVICE, mRoleManager); in setUp() 173 when(mRoleManager.getRoleHolders(eq(TEST_ROLE_NAME))).thenReturn(Collections.singletonList( in updateState_isRoleHolder_shouldSetSummaryToYes() 183 when(mRoleManager.getRoleHolders(eq(TEST_ROLE_NAME))).thenReturn(Collections.emptyList()); in updateState_notRoleHoler_shouldSetSummaryToNo()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceController.java | 34 private final RoleManager mRoleManager; field in DefaultAppsPreferenceController 40 mRoleManager = context.getSystemService(RoleManager.class); in DefaultAppsPreferenceController() 70 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | DefaultAppsPreferenceController.java | 34 private final RoleManager mRoleManager; field in DefaultAppsPreferenceController 40 mRoleManager = context.getSystemService(RoleManager.class); in DefaultAppsPreferenceController() 70 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 44 private final RoleManager mRoleManager; field in DefaultAppShortcutPreferenceControllerBase 59 mRoleManager = context.getSystemService(RoleManager.class); in DefaultAppShortcutPreferenceControllerBase() 123 final String packageName = CollectionUtils.firstOrNull(mRoleManager.getRoleHolders( in isDefaultApp()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 44 private final RoleManager mRoleManager; field in DefaultAppShortcutPreferenceControllerBase 59 mRoleManager = context.getSystemService(RoleManager.class); in DefaultAppShortcutPreferenceControllerBase() 123 final String packageName = CollectionUtils.firstOrNull(mRoleManager.getRoleHolders( in isDefaultApp()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | ComponentContextFixture.java | 203 return mRoleManager; in getSystemService() 476 private final RoleManager mRoleManager = mock(RoleManager.class);
|