/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 176 final UserState userState; in print() local 185 userState = getOrCreateUserStateLocked(resolvedUserId, false); in print() 189 return userState.print(printJobName, adapter, attributes, in print() 200 final UserState userState; in getPrintJobInfos() local 207 userState = getOrCreateUserStateLocked(resolvedUserId, false); in getPrintJobInfos() 211 return userState.getPrintJobInfos(resolvedAppId); in getPrintJobInfos() 225 final UserState userState; in getPrintJobInfo() local 232 userState = getOrCreateUserStateLocked(resolvedUserId, false); in getPrintJobInfo() 236 return userState.getPrintJobInfo(printJobId, resolvedAppId); in getPrintJobInfo() 247 final UserState userState; in getCustomPrinterIcon() local [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 401 final AccessibilityUserState userState = getCurrentUserStateLocked(); in changeMagnificationMode() local 402 final int currentMode = userState.getMagnificationModeLocked(displayId); in changeMagnificationMode() 404 userState.setMagnificationModeLocked(displayId, magnificationMode); in changeMagnificationMode() 405 updateMagnificationModeChangeSettingsLocked(userState, displayId); in changeMagnificationMode() 665 public void onServiceInfoChangedLocked(AccessibilityUserState userState) { in onServiceInfoChangedLocked() argument 666 mSecurityPolicy.onBoundServicesChangedLocked(userState.mUserId, in onServiceInfoChangedLocked() 667 userState.mBoundServices); in onServiceInfoChangedLocked() 668 scheduleNotifyClientsOfServicesStateChangeLocked(userState); in onServiceInfoChangedLocked() 742 final AccessibilityUserState userState = getUserStateLocked(userId); in getBindInstantServiceAllowed() local 743 return userState.getBindInstantServiceAllowedLocked(); in getBindInstantServiceAllowed() [all …]
|
D | AccessibilityServiceConnection.java | 127 AccessibilityServiceConnection(@Nullable AccessibilityUserState userState, in AccessibilityServiceConnection() argument 137 mUserStateWeakReference = new WeakReference<AccessibilityUserState>(userState); in AccessibilityServiceConnection() 141 mUserId = userState == null ? UserHandle.USER_NULL : userState.mUserId; in AccessibilityServiceConnection() 158 AccessibilityUserState userState = mUserStateWeakReference.get(); in bindLocked() local 159 if (userState == null) return; in bindLocked() 166 if (userState.getBindInstantServiceAllowedLocked()) { in bindLocked() 170 mIntent, this, flags, new UserHandle(userState.mUserId))) { in bindLocked() 171 userState.getBindingServicesLocked().add(mComponentName); in bindLocked() 178 userState.mUserId); in bindLocked() 186 AccessibilityUserState userState = mUserStateWeakReference.get(); in unbindLocked() local [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityManagerServiceTest.java | 266 final AccessibilityUserState userState = new AccessibilityUserState( in setUp() local 268 mA11yms.mUserStates.put(mA11yms.getCurrentUserIdLocked(), userState); in setUp() local 285 final AccessibilityUserState userState = mA11yms.mUserStates.get( in setupAccessibilityServiceConnection() local 301 userState, in setupAccessibilityServiceConnection() 355 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testOnSystemActionsChanged() local 358 mA11yms.notifySystemActionsChangedLocked(userState); in testOnSystemActionsChanged() 452 final AccessibilityUserState userState = mA11yms.mUserStates.get( in testOnMagnificationTransitionFailed_capabilitiesIsAll_fallBackToPreviousMode() local 454 userState.setMagnificationCapabilitiesLocked(ACCESSIBILITY_MAGNIFICATION_MODE_ALL); in testOnMagnificationTransitionFailed_capabilitiesIsAll_fallBackToPreviousMode() 455 userState.setMagnificationModeLocked(Display.DEFAULT_DISPLAY, in testOnMagnificationTransitionFailed_capabilitiesIsAll_fallBackToPreviousMode() 461 assertThat(userState.getMagnificationModeLocked(Display.DEFAULT_DISPLAY)).isEqualTo( in testOnMagnificationTransitionFailed_capabilitiesIsAll_fallBackToPreviousMode() [all …]
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | PerUser.java | 50 T userState = super.get(userId); in get() local 51 if (userState != null) { in get() 52 return userState; in get() 54 userState = Preconditions.checkNotNull(create(userId)); in get() 55 put(userId, userState); in get() 56 return userState; in get()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 350 UserState userState = getOrCreateUserStateLocked(userId); in buildTvInputListLocked() local 351 userState.packageSet.clear(); in buildTvInputListLocked() 370 ServiceState serviceState = userState.serviceStateMap.get(component); in buildTvInputListLocked() 375 userState.serviceStateMap.put(component, serviceState); in buildTvInputListLocked() 389 userState.packageSet.add(si.packageName); in buildTvInputListLocked() 405 TvInputState inputState = userState.inputMap.get(inputId); in buildTvInputListLocked() 416 if (!userState.inputMap.containsKey(inputId)) { in buildTvInputListLocked() 417 notifyInputAddedLocked(userState, inputId); in buildTvInputListLocked() 424 notifyInputUpdatedLocked(userState, inputId); in buildTvInputListLocked() 431 for (String inputId : userState.inputMap.keySet()) { in buildTvInputListLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionState.java | 119 UserState userState = mUserStates.get(userId); in getPermissionState() local 120 if (userState == null) { in getPermissionState() 123 return userState.getPermissionState(permissionName); in getPermissionState() 135 UserState userState = mUserStates.get(userId); in putPermissionState() local 136 if (userState == null) { in putPermissionState() 137 userState = new UserState(); in putPermissionState() 138 mUserStates.put(userId, userState); in putPermissionState() 140 userState.putPermissionState(permissionState); in putPermissionState() 154 final UserState userState = mUserStates.valueAt(i); in hasPermissionState() local 156 if (userState.getPermissionState(permissionName) != null) { in hasPermissionState() [all …]
|
D | DevicePermissionState.java | 37 UserPermissionState userState = mUserStates.get(userId); in getOrCreateUserState() local 38 if (userState == null) { in getOrCreateUserState() 39 userState = new UserPermissionState(); in getOrCreateUserState() 40 mUserStates.put(userId, userState); in getOrCreateUserState() 42 return userState; in getOrCreateUserState()
|
/frameworks/base/services/core/java/com/android/server/tv/interactive/ |
D | TvInteractiveAppManagerService.java | 145 UserState userState = getOrCreateUserStateLocked(userId); in buildAppLinkInfoLocked() local 161 userState.mAppLinkInfoList.clear(); in buildAppLinkInfoLocked() 162 userState.mAppLinkInfoList.addAll(appLinkInfos); in buildAppLinkInfoLocked() 180 UserState userState = getOrCreateUserStateLocked(userId); in buildTvInteractiveAppServiceListLocked() local 181 userState.mPackageSet.clear(); in buildTvInteractiveAppServiceListLocked() 211 userState.mPackageSet.add(si.packageName); in buildTvInteractiveAppServiceListLocked() 227 TvInteractiveAppState iAppState = userState.mIAppMap.get(iAppServiceId); in buildTvInteractiveAppServiceListLocked() 239 if (!userState.mIAppMap.containsKey(iAppServiceId)) { in buildTvInteractiveAppServiceListLocked() 240 notifyInteractiveAppServiceAddedLocked(userState, iAppServiceId); in buildTvInteractiveAppServiceListLocked() 247 notifyInteractiveAppServiceUpdatedLocked(userState, iAppServiceId); in buildTvInteractiveAppServiceListLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationDebug.java | 244 DomainVerificationInternalUserState userState = userStates.valueAt(index); in printState() local 245 printState(writer, pkgState, userState.getUserId(), userState, reusedSet, in printState() 250 DomainVerificationInternalUserState userState = userStates.get(userId); in printState() local 251 printState(writer, pkgState, userId, userState, reusedSet, allWebDomains, in printState() 258 @Nullable DomainVerificationInternalUserState userState, in printState() argument 263 if (userState != null) { in printState() 264 reusedSet.removeAll(userState.getEnabledHosts()); in printState() 269 ArraySet<String> enabledHosts = userState == null ? null : userState.getEnabledHosts(); in printState() 278 boolean isLinkHandlingAllowed = userState == null || userState.isLinkHandlingAllowed(); in printState()
|
D | DomainVerificationPersistence.java | 249 DomainVerificationInternalUserState userState = createUserStateFromXml(child); in readUserStates() local 250 if (userState != null) { in readUserStates() 251 userStates.put(userState.getUserId(), userState); in readUserStates() local 306 DomainVerificationInternalUserState userState = states.get(userId); in writeUserStates() local 307 if (userState != null) { in writeUserStates() 308 writeUserStateToXml(section, userState); in writeUserStates() 366 @NonNull DomainVerificationInternalUserState userState) throws IOException { in writeUserStateToXml() argument 369 .attribute(ATTR_USER_ID, userState.getUserId()) in writeUserStateToXml() 371 userState.isLinkHandlingAllowed())) { in writeUserStateToXml() 372 ArraySet<String> enabledHosts = userState.getEnabledHosts(); in writeUserStateToXml()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationPackageTest.kt | 101 val userState = service.getUserState(pkg1.packageName) in <lambda>() constant 102 assertThat(userState.packageName).isEqualTo(pkg1.packageName) in <lambda>() 103 assertThat(userState.identifier).isEqualTo(pkg1.domainSetId) in <lambda>() 104 assertThat(userState.isLinkHandlingAllowed).isEqualTo(true) in <lambda>() 105 assertThat(userState.user.identifier).isEqualTo(USER_ID) in <lambda>() 106 assertThat(userState.hostToStateMap).containsExactlyEntriesIn(mapOf( in <lambda>() 213 val userState = service.getUserState(pkg1.packageName) in <lambda>() constant 214 assertThat(userState.packageName).isEqualTo(pkg1.packageName) in <lambda>() 215 assertThat(userState.identifier).isEqualTo(pkg1.domainSetId) in <lambda>() 216 assertThat(userState.isLinkHandlingAllowed).isEqualTo(true) in <lambda>() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SuspendPackageHelper.java | 185 final PackageUserStateWrite userState = mutator.forPackage(packageName) in setPackagesSuspended() 186 .userState(targetUserId); in setPackagesSuspended() 188 userState.putSuspendParams(suspendingPackage, newSuspendParams); in setPackagesSuspended() 190 userState.removeSuspension(suspendingPackage); in setPackagesSuspended() 337 PackageUserStateWrite userState = in removeSuspensionsBySuspendingPackage() 338 mutator.forPackage(packageName).userState(targetUserId); in removeSuspensionsBySuspendingPackage() 340 userState.removeSuspension(packagesToRemove.valueAt(setIndex)); in removeSuspensionsBySuspendingPackage() 375 PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in getSuspendedPackageLauncherExtras() local 376 if (userState.isSuspended()) { in getSuspendedPackageLauncherExtras() 377 for (int i = 0; i < userState.getSuspendParams().size(); i++) { in getSuspendedPackageLauncherExtras() [all …]
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | DevicePermissionPolicy.kt | 54 newState.userStates.forEachIndexed { userStateIndex, _, userState -> in <lambda>() method 55 if (appId in userState.appIdDevicePermissionFlags) { in <lambda>() 63 newState.userStates.forEachIndexed { _, userId, userState -> in <lambda>() method 64 userState.appIdDevicePermissionFlags.forEachReversedIndexed { _, appId, _ -> in <lambda>() 80 newState.userStates.forEachIndexed { _, userId, userState -> in <lambda>() method 81 userState.appIdDevicePermissionFlags.forEachReversedIndexed { _, appId, _ -> in <lambda>() 134 val userState = newState.userStates[userId] ?: return in <lambda>() constant 135 val devicePermissionFlags = userState.appIdDevicePermissionFlags[appId] ?: return in <lambda>() 157 newState.userStates.forEachIndexed { _, userId, userState -> in <lambda>() method 158 userState.appIdDevicePermissionFlags[appId]?.forEachReversedIndexed { in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | PackageStateUtils.java | 60 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in isEnabledAndMatches() 61 return PackageUserStateUtils.isMatch(userState, componentInfo, flags); in isEnabledAndMatches() 74 final PackageUserStateInternal userState = packageState.getUserStateOrDefault(userId); in isEnabledAndMatches() local 75 return PackageUserStateUtils.isMatch(userState, packageState.isSystem(), in isEnabledAndMatches()
|
D | PackageStateInternal.java | 69 PackageUserStateInternal userState = getUserStates().get(userId); in getUserStateOrDefault() local 70 return userState == null ? PackageUserStateInternal.DEFAULT : userState; in getUserStateOrDefault()
|
D | SELinuxUtil.java | 34 public static String getSeinfoUser(PackageUserState userState) { in getSeinfoUser() argument 35 if (userState.isInstantApp()) { in getSeinfoUser()
|
D | PackageState.java | 303 PackageUserState userState = getUserStates().get(userId); in getUserStateOrDefault() local 304 return userState == null ? PackageUserState.DEFAULT : userState; in getUserStateOrDefault()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/ |
D | PackageAppOpMigration.kt | 37 val userState = state.mutateUserState(userId)!! in <lambda>() constant 38 val packageAppOpModes = userState.mutatePackageAppOpModes() in <lambda>() 49 userState.mutatePackageVersions()[packageName] = version in <lambda>()
|
D | AppIdAppOpMigration.kt | 37 val userState = state.mutateUserState(userId)!! in <lambda>() constant 38 val appIdAppOpModes = userState.mutateAppIdAppOpModes() in <lambda>() 52 val packageVersions = userState.mutatePackageVersions() in <lambda>()
|
D | AppIdAppOpPersistence.kt | 44 val userState = state.mutateUserState(userId, WriteMode.NONE)!! in <lambda>() constant 45 val appIdAppOpModes = userState.mutateAppIdAppOpModes() in <lambda>() 52 userState.appIdAppOpModes.forEachReversedIndexed { appIdIndex, appId, _ -> in <lambda>() 60 userState.requestWriteMode(WriteMode.ASYNCHRONOUS) in <lambda>()
|
D | PackageAppOpPersistence.kt | 44 val userState = state.mutateUserState(userId, WriteMode.NONE)!! in <lambda>() constant 45 val packageAppOpModes = userState.mutatePackageAppOpModes() in <lambda>() 56 userState.requestWriteMode(WriteMode.ASYNCHRONOUS) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/mutate/ |
D | PackageStateMutator.java | 193 public PackageUserStateWrite userState(int userId) { in userState() method in PackageStateMutator.StateWriteWrapper 194 var userState = mState == null ? null : mState.getOrCreateUserState(userId); in userState() local 195 if (userState != null) { in userState() 196 userState.setWatchable(mState); in userState() 198 return mUserStateWrite.setStates(userState); in userState() 318 public UserStateWriteWrapper setStates(@Nullable PackageUserStateImpl userState) { in setStates() argument 319 mUserState = userState; in setStates()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 1251 final PackageUserState userState = testPkgSetting01.readUserState(0); in testUpdatePackageSetting01() local 1252 verifyUserState(userState, false /*notLaunched*/, in testUpdatePackageSetting01() 1295 final PackageUserState userState = testPkgSetting01.readUserState(0); in testUpdatePackageSetting02() local 1296 verifyUserState(userState, false /*notLaunched*/, in testUpdatePackageSetting02() 1451 final PackageUserState userState = testPkgSetting01.readUserState(0); in testCreateNewSetting01() local 1452 verifyUserState(userState, false /*notLaunched*/, false /*stopped*/, true /*installed*/); in testCreateNewSetting01() 1496 final PackageUserState userState = testPkgSetting01.readUserState(0); in testCreateNewSetting02() local 1497 verifyUserState(userState, true /*notLaunched*/, true /*stopped*/, true /*installed*/); in testCreateNewSetting02() 1544 final PackageUserState userState = testPkgSetting01.readUserState(0); in testCreateNewSetting03() local 1545 verifyUserState(userState, false /*notLaunched*/, false /*stopped*/, true /*installed*/); in testCreateNewSetting03() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/models/ |
D | DomainVerificationPkgState.java | 116 DomainVerificationInternalUserState userState = mUserStates.get(userId); in getOrCreateUserState() local 117 if (userState == null) { in getOrCreateUserState() 118 userState = new DomainVerificationInternalUserState(userId); in getOrCreateUserState() 119 mUserStates.put(userId, userState); in getOrCreateUserState() 121 return userState; in getOrCreateUserState()
|