Home
last modified time | relevance | path

Searched refs:setting (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java91 for (String setting : sSecureSettingToTypeMap.keySet()) { in beginObserveCoreSettings()
92 Uri uri = Settings.Secure.getUriFor(setting); in beginObserveCoreSettings()
97 for (String setting : sSystemSettingToTypeMap.keySet()) { in beginObserveCoreSettings()
98 Uri uri = Settings.System.getUriFor(setting); in beginObserveCoreSettings()
103 for (String setting : sGlobalSettingToTypeMap.keySet()) { in beginObserveCoreSettings()
104 Uri uri = Settings.Global.getUriFor(setting); in beginObserveCoreSettings()
114 String setting = entry.getKey(); in populateSettings() local
117 value = Settings.Secure.getString(context.getContentResolver(), setting); in populateSettings()
119 value = Settings.System.getString(context.getContentResolver(), setting); in populateSettings()
121 value = Settings.Global.getString(context.getContentResolver(), setting); in populateSettings()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothAvrcpPlayerSettings.java164 public void addSettingValue(int setting, int value) { in addSettingValue() argument
165 if ((setting & mSettings) == 0) { in addSettingValue()
166 Log.e(TAG, "Setting not supported: " + setting + " " + mSettings); in addSettingValue()
167 throw new IllegalStateException("Setting not supported: " + setting); in addSettingValue()
169 mSettingsValue.put(setting, value); in addSettingValue()
180 public int getSettingValue(int setting) { in getSettingValue() argument
181 if ((setting & mSettings) == 0) { in getSettingValue()
182 Log.e(TAG, "Setting not supported: " + setting + " " + mSettings); in getSettingValue()
183 throw new IllegalStateException("Setting not supported: " + setting); in getSettingValue()
185 Integer i = mSettingsValue.get(setting); in getSettingValue()
/frameworks/base/core/java/android/os/
DIncidentReportArgs.java169 public static IncidentReportArgs parseSetting(String setting) in parseSetting() argument
171 if (setting == null || setting.length() == 0) { in parseSetting()
174 setting = setting.trim(); in parseSetting()
175 if (setting.length() == 0 || "disabled".equals(setting)) { in parseSetting()
181 if ("all".equals(setting)) { in parseSetting()
184 } else if ("none".equals(setting)) { in parseSetting()
188 final String[] splits = setting.split(","); in parseSetting()
200 + " index " + i + ": section='" + str + "' setting='" + setting + "'"); in parseSetting()
204 + " index " + i + ": section='" + str + "' setting='" + setting + "'"); in parseSetting()
DIncidentManager.java92 String setting = Settings.System.getString(mContext.getContentResolver(), settingName); in reportIncident() local
95 args = IncidentReportArgs.parseSetting(setting); in reportIncident()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerServiceTest.java55 PackageSetting setting = null; in testPackageRemoval() local
64 pri.populateUsers(null, setting); in testPackageRemoval()
69 setting = new PackageSetting("name", "realName", new File("codePath"), in testPackageRemoval()
74 pri.populateUsers(new int[] {1, 2, 3, 4, 5}, setting); in testPackageRemoval()
81 setting.setInstantApp(true, EXCLUDED_USER_ID); in testPackageRemoval()
82 pri.populateUsers(new int[] {1, 2, 3, EXCLUDED_USER_ID, 5}, setting); in testPackageRemoval()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeTunerService.java54 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/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java340 Setting setting = getGlobalSetting(name); in call() local
341 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call()
345 Setting setting = getSecureSetting(name, requestingUserId); in call() local
346 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call()
350 Setting setting = getSystemSetting(name, requestingUserId); in call() local
351 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call()
426 Setting setting = getGlobalSetting(args.name); in query() local
427 return packageSettingForQuery(setting, normalizedProjection); in query()
436 Setting setting = getSecureSetting(args.name, userId); in query() local
437 return packageSettingForQuery(setting, normalizedProjection); in query()
[all …]
DSettingsState.java255 Setting setting = mSettings.valueAt(i); in onPackageRemovedLocked() local
256 if (packageName.equals(setting.packageName)) { in onPackageRemovedLocked()
283 Setting setting = mSettings.get(name); in getSettingLocked() local
284 if (setting != null) { in getSettingLocked()
285 return new Setting(setting); in getSettingLocked()
378 Setting setting = mSettings.get(name); in resetSettingLocked() local
380 Setting oldSetting = new Setting(setting); in resetSettingLocked()
381 String oldValue = setting.getValue(); in resetSettingLocked()
382 String oldDefaultValue = setting.getDefaultValue(); in resetSettingLocked()
384 if (!setting.reset()) { in resetSettingLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java123 public String getValue(String setting) { in getValue() argument
124 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue()
128 public void setValue(String setting, String value) { in setValue() argument
129 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); in setValue()
133 public int getValue(String setting, int def) { in getValue() argument
134 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); in getValue()
138 public String getValue(String setting, String def) { in getValue() argument
139 String ret = Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue()
145 public void setValue(String setting, int value) { in setValue() argument
146 Settings.Secure.putIntForUser(mContentResolver, setting, value, mCurrentUser); in setValue()
DTunerService.java42 public abstract String getValue(String setting); in getValue() argument
43 public abstract int getValue(String setting, int def); in getValue() argument
44 public abstract String getValue(String setting, String def); in getValue() argument
46 public abstract void setValue(String setting, String value); in setValue() argument
47 public abstract void setValue(String setting, int value); in setValue() argument
DNavBarTuner.java133 private void bindButton(String setting, String def, String k) { in bindButton() argument
158 }), setting); in bindButton()
161 setValue(setting, type, keycode, icon); in bindButton()
181 setValue(setting, type, keycode, icon); in bindButton()
213 private void setValue(String setting, ListPreference type, Preference keycode, in setValue() argument
225 Dependency.get(TunerService.class).setValue(setting, button); in setValue()
DPowerNotificationControlsFragment.java89 int setting = Settings.Secure.getInt(getContext().getContentResolver(), KEY_SHOW_PNC, 0); in isEnabled() local
90 return setting == 1; in isEnabled()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Settings.java203 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/
DTextGraphReader.java324 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/com/android/internal/app/
DNightDisplayController.java130 final String setting = uri == null ? null : uri.getLastPathSegment(); in NightDisplayController()
131 if (setting != null) { in NightDisplayController()
132 onSettingChanged(setting); in NightDisplayController()
394 private void onSettingChanged(@NonNull String setting) { in onSettingChanged() argument
396 Slog.d(TAG, "onSettingChanged: " + setting); in onSettingChanged()
400 switch (setting) { in onSettingChanged()
DAssistUtils.java149 final String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), in getAssistComponentForUser() local
151 if (setting != null) { in getAssistComponentForUser()
152 return ComponentName.unflattenFromString(setting); in getAssistComponentForUser()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java204 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/base/tests/utils/SleepUtils/
DREADME5 2) setting alarm for a specified period and releasing the wakelock; service
16 2) setting alarm and wait til triggered
/frameworks/base/services/core/java/com/android/server/notification/
DScheduleConditionProvider.java289 final String setting = TextUtils.join(SEPARATOR, mSnoozed); in saveSnoozedLocked() local
293 setting, in saveSnoozedLocked() local
301 final String setting = Settings.Secure.getStringForUser( in readSnoozed() local
305 if (setting != null) { in readSnoozed()
306 final String[] tokens = setting.split(SEPARATOR); in readSnoozed()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java833 int setting = android.provider.Settings.Global.getInt(context.getContentResolver(), in getWfcMode() local
836 if (DBG) log("getWfcMode - setting=" + setting); in getWfcMode()
837 return setting; in getWfcMode()
844 int setting = android.provider.Settings.Global.getInt(mContext.getContentResolver(), in getWfcModeForSlot() local
847 if (DBG) log("getWfcMode - setting=" + setting); in getWfcModeForSlot()
848 return setting; in getWfcModeForSlot()
883 int setting = 0; in getWfcMode() local
885 setting = android.provider.Settings.Global.getInt(context.getContentResolver(), in getWfcMode()
888 if (DBG) log("getWfcMode - setting=" + setting); in getWfcMode()
890 setting = android.provider.Settings.Global.getInt(context.getContentResolver(), in getWfcMode()
[all …]
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
DFixVibrateSetting.java68 int setting = mAudioManager.getVibrateSetting(vibrateType); in getSettingValue() local
69 switch (setting) { in getSettingValue()
/frameworks/base/core/proto/android/providers/
Dsettings.proto584 // ID of the setting
587 // Name of the setting
590 // Package name of the setting
593 // Value of this setting
596 // Default value of this setting
610 // Name of the setting that was affected (optional)
611 string setting = 3; field
/frameworks/av/media/libstagefright/
DMediaCodecListOverrides.cpp273 AString setting = AStringPrintf( in globalResultsToXml() local
277 ret.append(setting); in globalResultsToXml()
299 AString setting = AStringPrintf( in codecResultsToXml() local
303 ret.append(setting); in codecResultsToXml()
/frameworks/base/core/proto/android/service/
Dpower.proto358 // The screen off timeout setting value in milliseconds.
360 // The sleep timeout setting value in milliseconds.
365 // The stay on while plugged in setting.
368 // The screen brightness setting, from 0 to 255.
371 // The screen auto-brightness adjustment setting, from -1 to 1.
376 // The screen brightness setting override from the window manager
387 // The screen brightness setting override from the settings application
391 // The screen brightness adjustment setting override from the settings
402 // The screen brightness setting, from 0 to 255, to be used while in VR Mode.
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java300 public TriggerSensor(Sensor sensor, String setting, boolean configured, int pulseReason, in TriggerSensor() argument
302 this(sensor, setting, true /* settingDef */, configured, pulseReason, in TriggerSensor()
306 public TriggerSensor(Sensor sensor, String setting, boolean settingDef, in TriggerSensor() argument
310 mSetting = setting; in TriggerSensor()

1234