Home
last modified time | relevance | path

Searched refs:newValue (Results 1 – 25 of 129) sorted by relevance

123456

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DTestableDeviceConfigTest.java76 String newValue = "value2"; in setAndGetProperty_multipleNamespaces() local
78 DeviceConfig.setProperty(newNamespace, sKey, newValue, false); in setAndGetProperty_multipleNamespaces()
82 assertThat(result).isEqualTo(newValue); in setAndGetProperty_multipleNamespaces()
87 String newValue = "value2"; in setAndGetProperty_overrideValue() local
89 DeviceConfig.setProperty(sNamespace, sKey, newValue, false); in setAndGetProperty_overrideValue()
91 assertThat(result).isEqualTo(newValue); in setAndGetProperty_overrideValue()
97 String newValue = "value2"; in getProperties_empty() local
103 DeviceConfig.setProperty(sNamespace, newKey, newValue, false); in getProperties_empty()
106 assertThat(properties.getString(newKey, null)).isEqualTo(newValue); in getProperties_empty()
120 String newValue = "value2"; in getProperties() local
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeSettingsHelper.java58 public void setValue(Object newValue) { in setValue() argument
59 setValue(newValue, UserHandle.USER_NULL); in setValue()
62 public void setValue(Object newValue, int userId) { in setValue() argument
65 mValues.put(userId, newValue); in setValue()
180 public void setGnssMeasurementsFullTrackingEnabled(boolean newValue) { in setGnssMeasurementsFullTrackingEnabled() argument
181 mGnssMeasurementsFullTrackingSetting.setValue(newValue); in setGnssMeasurementsFullTrackingEnabled()
201 public void setIgnoreSettingsAllowlist(PackageTagsList newValue) { in setIgnoreSettingsAllowlist() argument
202 mIgnoreSettingsAllowlist.setValue(newValue); in setIgnoreSettingsAllowlist()
222 public void getBackgroundThrottleProximityAlertIntervalMs(long newValue) { in getBackgroundThrottleProximityAlertIntervalMs() argument
223 mBackgroundThrottleProximityAlertIntervalSetting.setValue(newValue); in getBackgroundThrottleProximityAlertIntervalMs()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DJoystickInputMapper.cpp266 float newValue, highNewValue; in process() local
269 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value) * axis.scale + in process()
275 newValue = (axis.axisInfo.splitValue - rawEvent->value) * axis.scale + in process()
279 newValue = 0.0f; in process()
284 newValue = 0.0f; in process()
289 newValue = rawEvent->value * axis.scale + axis.offset; in process()
293 axis.newValue = newValue; in process()
368 hasValueChangedSignificantly(axis.filter, axis.newValue, axis.currentValue, axis.min, in filterAxes()
370 axis.currentValue = axis.newValue; in filterAxes()
385 bool JoystickInputMapper::hasValueChangedSignificantly(float filter, float newValue, in hasValueChangedSignificantly() argument
[all …]
DJoystickInputMapper.h77 float newValue; // most recent value member
83 this->newValue = 0; in resetValue()
101 static bool hasValueChangedSignificantly(float filter, float newValue, float currentValue,
103 static bool hasMovedNearerToValueWithinFilteredRange(float filter, float newValue,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DAbstractLogdSizePreferenceController.java79 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
81 writeLogdSizeOption(newValue); in onPreferenceChange()
144 public void writeLogdSizeOption(Object newValue) { in writeLogdSizeOption() argument
145 boolean disable = (newValue != null) && in writeLogdSizeOption()
146 (newValue.toString().equals(SELECT_LOGD_OFF_SIZE_MARKER_VALUE)); in writeLogdSizeOption()
158 newValue = SELECT_LOGD_MINIMUM_SIZE_VALUE; in writeLogdSizeOption()
178 final String size = ((newValue != null) && (newValue.toString().length() != 0)) ? in writeLogdSizeOption()
179 newValue.toString() : defaultValue; in writeLogdSizeOption()
DAbstractLogpersistPreferenceController.java96 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
98 writeLogpersistOption(newValue, false); in onPreferenceChange()
210 public void writeLogpersistOption(Object newValue, boolean skipWarning) { in writeLogpersistOption() argument
218 newValue = null; in writeLogpersistOption()
222 if ((newValue == null) || newValue.toString().equals("")) { in writeLogpersistOption()
239 if ((currentBuffer != null) && !currentBuffer.equals(newValue.toString())) { in writeLogpersistOption()
242 SystemProperties.set(SELECT_LOGPERSIST_PROPERTY_BUFFER, newValue.toString()); in writeLogpersistOption()
/frameworks/base/core/java/android/service/controls/actions/
DFloatAction.java39 public FloatAction(@NonNull String templateId, float newValue) { in FloatAction() argument
40 this(templateId, newValue, null); in FloatAction()
51 public FloatAction(@NonNull String templateId, float newValue, in FloatAction() argument
54 mNewValue = newValue; in FloatAction()
/frameworks/base/services/core/java/com/android/server/vr/
DSettingsObserver.java63 void onSettingRestored(String prevValue, String newValue, int userId); in onSettingRestored() argument
77 String newValue = intent.getStringExtra(Intent.EXTRA_SETTING_NEW_VALUE); in SettingsObserver()
78 sendSettingRestored(prevValue, newValue, getSendingUserId()); in SettingsObserver()
138 …private void sendSettingRestored(final String prevValue, final String newValue, final int userId) { in sendSettingRestored() argument
140 l.onSettingRestored(prevValue, newValue, userId); in sendSettingRestored()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricStrengthController.java71 final String newValue = DeviceConfig.getString(DeviceConfig.NAMESPACE_BIOMETRICS, in updateStrengths() local
73 if ("null".equals(newValue) || newValue.isEmpty()) { in updateStrengths()
76 updateStrengths(newValue); in updateStrengths()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java61 public void onTuningChanged(String key, String newValue) { in onTuningChanged() argument
64 mHideList = StatusBarIconController.getIconHideList(getContext(), newValue); in onTuningChanged()
68 mHasSeconds = newValue != null && Integer.parseInt(newValue) != 0; in onTuningChanged()
DNavBarTuner.java109 addTunable((key, newValue) -> mHandler.post(() -> { in bindLayout()
110 String val = newValue; in bindLayout()
116 preference.setOnPreferenceChangeListener((preference1, newValue) -> { in bindLayout() argument
117 String val = (String) newValue; in bindLayout()
129 addTunable((key, newValue) -> mHandler.post(() -> { in bindButton()
130 String val = newValue; in bindButton()
150 OnPreferenceChangeListener listener = (preference, newValue) -> { in bindButton()
DTunablePadding.java56 public void onTuningChanged(String key, String newValue) { in onTuningChanged() argument
58 if (newValue != null) { in onTuningChanged()
60 dimen = (int) (Integer.parseInt(newValue) * mDensity); in onTuningChanged()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DInstallNonMarketAppsDeprecationTest.java59 String newValue = getSetting(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS); in waitTillValueChanges() local
60 while (newValue.equals(oldValue) && SystemClock.uptimeMillis() <= (startTime in waitTillValueChanges()
67 newValue = getSetting(SETTING_TYPE_SECURE, Settings.Secure.INSTALL_NON_MARKET_APPS); in waitTillValueChanges()
72 assertFalse(errorMessage, oldValue.equals(newValue)); in waitTillValueChanges()
73 return newValue; in waitTillValueChanges()
DDeviceConfigServiceTest.java66 final String newValue = "value2"; in testPut() local
73 executeShellCommand("device_config put " + newNamespace + " " + sKey + " " + newValue); in testPut()
78 assertEquals(newValue, result); in testPut()
145 String newValue = "value2"; in testReset() local
152 "device_config put " + sNamespace + " " + sKey + " " + newValue); in testReset()
154 assertEquals(newValue, result); in testReset()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java504 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions()
507 if (newValue != prevValue) { in applyUserRestrictions()
508 applyUserRestriction(context, userId, key, newValue); in applyUserRestrictions()
520 boolean newValue) { in applyUserRestriction() argument
523 + " key=" + key + " value=" + newValue); in applyUserRestriction()
540 if (newValue) { in applyUserRestriction()
562 if (newValue) { in applyUserRestriction()
570 if (newValue) { in applyUserRestriction()
584 if (newValue) { in applyUserRestriction()
594 newValue)); in applyUserRestriction()
[all …]
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBNNMTest.java98 int newValue = (originalValue + delta); in addByteNoise() local
99 if (newValue < -127) { in addByteNoise()
100 newValue = -127; in addByteNoise()
102 if (newValue > 127) { in addByteNoise()
103 newValue = 127; in addByteNoise()
105 data[n] = (byte)(newValue); in addByteNoise()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java175 int newValue = (int) (buff[i] * scale); in scaleValues() local
176 if (newValue > Short.MAX_VALUE) { in scaleValues()
177 newValue = Short.MAX_VALUE; in scaleValues()
178 } else if (newValue < Short.MIN_VALUE) { in scaleValues()
179 newValue = Short.MIN_VALUE; in scaleValues()
181 buff[i] = (short) (newValue); in scaleValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityTargetAdapter.java135 void updateIconWidthHeight(int newValue) { in updateIconWidthHeight() argument
137 if (layoutParams.width == newValue) { in updateIconWidthHeight()
140 layoutParams.width = newValue; in updateIconWidthHeight()
141 layoutParams.height = newValue; in updateIconWidthHeight()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMultiSimSettingController.java589 (newValue -> mSubController.setDefaultDataSubId(newValue))); in updateDefaults()
595 (newValue -> mSubController.setDefaultVoiceSubId(newValue))); in updateDefaults()
601 (newValue -> mSubController.setDefaultSmsSubId(newValue)), in updateDefaults()
860 void update(int newValue); in update() argument
871 int newValue = INVALID_SUBSCRIPTION_ID; in updateDefaultValue() local
883 newValue = subId; in updateDefaultValue()
884 log("[updateDefaultValue] updates to subId=" + newValue); in updateDefaultValue()
890 if (oldValue != newValue) { in updateDefaultValue()
891 if (DBG) log("[updateDefaultValue: subId] from " + oldValue + " to " + newValue); in updateDefaultValue()
892 action.update(newValue); in updateDefaultValue()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnection.java290 final long newValue = SQLiteGlobal.getDefaultPageSize(); in setPageSize() local
292 if (value != newValue) { in setPageSize()
293 execute("PRAGMA page_size=" + newValue, null, null); in setPageSize()
300 final long newValue = SQLiteGlobal.getWALAutoCheckpoint(); in setAutoCheckpointInterval() local
302 if (value != newValue) { in setAutoCheckpointInterval()
303 executeForLong("PRAGMA wal_autocheckpoint=" + newValue, null, null); in setAutoCheckpointInterval()
310 final long newValue = SQLiteGlobal.getJournalSizeLimit(); in setJournalSizeLimit() local
312 if (value != newValue) { in setJournalSizeLimit()
313 executeForLong("PRAGMA journal_size_limit=" + newValue, null, null); in setJournalSizeLimit()
320 final long newValue = mConfiguration.foreignKeyConstraintsEnabled ? 1 : 0; in setForeignKeyModeFromConfiguration() local
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncManagerConstants.java82 String newValue = Settings.Global.getString(mContext.getContentResolver(), in refresh() local
86 parser.setString(newValue); in refresh()
88 Slog.wtf(TAG, "Bad constants: " + newValue); in refresh()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogComponent.java116 public void onTuningChanged(String key, String newValue) { in onTuningChanged() argument
123 TunerService.parseIntegerSwitch(newValue, DEFAULT_VOLUME_DOWN_TO_ENTER_SILENT); in onTuningChanged()
126 TunerService.parseIntegerSwitch(newValue, DEFAULT_VOLUME_UP_TO_EXIT_SILENT); in onTuningChanged()
129 TunerService.parseIntegerSwitch(newValue, DEFAULT_DO_NOT_DISTURB_WHEN_SILENT); in onTuningChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DReferenceWithHistoryTest.java125 ReferenceWithHistory<T> referenceWithHistory, TestRef<T> reference, T newValue) { in setAndCompareReturnValue() argument
126 assertEquals(reference.set(newValue), referenceWithHistory.set(newValue)); in setAndCompareReturnValue()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java200 int newValue = strongAuthReason == STRONG_AUTH_NOT_REQUIRED in handleRequireStrongAuthOneUser() local
203 if (oldValue != newValue) { in handleRequireStrongAuthOneUser()
204 mStrongAuthForUser.put(userId, newValue); in handleRequireStrongAuthOneUser()
205 notifyStrongAuthTrackers(newValue, userId); in handleRequireStrongAuthOneUser()
222 int newValue = oldValue & ~strongAuthReason; in handleNoLongerRequireStrongAuthOneUser() local
223 if (oldValue != newValue) { in handleNoLongerRequireStrongAuthOneUser()
224 mStrongAuthForUser.put(userId, newValue); in handleNoLongerRequireStrongAuthOneUser()
225 notifyStrongAuthTrackers(newValue, userId); in handleNoLongerRequireStrongAuthOneUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorListView.kt51 set(newValue) { in <lambda>()
52 field = newValue in <lambda>()
169 set(newValue) {
170 field = newValue

123456