/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 178 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument 180 profileId, null, null, UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in installChildProfile() 183 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile() 184 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(PRIMARY_USER_INFO); in installChildProfile() 185 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile() 186 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile() 190 private UserInfo installAndTurnOffChildProfile(int profileId) { in installAndTurnOffChildProfile() argument 191 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile() 193 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile() 194 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerImpl.java | 168 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 …]
|
/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2SwitchPreviewTest.java | 345 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()
|
D | Camera2RecordingTest.java | 387 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/packages/SettingsLib/src/com/android/settingslib/location/ |
D | SettingsInjector.java | 126 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/core/java/android/bluetooth/ |
D | BluetoothProfileConnector.java | 73 BluetoothProfileConnector(BluetoothProfile profile, int profileId, String profileName, in BluetoothProfileConnector() argument 75 mProfileId = profileId; in BluetoothProfileConnector()
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | DataProfile.java | 106 private DataProfile(int profileId, String apn, @ProtocolType int protocolType, int authType, in DataProfile() argument 113 this.mProfileId = profileId; in DataProfile() 405 public @NonNull Builder setProfileId(int profileId) { in setProfileId() argument 406 mProfileId = profileId; in setProfileId()
|
D | ApnSetting.java | 680 boolean carrierEnabled, int networkTypeBitmask, int profileId, in makeApnSetting() argument 701 .setProfileId(profileId) in makeApnSetting() 722 boolean carrierEnabled, int networkTypeBitmask, int profileId, boolean modemCognitive, in makeApnSetting() argument 727 protocol, roamingProtocol, carrierEnabled, networkTypeBitmask, profileId, in makeApnSetting() 910 int profileId = 0; in fromString() local 941 profileId = Integer.parseInt(a[18]); in fromString() 986 carrierEnabled, networkTypeBitmask, profileId, modemCognitive, maxConns, waitTime, in fromString() 1612 public Builder setProfileId(int profileId) { in setProfileId() argument 1613 this.mProfileId = profileId; in setProfileId()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UninstallFinish.java | 208 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/ |
D | UninstallAppProgress.java | 242 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/ |
D | KeyguardViewMediator.java | 947 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardLaterForChildProfilesLocked() 948 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardLaterForChildProfilesLocked() 949 long userTimeout = getLockTimeout(profileId); in doKeyguardLaterForChildProfilesLocked() 956 lockIntent.putExtra(Intent.EXTRA_USER_ID, profileId); in doKeyguardLaterForChildProfilesLocked() 969 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardForChildProfilesLocked() 970 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardForChildProfilesLocked() 971 lockProfile(profileId); in doKeyguardForChildProfilesLocked() 1673 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) { in sendUserPresentBroadcast() 1674 mContext.sendBroadcastAsUser(USER_PRESENT_INTENT, UserHandle.of(profileId)); in sendUserPresentBroadcast()
|
/frameworks/base/core/java/com/android/internal/appwidget/ |
D | IAppWidgetService.aidl | 62 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 1150 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/ |
D | LockSettingsService.java | 1368 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnUnlockIfRequired() 1370 credentialType, credential, profileId); in sendCredentialsOnUnlockIfRequired() 1388 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnChangeIfRequired() 1390 credentialType, credential, profileId); in sendCredentialsOnChangeIfRequired() 1726 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) { in resetKeyStore() 1728 mKeyStore.clearUid(UserHandle.getUid(profileId, uid)); in resetKeyStore()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcTracker.java | 1893 int profileId = DATA_PROFILE_INVALID; in setupData() local 1895 profileId = apnSetting.getProfileId(); in setupData() 1896 if (profileId == DATA_PROFILE_DEFAULT) { in setupData() 1897 profileId = getApnProfileID(apnContext.getApnType()); in setupData() 1969 dataConnection.bringUp(apnContext, profileId, radioTech, msg, generation, requestType, in setupData() 4758 public static DataProfile createDataProfile(ApnSetting apn, int profileId, in createDataProfile() argument 4773 .setProfileId(profileId) in createDataProfile()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | BiometricServiceBase.java | 1177 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile() 1178 if (profileId == userId) { in isCurrentUserOrProfile()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppErrors.java | 803 for (int profileId : mService.mUserController.getCurrentProfileIds()) { 804 isBackground &= (userId != profileId);
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessTracker.java | 270 int profileId = profiles[i]; in getEvents() local 273 boolean redact = (!includePackage) || profileId != userId; in getEvents()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DcTrackerTest.java | 560 private void verifyDataProfile(DataProfile dp, String apn, int profileId, in verifyDataProfile() argument 562 assertEquals(profileId, dp.getProfileId()); in verifyDataProfile()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 3082 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) { 3084 if (profileId != userId) { 3085 final int key = makeKey(type, profileId); 3089 profileId, 0, uri).sendToTarget();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyMetrics.java | 1345 public void writeSetupDataCall(int phoneId, int radioTechnology, int profileId, String apn, in writeSetupDataCall() argument 1350 setupDataCall.dataProfile = profileId + 1; // off by 1 between proto and RIL constants. in writeSetupDataCall()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 2938 for (int profileId : profileIds) { 2939 sendAdminCommandLocked(action, reqPolicy, profileId, adminExtras); 9312 for (int profileId : profileIds) { in getPermittedAccessibilityServicesForUser() 9315 DevicePolicyData policy = getUserDataUnchecked(profileId); in getPermittedAccessibilityServicesForUser() 9488 for (int profileId : profileIds) { in getPermittedInputMethodsForCurrentUser() 9491 DevicePolicyData policy = getUserDataUnchecked(profileId); in getPermittedInputMethodsForCurrentUser() 11215 public List<String> getCrossProfileWidgetProviders(int profileId) { in getCrossProfileWidgetProviders() argument 11220 ComponentName ownerComponent = mOwners.getProfileOwnerComponent(profileId); in getCrossProfileWidgetProviders() 11225 DevicePolicyData policy = getUserDataUnchecked(profileId); in getCrossProfileWidgetProviders()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 706 int profileId = profileIds.get(i); in getProfilesLU() local 707 UserInfo userInfo = mUsers.get(profileId).info; in getProfilesLU()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RIL.java | 1390 dpi.profileId = dp.getProfileId(); in convertToHalDataProfile10() 1447 dpi.profileId = (dpi.persistent) ? dp.getProfileId() : DataProfileId.INVALID; in convertToHalDataProfile14()
|