Home
last modified time | relevance | path

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

1234567

/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecConfig.java108 void onChange(@NonNull @CecSettingName String setting); in onChange() argument
675 Setting setting = new Setting(mContext, name, userConfResId); in registerSetting() local
676 mSettings.put(name, setting); in registerSetting()
677 return setting; in registerSetting()
681 for (Setting setting: mSettings.values()) { in verifySettings()
684 setting.getDefaultValue(); in verifySettings()
685 getStorage(setting); in verifySettings()
686 getStorageKey(setting); in verifySettings()
696 private int getStorage(@NonNull Setting setting) { in getStorage() argument
697 switch (setting.getName()) { in getStorage()
[all …]
DHdmiControlShellCommand.java211 String setting = getNextArgRequired(); in cecSetting() local
213 String value = mBinderService.getCecSettingStringValue(setting); in cecSetting()
214 pw.println(setting + " = " + value); in cecSetting()
216 int intValue = mBinderService.getCecSettingIntValue(setting); in cecSetting()
217 pw.println(setting + " = " + intValue); in cecSetting()
222 String setting = getNextArgRequired(); in cecSetting() local
225 mBinderService.setCecSettingStringValue(setting, value); in cecSetting()
226 pw.println(setting + " = " + value); in cecSetting()
229 mBinderService.setCecSettingIntValue(setting, intValue); in cecSetting()
230 pw.println(setting + " = " + intValue); in cecSetting()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DSettingObserverTest.kt49 private lateinit var setting: SettingObserver in <lambda>() variable in com.android.systemui.qs.SettingObserverTest
59 setting = object : SettingObserver( in <lambda>()
77 setting.isListening = false in <lambda>()
84 assertThat(setting.isListening).isFalse() in <lambda>()
94 setting.isListening = true in <lambda>()
105 setting.isListening = true in <lambda>()
113 assertThat(setting.value).isEqualTo(2) in <lambda>()
116 assertThat(setting.value).isEqualTo(4) in <lambda>()
121 setting.value = 5 in <lambda>()
127 setting.isListening = true in <lambda>()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DSettingsInjector.java139 InjectedSetting setting = parseServiceInfo(resolveInfo, userHandle, in getSettings() local
141 if (setting == null) { in getSettings()
144 settings.add(setting); in getSettings()
162 private void populatePreference(Preference preference, InjectedSetting setting) { in populatePreference() argument
163 preference.setTitle(setting.title); in populatePreference()
165 preference.setOnPreferenceClickListener(new ServiceSettingClickedListener(setting)); in populatePreference()
184 for (InjectedSetting setting : settings) { in getInjectedSettings()
185 Preference preference = createPreference(prefContext, setting); in getInjectedSettings()
186 populatePreference(preference, setting); in getInjectedSettings()
188 mSettings.add(new Setting(setting, preference)); in getInjectedSettings()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DAppsFilterImpl.java338 public void updatePackageState(PackageStateInternal setting, boolean removed) { in updatePackageState() argument
339 final boolean enableLogging = setting.getPkg() != null in updatePackageState()
340 && !removed && (setting.getPkg().isTestOnly() in updatePackageState()
341 || setting.getPkg().isDebuggable()); in updatePackageState()
342 enableLogging(setting.getAppId(), enableLogging); in updatePackageState()
344 mDisabledPackages.remove(setting.getPackageName()); in updatePackageState()
348 } else if (setting.getPkg() != null) { in updatePackageState()
349 updateEnabledState(setting.getPkg()); in updatePackageState()
497 for (PackageStateInternal setting : existingSettings.values()) { in addPackageInternal()
498 if (isSystemSigned(mSystemSigningDetails, setting)) { in addPackageInternal()
[all …]
DAppIdSettingMap.java61 public boolean registerExistingAppId(int appId, SettingBase setting, Object name) { in registerExistingAppId() argument
76 mNonSystemSettings.set(index, setting); in registerExistingAppId()
84 mSystemSettings.put(appId, setting); in registerExistingAppId()
119 public void replaceSetting(int appId, SettingBase setting) { in replaceSetting() argument
124 mNonSystemSettings.set(index, setting); in replaceSetting()
132 mSystemSettings.put(appId, setting); in replaceSetting()
/frameworks/base/core/proto/android/providers/settings/
Dcommon.proto23 // 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/src/com/android/systemui/tuner/
DTunerService.java31 public abstract String getValue(String setting); in getValue() argument
32 public abstract int getValue(String setting, int def); in getValue() argument
33 public abstract String getValue(String setting, String def); in getValue() argument
35 public abstract void setValue(String setting, String value); in setValue() argument
36 public abstract void setValue(String setting, int value); in setValue() argument
DTunerServiceImpl.java166 public String getValue(String setting) { in getValue() argument
167 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue()
171 public void setValue(String setting, String value) { in setValue() argument
172 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); in setValue()
176 public int getValue(String setting, int def) { in getValue() argument
177 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); in getValue()
181 public String getValue(String setting, String def) { in getValue() argument
182 String ret = Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue()
188 public void setValue(String setting, int value) { in setValue() argument
189 Settings.Secure.putIntForUser(mContentResolver, setting, value, mCurrentUser); in setValue()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeTunerService.java55 public String getValue(String setting) { in getValue() argument
60 public int getValue(String setting, int def) { in getValue() argument
65 public String getValue(String setting, String def) { in getValue() argument
70 public void setValue(String setting, String value) { in setValue() argument
75 public void setValue(String setting, int value) { in setValue() argument
/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java214 for (String setting : sSecureSettingToTypeMap.keySet()) { in beginObserveCoreSettings()
215 Uri uri = Settings.Secure.getUriFor(setting); in beginObserveCoreSettings()
220 for (String setting : sSystemSettingToTypeMap.keySet()) { in beginObserveCoreSettings()
221 Uri uri = Settings.System.getUriFor(setting); in beginObserveCoreSettings()
226 for (String setting : sGlobalSettingToTypeMap.keySet()) { in beginObserveCoreSettings()
227 Uri uri = Settings.Global.getUriFor(setting); in beginObserveCoreSettings()
248 String setting = entry.getKey(); in populateSettings() local
251 value = Settings.Secure.getStringForUser(cr, setting, cr.getUserId()); in populateSettings()
253 value = Settings.System.getStringForUser(cr, setting, cr.getUserId()); in populateSettings()
255 value = Settings.Global.getString(cr, setting); in populateSettings()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/smartspace/
DLockscreenAndDreamTargetFilterTest.kt98 var setting = Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS in testLockscreenAllowPrivateNotifications() variable
100 .getIntForUser(eq(setting) ?: setting, anyInt(), anyInt())) in testLockscreenAllowPrivateNotifications()
117 .getIntForUser(eq(setting) ?: setting, anyInt(), anyInt())) in testLockscreenAllowPrivateNotifications()
131 var setting = Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS in testUserSwitchCallback() variable
133 .getIntForUser(eq(setting) ?: setting, anyInt(), anyInt())) in testUserSwitchCallback()
/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/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DClockProviderPlugin.kt203 fun serialize(setting: ClockSettings?): String { in serialize()
204 if (setting == null) { in serialize()
209 .put(KEY_CLOCK_ID, setting.clockId) in serialize()
210 .put(KEY_SEED_COLOR, setting.seedColor) in serialize()
211 .put(KEY_METADATA, setting.metadata) in serialize()
/frameworks/base/core/java/android/util/
DKeyValueSettingObserver.java75 String setting = getSettingValue(mResolver); in setParserValue() local
77 mParser.setString(setting); in setParserValue()
79 Slog.e(TAG, "Malformed setting: " + setting); in setParserValue()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java324 Setting setting = mSettings.valueAt(i); in removeSettingsForPackageLocked() local
325 if (packageName.equals(setting.packageName)) { in removeSettingsForPackageLocked()
353 Setting setting = mSettings.get(name); in getSettingLocked() local
354 if (setting != null) { in getSettingLocked()
355 return new Setting(setting); in getSettingLocked()
591 Setting setting = mSettings.get(name); in resetSettingLocked() local
592 if (setting == null) { in resetSettingLocked()
596 Setting oldSetting = new Setting(setting); in resetSettingLocked()
597 String oldValue = setting.getValue(); in resetSettingLocked()
598 String oldDefaultValue = setting.getDefaultValue(); in resetSettingLocked()
[all …]
DSettingsProvider.java419 Setting setting = getConfigSetting(name); in call() local
420 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call()
424 Setting setting = getGlobalSetting(name); in call() local
425 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call()
429 Setting setting = getSecureSetting(name, requestingUserId); in call() local
430 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call()
434 Setting setting = getSystemSetting(name, requestingUserId); in call() local
435 return packageValueForCallResult(setting, isTrackingGeneration(args)); in call()
615 Setting setting = getGlobalSetting(args.name); in query() local
616 return packageSettingForQuery(setting, normalizedProjection); in query()
[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/services/robotests/backup/src/com/android/server/backup/
DBackupAgentTimeoutParametersTest.java143 final String setting = in testGetParameters_withSettingChangeBeforeStart_updatesValues() local
147 putStringAndNotify(setting); in testGetParameters_withSettingChangeBeforeStart_updatesValues()
163 final String setting = in testGetParameters_withSettingChangeAfterStart_updatesValues() local
167 putStringAndNotify(setting); in testGetParameters_withSettingChangeAfterStart_updatesValues()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DAppsFilterImplTest.java505 setting -> setting.setSigningDetails(mockSigningDetails) in testNoUsesLibrary_Filters()
532 setting -> setting.setSigningDetails(mockSigningDetails) in testUsesLibrary_DoesntFilter()
560 setting -> setting.setSigningDetails(mockSigningDetails) in testUsesOptionalLibrary_DoesntFilter()
588 setting -> setting.setSigningDetails(mockSigningDetails) in testUsesLibrary_ShareUid_DoesntFilter()
614 setting -> setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)); in testForceQueryable_SystemDoesntFilter()
653 setting -> setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)); in testForceQueryableByDevice_SystemCaller_DoesntFilter()
723 setting -> setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)); in testSystemQueryable_DoesntFilter()
1349 setting -> setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)); in testSdkSandbox_canSeeForceQueryable()
1369 setting -> setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)); in testSdkSandbox_cannotSeeNonForceQueryable()
1393 setting -> setting.setPkgFlags(ApplicationInfo.FLAG_SYSTEM)); in testSdkSandbox_implicitAccessGranted_canSeePackage()
[all …]
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiControlManager.java1870 void onChange(@NonNull @CecSettingName String setting);
1878 @NonNull @CecSettingName String setting,
1885 if (mCecSettingChangeListeners.containsKey(setting)
1886 && mCecSettingChangeListeners.get(setting).containsKey(listener)) {
1892 if (!mCecSettingChangeListeners.containsKey(setting)) {
1893 mCecSettingChangeListeners.put(setting, new ArrayMap<>());
1895 mCecSettingChangeListeners.get(setting).put(listener, wrappedListener);
1897 mService.addCecSettingChangeListener(setting, wrappedListener);
1904 @NonNull @CecSettingName String setting,
1911 !mCecSettingChangeListeners.containsKey(setting) ? null :
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPositionListenerActivity.java47 int setting = 0; in onCreate()
63 setting = (setting + 1) % opts.length; in onCreate()
73 PointF dir = opts[setting]; in onCreate()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteGlobal.java168 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/
DInjectedSettingTest.java55 InjectedSetting setting = getTestSetting(); in testHashCode() local
56 assertThat(setting.hashCode()).isEqualTo(1225314048); in testHashCode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DReduceBrightColorsController.java66 final String setting = uri == null ? null : uri.getLastPathSegment(); in ReduceBrightColorsController()
68 if (setting != null && mListeners.size() != 0) { in ReduceBrightColorsController()
69 if (setting.equals(Settings.Secure.REDUCE_BRIGHT_COLORS_ACTIVATED)) { in ReduceBrightColorsController()

1234567