Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataProfile.java31 public final int profileId; field in DataProfile
74 DataProfile(int profileId, String apn, String protocol, int authType, in DataProfile() argument
80 this.profileId = profileId; in DataProfile()
106 this(apn, apn.profileId); in DataProfile()
109 public DataProfile(ApnSetting apn, int profileId) { in DataProfile() argument
110 this(profileId, apn.apn, apn.protocol, in DataProfile()
121 return "DataProfile=" + profileId + "/" + apn + "/" + protocol + "/" + authType in toString()
DApnSetting.java88 public final int profileId; field in ApnSetting
120 int bearerBitmask, int profileId, boolean modemCognitive, int maxConns, in ApnSetting() argument
147 this.profileId = profileId; in ApnSetting()
162 apn.profileId, apn.modemCognitive, apn.maxConns, apn.waitTime, apn.maxConnsTime, in ApnSetting()
225 int profileId = 0; in fromString() local
253 profileId = Integer.parseInt(a[18]); in fromString()
274 bearerBitmask, profileId, modemCognitive, maxConns, waitTime, maxConnsTime, mtu, in fromString()
326 sb.append(", ").append(profileId); in toString()
505 && profileId == other.profileId in equals()
DDcAsyncChannel.java373 public void bringUp(ApnContext apnContext, int profileId, int rilRadioTechnology, in bringUp() argument
381 new ConnectionParams(apnContext, profileId, rilRadioTechnology, unmeteredUseOnly, in bringUp()
DDcTracker.java2130 int profileId = apnSetting.profileId; in setupData() local
2131 if (profileId == 0) { in setupData()
2132 profileId = getApnProfileID(apnContext.getApnType()); in setupData()
2199 dcac.bringUp(apnContext, profileId, radioTech, unmeteredUseOnly, msg, generation); in setupData()
3524 && first.profileId == second.profileId in apnsSimilar()
3561 roamingProtocol, dest.carrierEnabled, 0, bearerBitmask, dest.profileId, in mergeApns()
DDataConnection.java111 ConnectionParams(ApnContext apnContext, int profileId, int rilRadioTechnology, in ConnectionParams() argument
115 mProfileId = profileId; in ConnectionParams()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBaseLockSettingsServiceTests.java123 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument
125 profileId, null, null, UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in installChildProfile()
127 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
128 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(PRIMARY_USER_INFO); in installChildProfile()
129 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile()
130 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile()
134 private UserInfo installAndTurnOffChildProfile(int profileId) { in installAndTurnOffChildProfile() argument
135 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile()
137 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
138 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java147 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
148 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId); in getProfileOwnerName()
163 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() local
164 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileOrganizationName()
165 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
194 final int profileId = getWorkProfileUserId(mVpnUserId); in getWorkProfileVpnName() local
195 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileVpnName()
196 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName()
198 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName()
210 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled()
[all …]
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManagerInternal.java43 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); in onCrossProfileWidgetProvidersChanged() argument
57 public abstract List<String> getCrossProfileWidgetProviders(int profileId); in getCrossProfileWidgetProviders() argument
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataProfileTest.java86 assertEquals(mApn1.profileId, dp.profileId); in testCreateFromApnSetting()
DDcTrackerTest.java360 private void verifyDataProfile(DataProfile dp, String apn, int profileId, in verifyDataProfile() argument
362 assertEquals(profileId, dp.profileId); in verifyDataProfile()
DApnSettingTest.java131 assertEquals(a1.profileId, a2.profileId); in assertApnSettingEqual()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java467 for (int profileId : profileIds) { in reloadWidgetsMaskedStateForGroup()
468 reloadWidgetsMaskedState(profileId); in reloadWidgetsMaskedStateForGroup()
520 int profileId) { in updateWidgetPackageSuspensionMaskedState() argument
530 if (providerUserId != profileId in updateWidgetPackageSuspensionMaskedState()
682 final int profileId = profileIds[i]; in ensureGroupStateLoadedLocked() local
683 if (mLoadedUserIds.indexOfKey(profileId) >= 0) { in ensureGroupStateLoadedLocked()
697 final int profileId = profileIds[i]; in ensureGroupStateLoadedLocked() local
698 if (profileId != LOADED_PROFILE_ID) { in ensureGroupStateLoadedLocked()
699 mLoadedUserIds.put(profileId, profileId); in ensureGroupStateLoadedLocked()
700 newProfileIds[newMemberIndex] = profileId; in ensureGroupStateLoadedLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java907 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardLaterForChildProfilesLocked()
908 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardLaterForChildProfilesLocked()
909 long userTimeout = getLockTimeout(profileId); in doKeyguardLaterForChildProfilesLocked()
916 lockIntent.putExtra(Intent.EXTRA_USER_ID, profileId); in doKeyguardLaterForChildProfilesLocked()
929 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardForChildProfilesLocked()
930 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardForChildProfilesLocked()
931 lockProfile(profileId); in doKeyguardForChildProfilesLocked()
1625 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) { in sendUserPresentBroadcast()
1626 mContext.sendBroadcastAsUser(USER_PRESENT_INTENT, UserHandle.of(profileId)); in sendUserPresentBroadcast()
/frameworks/base/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl58 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java1128 private boolean bindAppWidgetIdIfAllowed(int appWidgetId, int profileId, in bindAppWidgetIdIfAllowed() argument
1135 profileId, provider, options); in bindAppWidgetIdIfAllowed()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java703 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
704 if (profileId == userId) { in isCurrentUserOrProfile()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java2789 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) {
2791 if (profileId != userId) {
2793 profileId, 0, uri).sendToTarget();
2794 final int key = makeKey(type, profileId);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2417 for (int profileId : profileIds) { in sendAdminCommandToSelfAndProfilesLocked()
2418 sendAdminCommandLocked(action, reqPolicy, profileId, adminExtras); in sendAdminCommandToSelfAndProfilesLocked()
4492 for (int profileId : profileIds) { in updateMaximumTimeToLockLocked()
4493 DevicePolicyData policy = getUserDataUnchecked(profileId); in updateMaximumTimeToLockLocked()
7771 for (int profileId : profileIds) { in getPermittedAccessibilityServicesForUser()
7774 DevicePolicyData policy = getUserDataUnchecked(profileId); in getPermittedAccessibilityServicesForUser()
7951 for (int profileId : profileIds) { in getPermittedInputMethodsForCurrentUser()
7954 DevicePolicyData policy = getUserDataUnchecked(profileId); in getPermittedInputMethodsForCurrentUser()
9185 public List<String> getCrossProfileWidgetProviders(int profileId) { in getCrossProfileWidgetProviders() argument
9190 ComponentName ownerComponent = mOwners.getProfileOwnerComponent(profileId); in getCrossProfileWidgetProviders()
[all …]
/frameworks/base/services/core/java/com/android/server/
DLockSettingsService.java1366 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) { in resetKeyStore()
1368 mKeyStore.clearUid(UserHandle.getUid(profileId, uid)); in resetKeyStore()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java1270 dpi.profileId = dp.profileId; in convertToHalDataProfile()
1353 mMetrics.writeRilSetupDataCall(mPhoneId, rr.mSerial, radioTechnology, dpi.profileId, in setupDataCall()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java626 int profileId = profileIds.get(i); in getProfilesLU() local
627 UserInfo userInfo = mUsers.get(profileId).info; in getProfilesLU()