Home
last modified time | relevance | path

Searched refs:profileId (Results 1 – 25 of 31) 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.java157 final int profileId = profile.getIdentifier(); in refreshData() local
158 updateAvailableAdminsForProfile(profileId); in refreshData()
217 private void updateAvailableAdminsForProfile(final int profileId) { in updateAvailableAdminsForProfile() argument
224 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile()
225 addActiveAdminsForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
228 addDeviceAdminBroadcastReceiversForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
235 private void addActiveAdminsForProfile(List<ComponentName> activeAdmins, int profileId) { in addActiveAdminsForProfile() argument
247 PackageManager.MATCH_DIRECT_BOOT_AWARE, profileId); in addActiveAdminsForProfile()
272 Collection<ComponentName> alreadyAddedComponents, int profileId) { in addDeviceAdminBroadcastReceiversForProfile() argument
276 profileId); in addDeviceAdminBroadcastReceiversForProfile()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java98 int profileId = profile.getIdentifier(); in getPackageToStateMapsByProfileId() local
99 List<PackageInfo> packageInfos = getPackageInfos(profileId); in getPackageToStateMapsByProfileId()
101 entries.put(profileId, entriesForProfile); in getPackageToStateMapsByProfileId()
105 profileId); in getPackageToStateMapsByProfileId()
124 private List<PackageInfo> getPackageInfos(int profileId) throws RemoteException { in getPackageInfos() argument
126 PackageManager.GET_PERMISSIONS, profileId).getList(); in getPackageInfos()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DPhonePolicy.java432 private void processProfileStateChanged(BluetoothDevice device, int profileId, int nextState, in processProfileStateChanged() argument
434 debugLog("processProfileStateChanged, device=" + device + ", profile=" + profileId + ", " in processProfileStateChanged()
436 if (((profileId == BluetoothProfile.A2DP) || (profileId == BluetoothProfile.HEADSET) in processProfileStateChanged()
437 || (profileId == BluetoothProfile.LE_AUDIO) in processProfileStateChanged()
438 || (profileId == BluetoothProfile.CSIP_SET_COORDINATOR) in processProfileStateChanged()
439 || (profileId == BluetoothProfile.VOLUME_CONTROL))) { in processProfileStateChanged()
441 switch (profileId) { in processProfileStateChanged()
452 if (profileId == BluetoothProfile.A2DP in processProfileStateChanged()
470 private void processActiveDeviceChanged(BluetoothDevice device, int profileId) { in processActiveDeviceChanged() argument
471 debugLog("processActiveDeviceChanged, device=" + device + ", profile=" + profileId in processActiveDeviceChanged()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DWifiHelper.java99 for (int profileId : profileIds) { in getManagedProfileId()
100 if (profileId != parentUserId && um.isManagedProfile(profileId)) { in getManagedProfileId()
101 return profileId; in getManagedProfileId()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DLauncherModelHelper.java310 public int addItem(int type, int screen, int container, int x, int y, long profileId) { in addItem() argument
311 return addItem(type, screen, container, x, y, profileId, TEST_PACKAGE); in addItem()
329 public int addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument
334 addItem(type, screen, container, x, y, profileId, packageName, id, CONTENT_URI); in addItem()
338 public void addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument
348 values.put(LauncherSettings.Favorites.PROFILE_ID, profileId); in addItem()
359 addItem(APP_ICON, 0, id, 0, 0, profileId); in addItem()
392 public int[][][] createGrid(int[][][] typeArray, int startScreen, long profileId) { in createGrid() argument
411 typeArray[i][y][x], screenId, DESKTOP, x, y, profileId); in createGrid()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridBackupTable.java89 long profileId = UserCache.INSTANCE.get(mContext).getSerialNumberForUser( in createCustomBackupTable() local
91 copyTable(mDb, Favorites.TABLE_NAME, tableName, profileId); in createCustomBackupTable()
178 public void doBackup(long profileId, int options) { in doBackup() argument
179 copyTable(mDb, Favorites.TABLE_NAME, Favorites.BACKUP_TABLE_NAME, profileId); in doBackup()
/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/Settings/src/com/android/settings/
DTrustedCredentialsFragment.java698 int profileId = profile.getIdentifier(); in doInBackground() local
705 mKeyChainConnectionByProfileId.put(profileId, keyChainConnection); in doInBackground()
712 aliasesByProfileId.put(profileId, aliases); in doInBackground()
715 int profileId = profile.getIdentifier(); in doInBackground() local
716 List<String> aliases = aliasesByProfileId.get(profileId); in doInBackground()
722 profileId); in doInBackground()
725 certHoldersByProfile.put(profileId, new ArrayList<>(0)); in doInBackground()
735 mTab, alias, cert, profileId)); in doInBackground()
739 certHoldersByProfile.put(profileId, certHolders); in doInBackground()
835 int profileId) { in CertHolder() argument
[all …]
DUtils.java462 for (int profileId : profileIds) { in getManagedProfileId()
463 if (profileId != parentUserId) { in getManagedProfileId()
464 return profileId; in getManagedProfileId()
619 public static ApplicationInfo getAdminApplicationInfo(Context context, int profileId) { in getAdminApplicationInfo() argument
622 final ComponentName mdmPackage = dpm.getProfileOwnerAsUser(profileId); in getAdminApplicationInfo()
630 ipm.getApplicationInfo(mdmPackageName, 0, profileId); in getAdminApplicationInfo()
634 + ", userId " + profileId, e); in getAdminApplicationInfo()
DMainClear.java491 final int profileId = userInfo.id; in loadAccountList() local
492 final UserHandle userHandle = new UserHandle(profileId); in loadAccountList()
493 Account[] accounts = mgr.getAccountsAsUser(profileId); in loadAccountList()
501 .getAuthenticatorTypesAsUser(profileId); in loadAccountList()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothConnectionRetryManager.java229 int profileId = MANAGED_PROFILES[i]; in trackDevice() local
230 if (BluetoothUtils.isProfileSupported(device, profileId)) { in trackDevice()
233 Slogf.d(TAG, " %s", BluetoothUtils.getProfileName(profileId)); in trackDevice()
235 profileCounters.put(profileId, new RetryTokenAndCounter()); in trackDevice()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactNotificationPreferenceController.java79 for (int profileId : profileIds) { in RedactNotificationPreferenceController()
80 if (profileId != UserHandle.myUserId()) { in RedactNotificationPreferenceController()
81 mProfileUserId = profileId; in RedactNotificationPreferenceController()
DSoundWorkSettingsController.java305 public void onManagedProfileAdded(@UserIdInt int profileId) { in onManagedProfileAdded() argument
307 mManagedProfileId = profileId; in onManagedProfileAdded()
316 public void onManagedProfileRemoved(@UserIdInt int profileId) { in onManagedProfileRemoved() argument
317 if (mManagedProfileId == profileId) { in onManagedProfileRemoved()
DAudioHelper.java55 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() argument
56 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
/packages/apps/Nfc/src/com/android/nfc/
DNfcPermissions.java49 public static void validateProfileId(Context context, int profileId) { in validateProfileId() argument
57 if (profileId == uh.getIdentifier()) { in validateProfileId()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DPairedBluetoothDevices.java294 private LocalBluetoothProfile getProfile(CachedBluetoothDevice device, int profileId) { in getProfile() argument
296 if (profile.getProfileId() == profileId) { in getProfile()
304 int profileId) { in getBluetoothProfileToggleState() argument
305 LocalBluetoothProfile profile = getProfile(device, profileId); in getBluetoothProfileToggleState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingControllerTest.java268 int profileId = BluetoothProfile.HEADSET; in mockIsLeAudio() local
270 profileId = BluetoothProfile.LE_AUDIO; in mockIsLeAudio()
272 when(mLocalBluetoothProfile.getProfileId()).thenReturn(profileId); in mockIsLeAudio()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DBluetoothTestUtils.java104 public TestLocalBluetoothProfile(int profileId) { in TestLocalBluetoothProfile() argument
105 mProfileId = profileId; in TestLocalBluetoothProfile()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationServicesPreferenceController.java101 private List<Preference> getSortedInjectedPreferences(int profileId) { in getSortedInjectedPreferences() argument
104 mSettingsInjector.getInjectedSettings(getContext(), profileId); in getSortedInjectedPreferences()
/packages/apps/Settings/src/com/android/settings/password/
DSaveChosenLockWorkerBase.java121 public void setProfileToUnify(int profileId, LockscreenCredential credential) { in setProfileToUnify() argument
122 mUnificationProfileId = profileId; in setProfileToUnify()
DChooseLockGenericController.java140 public Builder setProfileToUnify(int profileId) { in setProfileToUnify() argument
141 mUnificationProfileId = profileId; in setProfileToUnify()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java151 MyDatabaseHelper(long profileId) { in MyDatabaseHelper() argument
153 mProfileId = profileId; in MyDatabaseHelper()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothProfileConnector.java116 BluetoothProfileConnector(BluetoothProfile profile, int profileId, String profileName, in BluetoothProfileConnector() argument
118 mProfileId = profileId; in BluetoothProfileConnector()

12