/frameworks/base/packages/SystemUI/src/com/android/systemui/util/settings/ |
D | UserSettingsProxy.kt | 59 fun getRealUserHandle(userHandle: Int): Int { in getRealUserHandle() 60 return if (userHandle != UserHandle.USER_CURRENT) { in getRealUserHandle() 61 userHandle in getRealUserHandle() 86 userHandle: Int in registerContentObserverForUserSync() 88 registerContentObserverForUserSync(getUriFor(name), settingsObserver, userHandle) in registerContentObserverForUserSync() 95 userHandle: Int in registerContentObserverForUserSync() 97 registerContentObserverForUserSync(uri, false, settingsObserver, userHandle) in registerContentObserverForUserSync() 109 userHandle: Int in registerContentObserverForUserSync() 115 userHandle in registerContentObserverForUserSync() 124 userHandle: Int in registerContentObserverForUserSync() [all …]
|
/frameworks/base/services/flags/java/com/android/server/flags/ |
D | SettingsProxy.java | 64 String getStringForUser(String name, int userHandle); in getStringForUser() argument 70 boolean putStringForUser(String name, String value, int userHandle); in putStringForUser() argument 77 boolean makeDefault, @UserIdInt int userHandle, boolean overrideableByRestore); in putStringForUser() argument 100 default int getIntForUser(String name, int def, int userHandle) { in getIntForUser() argument 101 String v = getStringForUser(name, userHandle); in getIntForUser() 115 default int getIntForUser(String name, int userHandle) in getIntForUser() argument 117 String v = getStringForUser(name, userHandle); in getIntForUser() 131 default boolean putIntForUser(String name, int value, int userHandle) { in putIntForUser() argument 132 return putStringForUser(name, Integer.toString(value), userHandle); in putIntForUser() 153 default boolean getBoolForUser(String name, boolean def, int userHandle) { in getBoolForUser() argument [all …]
|
D | GlobalSettingsProxy.java | 41 public String getStringForUser(String name, int userHandle) { in getStringForUser() argument 42 return Settings.Global.getStringForUser(mContentResolver, name, userHandle); in getStringForUser() 52 public boolean putStringForUser(String name, String value, int userHandle) { in putStringForUser() argument 53 return Settings.Global.putStringForUser(mContentResolver, name, value, userHandle); in putStringForUser() 58 int userHandle, boolean overrideableByRestore) { in putStringForUser() argument 60 mContentResolver, name, value, tag, makeDefault, userHandle, in putStringForUser()
|
/frameworks/base/nfc/java/android/nfc/ |
D | INfcCardEmulation.aidl | 29 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in isDefaultServiceForCategory() argument 30 boolean isDefaultServiceForAid(int userHandle, in ComponentName service, String aid); in isDefaultServiceForAid() argument 31 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in setDefaultServiceForCategory() argument 32 boolean setDefaultForNextTap(int userHandle, in ComponentName service); in setDefaultForNextTap() argument 34 …boolean registerAidGroupForService(int userHandle, in ComponentName service, in AidGroup aidGroup); in registerAidGroupForService() argument 35 …boolean registerPollingLoopFilterForService(int userHandle, in ComponentName service, in String po… in registerPollingLoopFilterForService() argument 36 …boolean registerPollingLoopPatternFilterForService(int userHandle, in ComponentName service, in St… in registerPollingLoopPatternFilterForService() argument 37 …boolean setOffHostForService(int userHandle, in ComponentName service, in String offHostSecureElem… in setOffHostForService() argument 38 boolean unsetOffHostForService(int userHandle, in ComponentName service); in unsetOffHostForService() argument 39 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() argument [all …]
|
D | INfcFCardEmulation.aidl | 27 String getSystemCodeForService(int userHandle, in ComponentName service); in getSystemCodeForService() argument 28 … boolean registerSystemCodeForService(int userHandle, in ComponentName service, String systemCode); in registerSystemCodeForService() argument 29 boolean removeSystemCodeForService(int userHandle, in ComponentName service); in removeSystemCodeForService() argument 30 String getNfcid2ForService(int userHandle, in ComponentName service); in getNfcid2ForService() argument 31 boolean setNfcid2ForService(int userHandle, in ComponentName service, String nfcid2); in setNfcid2ForService() argument 34 List<NfcFServiceInfo> getNfcFServices(int userHandle); in getNfcFServices() argument
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyCacheImpl.java | 71 public void onUserRemoved(int userHandle) { in onUserRemoved() argument 73 mPasswordQuality.delete(userHandle); in onUserRemoved() 74 mPermissionPolicy.delete(userHandle); in onUserRemoved() 75 mContentProtectionPolicy.delete(userHandle); in onUserRemoved() 80 public boolean isScreenCaptureAllowed(int userHandle) { in isScreenCaptureAllowed() argument 83 return !mScreenCaptureDisallowedUsers.contains(userHandle) in isScreenCaptureAllowed() 88 public void setScreenCaptureDisallowedUser(int userHandle, boolean disallowed) { in setScreenCaptureDisallowedUser() argument 91 mScreenCaptureDisallowedUsers.add(userHandle); in setScreenCaptureDisallowedUser() 93 mScreenCaptureDisallowedUsers.remove(userHandle); in setScreenCaptureDisallowedUser() 99 public int getPasswordQuality(@UserIdInt int userHandle) { in getPasswordQuality() argument [all …]
|
D | CertificateMonitor.java | 77 public String installCaCert(final UserHandle userHandle, byte[] certBuffer) { in installCaCert() argument 88 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in installCaCert() 99 public void uninstallCaCerts(final UserHandle userHandle, final String[] aliases) { in uninstallCaCerts() argument 100 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in uninstallCaCerts() 112 private List<String> getInstalledCaCertificates(UserHandle userHandle) in getInstalledCaCertificates() argument 114 try (KeyChainConnection conn = mInjector.keyChainBindAsUser(userHandle)) { in getInstalledCaCertificates() 139 private void updateInstalledCertificates(final UserHandle userHandle) { in updateInstalledCertificates() argument 140 final int userId = userHandle.getIdentifier(); in updateInstalledCertificates() 147 installedCerts = getInstalledCaCertificates(userHandle); in updateInstalledCertificates() 153 mService.onInstalledCertificatesChanged(userHandle, installedCerts); in updateInstalledCertificates() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SettingsAdapter.java | 59 public int getSystemIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getSystemIntForUser() argument 60 return Settings.System.getIntForUser(cr, name, def, userHandle); in getSystemIntForUser() 64 public boolean putSystemIntForUser(ContentResolver cr, String name, int value, int userHandle) { in putSystemIntForUser() argument 65 return Settings.System.putIntForUser(cr, name, value, userHandle); in putSystemIntForUser() 73 public int getSecureIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getSecureIntForUser() argument 74 return Settings.Secure.getIntForUser(cr, name, def, userHandle); in getSecureIntForUser() 78 public String getSecureStringForUser(ContentResolver resolver, String name, int userHandle) { in getSecureStringForUser() argument 79 return Settings.Secure.getStringForUser(resolver, name, userHandle); in getSecureStringForUser() 83 public boolean putSecureIntForUser(ContentResolver cr, String name, int value, int userHandle) { in putSecureIntForUser() argument 84 return Settings.Secure.putIntForUser(cr, name, value, userHandle); in putSecureIntForUser() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/devicestate/ |
D | FakeSecureSettings.java | 35 public void putStringForUser(String name, String value, int userHandle) { in putStringForUser() argument 36 SettingsKey settingsKey = new SettingsKey(userHandle, name); in putStringForUser() 44 public String getStringForUser(String name, int userHandle) { in getStringForUser() argument 45 return mValues.getOrDefault(new SettingsKey(userHandle, name), ""); in getStringForUser() 50 ContentObserver settingsObserver, int userHandle) { in registerContentObserver() argument 51 mContentObservers.put(new SettingsKey(userHandle, name), settingsObserver); in registerContentObserver() 56 SettingsKey(Integer userHandle, String settingName) { in SettingsKey() argument 57 super(userHandle, settingName); in SettingsKey()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputDialogManager.kt | 53 userHandle: UserHandle? = null, in createAndShow() 69 userHandle = userHandle, in createAndShow() 82 userHandle: UserHandle? = null, in createAndShowWithController() 90 userHandle = userHandle, in createAndShowWithController() 103 userHandle = null, in createAndShowForSystemRouting() 115 userHandle: UserHandle? = null, in createAndShow() 121 val controller = mediaOutputControllerFactory.create(packageName, userHandle, token) in createAndShow()
|
/frameworks/base/packages/SettingsLib/ProfileSelector/src/com/android/settingslib/widget/ |
D | ProfileSelectFragment.java | 183 for (UserHandle userHandle : userHandles) { in initProfileTabsToShow() 184 if (!userIdsToShow.contains(userHandle.getIdentifier())) { in initProfileTabsToShow() 187 if (userHandle.isSystem()) { in initProfileTabsToShow() 188 mProfileTabsByUsers.put(userHandle, PERSONAL_TAB); in initProfileTabsToShow() 189 } else if (userManager.isManagedProfile(userHandle.getIdentifier())) { in initProfileTabsToShow() 190 mProfileTabsByUsers.put(userHandle, WORK_TAB); in initProfileTabsToShow() 191 } else if (shouldShowPrivateProfileIfItsOne(userHandle)) { in initProfileTabsToShow() 192 mProfileTabsByUsers.put(userHandle, PRIVATE_TAB); in initProfileTabsToShow() 219 private boolean shouldShowUserInQuietMode(UserHandle userHandle, UserManager userManager) { in shouldShowUserInQuietMode() argument 220 UserProperties userProperties = userManager.getUserProperties(userHandle); in shouldShowUserInQuietMode() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | SystemBackupAgentTest.java | 77 UserHandle userHandle = new UserHandle(UserHandle.USER_SYSTEM); in onCreate_systemUser_addsAllHelpers() local 80 mSystemBackupAgent.onCreate(userHandle, /* backupDestination= */ 0); in onCreate_systemUser_addsAllHelpers() 101 UserHandle userHandle = new UserHandle(UserHandle.USER_SYSTEM); in onCreate_systemUser_slicesDisabled_addsAllNonSlicesHelpers() local 106 mSystemBackupAgent.onCreate(userHandle, /* backupDestination= */ 0); in onCreate_systemUser_slicesDisabled_addsAllNonSlicesHelpers() 126 UserHandle userHandle = new UserHandle(NON_SYSTEM_USER_ID); in onCreate_profileUser_addsProfileEligibleHelpers() local 129 mSystemBackupAgent.onCreate(userHandle, /* backupDestination= */ 0); in onCreate_profileUser_addsProfileEligibleHelpers() 144 UserHandle userHandle = new UserHandle(NON_SYSTEM_USER_ID); in onCreate_nonSystemUser_addsNonSystemEligibleHelpers() local 147 mSystemBackupAgent.onCreate(userHandle, /* backupDestination= */ 0); in onCreate_nonSystemUser_addsNonSystemEligibleHelpers() 166 UserHandle userHandle = new UserHandle(UserHandle.USER_SYSTEM); in onAddHelperIfEligibleForUser_flagIsOff_helpersHaveNoLogger() local 170 mSystemBackupAgent.onCreate(userHandle, /* backupDestination= */ 0); in onAddHelperIfEligibleForUser_flagIsOff_helpersHaveNoLogger() [all …]
|
/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/ |
D | AndroidSecureSettings.java | 36 public void putStringForUser(String name, String value, int userHandle) { in putStringForUser() argument 37 Settings.Secure.putStringForUser(mContentResolver, name, value, userHandle); in putStringForUser() 41 public String getStringForUser(String name, int userHandle) { in getStringForUser() argument 42 return Settings.Secure.getStringForUser(mContentResolver, name, userHandle); in getStringForUser() 47 ContentObserver observer, int userHandle) { in registerContentObserver() argument 52 userHandle); in registerContentObserver() local
|
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/ |
D | CarDisplayCompatScaleProvider.java | 154 @NonNull UserHandle userHandle) { in getBuiltinInterface() argument 155 if (CompatChanges.isChangeEnabled(DOWNSCALE_90, packageName, userHandle)) { in getBuiltinInterface() 158 if (CompatChanges.isChangeEnabled(DOWNSCALE_85, packageName, userHandle)) { in getBuiltinInterface() 161 if (CompatChanges.isChangeEnabled(DOWNSCALE_80, packageName, userHandle)) { in getBuiltinInterface() 164 if (CompatChanges.isChangeEnabled(DOWNSCALE_75, packageName, userHandle)) { in getBuiltinInterface() 167 if (CompatChanges.isChangeEnabled(DOWNSCALE_70, packageName, userHandle)) { in getBuiltinInterface() 170 if (CompatChanges.isChangeEnabled(DOWNSCALE_65, packageName, userHandle)) { in getBuiltinInterface() 173 if (CompatChanges.isChangeEnabled(DOWNSCALE_60, packageName, userHandle)) { in getBuiltinInterface() 176 if (CompatChanges.isChangeEnabled(DOWNSCALE_55, packageName, userHandle)) { in getBuiltinInterface() 179 if (CompatChanges.isChangeEnabled(DOWNSCALE_50, packageName, userHandle)) { in getBuiltinInterface() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/ |
D | BroadcastSender.kt | 54 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle) { in sendBroadcastAsUser() 56 context.sendBroadcastAsUser(intent, userHandle) in sendBroadcastAsUser() 65 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle, receiverPermission: String?) { in sendBroadcastAsUser() 67 context.sendBroadcastAsUser(intent, userHandle, receiverPermission) in sendBroadcastAsUser() 78 userHandle: UserHandle, in sendBroadcastAsUser() 83 context.sendBroadcastAsUser(intent, userHandle, receiverPermission, options) in sendBroadcastAsUser() 94 userHandle: UserHandle, in sendBroadcastAsUser() 99 context.sendBroadcastAsUser(intent, userHandle, receiverPermission, appOp) in sendBroadcastAsUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/ |
D | ColorInversionRepository.kt | 41 fun isEnabled(userHandle: UserHandle): Flow<Boolean> in isEnabled() 44 suspend fun setIsEnabled(isEnabled: Boolean, userHandle: UserHandle): Boolean in isEnabled() 58 override fun isEnabled(userHandle: UserHandle): Flow<Boolean> = in isEnabled() 59 userMap.getOrPut(userHandle.identifier) { in isEnabled() 61 .observerFlow(userHandle.identifier, SETTING_NAME) in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 72 override suspend fun setIsEnabled(isEnabled: Boolean, userHandle: UserHandle): Boolean = in isEnabled() 77 userHandle.identifier in isEnabled()
|
D | ColorCorrectionRepository.kt | 41 fun isEnabled(userHandle: UserHandle): Flow<Boolean> in isEnabled() 44 suspend fun setIsEnabled(isEnabled: Boolean, userHandle: UserHandle): Boolean in isEnabled() 58 override fun isEnabled(userHandle: UserHandle): Flow<Boolean> = in isEnabled() 59 userMap.getOrPut(userHandle.identifier) { in isEnabled() 61 .observerFlow(userHandle.identifier, SETTING_NAME) in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 72 override suspend fun setIsEnabled(isEnabled: Boolean, userHandle: UserHandle): Boolean = in isEnabled() 77 userHandle.identifier in isEnabled()
|
D | OneHandedModeRepository.kt | 41 fun isEnabled(userHandle: UserHandle): Flow<Boolean> in isEnabled() 44 suspend fun setIsEnabled(isEnabled: Boolean, userHandle: UserHandle): Boolean in isEnabled() 58 override fun isEnabled(userHandle: UserHandle): Flow<Boolean> = in isEnabled() 59 userMap.getOrPut(userHandle.identifier) { in isEnabled() 61 .observerFlow(userHandle.identifier, SETTING_NAME) in isEnabled() 64 secureSettings.getIntForUser(SETTING_NAME, DISABLED, userHandle.identifier) == in isEnabled() 72 override suspend fun setIsEnabled(isEnabled: Boolean, userHandle: UserHandle): Boolean = in isEnabled() 77 userHandle.identifier in isEnabled()
|
/frameworks/base/core/java/android/app/admin/ |
D | IDevicePolicyManager.aidl | 68 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality() argument 71 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength() argument 74 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase() argument 77 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase() argument 80 int getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLetters() argument 83 int getPasswordMinimumNumeric(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumNumeric() argument 86 int getPasswordMinimumSymbols(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumSymbols() argument 89 int getPasswordMinimumNonLetter(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumNonLetter() argument 91 PasswordMetrics getPasswordMinimumMetrics(int userHandle, boolean deviceWideOnly); in getPasswordMinimumMetrics() argument 94 int getPasswordHistoryLength(in ComponentName who, int userHandle, boolean parent); in getPasswordHistoryLength() argument [all …]
|
D | DevicePolicyCache.java | 50 public abstract boolean isScreenCaptureAllowed(@UserIdInt int userHandle); in isScreenCaptureAllowed() argument 56 public abstract int getPasswordQuality(@UserIdInt int userHandle); in getPasswordQuality() argument 62 public abstract int getPermissionPolicy(@UserIdInt int userHandle); in getPermissionPolicy() argument 89 public boolean isScreenCaptureAllowed(int userHandle) { in isScreenCaptureAllowed() argument 94 public int getPasswordQuality(int userHandle) { in getPasswordQuality() argument 99 public int getPermissionPolicy(int userHandle) { in getPermissionPolicy() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/ |
D | ActionDisabledLearnMoreButtonLauncher.java | 39 (packageManager, url, userHandle) -> packageManager.resolveActivityAsUser( 42 userHandle.getIdentifier()) != null; 46 PackageManager packageManager, String url, UserHandle userHandle); in canResolveActivityAsUser() argument 69 Context context, String url, UserHandle userHandle) { in setupLearnMoreButtonToLaunchHelpPage() argument 73 setLearnMoreButton(() -> showHelpPage(context, url, userHandle)); in setupLearnMoreButtonToLaunchHelpPage() 120 public void showHelpPage(Context context, String url, UserHandle userHandle) { in showHelpPage() argument 121 context.startActivityAsUser(createLearnMoreIntent(url), userHandle); in showHelpPage() local 128 UserHandle userHandle, in canLaunchHelpPage() argument 130 return resolveActivityChecker.canResolveActivityAsUser(packageManager, url, userHandle); in canLaunchHelpPage()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/settings/ |
D | FakeSettings.java | 70 ContentObserver settingsObserver, int userHandle) { in registerContentObserverForUserSync() argument 72 if (userHandle == UserHandle.USER_ALL) { in registerContentObserverForUserSync() 76 SettingsKey key = new SettingsKey(userHandle, uri.toString()); in registerContentObserverForUserSync() 115 public String getStringForUser(String name, int userHandle) { in getStringForUser() argument 116 return mValues.get(new SettingsKey(userHandle, getUriFor(name).toString())); in getStringForUser() 130 public boolean putStringForUser(String name, String value, int userHandle) { in putStringForUser() argument 131 return putStringForUser(name, value, null, false, userHandle, false); in putStringForUser() 136 int userHandle, boolean overrideableByRestore) { in putStringForUser() argument 137 SettingsKey key = new SettingsKey(userHandle, getUriFor(name).toString()); in putStringForUser() 142 observer.dispatchChange(false, List.of(uri), 0, userHandle); in putStringForUser() [all …]
|
/frameworks/base/core/java/android/hardware/biometrics/ |
D | ParentalControlsUtilsInternal.java | 60 @NonNull UserHandle userHandle) { in parentConsentRequired() argument 61 if (getTestComponentName(context, userHandle.getIdentifier()) != null) { in parentConsentRequired() 65 return parentConsentRequired(dpm, modality, userHandle); in parentConsentRequired() 72 @BiometricAuthenticator.Modality int modality, @NonNull UserHandle userHandle) { in parentConsentRequired() argument 73 final ComponentName cn = getSupervisionComponentName(dpm, userHandle); in parentConsentRequired() 102 @NonNull UserHandle userHandle) { in getSupervisionComponentName() argument 103 return dpm.getProfileOwnerOrDeviceOwnerSupervisionComponent(userHandle); in getSupervisionComponentName()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ChooserWrapperActivity.java | 67 UserHandle userHandle) { in createChooserListAdapter() argument 72 filterLastUsed, createListController(userHandle), in createChooserListAdapter() 74 getChooserActivityLogger(), userHandle); in createChooserListAdapter() 157 protected ResolverListController createListController(UserHandle userHandle) { in createListController() argument 158 if (userHandle == UserHandle.SYSTEM) { in createListController() 162 when(sOverrides.workResolverListController.getUserHandle()).thenReturn(userHandle); in createListController() 274 protected boolean isQuietModeEnabled(UserHandle userHandle) { in isQuietModeEnabled() argument 279 protected boolean isUserRunning(UserHandle userHandle) { in isUserRunning() argument 280 if (userHandle.equals(UserHandle.SYSTEM)) { in isUserRunning() 281 return super.isUserRunning(userHandle); in isUserRunning() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | SmsApplication.java | 261 UserHandle userHandle = UserHandle.of(userId); in getApplicationCollectionInternal() local 270 userHandle); in getApplicationCollectionInternal() 297 userHandle); in getApplicationCollectionInternal() 339 userHandle); in getApplicationCollectionInternal() 357 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, userHandle); in getApplicationCollectionInternal() 384 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, userHandle); in getApplicationCollectionInternal() 411 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, userHandle); in getApplicationCollectionInternal() 629 final UserHandle userHandle = UserHandle.of(userId); in setDefaultApplicationInternal() local 646 context.createContextAsUser(userHandle, 0).getPackageManager(); in setDefaultApplicationInternal() 705 UserHandle userHandle, @Nullable String oldPackage, @Nullable String newPackage) { in broadcastSmsAppChange() argument [all …]
|