Home
last modified time | relevance | path

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

1234

/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
H A DFactoryResetAccountsPreferenceControllerTest.java226 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()
239 private void addDescription(int profileId, String accountName) { in addDescription() argument
241 if (!mAuthenticatorDescriptionMap.containsKey(profileId)) { in addDescription()
244 mAuthenticatorDescriptionMap.get(profileId).add( in addDescription()
260 int profileId = (Integer) args[0]; in updateAccountManagerMocks()
269 int profileId = (Integer) args[0]; in updateAccountManagerMocks()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
H A 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
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()
280 Collection<ComponentName> alreadyAddedComponents, int profileId) { in addDeviceAdminBroadcastReceiversForProfile() argument
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
H A 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
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()
273 Collection<ComponentName> alreadyAddedComponents, int profileId) { in addDeviceAdminBroadcastReceiversForProfile() argument
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DCrossProfileAppsServiceImpl.java342 for (final int profileId : enabledProfileIds) { in getTargetUserProfilesUnchecked()
343 if (profileId == userId) { in getTargetUserProfilesUnchecked()
346 if (!isPackageEnabled(packageName, profileId)) { in getTargetUserProfilesUnchecked()
349 targetProfiles.add(UserHandle.of(profileId)); in getTargetUserProfilesUnchecked()
455 for (int profileId : profileIds) {
456 if (!isPackageInstalled(packageName, profileId)) {
461 packageName, newMode, profileId, /* logMetrics= */ profileId == userId);
484 packageName, newMode, profileId, logMetrics);
497 + packageName + " on profile user ID " + profileId);
657 for (int profileId : profileIds) {
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DBaseLockSettingsServiceTests.java194 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument
196 profileId, null, null, UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in installChildProfile()
199 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
200 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(PRIMARY_USER_INFO); in installChildProfile()
201 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile()
202 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile()
203 when(mUserManagerInternal.isUserManaged(eq(profileId))).thenReturn(true); in installChildProfile()
207 private UserInfo installAndTurnOffChildProfile(int profileId) { in installAndTurnOffChildProfile() argument
208 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile()
210 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
H A 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()
/aosp12/packages/services/Car/service/src/com/android/car/
H A 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()
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSecurityControllerImpl.java172 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
173 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId); in getProfileOwnerName()
188 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() local
189 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileOrganizationName()
190 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
230 final int profileId = getWorkProfileUserId(mVpnUserId); in getWorkProfileVpnName() local
231 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileVpnName()
232 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
234 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
258 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2SwitchPreviewTest.java345 int profileId = camcorderProfileList[0]; in basicRecordingPreviewTestByCamera() local
346 if (!CamcorderProfile.hasProfile(cameraId, profileId) || in basicRecordingPreviewTestByCamera()
347 allowedUnsupported(cameraId, profileId)) { in basicRecordingPreviewTestByCamera()
351 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in basicRecordingPreviewTestByCamera()
363 assertTrue("Video size " + videoSz.toString() + " for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
366 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
436 private boolean allowedUnsupported(int cameraId, int profileId) { in allowedUnsupported() argument
441 switch(profileId) { in allowedUnsupported()
445 return !CamcorderProfile.hasProfile(cameraId, profileId) || in allowedUnsupported()
446 CamcorderProfile.get(cameraId, profileId).videoFrameWidth >= 1080; in allowedUnsupported()
H A DCamera2RecordingTest.java387 for (int profileId : camcorderProfileList) { in basicRecordingTestByCamera()
388 if (!CamcorderProfile.hasProfile(cameraId, profileId) || in basicRecordingTestByCamera()
389 allowedUnsupported(cameraId, profileId)) { in basicRecordingTestByCamera()
393 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in basicRecordingTestByCamera()
511 private boolean allowedUnsupported(int cameraId, int profileId) { in allowedUnsupported() argument
516 switch(profileId) { in allowedUnsupported()
520 return !CamcorderProfile.hasProfile(cameraId, profileId) || in allowedUnsupported()
545 for (int profileId : mCamcorderProfileList) { in videoSnapshotTestByCamera()
547 if (!CamcorderProfile.hasProfile(cameraId, profileId) || in videoSnapshotTestByCamera()
548 allowedUnsupported(cameraId, profileId)) { in videoSnapshotTestByCamera()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A 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()
H A DMetricsLogger.java37 public static void logProfileConnectionEvent(ProfileId profileId) { in logProfileConnectionEvent() argument
39 sProfileConnectionCounts.merge(profileId, 1, Integer::sum); in logProfileConnectionEvent()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A 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()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
H A DLauncherModelHelper.java306 public int addItem(int type, int screen, int container, int x, int y, long profileId) { in addItem() argument
307 return addItem(type, screen, container, x, y, profileId, TEST_PACKAGE); in addItem()
325 public int addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument
330 addItem(type, screen, container, x, y, profileId, packageName, id, CONTENT_URI); in addItem()
334 public void addItem(int type, int screen, int container, int x, int y, long profileId, in addItem() argument
344 values.put(LauncherSettings.Favorites.PROFILE_ID, profileId); in addItem()
355 addItem(APP_ICON, 0, id, 0, 0, profileId); in addItem()
382 public int[][][] createGrid(int[][][] typeArray, int startScreen, long profileId) { in createGrid() argument
401 typeArray[i][y][x], screenId, DESKTOP, x, y, profileId); in createGrid()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
H A DSettingsInjector.java126 final int profileId = userHandle.getIdentifier(); in getSettings() local
128 pm.queryIntentServicesAsUser(intent, PackageManager.GET_META_DATA, profileId); in getSettings()
130 Log.d(TAG, "Found services for profile id " + profileId + ": " + resolveInfos); in getSettings()
152 Log.d(TAG, "Loaded settings for profile id " + profileId + ": " + settings); in getSettings()
174 final int profileId) { in getInjectedSettings() argument
180 if (profileId == UserHandle.USER_CURRENT || profileId == userHandle.getIdentifier()) { in getInjectedSettings()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
H A DWifiConfigHelper.java305 for (int profileId : profileIds) { in getManagedProfileId()
306 if (profileId != parentUserId && um.isManagedProfile(profileId)) { in getManagedProfileId()
307 return profileId; in getManagedProfileId()
/aosp12/frameworks/base/core/java/android/app/admin/
H A DDevicePolicyManagerInternal.java53 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); in onCrossProfileWidgetProvidersChanged() argument
67 public abstract List<String> getCrossProfileWidgetProviders(int profileId); in getCrossProfileWidgetProviders() argument
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A DAudioHelper.java55 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() argument
56 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
H A DRedactNotificationPreferenceController.java79 for (int profileId : profileIds) { in RedactNotificationPreferenceController()
80 if (profileId != UserHandle.myUserId()) { in RedactNotificationPreferenceController()
81 mProfileUserId = profileId; in RedactNotificationPreferenceController()
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A 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 …]
/aosp12/frameworks/base/services/appwidget/java/com/android/server/appwidget/
H A DAppWidgetServiceImpl.java430 for (int profileId : profileIds) { in reloadWidgetsMaskedStateForGroup()
483 int profileId) { in updateWidgetPackageSuspensionMaskedState() argument
494 if (providerUserId != profileId in updateWidgetPackageSuspensionMaskedState()
624 for (int profileId : profileIds) { in ensureGroupStateLoadedLocked()
625 if (!mLoadedUserIds.get(profileId)) { in ensureGroupStateLoadedLocked()
627 newIds.add(profileId); in ensureGroupStateLoadedLocked()
1592 int profileId, String packageName) { in getInstalledProvidersForProfile() argument
3709 return isParentOrProfile(parentId, profileId) && isProfileEnabled(profileId); in isEnabledGroupProfile()
3841 if (parentId == profileId) { in isParentOrProfile()
3848 int profileId) { in isProviderInCallerOrInProfileAndWhitelListed() argument
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/location/
H A DLocationServicesPreferenceController.java100 private List<Preference> getSortedInjectedPreferences(int profileId) { in getSortedInjectedPreferences() argument
103 mSettingsInjector.getInjectedSettings(getContext(), profileId); in getSortedInjectedPreferences()

1234