/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 194 private UserInfo installChildProfile(int profileId) { in installChildProfile() argument 196 profileId, null, null, UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in installChildProfile() 199 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile() 200 when(mUserManager.getProfileParent(eq(profileId))).thenReturn(PRIMARY_USER_INFO); in installChildProfile() 201 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile() 202 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile() 203 when(mUserManagerInternal.isUserManaged(eq(profileId))).thenReturn(true); in installChildProfile() 207 private UserInfo installAndTurnOffChildProfile(int profileId) { in installAndTurnOffChildProfile() argument 208 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile() 210 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | CrossProfileAppsServiceImpl.java | 342 for (final int profileId : enabledProfileIds) { in getTargetUserProfilesUnchecked() 343 if (profileId == userId) { in getTargetUserProfilesUnchecked() 346 if (!isPackageEnabled(packageName, profileId)) { in getTargetUserProfilesUnchecked() 349 targetProfiles.add(UserHandle.of(profileId)); in getTargetUserProfilesUnchecked() 455 for (int profileId : profileIds) { 456 if (!isPackageInstalled(packageName, profileId)) { 461 packageName, newMode, profileId, /* logMetrics= */ profileId == userId); 481 String packageName, @Mode int newMode, @UserIdInt int profileId, boolean logMetrics) { 484 packageName, newMode, profileId, logMetrics); 486 Slog.e(TAG, "Missing package " + packageName + " on profile user ID " + profileId, e); [all …]
|
/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() 226 final int profileId = getWorkProfileUserId(mVpnUserId); in getWorkProfileVpnName() local 227 if (profileId == UserHandle.USER_NULL) return null; in getWorkProfileVpnName() 228 VpnConfig cfg = mCurrentVpns.get(profileId); in getWorkProfileVpnName() 230 return getNameForVpnConfig(cfg, UserHandle.of(profileId)); in getWorkProfileVpnName() 254 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled() [all …]
|
D | BluetoothControllerImpl.java | 303 int profileId = profile.getProfileId(); in updateAudioProfile() local 305 if (profileId == BluetoothProfile.HEADSET in updateAudioProfile() 306 || profileId == BluetoothProfile.A2DP in updateAudioProfile() 307 || profileId == BluetoothProfile.HEARING_AID) { in updateAudioProfile()
|
/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/core/java/android/app/admin/ |
D | DevicePolicyManagerInternal.java | 52 public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); in onCrossProfileWidgetProvidersChanged() argument 66 public abstract List<String> getCrossProfileWidgetProviders(int profileId); in getCrossProfileWidgetProviders() argument
|
/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() 152 Log.d(TAG, "Loaded settings for profile id " + profileId + ": " + settings); in getSettings() 174 final int profileId) { in getInjectedSettings() argument 180 if (profileId == UserHandle.USER_CURRENT || profileId == userHandle.getIdentifier()) { in getInjectedSettings()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SystemServerAdapter.java | 141 int profileId, int parentId) { in broadcastProfileParentStickyIntent() argument 145 ActivityManager.broadcastStickyIntent(intent, profileId); in broadcastProfileParentStickyIntent()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothProfileConnector.java | 79 BluetoothProfileConnector(BluetoothProfile profile, int profileId, String profileName, in BluetoothProfileConnector() argument 81 mProfileId = profileId; in BluetoothProfileConnector()
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | DataProfile.java | 108 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()
|
D | ApnSetting.java | 910 boolean carrierEnabled, int networkTypeBitmask, int profileId, in makeApnSetting() argument 931 .setProfileId(profileId) in makeApnSetting() 952 boolean carrierEnabled, int networkTypeBitmask, int profileId, boolean modemCognitive, in makeApnSetting() argument 957 protocol, roamingProtocol, carrierEnabled, networkTypeBitmask, profileId, in makeApnSetting() 1140 int profileId = 0; in fromString() local 1171 profileId = Integer.parseInt(a[18]); in fromString() 1216 carrierEnabled, networkTypeBitmask, profileId, modemCognitive, maxConns, waitTime, in fromString() 1889 public Builder setProfileId(int profileId) { in setProfileId() argument 1890 this.mProfileId = profileId; in setProfileId()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 430 for (int profileId : profileIds) { in reloadWidgetsMaskedStateForGroup() 431 reloadWidgetsMaskedState(profileId); in reloadWidgetsMaskedStateForGroup() 483 int profileId) { in updateWidgetPackageSuspensionMaskedState() argument 494 if (providerUserId != profileId in updateWidgetPackageSuspensionMaskedState() 624 for (int profileId : profileIds) { in ensureGroupStateLoadedLocked() 625 if (!mLoadedUserIds.get(profileId)) { in ensureGroupStateLoadedLocked() 626 mLoadedUserIds.put(profileId, true); in ensureGroupStateLoadedLocked() 627 newIds.add(profileId); in ensureGroupStateLoadedLocked() 1592 int profileId, String packageName) { in getInstalledProvidersForProfile() argument 1601 if (!mSecurityPolicy.isEnabledGroupProfile(profileId)) { in getInstalledProvidersForProfile() [all …]
|
/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/services/profcollect/src/com/android/server/profcollect/ |
D | ProfcollectForwardingService.java | 320 final int profileId = getBBProfileId(); in packProfileReport() local 321 String reportDir = "/data/user/" + profileId in packProfileReport() 344 mIProfcollect.copy_report_to_bb(profileId, reportUuid); in packProfileReport()
|
/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/core/java/com/android/internal/appwidget/ |
D | IAppWidgetService.aidl | 62 ParceledListSlice getInstalledProvidersForProfile(int categoryFilter, int profileId, in getInstalledProvidersForProfile() argument
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ValidateNotificationPeople.java | 428 for (int profileId : profileIds) { in findWorkUserId() 429 if (userManager.isManagedProfile(profileId)) { in findWorkUserId() 430 return profileId; in findWorkUserId()
|
D | NotificationHistoryManager.java | 405 for (int profileId : profiles) { in update() 406 onHistoryEnabledChanged(profileId, historyEnabled); in update()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediator.java | 1179 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardLaterForChildProfilesLocked() 1180 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardLaterForChildProfilesLocked() 1181 long userTimeout = getLockTimeout(profileId); in doKeyguardLaterForChildProfilesLocked() 1188 lockIntent.putExtra(Intent.EXTRA_USER_ID, profileId); in doKeyguardLaterForChildProfilesLocked() 1201 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardForChildProfilesLocked() 1202 if (mLockPatternUtils.isSeparateProfileChallengeEnabled(profileId)) { in doKeyguardForChildProfilesLocked() 1203 lockProfile(profileId); in doKeyguardForChildProfilesLocked() 1960 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) { in sendUserPresentBroadcast() 1961 mContext.sendBroadcastAsUser(USER_PRESENT_INTENT, UserHandle.of(profileId)); in sendUserPresentBroadcast()
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 1185 private boolean bindAppWidgetIdIfAllowed(int appWidgetId, int profileId, in bindAppWidgetIdIfAllowed() argument 1192 profileId, provider, options); in bindAppWidgetIdIfAllowed()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | Utils.java | 389 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile() 390 if (profileId == userId) { in isCurrentUserOrProfile()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 248 void setProfileConnectedStatus(int profileId, boolean isFailed) { in setProfileConnectedStatus() argument 249 switch (profileId) { in setProfileConnectedStatus() 260 Log.w(TAG, "setProfileConnectedStatus(): unknown profile id : " + profileId); in setProfileConnectedStatus()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationController.java | 497 final int profileId = getWorkProfileUserId(UserHandle.myUserId()); in getWorkProfileOrganizationName() local 498 if (profileId == UserHandle.USER_NULL) { in getWorkProfileOrganizationName() 501 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 1562 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnUnlockIfRequired() 1564 credential.getType(), secret, profileId); in sendCredentialsOnUnlockIfRequired() local 1584 for (int profileId : getProfilesWithSameLockScreen(userId)) { in sendCredentialsOnChangeIfRequired() 1586 credential.getType(), secret, profileId); in sendCredentialsOnChangeIfRequired() local 2124 for (int profileId : mUserManager.getProfileIdsWithDisabled(userId)) { in resetKeyStore() 2127 UserHandle.getUid(profileId, uid)); in resetKeyStore()
|