/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | FactoryResetAccountsPreferenceControllerTest.java | 225 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/ |
D | DeviceAdminListPreferenceController.java | 136 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/ |
D | DeviceAdminListPreferenceController.java | 157 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/ |
D | AppStateAppOpsBridge.java | 98 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/ |
D | PhonePolicy.java | 432 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/ |
D | WifiHelper.java | 99 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/ |
D | LauncherModelHelper.java | 310 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/ |
D | GridBackupTable.java | 89 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/ |
D | AppStateAppOpsBridge.java | 193 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/ |
D | TrustedCredentialsFragment.java | 698 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 …]
|
D | Utils.java | 462 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()
|
D | MainClear.java | 491 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/ |
D | BluetoothConnectionRetryManager.java | 229 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/ |
D | RedactNotificationPreferenceController.java | 79 for (int profileId : profileIds) { in RedactNotificationPreferenceController() 80 if (profileId != UserHandle.myUserId()) { in RedactNotificationPreferenceController() 81 mProfileUserId = profileId; in RedactNotificationPreferenceController()
|
D | SoundWorkSettingsController.java | 305 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()
|
D | AudioHelper.java | 55 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() argument 56 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcPermissions.java | 49 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/ |
D | PairedBluetoothDevices.java | 294 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/ |
D | BluetoothPairingControllerTest.java | 268 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/ |
D | BluetoothTestUtils.java | 104 public TestLocalBluetoothProfile(int profileId) { in TestLocalBluetoothProfile() argument 105 mProfileId = profileId; in TestLocalBluetoothProfile()
|
/packages/apps/Car/Settings/src/com/android/car/settings/location/ |
D | LocationServicesPreferenceController.java | 101 private List<Preference> getSortedInjectedPreferences(int profileId) { in getSortedInjectedPreferences() argument 104 mSettingsInjector.getInjectedSettings(getContext(), profileId); in getSortedInjectedPreferences()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | SaveChosenLockWorkerBase.java | 121 public void setProfileToUnify(int profileId, LockscreenCredential credential) { in setProfileToUnify() argument 122 mUnificationProfileId = profileId; in setProfileToUnify()
|
D | ChooseLockGenericController.java | 140 public Builder setProfileToUnify(int profileId) { in setProfileToUnify() argument 141 mUnificationProfileId = profileId; in setProfileToUnify()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/ |
D | RestoreDbTaskTest.java | 151 MyDatabaseHelper(long profileId) { in MyDatabaseHelper() argument 153 mProfileId = profileId; in MyDatabaseHelper()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothProfileConnector.java | 116 BluetoothProfileConnector(BluetoothProfile profile, int profileId, String profileName, in BluetoothProfileConnector() argument 118 mProfileId = profileId; in BluetoothProfileConnector()
|