Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/
DBluetoothLogger.kt28 fun logActiveDeviceChanged(address: String?, profileId: Int) = in logActiveDeviceChanged()
34 int1 = profileId in logActiveDeviceChanged()
61 fun logProfileConnectionStateChanged(address: String?, state: String, profileId: Int) = in logProfileConnectionStateChanged()
68 int1 = profileId in logProfileConnectionStateChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java277 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument
279 profileId, null, null, UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in installChildProfile()
282 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
283 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(mPrimaryUserInfo); 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
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogLogger.kt70 fun logActiveDeviceChanged(address: String?, profileId: Int) = in logActiveDeviceChanged()
76 int1 = profileId in logActiveDeviceChanged()
81 fun logProfileConnectionStateChanged(address: String, state: String, profileId: Int) = in logProfileConnectionStateChanged()
88 int1 = profileId in logProfileConnectionStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java209 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
210 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId); in getProfileOwnerName()
225 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() local
226 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileOrganizationName()
227 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
267 final int profileId = getWorkProfileUserId(mVpnUserId); in getWorkProfileVpnName() local
268 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileVpnName()
269 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
271 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
301 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled()
[all …]
DBluetoothControllerImpl.java330 int profileId = profile.getProfileId(); in updateAudioProfile() local
332 if (profileId == BluetoothProfile.HEADSET in updateAudioProfile()
333 || profileId == BluetoothProfile.A2DP in updateAudioProfile()
334 || profileId == BluetoothProfile.HEARING_AID in updateAudioProfile()
335 || profileId == BluetoothProfile.LE_AUDIO) { in updateAudioProfile()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java359 for (final int profileId : enabledProfileIds) { in getTargetUserProfilesUnchecked()
360 if (profileId == userId) { in getTargetUserProfilesUnchecked()
363 if (!isPackageEnabled(packageName, profileId)) { in getTargetUserProfilesUnchecked()
366 targetProfiles.add(UserHandle.of(profileId)); in getTargetUserProfilesUnchecked()
474 for (int profileId : profileIds) {
475 if (!isPackageInstalled(packageName, profileId)) {
480 packageName, newMode, profileId, /* logMetrics= */ profileId == userId);
500 String packageName, @Mode int newMode, @UserIdInt int profileId, boolean logMetrics) {
503 packageName, newMode, profileId, logMetrics);
505 Slog.e(TAG, "Missing package " + packageName + " on profile user ID " + profileId, e);
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java184 int state, int profileId) { in syncDeviceWithinHearingAidSetIfNeeded() argument
185 if (profileId == BluetoothProfile.HAP_CLIENT in syncDeviceWithinHearingAidSetIfNeeded()
186 || profileId == BluetoothProfile.HEARING_AID in syncDeviceWithinHearingAidSetIfNeeded()
187 || profileId == BluetoothProfile.CSIP_SET_COORDINATOR) { in syncDeviceWithinHearingAidSetIfNeeded()
374 cachedDevice, int state, int profileId) { in onProfileConnectionStateChangedIfProcessed() argument
375 if (profileId == BluetoothProfile.HEARING_AID) { in onProfileConnectionStateChangedIfProcessed()
379 if (profileId == BluetoothProfile.HEADSET in onProfileConnectionStateChangedIfProcessed()
380 || profileId == BluetoothProfile.A2DP in onProfileConnectionStateChangedIfProcessed()
381 || profileId == BluetoothProfile.LE_AUDIO in onProfileConnectionStateChangedIfProcessed()
382 || profileId == BluetoothProfile.CSIP_SET_COORDINATOR) { in onProfileConnectionStateChangedIfProcessed()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2SwitchPreviewTest.java308 int profileId = camcorderProfileList[0]; in basicRecordingPreviewTestByCamera() local
309 if (!CamcorderProfile.hasProfile(cameraId, profileId) || in basicRecordingPreviewTestByCamera()
310 allowedUnsupported(cameraId, profileId)) { in basicRecordingPreviewTestByCamera()
314 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in basicRecordingPreviewTestByCamera()
326 assertTrue("Video size " + videoSz.toString() + " for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
329 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
399 private boolean allowedUnsupported(int cameraId, int profileId) { in allowedUnsupported() argument
404 switch(profileId) { in allowedUnsupported()
408 return !CamcorderProfile.hasProfile(cameraId, profileId) || in allowedUnsupported()
409 CamcorderProfile.get(cameraId, profileId).videoFrameWidth >= 1080; in allowedUnsupported()
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()
405 assertTrue("Video size " + videoSz.toString() + " for profile ID " + profileId + in basicRecordingTestByCamera()
408 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + 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()
521 CamcorderProfile.get(cameraId, profileId).videoFrameWidth >= 1080; in allowedUnsupported()
[all …]
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManagerInternal.java55 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); in onCrossProfileWidgetProvidersChanged() argument
69 public abstract List<String> getCrossProfileWidgetProviders(int profileId); in getCrossProfileWidgetProviders() argument
/frameworks/base/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl63 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
86 in ComponentName providerComponent, in int profileId, in int widgetCategory); in getWidgetPreview() argument
/frameworks/base/services/core/java/com/android/server/audio/
DSystemServerAdapter.java141 int profileId, int parentId) { in broadcastProfileParentStickyIntent() argument
145 ActivityManager.broadcastStickyIntent(intent, profileId); in broadcastProfileParentStickyIntent()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java573 for (int profileId : profileIds) { in reloadWidgetsMaskedStateForGroup()
574 reloadWidgetsMaskedState(profileId); in reloadWidgetsMaskedStateForGroup()
631 int profileId) { in updateWidgetPackageSuspensionMaskedState() argument
642 if (providerUserId != profileId in updateWidgetPackageSuspensionMaskedState()
864 for (int profileId : profileIds) { in ensureGroupStateLoadedLocked()
865 if (!mLoadedUserIds.get(profileId)) { in ensureGroupStateLoadedLocked()
866 mLoadedUserIds.put(profileId, true); in ensureGroupStateLoadedLocked()
867 newIds.add(profileId); in ensureGroupStateLoadedLocked()
1940 int profileId, String packageName) { in getInstalledProvidersForProfile() argument
1949 if (!mSecurityPolicy.isEnabledGroupProfile(profileId)) { in getInstalledProvidersForProfile()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractorTest.kt71 whenever(profileId).thenReturn(BluetoothProfile.A2DP) in <lambda>()
75 whenever(profileId).thenReturn(BluetoothProfile.LE_AUDIO) in <lambda>()
79 whenever(profileId).thenReturn(BluetoothProfile.HEARING_AID) in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractor.kt198 it.profileId in audioProfiles && it.isEnabled(cachedBluetoothDevice.device) in <lambda>()
201 when (profile.profileId) { in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DTestMediaDevicesFactory.kt66 whenever(profileId).thenReturn(BluetoothProfile.LE_AUDIO) in bluetoothMediaDevice()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java828 int profileId = getManagedProfileId(context, UserHandle.USER_SYSTEM); in checkIfMteIsDisabled() local
829 return RestrictedLockUtils.getProfileOrDeviceOwner(context, UserHandle.of(profileId)); in checkIfMteIsDisabled()
851 int profileId = getManagedProfileId(context, UserHandle.USER_SYSTEM); in checkIfApplicationCanBeCredentialManagerProvider() local
852 return RestrictedLockUtils.getProfileOrDeviceOwner(context, UserHandle.of(profileId)); in checkIfApplicationCanBeCredentialManagerProvider()
/frameworks/base/telephony/java/android/telephony/data/
DDataProfile.java579 public @NonNull Builder setProfileId(int profileId) { in setProfileId() argument
580 mProfileId = profileId; in setProfileId()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/spatial/domain/
DSpatialAudioAvailabilityCriteriaTest.kt65 whenever(profileId).thenReturn(BluetoothProfile.LE_AUDIO) in setup()
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java683 for (int profileId : profileIds) { in findWorkUserId()
684 if (userManager.isManagedProfile(profileId)) { in findWorkUserId()
685 return profileId; in findWorkUserId()
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java422 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
423 if (profileId == userId) { in isCurrentUserOrProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java1915 final int profileId = profile.id;
1916 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) {
1917 long userTimeout = getLockTimeout(profileId);
1925 lockIntent.putExtra(Intent.EXTRA_USER_ID, profileId);
1940 final int profileId = profile.id;
1941 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) {
1942 lockProfile(profileId);
2742 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) {
2744 UserHandle.of(profileId),
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java1330 private boolean bindAppWidgetIdIfAllowed(int appWidgetId, int profileId, in bindAppWidgetIdIfAllowed() argument
1337 profileId, provider, options); in bindAppWidgetIdIfAllowed()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSnoozeHelperTest.java547 final int profileId = 11;
551 userIds.add(profileId);
554 NotificationRecord r3 = getNotificationRecord("pkg", 3, "three", UserHandle.of(profileId));

12