Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/notification/
DSettingPref.java50 public SettingPref(int type, String key, String setting, int def, int... values) { in SettingPref() argument
53 mSetting = setting; in SettingPref()
131 private static Uri getUriFor(int type, String setting) { in getUriFor() argument
134 return Global.getUriFor(setting); in getUriFor()
136 return System.getUriFor(setting); in getUriFor()
138 return Secure.getUriFor(setting); in getUriFor()
143 protected static boolean putInt(int type, ContentResolver cr, String setting, int value) { in putInt() argument
146 return Global.putInt(cr, setting, value); in putInt()
148 return System.putInt(cr, setting, value); in putInt()
150 return Secure.putInt(cr, setting, value); in putInt()
[all …]
/packages/apps/Settings/src/com/android/settings/utils/
DManagedServiceSettings.java77 .setSetting(mConfig.setting) in onCreate()
231 public final String setting; field in ManagedServiceSettings.Config
240 private Config(String tag, String setting, String intentAction, String configIntentAction, in Config() argument
244 this.setting = setting; in Config()
270 public Builder setSetting(String setting) { in setSetting() argument
271 mSetting = setting; in setSetting()
/packages/modules/adb/
Dadb_trace.cpp94 const char* setting = getenv("ADB_TRACE"); in get_trace_setting() local
95 if (setting == nullptr) { in get_trace_setting()
96 setting = ""; in get_trace_setting()
98 return setting; in get_trace_setting()
/packages/modules/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()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivitySettingsManager.java906 final String setting = in getNetworkAvoidBadWifi() local
908 if ("0".equals(setting)) { in getNetworkAvoidBadWifi()
910 } else if ("1".equals(setting)) { in getNetworkAvoidBadWifi()
926 final String setting; in setNetworkAvoidBadWifi() local
928 setting = "0"; in setNetworkAvoidBadWifi()
930 setting = "1"; in setNetworkAvoidBadWifi()
932 setting = null; in setNetworkAvoidBadWifi()
936 Settings.Global.putString(context.getContentResolver(), NETWORK_AVOID_BAD_WIFI, setting); in setNetworkAvoidBadWifi() local
/packages/apps/Camera2/src/com/android/camera/one/
DOneCamera.java317 public static Flash decodeSettingsString(@Nonnull String setting) { in decodeSettingsString() argument
318 if (AUTO.encodeSettingsString().equals(setting)) { in decodeSettingsString()
320 } else if (OFF.encodeSettingsString().equals(setting)) { in decodeSettingsString()
322 } else if (ON.encodeSettingsString().equals(setting)) { in decodeSettingsString()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsSettingController.java65 for (Preference setting : preferenceBundleMap.keySet()) { in addExtraSettings()
67 preferenceBundleMap.get(setting).getString(METADATA_IA_ACCOUNT))) { in addExtraSettings()
70 getPreference().addPreference(setting); in addExtraSettings()
/packages/apps/Settings/src/com/android/settings/location/
DAppSettingsInjector.java47 protected Preference createPreference(Context prefContext, InjectedSetting setting) { in createPreference() argument
48 return TextUtils.isEmpty(setting.userRestriction) in createPreference()
50 : new RestrictedAppPreference(prefContext, setting.userRestriction); in createPreference()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsPreferenceController.java165 for (Preference setting : preferenceBundleMap.keySet()) { in addExtraSettings()
166 Bundle metaData = preferenceBundleMap.get(setting); in addExtraSettings()
172 setting.getExtras().putBoolean(META_DATA_DISTRACTION_OPTIMIZED, distractionOptimized); in addExtraSettings()
173 getDynamicData(setting, metaData); in addExtraSettings()
174 getPreference().addPreference(setting); in addExtraSettings()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAutofillPickerPreferenceController.java68 String setting = Settings.Secure.getString(getContext().getContentResolver(), in getCurrentDefaultKey() local
70 if (setting != null) { in getCurrentDefaultKey()
71 ComponentName componentName = ComponentName.unflattenFromString(setting); in getCurrentDefaultKey()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DAppsSettingsTests.java89 for (String setting : sResourceTexts) { in testAppSettingsListForCalculator()
92 Until.findObject(By.text(setting)), TIMEOUT); in testAppSettingsListForCalculator()
93 assertNotNull("Missing setting for Calculator: " + setting, appSetting); in testAppSettingsListForCalculator()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverStickyPreferenceController.java51 int setting = Settings.Global.getInt(mContext.getContentResolver(), in updateState() local
54 ((SwitchPreference) preference).setChecked(setting == 1); in updateState()
/packages/apps/Settings/src/com/android/settings/display/
DBatteryPercentagePreferenceController.java69 int setting = Settings.System.getInt(mContext.getContentResolver(), in updateState() local
72 ((SwitchPreference) preference).setChecked(setting == 1); in updateState()
/packages/apps/Camera2/src/com/android/camera/settings/
DCameraSettingsActivity.java466 String setting = preference.getValue(); in setSummaryForSelection() local
467 if (setting == null || !setting.contains("x")) { in setSummaryForSelection()
470 Size settingSize = SettingsUtil.sizeFromSettingString(setting); in setSummaryForSelection()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeObserver.java50 final String setting = uri == null ? null : uri.getLastPathSegment(); in DarkModeObserver()
51 if (setting != null && mCallback != null) { in DarkModeObserver()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultAutofillPicker.java223 String setting = Settings.Secure.getStringForUser( in getDefaultKey() local
225 if (setting != null) { in getDefaultKey()
226 ComponentName componentName = ComponentName.unflattenFromString(setting); in getDefaultKey()
/packages/modules/common/proto/
Dclasspaths.proto39 // Not setting this attribute, defaults the value to zero and implies the jar
44 // Not setting this attribute implies unbound maximum; otherwise set value
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DVerifyAppsOverUsbPreferenceControllerTest.java69 public GlobalSetter set(String setting, int value) { in set() argument
70 Global.putInt(mContext.getContentResolver(), setting, value); in set() local
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSettingsFragment.java161 int setting = in getItemList()
165 CommonPreferences.setTrickplaySetting(getContext(), setting); in getItemList()
/packages/modules/Connectivity/framework/src/android/net/util/
DMultinetworkPolicyTracker.java239 String setting = Settings.Global.getString(mResolver, NETWORK_METERED_MULTIPATH_PREFERENCE); in updateMeteredMultipathPreference() local
241 mMeteredMultipathPreference = Integer.parseInt(setting); in updateMeteredMultipathPreference()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DCarLocationSettingsInjector.java36 protected Preference createPreference(Context prefContext, InjectedSetting setting) { in createPreference() argument
/packages/modules/DnsResolver/
DREADME.md4 The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/
DTimePickerDialogFragment.java16 package com.google.android.car.kitchensink.setting;
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java680 int setting; in updateAllow3rdPartyInputs() local
682 setting = in updateAllow3rdPartyInputs()
689 mAllow3rdPartyInputs = setting == 1; in updateAllow3rdPartyInputs()
/packages/apps/Car/DebuggingRestrictionController/
Dgradle.properties8 # The setting is particularly useful for tweaking memory settings.

123