/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/ |
D | DeviceAdminListPreferenceController.java | 133 final int profileId = profiles.get(i).getIdentifier(); in updateState() local 134 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId)); in updateState() 154 final int profileId = profile.getIdentifier(); in refreshData() local 155 updateAvailableAdminsForProfile(profileId); in refreshData() 212 private void updateAvailableAdminsForProfile(final int profileId) { in updateAvailableAdminsForProfile() argument 219 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile() 220 addActiveAdminsForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile() 223 addDeviceAdminBroadcastReceiversForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile() 230 private void addActiveAdminsForProfile(List<ComponentName> activeAdmins, int profileId) { in addActiveAdminsForProfile() argument 242 PackageManager.MATCH_DIRECT_BOOT_AWARE, profileId); in addActiveAdminsForProfile() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminListPreferenceController.java | 137 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() 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() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarBluetoothService.java | 258 for (int profileId : sManagedProfiles) { in createBluetoothProfileDeviceManagersLocked() 259 BluetoothProfileDeviceManager deviceManager = mProfileDeviceManagers.get(profileId); in createBluetoothProfileDeviceManagersLocked() 262 mProfileDeviceManagers.remove(profileId); in createBluetoothProfileDeviceManagersLocked() 264 + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagersLocked() 268 mCarBluetoothUserService, profileId); in createBluetoothProfileDeviceManagersLocked() 271 + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagersLocked() 274 mProfileDeviceManagers.put(profileId, deviceManager); in createBluetoothProfileDeviceManagersLocked() 275 logd("Created profile device manager for " + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagersLocked()
|
D | BluetoothProfileDeviceManager.java | 294 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/ |
D | AppStateAppOpsBridge.java | 95 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/ |
D | PhonePolicy.java | 303 private void processProfileStateChanged(BluetoothDevice device, int profileId, int nextState, in processProfileStateChanged() argument 305 debugLog("processProfileStateChanged, device=" + device + ", profile=" + profileId + ", " in processProfileStateChanged() 307 if (((profileId == BluetoothProfile.A2DP) || (profileId == BluetoothProfile.HEADSET))) { in processProfileStateChanged() 309 switch (profileId) { in processProfileStateChanged() 320 if (profileId == BluetoothProfile.A2DP) { in processProfileStateChanged() 334 private void processActiveDeviceChanged(BluetoothDevice device, int profileId) { in processActiveDeviceChanged() argument 335 debugLog("processActiveDeviceChanged, device=" + device + ", profile=" + profileId); in processActiveDeviceChanged() 338 mAdapterService.getDatabase().setConnection(device, profileId == BluetoothProfile.A2DP); in processActiveDeviceChanged()
|
D | MetricsLogger.java | 37 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/ |
D | LauncherModelHelper.java | 240 public int addItem(int type, int screen, int container, int x, int y, long profileId) { in addItem() argument 241 return addItem(type, screen, container, x, y, profileId, TEST_PACKAGE); in addItem() 259 public int addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument 265 addItem(type, screen, container, x, y, profileId, packageName, id, CONTENT_URI); in addItem() 269 public void addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument 281 values.put(LauncherSettings.Favorites.PROFILE_ID, profileId); in addItem() 292 addItem(APP_ICON, 0, id, 0, 0, profileId); in addItem() 320 public int[][][] createGrid(int[][][] typeArray, int startScreen, long profileId) { in createGrid() argument 340 typeArray[i][y][x], screenId, DESKTOP, x, y, profileId); in createGrid()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateAppOpsBridge.java | 177 final int profileId = profile.getIdentifier(); in getEntries() local 178 entries.put(profileId, entriesForProfile); in getEntries() 181 profileId); in getEntries() 209 final int profileId = profile.getIdentifier(); in loadPermissionsStates() local 210 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId); in loadPermissionsStates() 217 profileId).getList(); in loadPermissionsStates()
|
/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 | TrustedCredentialsSettings.java | 707 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 …]
|
D | Utils.java | 432 for (int profileId : profileIds) { in getManagedProfileId() 433 if (profileId != parentUserId) { in getManagedProfileId() 434 return profileId; in getManagedProfileId() 576 public static ApplicationInfo getAdminApplicationInfo(Context context, int profileId) { in getAdminApplicationInfo() argument 579 final ComponentName mdmPackage = dpm.getProfileOwnerAsUser(profileId); in getAdminApplicationInfo() 587 ipm.getApplicationInfo(mdmPackageName, 0, profileId); in getAdminApplicationInfo() 591 + ", userId " + profileId, e); in getAdminApplicationInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | TrustedCredentialsSettings.java | 707 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 …]
|
D | Utils.java | 439 for (int profileId : profileIds) { in getManagedProfileId() 440 if (profileId != parentUserId) { in getManagedProfileId() 441 return profileId; in getManagedProfileId() 596 public static ApplicationInfo getAdminApplicationInfo(Context context, int profileId) { in getAdminApplicationInfo() argument 599 ComponentName mdmPackage = dpm.getProfileOwnerAsUser(profileId); in getAdminApplicationInfo() 607 ipm.getApplicationInfo(mdmPackageName, 0, profileId); in getAdminApplicationInfo() 611 + ", userId " + profileId, e); in getAdminApplicationInfo()
|
D | MasterClear.java | 471 final int profileId = userInfo.id; in loadAccountList() local 472 final UserHandle userHandle = new UserHandle(profileId); in loadAccountList() 473 Account[] accounts = mgr.getAccountsAsUser(profileId); in loadAccountList() 481 .getAuthenticatorTypesAsUser(profileId); in loadAccountList()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridBackupTable.java | 134 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | WorkSoundPreferenceController.java | 296 public void onManagedProfileAdded(@UserIdInt int profileId) { in onManagedProfileAdded() argument 298 mManagedProfileId = profileId; in onManagedProfileAdded() 303 public void onManagedProfileRemoved(@UserIdInt int profileId) { in onManagedProfileRemoved() argument 304 if (mManagedProfileId == profileId) { in onManagedProfileRemoved()
|
D | AudioHelper.java | 53 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() argument 54 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | WorkSoundPreferenceController.java | 296 public void onManagedProfileAdded(@UserIdInt int profileId) { in onManagedProfileAdded() argument 298 mManagedProfileId = profileId; in onManagedProfileAdded() 303 public void onManagedProfileRemoved(@UserIdInt int profileId) { in onManagedProfileRemoved() argument 304 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/Car/Settings/tests/robotests/src/com/android/car/settings/system/ |
D | MasterClearAccountsPreferenceControllerTest.java | 170 private void addAccountAndDescription(int profileId, String accountName) { in addAccountAndDescription() argument 172 getShadowAccountManager().addAccountAsUser(profileId, new Account(accountName, type)); in addAccountAndDescription() 173 getShadowAccountManager().addAuthenticatorAsUser(profileId, in addAccountAndDescription()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSettingsFragmentTest.java | 160 private void addAccountAndDescription(int profileId, String accountName, int labelId) { in addAccountAndDescription() argument 162 getShadowAccountManager().addAccountAsUser(profileId, new Account(accountName, type)); in addAccountAndDescription() 163 getShadowAccountManager().addAuthenticatorAsUser(profileId, in addAccountAndDescription()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/provider/ |
D | RestoreDbTaskTest.java | 97 MyDatabaseHelper(long profileId) { in MyDatabaseHelper() argument 99 mProfileId = profileId; in MyDatabaseHelper()
|
/packages/apps/Car/Settings/src/com/android/car/settings/location/ |
D | LocationServicesPreferenceController.java | 100 private List<Preference> getSortedInjectedPreferences(int profileId) { in getSortedInjectedPreferences() argument 103 mSettingsInjector.getInjectedSettings(getContext(), profileId); in getSortedInjectedPreferences()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | SaveChosenLockWorkerBase.java | 122 public void setProfileToUnify(int profileId, LockscreenCredential credential) { in setProfileToUnify() argument 123 mUnificationProfileId = profileId; in setProfileToUnify()
|