Home
last modified time | relevance | path

Searched refs:profileId (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetAccountsPreferenceControllerTest.java225 private void addAccountAndDescription(int profileId, String accountName) { in addAccountAndDescription() argument
226 addDescription(profileId, accountName); in addAccountAndDescription()
227 addAccount(profileId, accountName); in addAccountAndDescription()
230 private void addAccount(int profileId, String accountName) { in addAccount() argument
232 if (!mAccountMap.containsKey(profileId)) { in addAccount()
233 mAccountMap.put(profileId, new ArrayList<>()); in addAccount()
235 mAccountMap.get(profileId).add(new Account(accountName, type)); in addAccount()
239 private void addDescription(int profileId, String accountName) { in addDescription() argument
241 if (!mAuthenticatorDescriptionMap.containsKey(profileId)) { in addDescription()
242 mAuthenticatorDescriptionMap.put(profileId, new ArrayList<>()); in addDescription()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminListPreferenceController.java136 final int profileId = profiles.get(i).getIdentifier(); in updateState() local
137 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId)); in updateState()
167 final int profileId = profile.getIdentifier(); in refreshData() local
168 updateAvailableAdminsForProfile(profileId); in refreshData()
226 private void updateAvailableAdminsForProfile(final int profileId) { in updateAvailableAdminsForProfile() argument
233 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile()
234 addActiveAdminsForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
237 addDeviceAdminBroadcastReceiversForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
244 private void addActiveAdminsForProfile(List<ComponentName> activeAdmins, int profileId) { in addActiveAdminsForProfile() argument
255 | PackageManager.MATCH_DIRECT_BOOT_AWARE, profileId); in addActiveAdminsForProfile()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceController.java137 final int profileId = profiles.get(i).getIdentifier(); in updateState() local
138 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId)); in updateState()
158 final int profileId = profile.getIdentifier(); in refreshData() local
159 updateAvailableAdminsForProfile(profileId); in refreshData()
218 private void updateAvailableAdminsForProfile(final int profileId) { in updateAvailableAdminsForProfile() argument
225 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile()
226 addActiveAdminsForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
229 addDeviceAdminBroadcastReceiversForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
236 private void addActiveAdminsForProfile(List<ComponentName> activeAdmins, int profileId) { in addActiveAdminsForProfile() argument
248 PackageManager.MATCH_DIRECT_BOOT_AWARE, profileId); in addActiveAdminsForProfile()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarBluetoothService.java260 for (int profileId : sManagedProfiles) { in createBluetoothProfileDeviceManagersLocked()
261 BluetoothProfileDeviceManager deviceManager = mProfileDeviceManagers.get(profileId); in createBluetoothProfileDeviceManagersLocked()
264 mProfileDeviceManagers.remove(profileId); in createBluetoothProfileDeviceManagersLocked()
266 + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagersLocked()
270 mCarBluetoothUserService, profileId); in createBluetoothProfileDeviceManagersLocked()
273 + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagersLocked()
276 mProfileDeviceManagers.put(profileId, deviceManager); in createBluetoothProfileDeviceManagersLocked()
277 logd("Created profile device manager for " + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagersLocked()
DBluetoothProfileDeviceManager.java294 ICarBluetoothUserService bluetoothUserProxies, int profileId) { in create() argument
297 profileId); in create()
315 ICarBluetoothUserService bluetoothUserProxies, int profileId) { in BluetoothProfileDeviceManager() argument
321 BluetoothProfileInfo bpi = sProfileActions.get(profileId); in BluetoothProfileDeviceManager()
323 throw new IllegalArgumentException("Provided profile " + Utils.getProfileName(profileId) in BluetoothProfileDeviceManager()
326 mProfileId = profileId; in BluetoothProfileDeviceManager()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java95 int profileId = profile.getIdentifier(); in getPackageToStateMapsByProfileId() local
96 List<PackageInfo> packageInfos = getPackageInfos(profileId); in getPackageToStateMapsByProfileId()
98 entries.put(profileId, entriesForProfile); in getPackageToStateMapsByProfileId()
102 profileId); in getPackageToStateMapsByProfileId()
121 private List<PackageInfo> getPackageInfos(int profileId) throws RemoteException { in getPackageInfos() argument
123 PackageManager.GET_PERMISSIONS, profileId).getList(); in getPackageInfos()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DPhonePolicy.java328 private void processProfileStateChanged(BluetoothDevice device, int profileId, int nextState, in processProfileStateChanged() argument
330 debugLog("processProfileStateChanged, device=" + device + ", profile=" + profileId + ", " in processProfileStateChanged()
332 if (((profileId == BluetoothProfile.A2DP) || (profileId == BluetoothProfile.HEADSET) in processProfileStateChanged()
333 || (profileId == BluetoothProfile.LE_AUDIO))) { in processProfileStateChanged()
335 switch (profileId) { in processProfileStateChanged()
346 if (profileId == BluetoothProfile.A2DP) { in processProfileStateChanged()
360 private void processActiveDeviceChanged(BluetoothDevice device, int profileId) { in processActiveDeviceChanged() argument
361 debugLog("processActiveDeviceChanged, device=" + device + ", profile=" + profileId); in processActiveDeviceChanged()
364 mDatabaseManager.setConnection(device, profileId == BluetoothProfile.A2DP); in processActiveDeviceChanged()
DMetricsLogger.java37 public static void logProfileConnectionEvent(ProfileId profileId) { in logProfileConnectionEvent() argument
39 sProfileConnectionCounts.merge(profileId, 1, Integer::sum); in logProfileConnectionEvent()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DLauncherModelHelper.java242 public int addItem(int type, int screen, int container, int x, int y, long profileId) { in addItem() argument
243 return addItem(type, screen, container, x, y, profileId, TEST_PACKAGE); in addItem()
261 public int addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument
267 addItem(type, screen, container, x, y, profileId, packageName, id, CONTENT_URI); in addItem()
271 public void addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument
283 values.put(LauncherSettings.Favorites.PROFILE_ID, profileId); in addItem()
294 addItem(APP_ICON, 0, id, 0, 0, profileId); in addItem()
322 public int[][][] createGrid(int[][][] typeArray, int startScreen, long profileId) { in createGrid() argument
342 typeArray[i][y][x], screenId, DESKTOP, x, y, profileId); in createGrid()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java193 final int profileId = profile.getIdentifier(); in getEntries() local
194 entries.put(profileId, entriesForProfile); in getEntries()
197 profileId); in getEntries()
225 final int profileId = profile.getIdentifier(); in loadPermissionsStates() local
226 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId); in loadPermissionsStates()
233 profileId).getList(); in loadPermissionsStates()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridBackupTable.java134 long profileId = UserCache.INSTANCE.get(mContext).getSerialNumberForUser( in createCustomBackupTable() local
136 copyTable(mDb, Favorites.TABLE_NAME, tableName, profileId); in createCustomBackupTable()
223 public void doBackup(long profileId, int options) { in doBackup() argument
224 copyTable(mDb, Favorites.TABLE_NAME, Favorites.BACKUP_TABLE_NAME, profileId); in doBackup()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsSettings.java707 int profileId = profile.getIdentifier(); in doInBackground() local
714 mKeyChainConnectionByProfileId.put(profileId, keyChainConnection); in doInBackground()
721 aliasesByProfileId.put(profileId, aliases); in doInBackground()
725 int profileId = profile.getIdentifier(); in doInBackground() local
726 List<String> aliases = aliasesByProfileId.get(profileId); in doInBackground()
731 profileId); in doInBackground()
734 certHoldersByProfile.put(profileId, new ArrayList<CertHolder>(0)); in doInBackground()
746 mTab, alias, cert, profileId)); in doInBackground()
750 certHoldersByProfile.put(profileId, certHolders); in doInBackground()
843 int profileId) { in CertHolder() argument
[all …]
DUtils.java463 for (int profileId : profileIds) { in getManagedProfileId()
464 if (profileId != parentUserId) { in getManagedProfileId()
465 return profileId; in getManagedProfileId()
620 public static ApplicationInfo getAdminApplicationInfo(Context context, int profileId) { in getAdminApplicationInfo() argument
623 final ComponentName mdmPackage = dpm.getProfileOwnerAsUser(profileId); in getAdminApplicationInfo()
631 ipm.getApplicationInfo(mdmPackageName, 0, profileId); in getAdminApplicationInfo()
635 + ", userId " + profileId, e); in getAdminApplicationInfo()
DMainClear.java478 final int profileId = userInfo.id; in loadAccountList() local
479 final UserHandle userHandle = new UserHandle(profileId); in loadAccountList()
480 Account[] accounts = mgr.getAccountsAsUser(profileId); in loadAccountList()
488 .getAuthenticatorTypesAsUser(profileId); in loadAccountList()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java305 for (int profileId : profileIds) { in getManagedProfileId()
306 if (profileId != parentUserId && um.isManagedProfile(profileId)) { in getManagedProfileId()
307 return profileId; in getManagedProfileId()
/packages/apps/Settings/src/com/android/settings/notification/
DSoundWorkSettingsController.java294 public void onManagedProfileAdded(@UserIdInt int profileId) { in onManagedProfileAdded() argument
296 mManagedProfileId = profileId; in onManagedProfileAdded()
305 public void onManagedProfileRemoved(@UserIdInt int profileId) { in onManagedProfileRemoved() argument
306 if (mManagedProfileId == profileId) { in onManagedProfileRemoved()
DRedactNotificationPreferenceController.java78 for (int profileId : profileIds) { in RedactNotificationPreferenceController()
79 if (profileId != UserHandle.myUserId()) { in RedactNotificationPreferenceController()
80 mProfileUserId = profileId; in RedactNotificationPreferenceController()
DAudioHelper.java55 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() argument
56 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java97 MyDatabaseHelper(long profileId) { in MyDatabaseHelper() argument
99 mProfileId = profileId; in MyDatabaseHelper()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationServicesPreferenceController.java100 private List<Preference> getSortedInjectedPreferences(int profileId) { in getSortedInjectedPreferences() argument
103 mSettingsInjector.getInjectedSettings(getContext(), profileId); in getSortedInjectedPreferences()
/packages/apps/Settings/src/com/android/settings/password/
DSaveChosenLockWorkerBase.java119 public void setProfileToUnify(int profileId, LockscreenCredential credential) { in setProfileToUnify() argument
120 mUnificationProfileId = profileId; in setProfileToUnify()
DChooseLockGenericController.java140 public Builder setProfileToUnify(int profileId) { in setProfileToUnify() argument
141 mUnificationProfileId = profileId; in setProfileToUnify()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DImportDataTask.java103 String profileId = Long.toString(UserCache.INSTANCE.get(mContext) in importWorkspaceItems() local
112 new String[]{profileId}, in importWorkspaceItems() argument
133 Favorites.PROFILE_ID + " = ?", new String[]{profileId}, in importWorkspaceItems() argument
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java504 final int profileId = profile.getIdentifier(); in getAlwaysOnAppVpnInfos() local
505 final String packageName = mVpnManager.getAlwaysOnVpnPackageForUser(profileId); in getAlwaysOnAppVpnInfos()
507 result.add(new AppVpnInfo(profileId, packageName)); in getAlwaysOnAppVpnInfos()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceControllerTest.java320 TestLocalBluetoothProfile(int profileId) { in TestLocalBluetoothProfile() argument
321 mProfileId = profileId; in TestLocalBluetoothProfile()

12