/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | SettingsInjector.java | 135 InjectedSetting setting = parseServiceInfo(resolveInfo, userHandle, pm); in getSettings() local 136 if (setting == null) { in getSettings() 139 settings.add(setting); in getSettings() 157 private void populatePreference(Preference preference, InjectedSetting setting) { in populatePreference() argument 158 preference.setTitle(setting.title); in populatePreference() 160 preference.setOnPreferenceClickListener(new ServiceSettingClickedListener(setting)); in populatePreference() 179 for (InjectedSetting setting : settings) { in getInjectedSettings() 180 Preference preference = createPreference(prefContext, setting); in getInjectedSettings() 181 populatePreference(preference, setting); in getInjectedSettings() 183 mSettings.add(new Setting(setting, preference)); in getInjectedSettings() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothAvrcpPlayerSettings.java | 167 public void addSettingValue(int setting, int value) { in addSettingValue() argument 168 if ((setting & mSettings) == 0) { in addSettingValue() 169 Log.e(TAG, "Setting not supported: " + setting + " " + mSettings); in addSettingValue() 170 throw new IllegalStateException("Setting not supported: " + setting); in addSettingValue() 172 mSettingsValue.put(setting, value); in addSettingValue() 184 public int getSettingValue(int setting) { in getSettingValue() argument 185 if ((setting & mSettings) == 0) { in getSettingValue() 186 Log.e(TAG, "Setting not supported: " + setting + " " + mSettings); in getSettingValue() 187 throw new IllegalStateException("Setting not supported: " + setting); in getSettingValue() 189 Integer i = mSettingsValue.get(setting); in getSettingValue()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | CoreSettingsObserver.java | 119 for (String setting : sSecureSettingToTypeMap.keySet()) { in beginObserveCoreSettings() 120 Uri uri = Settings.Secure.getUriFor(setting); in beginObserveCoreSettings() 125 for (String setting : sSystemSettingToTypeMap.keySet()) { in beginObserveCoreSettings() 126 Uri uri = Settings.System.getUriFor(setting); in beginObserveCoreSettings() 131 for (String setting : sGlobalSettingToTypeMap.keySet()) { in beginObserveCoreSettings() 132 Uri uri = Settings.Global.getUriFor(setting); in beginObserveCoreSettings() 142 String setting = entry.getKey(); in populateSettings() local 145 value = Settings.Secure.getString(context.getContentResolver(), setting); in populateSettings() 147 value = Settings.System.getString(context.getContentResolver(), setting); in populateSettings() 149 value = Settings.Global.getString(context.getContentResolver(), setting); in populateSettings() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/role/ |
D | LegacyRoleResolutionPolicy.java | 68 String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), in getRoleHolders() local 72 if (setting != null) { in getRoleHolders() 73 if (!setting.isEmpty()) { in getRoleHolders() 74 ComponentName componentName = ComponentName.unflattenFromString(setting); in getRoleHolders() 95 String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), in getRoleHolders() local 98 if (!TextUtils.isEmpty(setting)) { in getRoleHolders() 99 packageName = setting; in getRoleHolders() 112 String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), in getRoleHolders() local 115 if (!TextUtils.isEmpty(setting)) { in getRoleHolders() 116 packageName = setting; in getRoleHolders()
|
/frameworks/base/core/proto/android/providers/settings/ |
D | common.proto | 23 // ID of the setting 26 // Name of the setting 29 // Package name of the setting 32 // Value of this setting 35 // Default value of this setting 49 // Name of the setting that was affected (optional) 50 optional string setting = 3; field
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | FakeTunerService.java | 54 public String getValue(String setting) { in getValue() argument 59 public int getValue(String setting, int def) { in getValue() argument 64 public String getValue(String setting, String def) { in getValue() argument 69 public void setValue(String setting, String value) { in setValue() argument 74 public void setValue(String setting, int value) { in setValue() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerServiceImpl.java | 144 public String getValue(String setting) { in getValue() argument 145 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue() 149 public void setValue(String setting, String value) { in setValue() argument 150 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); in setValue() 154 public int getValue(String setting, int def) { in getValue() argument 155 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); in getValue() 159 public String getValue(String setting, String def) { in getValue() argument 160 String ret = Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue() 166 public void setValue(String setting, int value) { in setValue() argument 167 Settings.Secure.putIntForUser(mContentResolver, setting, value, mCurrentUser); in setValue()
|
D | TunerService.java | 40 public abstract String getValue(String setting); in getValue() argument 41 public abstract int getValue(String setting, int def); in getValue() argument 42 public abstract String getValue(String setting, String def); in getValue() argument 44 public abstract void setValue(String setting, String value); in setValue() argument 45 public abstract void setValue(String setting, int value); in setValue() argument
|
D | NavBarTuner.java | 123 private void bindButton(String setting, String def, String k) { in bindButton() argument 148 }), setting); in bindButton() 151 setValue(setting, type, keycode, icon); in bindButton() 171 setValue(setting, type, keycode, icon); in bindButton() 203 private void setValue(String setting, ListPreference type, Preference keycode, in setValue() argument 215 Dependency.get(TunerService.class).setValue(setting, button); in setValue()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerServiceTest.java | 73 PackageSetting setting = null; in testPackageRemoval() local 82 pri.populateUsers(null, setting); in testPackageRemoval() 87 setting = new PackageSetting("name", "realName", new File("codePath"), in testPackageRemoval() 94 }, setting); in testPackageRemoval() 103 setting.setInstantApp(true, EXCLUDED_USER_ID); in testPackageRemoval() 106 }, setting); in testPackageRemoval()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 372 for (String setting : settingsToBackup) { in getOffenders() 373 if (validators.get(setting) == null) { in getOffenders() 374 offenders.append(setting).append(" "); in getOffenders() 397 Setting setting = getConfigSetting(name); in call() local 398 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call() 402 Setting setting = getGlobalSetting(name); in call() local 403 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call() 407 Setting setting = getSecureSetting(name, requestingUserId, in call() local 409 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call() 413 Setting setting = getSystemSetting(name, requestingUserId); in call() local [all …]
|
D | SettingsState.java | 315 Setting setting = mSettings.valueAt(i); in removeSettingsForPackageLocked() local 316 if (packageName.equals(setting.packageName)) { in removeSettingsForPackageLocked() 345 Setting setting = mSettings.get(name); in getSettingLocked() local 346 if (setting != null) { in getSettingLocked() 347 return new Setting(setting); in getSettingLocked() 458 Setting setting = mSettings.get(name); in resetSettingLocked() local 460 Setting oldSetting = new Setting(setting); in resetSettingLocked() 461 String oldValue = setting.getValue(); in resetSettingLocked() 462 String oldDefaultValue = setting.getDefaultValue(); in resetSettingLocked() 464 if (!setting.reset()) { in resetSettingLocked() [all …]
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCamera2Settings.java | 203 private boolean matchesTemplateDefault(Key<?> setting) { in matchesTemplateDefault() argument 204 if (setting == CONTROL_AE_REGIONS) { in matchesTemplateDefault() 206 } else if (setting == CONTROL_AF_REGIONS) { in matchesTemplateDefault() 208 } else if (setting == CONTROL_AE_TARGET_FPS_RANGE) { in matchesTemplateDefault() 213 } else if (setting == JPEG_QUALITY) { in matchesTemplateDefault() 216 } else if (setting == CONTROL_AE_EXPOSURE_COMPENSATION) { in matchesTemplateDefault() 219 } else if (setting == CONTROL_VIDEO_STABILIZATION_MODE) { in matchesTemplateDefault() 226 } else if (setting == CONTROL_AE_LOCK) { in matchesTemplateDefault() 228 } else if (setting == CONTROL_AWB_LOCK) { in matchesTemplateDefault() 230 } else if (setting == JPEG_THUMBNAIL_SIZE) { in matchesTemplateDefault() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
D | TextGraphReader.java | 324 KeyValueMap setting = readKeyValueAssignments(scanner, semicolonPattern); in parseString() local 325 mSettings.putAll(setting); in parseString() 452 for (String setting : mSettings.keySet()) { in applySettings() 453 Object value = mSettings.get(setting); in applySettings() 454 if (setting.equals("autoBranch")) { in applySettings() 455 expectSettingClass(setting, value, String.class); in applySettings() 465 } else if (setting.equals("discardUnconnectedOutputs")) { in applySettings() 466 expectSettingClass(setting, value, Boolean.class); in applySettings() 469 throw new GraphIOException("Unknown @setting '" + setting + "'!"); in applySettings() 474 private void expectSettingClass(String setting, in expectSettingClass() argument [all …]
|
/frameworks/base/core/java/android/util/ |
D | KeyValueSettingObserver.java | 75 String setting = getSettingValue(mResolver); in setParserValue() local 77 mParser.setString(setting); in setParserValue() 79 Slog.e(TAG, "Malformed setting: " + setting); in setParserValue()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | BackupAgentTimeoutParametersTest.java | 115 final String setting = in testGetParameters_withSettingChangeBeforeStart_updatesValues() local 119 putStringAndNotify(setting); in testGetParameters_withSettingChangeBeforeStart_updatesValues() 135 final String setting = in testGetParameters_withSettingChangeAfterStart_updatesValues() local 139 putStringAndNotify(setting); in testGetParameters_withSettingChangeAfterStart_updatesValues()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSensors.java | 398 public TriggerSensor(Sensor sensor, String setting, boolean configured, int pulseReason, in TriggerSensor() argument 400 this(sensor, setting, true /* settingDef */, configured, pulseReason, in TriggerSensor() 404 public TriggerSensor(Sensor sensor, String setting, boolean settingDef, in TriggerSensor() argument 407 this(sensor, setting, settingDef, configured, pulseReason, reportsTouchCoordinates, in TriggerSensor() 411 private TriggerSensor(Sensor sensor, String setting, boolean settingDef, in TriggerSensor() argument 415 mSetting = setting; in TriggerSensor() 533 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor() argument 535 this(sensor, setting, configured, pulseReason, reportsTouchCoordinates, in PluginSensor() 539 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor() argument 542 super(null, setting, configured, pulseReason, reportsTouchCoordinates, in PluginSensor()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteGlobal.java | 168 final long setting = SQLiteCompatibilityWalFlags.getTruncateSize(); in getWALTruncateSize() local 169 if (setting >= 0) { in getWALTruncateSize() 170 return setting; in getWALTruncateSize()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/ |
D | InjectedSettingTest.java | 55 InjectedSetting setting = getTestSetting(); in testHashCode() local 56 assertThat(setting.hashCode()).isEqualTo(1225314048); in testHashCode()
|
/frameworks/base/core/java/android/hardware/display/ |
D | NightDisplayListener.java | 64 final String setting = uri == null ? null : uri.getLastPathSegment(); in NightDisplayListener() 65 if (setting != null && mCallback != null) { in NightDisplayListener() 66 switch (setting) { in NightDisplayListener()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ServiceListing.java | 57 String setting, String intentAction, String permission, String noun) { in ServiceListing() argument 61 mSetting = setting; in ServiceListing() 199 public Builder setSetting(String setting) { in setSetting() argument 200 mSetting = setting; in setSetting()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | BackgroundScanScheduler.java | 204 WifiScanner.ScanSettings setting = mScanSettingsList.get(i); in createBucketSettings() local 205 int requestedReportEvents = setting.reportEvents; in createBucketSettings() 219 if (i == 0 && setting.maxPeriodInMs != 0 in createBucketSettings() 220 && setting.maxPeriodInMs != setting.periodInMs) { in createBucketSettings() 224 bucketIndex = findBestRegularBucketIndex(setting.periodInMs, in createBucketSettings() 227 maxPeriodInMs = (setting.maxPeriodInMs < period) in createBucketSettings() 229 : setting.maxPeriodInMs; in createBucketSettings() 230 stepCount = setting.stepCount; in createBucketSettings()
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsManager.java | 327 int setting = SubscriptionManager.getIntegerSubscriptionProperty( in isEnhanced4gLteModeSettingEnabledByUser() local 337 || setting == SUB_PROPERTY_NOT_INITIALIZED) { in isEnhanced4gLteModeSettingEnabledByUser() 340 return (setting == ProvisioningManager.PROVISIONING_VALUE_ENABLED); in isEnhanced4gLteModeSettingEnabledByUser() 702 int setting = SubscriptionManager.getIntegerSubscriptionProperty( in isVtEnabledByUser() local 707 return (setting == SUB_PROPERTY_NOT_INITIALIZED in isVtEnabledByUser() 708 || setting == ProvisioningManager.PROVISIONING_VALUE_ENABLED); in isVtEnabledByUser() 820 int setting = SubscriptionManager.getIntegerSubscriptionProperty( in isWfcEnabledByUser() local 825 if (setting == SUB_PROPERTY_NOT_INITIALIZED) { in isWfcEnabledByUser() 829 return setting == ProvisioningManager.PROVISIONING_VALUE_ENABLED; in isWfcEnabledByUser() 977 int setting; in getWfcMode() local [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AssistUtils.java | 175 final String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), in getAssistComponentForUser() local 177 if (setting != null) { in getAssistComponentForUser() 178 return ComponentName.unflattenFromString(setting); in getAssistComponentForUser()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverPolicy.java | 302 final String setting = getGlobalSetting(Settings.Global.BATTERY_SAVER_CONSTANTS); in refreshSettings() local 323 if (!updateConstantsLocked(setting, deviceSpecificSetting, in refreshSettings() 342 void updateConstantsLocked(final String setting, final String deviceSpecificSetting) { in updateConstantsLocked() argument 343 updateConstantsLocked(setting, deviceSpecificSetting, "", ""); in updateConstantsLocked() 347 private boolean updateConstantsLocked(String setting, String deviceSpecificSetting, in updateConstantsLocked() argument 349 setting = TextUtils.emptyIfNull(setting); in updateConstantsLocked() 354 if (setting.equals(mSettings) in updateConstantsLocked() 361 mSettings = setting; in updateConstantsLocked() 374 Policy newFullPolicy = Policy.fromSettings(setting, deviceSpecificSetting, in updateConstantsLocked()
|