Home
last modified time | relevance | path

Searched refs:getProfiles (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowUserManager.java45 protected List<UserInfo> getProfiles() { in getProfiles() method in ShadowUserManager
62 protected List<UserInfo> getProfiles(@UserIdInt int userHandle) { in getProfiles() method in ShadowUserManager
63 return getProfiles(); in getProfiles()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserTrackerImplTest.kt74 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> in <lambda>()
134 verify(userManager).getProfiles(testID) in <lambda>()
154 verify(userManager).getProfiles(newID) in <lambda>()
171 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> in <lambda>()
228 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> in <lambda>()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java153 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_canForward_sendIntent()
186 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_cannotForward_sendIntent()
207 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_noManagedProfile_sendIntent()
225 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in launchInSameProfile_chooserIntent()
263 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_canForward_selectorIntent()
569 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_LoggingTest()
596 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToParent_LoggingTest()
622 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in setupShouldSkipDisclosureTest()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java186 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile()
214 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile()
237 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesProfile_separateManagedProfile()
273 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesParent_profileParentPolicy()
/frameworks/opt/net/voip/src/java/android/net/sip/
DISipService.aidl42 List<SipProfile> getProfiles(String opPackageName); in getProfiles() method
DSipManager.java629 public @NonNull List<SipProfile> getProfiles() throws SipException { in getProfiles() method in SipManager
632 return mSipService.getProfiles(mContext.getOpPackageName()); in getProfiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DUserTrackerImpl.kt132 val profiles = userManager.getProfiles(user) in setUserIdInternal()
168 val profiles = userManager.getProfiles(userId) in handleProfilesChanged()
/frameworks/base/telephony/java/android/service/euicc/
DGetEuiccProfileInfoListResult.java70 public List<EuiccProfileInfo> getProfiles() { in getProfiles() method in GetEuiccProfileInfoListResult
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java263 when(userManager.getProfiles(anyInt())).thenAnswer( in addUser()
266 return getProfiles(userId12); in addUser()
272 List<UserInfo> profiles = getProfiles(userId13); in addUser()
312 private List<UserInfo> getProfiles(int userId) { in getProfiles() method in MockSystemServices
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java353 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId()
474 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkIfPasswordQualityIsSet()
545 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkForLockSetting()
676 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java90 mUserManagerService.getProfiles(UserHandle.USER_SYSTEM, /*excludeDying*/ false); in testGetProfiles()
96 users = mUserManagerService.getProfiles(secondaryUser.id, /*excludeDying*/ false); in testGetProfiles()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java755 public List<LocalBluetoothProfile> getProfiles() { in getProfiles() method in CachedBluetoothDevice
908 for (LocalBluetoothProfile profile : getProfiles()) { in getMaxConnectionState()
947 for (LocalBluetoothProfile profile : getProfiles()) { in getConnectionSummary()
1060 for (LocalBluetoothProfile profile : getProfiles()) { in getCarConnectionSummary()
DBluetoothUtils.java105 List<LocalBluetoothProfile> profiles = cachedDevice.getProfiles(); in getBtClassDrawableWithDescription()
/frameworks/base/core/java/android/os/
DIUserManager.aidl60 List<UserInfo> getProfiles(int userId, boolean enabledOnly); in getProfiles() method
DUserManager.java3661 public List<UserInfo> getProfiles(@UserIdInt int userId) { in getProfiles() method in UserManager
3663 return mService.getProfiles(userId, false /* enabledOnly */); in getProfiles()
3716 return mService.getProfiles(userId, true /* enabledOnly */); in getEnabledProfiles()
3751 return getProfiles(true); in getEnabledProfiles()
3767 return getProfiles(false); in getAllProfiles()
3781 private @NonNull List<UserHandle> getProfiles(boolean enabledOnly) { in getProfiles() method in UserManager
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java160 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in testWorkAccount()
DBluetoothControllerImplTest.java226 when(device.getProfiles()).thenReturn(profiles); in testOnActiveDeviceChanged_updatesAudioActive()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionInfoUpdater.java864 List<EuiccProfileInfo> list = result.getProfiles(); in updateEmbeddedSubscriptionsCache()
868 logd("blockingGetEuiccProfileInfoList: got " + result.getProfiles().size() in updateEmbeddedSubscriptionsCache()
875 + ". Null profile list=" + (result.getProfiles() == null)); in updateEmbeddedSubscriptionsCache()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java342 when(mUserManager.getProfiles(anyInt())).thenReturn(Collections.singletonList( in disclosure_orgOwnedDeviceWithManagedProfile_noOrganizationName()
364 when(mUserManager.getProfiles(anyInt())).thenReturn(Collections.singletonList( in disclosure_orgOwnedDeviceWithManagedProfile_withOrganizationName()
DNotificationLockscreenUserManagerTest.java121 when(mUserManager.getProfiles(currentUserId)).thenReturn(Lists.newArrayList( in setUp()
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java338 List<UserInfo> relatedUsers = mInjector.getUserManager().getProfiles(UserHandle.myUserId()); in getManagedProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java163 when(mUserManager.getProfiles(eq(profile.id))).thenReturn(mPrimaryUserProfiles); in setUp_baseServices()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java302 for (LocalBluetoothProfile profile : device.getProfiles()) { in updateAudioProfile()
DSecurityControllerImpl.java200 for (final UserInfo userInfo : mUserManager.getProfiles(userId)) { in getWorkProfileUserId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerImpl.java531 for (UserInfo user : mUserManager.getProfiles(mCurrentUserId)) { in updateCurrentProfilesCache()

12