Home
last modified time | relevance | path

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

12345

/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/native/services/inputflinger/reader/mapper/
DJoystickInputMapper.cpp261 float newValue, highNewValue; in process() local
264 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value) * axis.scale + in process()
270 newValue = (axis.axisInfo.splitValue - rawEvent->value) * axis.scale + in process()
274 newValue = 0.0f; in process()
279 newValue = 0.0f; in process()
284 newValue = rawEvent->value * axis.scale + axis.offset; in process()
288 axis.newValue = newValue; in process()
364 hasValueChangedSignificantly(axis.filter, axis.newValue, axis.currentValue, axis.min, in filterAxes()
366 axis.currentValue = axis.newValue; in filterAxes()
381 bool JoystickInputMapper::hasValueChangedSignificantly(float filter, float newValue, in hasValueChangedSignificantly() argument
[all …]
DJoystickInputMapper.h57 float newValue; // most recent value member
83 this->newValue = 0; in resetValue()
98 static bool hasValueChangedSignificantly(float filter, float newValue, float currentValue,
100 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/opt/net/wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java113 int newValue = histogram.get(key) + 1; in addValueToLogHistogram() local
114 histogram.put(key, newValue); in addValueToLogHistogram()
116 return newValue; in addValueToLogHistogram()
159 int newValue = histogram.get(bucket) + 1; in addValueToLinearHistogram() local
160 histogram.put(bucket, newValue); in addValueToLinearHistogram()
162 return newValue; in addValueToLinearHistogram()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClockPreference.java61 public void onTuningChanged(String key, String newValue) { in onTuningChanged() argument
64 mBlacklist = StatusBarIconController.getIconBlacklist(getContext(), newValue); in onTuningChanged()
68 mHasSeconds = newValue != null && Integer.parseInt(newValue) != 0; in onTuningChanged()
DNavBarTuner.java108 addTunable((key, newValue) -> mHandler.post(() -> { in bindLayout()
109 String val = newValue; in bindLayout()
115 preference.setOnPreferenceChangeListener((preference1, newValue) -> { in bindLayout() argument
116 String val = (String) newValue; in bindLayout()
128 addTunable((key, newValue) -> mHandler.post(() -> { in bindButton()
129 String val = newValue; in bindButton()
149 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/services/core/java/com/android/server/location/
DIContextHubWrapper.java98 public abstract void onSettingChanged(byte setting, byte newValue); in onSettingChanged() argument
115 public void onSettingChanged(byte setting, byte newValue) {} in onSettingChanged() argument
133 public void onSettingChanged(byte setting, byte newValue) { in onSettingChanged() argument
135 mHub.onSettingChanged(setting, newValue); in onSettingChanged()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java495 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions()
498 if (newValue != prevValue) { in applyUserRestrictions()
499 applyUserRestriction(context, userId, key, newValue); in applyUserRestrictions()
511 boolean newValue) { in applyUserRestriction() argument
514 + " key=" + key + " value=" + newValue); in applyUserRestriction()
531 if (newValue) { in applyUserRestriction()
553 if (newValue) { in applyUserRestriction()
561 if (newValue) { in applyUserRestriction()
575 if (newValue) { in applyUserRestriction()
585 newValue)); in applyUserRestriction()
[all …]
/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/opt/telephony/src/java/com/android/internal/telephony/
DMultiSimSettingController.java530 (newValue -> mSubController.setDefaultDataSubId(newValue))); in updateDefaults()
536 (newValue -> mSubController.setDefaultVoiceSubId(newValue))); in updateDefaults()
542 (newValue -> mSubController.setDefaultSmsSubId(newValue))); in updateDefaults()
768 void update(int newValue); in update() argument
774 int newValue = INVALID_SUBSCRIPTION_ID; in updateDefaultValue() local
782 newValue = subId; in updateDefaultValue()
783 log("[updateDefaultValue] updates to subId=" + newValue); in updateDefaultValue()
789 if (oldValue != newValue) { in updateDefaultValue()
790 if (DBG) log("[updateDefaultValue: subId] from " + oldValue + " to " + newValue); in updateDefaultValue()
791 action.update(newValue); in updateDefaultValue()
[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.java174 int newValue = (int) (buff[i] * scale); in scaleValues() local
175 if (newValue > Short.MAX_VALUE) { in scaleValues()
176 newValue = Short.MAX_VALUE; in scaleValues()
177 } else if (newValue < Short.MIN_VALUE) { in scaleValues()
178 newValue = Short.MIN_VALUE; in scaleValues()
180 buff[i] = (short) (newValue); in scaleValues()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnection.java288 final long newValue = SQLiteGlobal.getDefaultPageSize(); in setPageSize() local
290 if (value != newValue) { in setPageSize()
291 execute("PRAGMA page_size=" + newValue, null, null); in setPageSize()
298 final long newValue = SQLiteGlobal.getWALAutoCheckpoint(); in setAutoCheckpointInterval() local
300 if (value != newValue) { in setAutoCheckpointInterval()
301 executeForLong("PRAGMA wal_autocheckpoint=" + newValue, null, null); in setAutoCheckpointInterval()
308 final long newValue = SQLiteGlobal.getJournalSizeLimit(); in setJournalSizeLimit() local
310 if (value != newValue) { in setJournalSizeLimit()
311 executeForLong("PRAGMA journal_size_limit=" + newValue, null, null); in setJournalSizeLimit()
318 final long newValue = mConfiguration.foreignKeyConstraintsEnabled ? 1 : 0; in setForeignKeyModeFromConfiguration() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogComponent.java108 public void onTuningChanged(String key, String newValue) { in onTuningChanged() argument
115 TunerService.parseIntegerSwitch(newValue, DEFAULT_VOLUME_DOWN_TO_ENTER_SILENT); in onTuningChanged()
118 TunerService.parseIntegerSwitch(newValue, DEFAULT_VOLUME_UP_TO_EXIT_SILENT); in onTuningChanged()
121 TunerService.parseIntegerSwitch(newValue, DEFAULT_DO_NOT_DISTURB_WHEN_SILENT); in onTuningChanged()
/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/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
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseFragmentPagerAdapter.java184 Fragment oldValue, Fragment newValue) { in entryRemoved() argument
186 if (evicted || (newValue != null && oldValue != newValue)) { in entryRemoved()

12345