/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | BaseLockSettingsServiceTests.java | 277 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 D | BluetoothLogger.kt | 28 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 D | CrossProfileAppsServiceImpl.java | 356 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 D | SecurityControllerImpl.java | 184 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 D | BluetoothControllerImpl.java | 324 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 D | Camera2SwitchPreviewTest.java | 345 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 D | Camera2RecordingTest.java | 387 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 D | SettingsInjector.java | 127 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 D | CachedBluetoothDeviceManager.java | 344 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 D | CachedBluetoothDevice.java | 287 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 D | DevicePolicyManagerInternal.java | 55 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 D | SystemServerAdapter.java | 141 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 D | AppWidgetServiceImpl.java | 464 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 D | IAppWidgetService.aidl | 63 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
|
/aosp14/frameworks/base/telephony/java/android/telephony/data/ |
H A D | DataProfile.java | 577 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 D | NotificationHistoryManager.java | 428 for (int profileId : profiles) { in update() 429 onHistoryEnabledChanged(profileId, historyEnabled); in update()
|
H A D | ValidateNotificationPeople.java | 683 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 D | Utils.java | 410 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 D | UserManagerServiceTest.java | 449 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 D | AppWidgetManager.java | 1321 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 D | KeyguardViewMediator.java | 1830 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 D | RestrictedLockUtilsInternal.java | 738 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 D | KeyguardIndicationController.java | 737 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 D | LockSettingsService.java | 1574 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 D | BrightnessTracker.java | 292 int profileId = profiles[i]; in getEvents() local 295 boolean redact = (!includePackage) || profileId != userId; in getEvents()
|