Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataProfileTest.java115 DataProfile dp = DcTracker.createDataProfile(mApn1, mApn1.profileId); in testCreateFromApnSetting()
116 assertEquals(mApn1.profileId, dp.getProfileId()); in testCreateFromApnSetting()
131 DataProfile dp = DcTracker.createDataProfile(mApn3, mApn3.profileId); in testCreateFromApnSettingWithNetworkTypeBitmask()
132 assertEquals(mApn3.profileId, dp.getProfileId()); in testCreateFromApnSettingWithNetworkTypeBitmask()
150 DataProfile dp1 = DcTracker.createDataProfile(mApn1, mApn1.profileId); in testEquals()
151 DataProfile dp2 = DcTracker.createDataProfile(mApn1, mApn1.profileId); in testEquals()
154 dp2 = DcTracker.createDataProfile(mApn2, mApn2.profileId); in testEquals()
DApnSettingTest.java132 assertEquals(a1.profileId, a2.profileId); in assertApnSettingEqual()
DDcTrackerTest.java511 private void verifyDataProfile(DataProfile dp, String apn, int profileId, in verifyDataProfile() argument
513 assertEquals(profileId, dp.getProfileId()); in verifyDataProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java157 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument
159 profileId, null, null, UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in installChildProfile()
161 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
162 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(PRIMARY_USER_INFO); in installChildProfile()
163 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile()
164 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile()
168 private UserInfo installAndTurnOffChildProfile(int profileId) { in installAndTurnOffChildProfile() argument
169 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile()
171 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
172 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java154 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
155 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId); in getProfileOwnerName()
170 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() local
171 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileOrganizationName()
172 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
201 final int profileId = getWorkProfileUserId(mVpnUserId); in getWorkProfileVpnName() local
202 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileVpnName()
203 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
205 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
217 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnSetting.java110 public final int profileId; field in ApnSetting
159 int bearerBitmask, int profileId, boolean modemCognitive, int maxConns, in ApnSetting() argument
186 this.profileId = profileId; in ApnSetting()
205 int networkTypeBitmask, int profileId, boolean modemCognitive, int maxConns, in ApnSetting() argument
210 profileId, modemCognitive, maxConns, waitTime, maxConnsTime, mtu, mvnoType, in ApnSetting()
219 int networkTypeBitmask, int profileId, boolean modemCognitive, int maxConns, in ApnSetting() argument
248 this.profileId = profileId; in ApnSetting()
262 apn.roamingProtocol, apn.carrierEnabled, apn.networkTypeBitmask, apn.profileId, in ApnSetting()
347 int profileId = 0; in fromString() local
376 profileId = Integer.parseInt(a[18]); in fromString()
[all …]
DDcAsyncChannel.java375 public void bringUp(ApnContext apnContext, int profileId, int rilRadioTechnology, in bringUp() argument
382 mLastConnectionParams = new ConnectionParams(apnContext, profileId, rilRadioTechnology, in bringUp()
DDcTracker.java1987 int profileId = apnSetting.profileId; in setupData() local
1988 if (profileId == 0) { in setupData()
1989 profileId = getApnProfileID(apnContext.getApnType()); in setupData()
2059 dcac.bringUp(apnContext, profileId, radioTech, unmeteredUseOnly, msg, generation); in setupData()
3428 roamingProtocol, dest.carrierEnabled, networkTypeBitmask, dest.profileId, in mergeApns()
4876 return createDataProfile(apn, apn.profileId); in createDataProfile()
4880 public static DataProfile createDataProfile(ApnSetting apn, int profileId) { in createDataProfile() argument
4895 return new DataProfile(profileId, apn.apn, apn.protocol, in createDataProfile()
DDataConnection.java129 ConnectionParams(ApnContext apnContext, int profileId, int rilRadioTechnology, in ConnectionParams() argument
133 mProfileId = profileId; in ConnectionParams()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2SwitchPreviewTest.java344 int profileId = camcorderProfileList[0]; in basicRecordingPreviewTestByCamera() local
345 if (!CamcorderProfile.hasProfile(cameraId, profileId) || in basicRecordingPreviewTestByCamera()
346 allowedUnsupported(cameraId, profileId)) { in basicRecordingPreviewTestByCamera()
350 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in basicRecordingPreviewTestByCamera()
362 assertTrue("Video size " + videoSz.toString() + " for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
365 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
435 private boolean allowedUnsupported(int cameraId, int profileId) { in allowedUnsupported() argument
440 switch(profileId) { in allowedUnsupported()
444 return !CamcorderProfile.hasProfile(cameraId, profileId) || in allowedUnsupported()
445 CamcorderProfile.get(cameraId, profileId).videoFrameWidth >= 1080; in allowedUnsupported()
DCamera2RecordingTest.java383 for (int profileId : camcorderProfileList) { in basicRecordingTestByCamera()
384 if (!CamcorderProfile.hasProfile(cameraId, profileId) || in basicRecordingTestByCamera()
385 allowedUnsupported(cameraId, profileId)) { in basicRecordingTestByCamera()
389 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in basicRecordingTestByCamera()
401 assertTrue("Video size " + videoSz.toString() + " for profile ID " + profileId + in basicRecordingTestByCamera()
404 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingTestByCamera()
507 private boolean allowedUnsupported(int cameraId, int profileId) { in allowedUnsupported() argument
512 switch(profileId) { in allowedUnsupported()
516 return !CamcorderProfile.hasProfile(cameraId, profileId) || in allowedUnsupported()
517 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/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/telephony/java/android/telephony/data/
DDataProfile.java75 public DataProfile(int profileId, String apn, String protocol, int authType, in DataProfile() argument
81 this.mProfileId = profileId; in DataProfile()
DApnSetting.java573 int networkTypeBitmask, int profileId, boolean modemCognitive, int maxConns, in makeApnSetting() argument
593 .setProfileId(profileId) in makeApnSetting()
1148 public Builder setProfileId(int profileId) { in setProfileId() argument
1149 this.mProfileId = profileId; in setProfileId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java945 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardLaterForChildProfilesLocked()
946 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardLaterForChildProfilesLocked()
947 long userTimeout = getLockTimeout(profileId); in doKeyguardLaterForChildProfilesLocked()
954 lockIntent.putExtra(Intent.EXTRA_USER_ID, profileId); in doKeyguardLaterForChildProfilesLocked()
967 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardForChildProfilesLocked()
968 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardForChildProfilesLocked()
969 lockProfile(profileId); in doKeyguardForChildProfilesLocked()
1680 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) { in sendUserPresentBroadcast()
1681 mContext.sendBroadcastAsUser(USER_PRESENT_INTENT, UserHandle.of(profileId)); in sendUserPresentBroadcast()
/frameworks/base/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl61 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java1142 private boolean bindAppWidgetIdIfAllowed(int appWidgetId, int profileId, in bindAppWidgetIdIfAllowed() argument
1149 profileId, provider, options); in bindAppWidgetIdIfAllowed()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java250 int profileId = profiles[i]; in getEvents() local
253 boolean redact = (!includePackage) || profileId != userId; in getEvents()
/frameworks/base/services/core/java/com/android/server/am/
DAppErrors.java820 for (int profileId : mService.mUserController.getCurrentProfileIds()) { in handleShowAppErrorUi()
821 isBackground &= (userId != profileId); in handleShowAppErrorUi()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java755 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
756 if (profileId == userId) { in isCurrentUserOrProfile()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java2791 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) {
2793 if (profileId != userId) {
2794 final int key = makeKey(type, profileId);
2798 profileId, 0, uri).sendToTarget();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java1072 public void writeSetupDataCall(int phoneId, int radioTechnology, int profileId, String apn, in writeSetupDataCall() argument
1077 setupDataCall.dataProfile = profileId + 1; // off by 1 between proto and RIL constants. in writeSetupDataCall()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DRILTest.java699 DataProfile dataProfile = DcTracker.createDataProfile(apnSetting, apnSetting.profileId); in testSetInitialAttachApn()
1684 assertEquals(PROFILE_ID, dpi.profileId); in testSetupDataCall()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2763 for (int profileId : profileIds) { in sendAdminCommandToSelfAndProfilesLocked()
2764 sendAdminCommandLocked(action, reqPolicy, profileId, adminExtras); in sendAdminCommandToSelfAndProfilesLocked()
8519 for (int profileId : profileIds) { in getPermittedAccessibilityServicesForUser()
8522 DevicePolicyData policy = getUserDataUnchecked(profileId); in getPermittedAccessibilityServicesForUser()
8700 for (int profileId : profileIds) { in getPermittedInputMethodsForCurrentUser()
8703 DevicePolicyData policy = getUserDataUnchecked(profileId); in getPermittedInputMethodsForCurrentUser()
10307 public List<String> getCrossProfileWidgetProviders(int profileId) { in getCrossProfileWidgetProviders() argument
10312 ComponentName ownerComponent = mOwners.getProfileOwnerComponent(profileId); in getCrossProfileWidgetProviders()
10317 DevicePolicyData policy = getUserDataUnchecked(profileId); in getCrossProfileWidgetProviders()

12