/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DataProfileTest.java | 115 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()
|
D | ApnSettingTest.java | 132 assertEquals(a1.profileId, a2.profileId); in assertApnSettingEqual()
|
D | DcTrackerTest.java | 511 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/ |
D | BaseLockSettingsServiceTests.java | 157 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/ |
D | SecurityControllerImpl.java | 154 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/ |
D | ApnSetting.java | 110 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 …]
|
D | DcAsyncChannel.java | 375 public void bringUp(ApnContext apnContext, int profileId, int rilRadioTechnology, in bringUp() argument 382 mLastConnectionParams = new ConnectionParams(apnContext, profileId, rilRadioTechnology, in bringUp()
|
D | DcTracker.java | 1987 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()
|
D | DataConnection.java | 129 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/ |
D | Camera2SwitchPreviewTest.java | 344 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()
|
D | Camera2RecordingTest.java | 383 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/ |
D | DevicePolicyManagerInternal.java | 44 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/ |
D | AppWidgetServiceImpl.java | 488 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/ |
D | DataProfile.java | 75 public DataProfile(int profileId, String apn, String protocol, int authType, in DataProfile() argument 81 this.mProfileId = profileId; in DataProfile()
|
D | ApnSetting.java | 573 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/ |
D | KeyguardViewMediator.java | 945 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/ |
D | IAppWidgetService.aidl | 61 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 1142 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/ |
D | BrightnessTracker.java | 250 int profileId = profiles[i]; in getEvents() local 253 boolean redact = (!includePackage) || profileId != userId; in getEvents()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppErrors.java | 820 for (int profileId : mService.mUserController.getCurrentProfileIds()) { in handleShowAppErrorUi() 821 isBackground &= (userId != profileId); in handleShowAppErrorUi()
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 755 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile() 756 if (profileId == userId) { in isCurrentUserOrProfile()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 2791 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/ |
D | TelephonyMetrics.java | 1072 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/ |
D | RILTest.java | 699 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/ |
D | DevicePolicyManagerService.java | 2763 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()
|