Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceController.java139 final int profileId = profiles.get(i).getIdentifier(); in updateState() local
140 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId)); in updateState()
160 final int profileId = profile.getIdentifier(); in refreshData() local
161 updateAvailableAdminsForProfile(profileId); in refreshData()
220 private void updateAvailableAdminsForProfile(final int profileId) { in updateAvailableAdminsForProfile() argument
227 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile()
228 addActiveAdminsForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
231 addDeviceAdminBroadcastReceiversForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
238 private void addActiveAdminsForProfile(List<ComponentName> activeAdmins, int profileId) { in addActiveAdminsForProfile() argument
250 PackageManager.MATCH_DIRECT_BOOT_AWARE, profileId); in addActiveAdminsForProfile()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceController.java140 final int profileId = profiles.get(i).getIdentifier(); in updateState() local
141 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId)); in updateState()
161 final int profileId = profile.getIdentifier(); in refreshData() local
162 updateAvailableAdminsForProfile(profileId); in refreshData()
221 private void updateAvailableAdminsForProfile(final int profileId) { in updateAvailableAdminsForProfile() argument
228 final List<ComponentName> activeAdminsForProfile = mDPM.getActiveAdminsAsUser(profileId); in updateAvailableAdminsForProfile()
229 addActiveAdminsForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
232 addDeviceAdminBroadcastReceiversForProfile(activeAdminsForProfile, profileId); in updateAvailableAdminsForProfile()
239 private void addActiveAdminsForProfile(List<ComponentName> activeAdmins, int profileId) { in addActiveAdminsForProfile() argument
251 PackageManager.MATCH_DIRECT_BOOT_AWARE, profileId); in addActiveAdminsForProfile()
[all …]
/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.java271 private void processProfileStateChanged(BluetoothDevice device, int profileId, int nextState, in processProfileStateChanged() argument
273 debugLog("processProfileStateChanged, device=" + device + ", profile=" + profileId + ", " in processProfileStateChanged()
275 if (((profileId == BluetoothProfile.A2DP) || (profileId == BluetoothProfile.HEADSET))) { in processProfileStateChanged()
277 switch (profileId) { in processProfileStateChanged()
309 private void processProfileActiveDeviceChanged(BluetoothDevice activeDevice, int profileId) { in processProfileActiveDeviceChanged() argument
311 + profileId); in processProfileActiveDeviceChanged()
312 switch (profileId) { in processProfileActiveDeviceChanged()
DMetricsLogger.java37 public static void logProfileConnectionEvent(ProfileId profileId) { in logProfileConnectionEvent() argument
39 sProfileConnectionCounts.merge(profileId, 1, Integer::sum); in logProfileConnectionEvent()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java177 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateAppOpsBridge.java177 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/Car/Settings/src/com/android/car/settings/location/
DLocationServicesPreferenceController.java75 int profileId = UserHandle.USER_CURRENT; in onCreateInternal() local
76 List<Preference> injectedSettings = getSortedInjectedPreferences(profileId); in onCreateInternal()
104 private List<Preference> getSortedInjectedPreferences(int profileId) { in getSortedInjectedPreferences() argument
107 mSettingsInjector.getInjectedSettings(getContext(), profileId); in getSortedInjectedPreferences()
/packages/services/Car/service/src/com/android/car/
DCarBluetoothService.java233 for (int profileId : sManagedProfiles) { in createBluetoothProfileDeviceManagers()
235 mContext, mUserId, mCarBluetoothUserService, profileId); in createBluetoothProfileDeviceManagers()
238 + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagers()
241 mProfileDeviceManagers.put(profileId, deviceManager); in createBluetoothProfileDeviceManagers()
242 logd("Created profile device manager for " + Utils.getProfileName(profileId)); in createBluetoothProfileDeviceManagers()
DBluetoothProfileDeviceManager.java278 ICarBluetoothUserService bluetoothUserProxies, int profileId) { in create() argument
281 profileId); in create()
299 ICarBluetoothUserService bluetoothUserProxies, int profileId) { in BluetoothProfileDeviceManager() argument
305 BluetoothProfileInfo bpi = sProfileActions.get(profileId); in BluetoothProfileDeviceManager()
307 throw new IllegalArgumentException("Provided profile " + Utils.getProfileName(profileId) in BluetoothProfileDeviceManager()
310 mProfileId = profileId; in BluetoothProfileDeviceManager()
/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.java434 for (int profileId : profileIds) { in getManagedProfileId()
435 if (profileId != parentUserId) { in getManagedProfileId()
436 return profileId; in getManagedProfileId()
591 public static ApplicationInfo getAdminApplicationInfo(Context context, int profileId) { in getAdminApplicationInfo() argument
594 ComponentName mdmPackage = dpm.getProfileOwnerAsUser(profileId); in getAdminApplicationInfo()
602 ipm.getApplicationInfo(mdmPackageName, 0, profileId); in getAdminApplicationInfo()
606 + ", userId " + profileId, e); in getAdminApplicationInfo()
DMasterClear.java470 final int profileId = userInfo.id; in loadAccountList() local
471 final UserHandle userHandle = new UserHandle(profileId); in loadAccountList()
472 Account[] accounts = mgr.getAccountsAsUser(profileId); in loadAccountList()
480 .getAuthenticatorTypesAsUser(profileId); in loadAccountList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
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.java439 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()
DMasterClear.java471 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/Settings/src/com/android/settings/notification/
DWorkSoundPreferenceController.java296 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()
DAudioHelper.java55 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() argument
56 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DWorkSoundPreferenceController.java296 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()
DAudioHelper.java53 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() argument
54 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearAccountsPreferenceControllerTest.java194 private void addAccountAndDescription(int profileId, String accountName) { in addAccountAndDescription() argument
196 getShadowAccountManager().addAccountAsUser(profileId, new Account(accountName, type)); in addAccountAndDescription()
197 getShadowAccountManager().addAuthenticatorAsUser(profileId, in addAccountAndDescription()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java84 MyDatabaseHelper(long profileId) { in MyDatabaseHelper() argument
86 mProfileId = profileId; in MyDatabaseHelper()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DImportDataTask.java103 String profileId = Long.toString(UserManagerCompat.getInstance(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.java503 final int profileId = profile.getIdentifier(); in getAlwaysOnAppVpnInfos() local
504 final String packageName = mConnectivityManager.getAlwaysOnVpnPackageForUser(profileId); in getAlwaysOnAppVpnInfos()
506 result.add(new AppVpnInfo(profileId, packageName)); in getAlwaysOnAppVpnInfos()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DVpnSettings.java503 final int profileId = profile.getIdentifier(); in getAlwaysOnAppVpnInfos() local
504 final String packageName = mConnectivityManager.getAlwaysOnVpnPackageForUser(profileId); in getAlwaysOnAppVpnInfos()
506 result.add(new AppVpnInfo(profileId, packageName)); in getAlwaysOnAppVpnInfos()

12