Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DBaseLockSettingsServiceTests.java277 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument
282 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
284 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile()
285 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile()
286 when(mUserManagerInternal.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
288 when(mUserManagerInternal.isUserManaged(eq(profileId))).thenReturn(true); in installChildProfile()
289 when(mDeviceStateCache.isUserOrganizationManaged(eq(profileId))) in installChildProfile()
294 private UserInfo installAndTurnOffChildProfile(int profileId) { in installAndTurnOffChildProfile() argument
295 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile()
297 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/
H A DBluetoothLogger.kt28 fun logActiveDeviceChanged(address: String?, profileId: Int) =
34 int1 = profileId
61 fun logProfileConnectionStateChanged(address: String?, state: String, profileId: Int) =
68 int1 = profileId
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DCrossProfileAppsServiceImpl.java356 for (final int profileId : enabledProfileIds) { in getTargetUserProfilesUnchecked()
357 if (profileId == userId) { in getTargetUserProfilesUnchecked()
360 if (!isPackageEnabled(packageName, profileId)) { in getTargetUserProfilesUnchecked()
363 targetProfiles.add(UserHandle.of(profileId)); in getTargetUserProfilesUnchecked()
470 for (int profileId : profileIds) {
471 if (!isPackageInstalled(packageName, profileId)) {
476 packageName, newMode, profileId, /* logMetrics= */ profileId == userId);
499 packageName, newMode, profileId, logMetrics);
512 + packageName + " on profile user ID " + profileId);
680 for (int profileId : profileIds) {
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSecurityControllerImpl.java184 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
185 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId); in getProfileOwnerName()
200 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() local
201 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileOrganizationName()
202 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
242 final int profileId = getWorkProfileUserId(mVpnUserId); in getWorkProfileVpnName() local
243 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileVpnName()
244 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
246 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
276 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled()
[all …]
H A DBluetoothControllerImpl.java324 int profileId = profile.getProfileId(); in updateAudioProfile() local
326 if (profileId == BluetoothProfile.HEADSET in updateAudioProfile()
327 || profileId == BluetoothProfile.A2DP in updateAudioProfile()
328 || profileId == BluetoothProfile.HEARING_AID in updateAudioProfile()
329 || profileId == BluetoothProfile.LE_AUDIO) { in updateAudioProfile()
/aosp14/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 …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
H A DSettingsInjector.java127 final int profileId = userHandle.getIdentifier(); in getSettings() local
129 pm.queryIntentServicesAsUser(intent, PackageManager.GET_META_DATA, profileId); in getSettings()
131 Log.d(TAG, "Found services for profile id " + profileId + ": " + resolveInfos); in getSettings()
153 Log.d(TAG, "Loaded settings for profile id " + profileId + ": " + settings); in getSettings()
175 final int profileId) { in getInjectedSettings() argument
181 if (profileId == UserHandle.USER_CURRENT || profileId == userHandle.getIdentifier()) { in getInjectedSettings()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceManager.java344 cachedDevice, int state, int profileId) { in onProfileConnectionStateChangedIfProcessed() argument
345 if (profileId == BluetoothProfile.HEARING_AID) { in onProfileConnectionStateChangedIfProcessed()
349 if (profileId == BluetoothProfile.HEADSET in onProfileConnectionStateChangedIfProcessed()
350 || profileId == BluetoothProfile.A2DP in onProfileConnectionStateChangedIfProcessed()
351 || profileId == BluetoothProfile.LE_AUDIO in onProfileConnectionStateChangedIfProcessed()
352 || profileId == BluetoothProfile.CSIP_SET_COORDINATOR) { in onProfileConnectionStateChangedIfProcessed()
H A DCachedBluetoothDevice.java287 void setProfileConnectedStatus(int profileId, boolean isFailed) { in setProfileConnectedStatus() argument
288 switch (profileId) { in setProfileConnectedStatus()
302 Log.w(TAG, "setProfileConnectedStatus(): unknown profile id : " + profileId); in setProfileConnectedStatus()
/aosp14/frameworks/base/core/java/android/app/admin/
H A DDevicePolicyManagerInternal.java55 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); in onCrossProfileWidgetProvidersChanged() argument
69 public abstract List<String> getCrossProfileWidgetProviders(int profileId); in getCrossProfileWidgetProviders() argument
/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DSystemServerAdapter.java141 int profileId, int parentId) { in broadcastProfileParentStickyIntent() argument
145 ActivityManager.broadcastStickyIntent(intent, profileId); in broadcastProfileParentStickyIntent()
/aosp14/frameworks/base/services/appwidget/java/com/android/server/appwidget/
H A DAppWidgetServiceImpl.java464 for (int profileId : profileIds) { in reloadWidgetsMaskedStateForGroup()
517 int profileId) { in updateWidgetPackageSuspensionMaskedState() argument
528 if (providerUserId != profileId in updateWidgetPackageSuspensionMaskedState()
661 for (int profileId : profileIds) { in ensureGroupStateLoadedLocked()
662 if (!mLoadedUserIds.get(profileId)) { in ensureGroupStateLoadedLocked()
664 newIds.add(profileId); in ensureGroupStateLoadedLocked()
1757 profileId)) { in getInstalledProvidersForProfile()
3932 return isParentOrProfile(parentId, profileId) && isProfileEnabled(profileId); in isEnabledGroupProfile()
4064 if (parentId == profileId) { in isParentOrProfile()
4071 int profileId) { in isProviderInCallerOrInProfileAndWhitelListed() argument
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/appwidget/
H A DIAppWidgetService.aidl63 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
/aosp14/frameworks/base/telephony/java/android/telephony/data/
H A DDataProfile.java577 public @NonNull Builder setProfileId(int profileId) { in setProfileId() argument
578 mProfileId = profileId; in setProfileId()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationHistoryManager.java428 for (int profileId : profiles) { in update()
429 onHistoryEnabledChanged(profileId, historyEnabled); in update()
H A DValidateNotificationPeople.java683 for (int profileId : profileIds) { in findWorkUserId()
684 if (userManager.isManagedProfile(profileId)) { in findWorkUserId()
685 return profileId; in findWorkUserId()
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/
H A DUtils.java410 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
411 if (profileId == userId) { in isCurrentUserOrProfile()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DUserManagerServiceTest.java449 private void addProfile(@UserIdInt int profileId, @UserIdInt int parentId) { in addProfile() argument
450 TestUserData profileData = new TestUserData(profileId); in addProfile()
/aosp14/frameworks/base/core/java/android/appwidget/
H A DAppWidgetManager.java1321 private boolean bindAppWidgetIdIfAllowed(int appWidgetId, int profileId, in bindAppWidgetIdIfAllowed() argument
1328 profileId, provider, options); in bindAppWidgetIdIfAllowed()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DKeyguardViewMediator.java1830 final int profileId = profile.id;
1831 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) {
1832 long userTimeout = getLockTimeout(profileId);
1840 lockIntent.putExtra(Intent.EXTRA_USER_ID, profileId);
1855 final int profileId = profile.id;
1856 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) {
1857 lockProfile(profileId);
2632 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) {
2634 UserHandle.of(profileId),
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtilsInternal.java738 int profileId = getManagedProfileId(context, UserHandle.USER_SYSTEM); in checkIfMteIsDisabled() local
739 return RestrictedLockUtils.getProfileOrDeviceOwner(context, UserHandle.of(profileId)); in checkIfMteIsDisabled()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardIndicationController.java737 final int profileId = getWorkProfileUserId(UserHandle.myUserId()); in getWorkProfileOrganizationName() local
738 if (profileId == UserHandle.USER_NULL) { in getWorkProfileOrganizationName()
741 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsService.java1574 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnUnlockIfRequired()
1576 credential.getType(), credential.getCredential(), profileId); in sendCredentialsOnUnlockIfRequired() local
1596 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnChangeIfRequired()
1598 credential.getType(), secret, profileId); in sendCredentialsOnChangeIfRequired() local
2074 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) { in resetKeyStore()
2077 UserHandle.getUid(profileId, uid)); in resetKeyStore()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DBrightnessTracker.java292 int profileId = profiles[i]; in getEvents() local
295 boolean redact = (!includePackage) || profileId != userId; in getEvents()

12