Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java183 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument
185 profileId, null, null, UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in installChildProfile()
188 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
189 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(PRIMARY_USER_INFO); in installChildProfile()
190 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile()
191 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile()
195 private UserInfo installAndTurnOffChildProfile(int profileId) { in installAndTurnOffChildProfile() argument
196 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile()
198 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
199 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java168 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
169 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId); in getProfileOwnerName()
184 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() local
185 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileOrganizationName()
186 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
215 final int profileId = getWorkProfileUserId(mVpnUserId); in getWorkProfileVpnName() local
216 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileVpnName()
217 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
219 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
231 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled()
[all …]
DBluetoothControllerImpl.java281 int profileId = profile.getProfileId(); in updateAudioProfile() local
283 if (profileId == BluetoothProfile.HEADSET in updateAudioProfile()
284 || profileId == BluetoothProfile.A2DP in updateAudioProfile()
285 || profileId == BluetoothProfile.HEARING_AID) { in updateAudioProfile()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
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()
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.java44 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); in onCrossProfileWidgetProvidersChanged() argument
58 public abstract List<String> getCrossProfileWidgetProviders(int profileId); in getCrossProfileWidgetProviders() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
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()
148 Log.d(TAG, "Loaded settings for profile id " + profileId + ": " + settings); in getSettings()
170 final int profileId) { in getInjectedSettings() argument
176 if (profileId == UserHandle.USER_CURRENT || profileId == userHandle.getIdentifier()) { in getInjectedSettings()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java488 for (int profileId : profileIds) { in reloadWidgetsMaskedStateForGroup()
489 reloadWidgetsMaskedState(profileId); in reloadWidgetsMaskedStateForGroup()
541 int profileId) { in updateWidgetPackageSuspensionMaskedState() argument
552 if (providerUserId != profileId in updateWidgetPackageSuspensionMaskedState()
714 final int profileId = profileIds[i]; in ensureGroupStateLoadedLocked() local
715 if (mLoadedUserIds.indexOfKey(profileId) >= 0) { in ensureGroupStateLoadedLocked()
729 final int profileId = profileIds[i]; in ensureGroupStateLoadedLocked() local
730 if (profileId != LOADED_PROFILE_ID) { in ensureGroupStateLoadedLocked()
731 mLoadedUserIds.put(profileId, profileId); in ensureGroupStateLoadedLocked()
732 newProfileIds[newMemberIndex] = profileId; in ensureGroupStateLoadedLocked()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothProfileConnector.java73 BluetoothProfileConnector(BluetoothProfile profile, int profileId, String profileName, in BluetoothProfileConnector() argument
75 mProfileId = profileId; in BluetoothProfileConnector()
/frameworks/base/telephony/java/android/telephony/data/
DDataProfile.java108 private DataProfile(int profileId, String apn, @ProtocolType int protocolType, int authType, in DataProfile() argument
114 this.mProfileId = profileId; in DataProfile()
426 public @NonNull Builder setProfileId(int profileId) { in setProfileId() argument
427 mProfileId = profileId; in setProfileId()
DApnSetting.java782 boolean carrierEnabled, int networkTypeBitmask, int profileId, in makeApnSetting() argument
803 .setProfileId(profileId) in makeApnSetting()
824 boolean carrierEnabled, int networkTypeBitmask, int profileId, boolean modemCognitive, in makeApnSetting() argument
829 protocol, roamingProtocol, carrierEnabled, networkTypeBitmask, profileId, in makeApnSetting()
1012 int profileId = 0; in fromString() local
1043 profileId = Integer.parseInt(a[18]); in fromString()
1088 carrierEnabled, networkTypeBitmask, profileId, modemCognitive, maxConns, waitTime, in fromString()
1726 public Builder setProfileId(int profileId) { in setProfileId() argument
1727 this.mProfileId = profileId; in setProfileId()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java208 private boolean isProfileOfOrSame(@NonNull UserManager userManager, int userId, int profileId) { in isProfileOfOrSame() argument
209 if (userId == profileId) { in isProfileOfOrSame()
213 UserInfo parentUser = userManager.getProfileParent(profileId); in isProfileOfOrSame()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgress.java242 private boolean isProfileOfOrSame(UserManager userManager, int userId, int profileId) { in isProfileOfOrSame() argument
243 if (userId == profileId) { in isProfileOfOrSame()
246 UserInfo parentUser = userManager.getProfileParent(profileId); in isProfileOfOrSame()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java952 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardLaterForChildProfilesLocked()
953 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardLaterForChildProfilesLocked()
954 long userTimeout = getLockTimeout(profileId); in doKeyguardLaterForChildProfilesLocked()
961 lockIntent.putExtra(Intent.EXTRA_USER_ID, profileId); in doKeyguardLaterForChildProfilesLocked()
974 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardForChildProfilesLocked()
975 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardForChildProfilesLocked()
976 lockProfile(profileId); in doKeyguardForChildProfilesLocked()
1678 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) { in sendUserPresentBroadcast()
1679 mContext.sendBroadcastAsUser(USER_PRESENT_INTENT, UserHandle.of(profileId)); in sendUserPresentBroadcast()
/frameworks/base/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl62 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java1150 private boolean bindAppWidgetIdIfAllowed(int appWidgetId, int profileId, in bindAppWidgetIdIfAllowed() argument
1157 profileId, provider, options); in bindAppWidgetIdIfAllowed()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java1419 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnUnlockIfRequired()
1421 credentialType, credential, profileId); in sendCredentialsOnUnlockIfRequired()
1439 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnChangeIfRequired()
1441 credentialType, credential, profileId); in sendCredentialsOnChangeIfRequired()
1786 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) { in resetKeyStore()
1788 mKeyStore.clearUid(UserHandle.getUid(profileId, uid)); in resetKeyStore()
/frameworks/base/services/core/java/com/android/server/am/
DAppErrors.java816 for (int profileId : mService.mUserController.getCurrentProfileIds()) {
817 isBackground &= (userId != profileId);
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricServiceBase.java1192 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
1193 if (profileId == userId) { in isCurrentUserOrProfile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTracker.java1941 int profileId = DATA_PROFILE_INVALID; in setupData() local
1943 profileId = apnSetting.getProfileId(); in setupData()
1944 if (profileId == DATA_PROFILE_DEFAULT) { in setupData()
1945 profileId = getApnProfileID(apnContext.getApnType()); in setupData()
2023 dataConnection.bringUp(apnContext, profileId, radioTech, msg, generation, requestType, in setupData()
4989 public static DataProfile createDataProfile(ApnSetting apn, int profileId, in createDataProfile() argument
5004 .setProfileId(profileId) in createDataProfile()
DDataConnection.java204 ConnectionParams(ApnContext apnContext, int profileId, int rilRadioTechnology, in ConnectionParams() argument
209 mProfileId = profileId; in ConnectionParams()
2758 public void bringUp(ApnContext apnContext, int profileId, int rilRadioTechnology, in bringUp() argument
2765 new ConnectionParams(apnContext, profileId, rilRadioTechnology, onCompletedMsg, in bringUp()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java272 int profileId = profiles[i]; in getEvents() local
275 boolean redact = (!includePackage) || profileId != userId; in getEvents()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java3093 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) {
3095 if (profileId != userId) {
3096 final int key = makeKey(type, profileId);
3100 profileId, 0, uri).sendToTarget();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java573 private void verifyDataProfile(DataProfile dp, String apn, int profileId, in verifyDataProfile() argument
575 assertEquals(profileId, dp.getProfileId()); in verifyDataProfile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java1400 public void writeSetupDataCall(int phoneId, int radioTechnology, int profileId, String apn, in writeSetupDataCall() argument
1405 setupDataCall.dataProfile = profileId + 1; // off by 1 between proto and RIL constants. in writeSetupDataCall()

12