/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | TestableDeviceConfigTest.java | 87 String newValue = "value2"; in setAndGetProperty_multipleNamespaces() local 89 DeviceConfig.setProperty(newNamespace, sKey, newValue, false); in setAndGetProperty_multipleNamespaces() 93 assertThat(result).isEqualTo(newValue); in setAndGetProperty_multipleNamespaces() 98 String newValue = "value2"; in setAndGetProperty_overrideValue() local 100 DeviceConfig.setProperty(sNamespace, sKey, newValue, false); in setAndGetProperty_overrideValue() 102 assertThat(result).isEqualTo(newValue); in setAndGetProperty_overrideValue() 108 String newValue = "value2"; in setProperties() local 110 sValue).setString(newKey, newValue).build()); in setProperties() 112 assertThat(DeviceConfig.getProperty(sNamespace, newKey)).isEqualTo(newValue); in setProperties() 122 String newValue = "value2"; in deleteProperty() local [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | FakeSettingsHelper.java | 58 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() 182 public void setGnssMeasurementsFullTrackingEnabled(boolean newValue) { in setGnssMeasurementsFullTrackingEnabled() argument 183 mGnssMeasurementsFullTrackingSetting.setValue(newValue); in setGnssMeasurementsFullTrackingEnabled() 218 public void setAdasSettingsAllowlist(PackageTagsList newValue) { in setAdasSettingsAllowlist() argument 219 mAdasPackageAllowlist.setValue(newValue); in setAdasSettingsAllowlist() 222 public void setIgnoreSettingsAllowlist(PackageTagsList newValue) { in setIgnoreSettingsAllowlist() argument 223 mIgnoreSettingsAllowlist.setValue(newValue); in setIgnoreSettingsAllowlist() [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | JoystickInputMapper.cpp | 265 float newValue, highNewValue; in process() local 268 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value) * axis.scale + in process() 274 newValue = (axis.axisInfo.splitValue - rawEvent->value) * axis.scale + in process() 278 newValue = 0.0f; in process() 283 newValue = 0.0f; in process() 288 newValue = rawEvent->value * axis.scale + axis.offset; in process() 292 axis.newValue = newValue; in process() 370 hasValueChangedSignificantly(axis.filter, axis.newValue, axis.currentValue, axis.min, in filterAxes() 372 axis.currentValue = axis.newValue; in filterAxes() 387 bool JoystickInputMapper::hasValueChangedSignificantly(float filter, float newValue, in hasValueChangedSignificantly() argument [all …]
|
D | JoystickInputMapper.h | 77 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/ |
D | AbstractLogdSizePreferenceController.java | 79 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()
|
D | AbstractLogpersistPreferenceController.java | 96 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/native/libs/battery/ |
D | LongArrayMultiStateCounter.cpp | 26 const std::vector<uint64_t>& newValue, in delta() argument 29 if (newValue.size() != size) { in delta() 30 ALOGE("Incorrect array size: %d, should be %d", (int)newValue.size(), (int)size); in delta() 36 if (newValue[i] >= previousValue[i]) { in delta() 37 (*outValue)[i] = newValue[i] - previousValue[i]; in delta()
|
/frameworks/base/core/java/android/service/controls/actions/ |
D | FloatAction.java | 39 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/ |
D | SettingsObserver.java | 63 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/ |
D | BiometricStrengthController.java | 71 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/statusbar/notification/ |
D | Roundable.kt | 90 val newValue = roundnessMap.values.maxOrNull() ?: 0f in <lambda>() constant 92 if (lastValue != newValue) { in <lambda>() 99 val shouldAnimate = wasAnimating && abs(newValue - lastValue) > 0.5f in <lambda>() 101 roundableState.setTopRoundness(value = newValue, animated = shouldAnimate || animate) in <lambda>() 159 val newValue = roundnessMap.values.maxOrNull() ?: 0f in <lambda>() constant 161 if (lastValue != newValue) { in <lambda>() 168 val shouldAnimate = wasAnimating && abs(newValue - lastValue) > 0.5f in <lambda>() 170 roundableState.setBottomRoundness(value = newValue, animated = shouldAnimate || animate) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ClockPreference.java | 61 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()
|
D | NavBarTuner.java | 109 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()
|
D | TunablePadding.java | 56 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/SystemUI/src/com/android/systemui/flags/ |
D | FlagCommand.java | 99 boolean newValue = isBooleanFlagEnabled(flag); in execute() 101 newValue = !newValue; in execute() 103 newValue = true; in execute() 105 newValue = false; in execute() 112 pw.println("Flag " + name + " is " + newValue); in execute() 115 mFeatureFlags.setBooleanFlagInternal(flag, newValue); in execute()
|
D | FeatureFlagsRelease.java | 64 boolean newValue = value == null ? false : Boolean.parseBoolean(value); 65 if (mBooleanCache.get(flag.getName()) != newValue) { 69 String newValue = value == null ? "" : value; 70 if (mStringCache.get(flag.getName()) != newValue) { 74 int newValue = 0; 76 newValue = value == null ? 0 : Integer.parseInt(value); 79 if (mIntCache.get(flag.getName()) != newValue) {
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | InstallNonMarketAppsDeprecationTest.java | 59 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()
|
D | DeviceConfigServiceTest.java | 66 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()
|
D | SettingsHelperTest.java | 315 int newValue = 1; in restoreValue_autoRotation_deviceStateAutoRotationDisabled_restoresValue() local 318 restoreAutoRotationSetting(newValue); in restoreValue_autoRotation_deviceStateAutoRotationDisabled_restoresValue() 320 assertThat(getAutoRotationSettingValue()).isEqualTo(newValue); in restoreValue_autoRotation_deviceStateAutoRotationDisabled_restoresValue() 328 int newValue = 1; in restoreValue_autoRotation_deviceStateAutoRotationEnabled_doesNotRestoreValue() local 331 restoreAutoRotationSetting(newValue); in restoreValue_autoRotation_deviceStateAutoRotationEnabled_doesNotRestoreValue() 351 private void restoreAutoRotationSetting(int newValue) { in restoreAutoRotationSetting() argument 358 /* value= */ String.valueOf(newValue), in restoreAutoRotationSetting()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 541 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions() 544 if (newValue != prevValue) { in applyUserRestrictions() 545 applyUserRestriction(context, userId, key, newValue); in applyUserRestrictions() 557 boolean newValue) { in applyUserRestriction() argument 560 + " key=" + key + " value=" + newValue); in applyUserRestriction() 577 if (newValue) { in applyUserRestriction() 599 if (newValue) { in applyUserRestriction() 607 if (newValue) { in applyUserRestriction() 621 if (newValue) { in applyUserRestriction() 631 newValue)); in applyUserRestriction() [all …]
|
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
D | BNNMTest.java | 98 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/core/java/android/database/sqlite/ |
D | SQLiteConnection.java | 299 final long newValue = SQLiteGlobal.getDefaultPageSize(); in setPageSize() local 301 if (value != newValue) { in setPageSize() 302 execute("PRAGMA page_size=" + newValue, null, null); in setPageSize() 309 final long newValue = SQLiteGlobal.getWALAutoCheckpoint(); in setAutoCheckpointInterval() local 311 if (value != newValue) { in setAutoCheckpointInterval() 312 executeForLong("PRAGMA wal_autocheckpoint=" + newValue, null, null); in setAutoCheckpointInterval() 319 final long newValue = SQLiteGlobal.getJournalSizeLimit(); in setJournalSizeLimit() local 321 if (value != newValue) { in setJournalSizeLimit() 322 executeForLong("PRAGMA journal_size_limit=" + newValue, null, null); in setJournalSizeLimit() 329 final long newValue = mConfiguration.foreignKeyConstraintsEnabled ? 1 : 0; in setForeignKeyModeFromConfiguration() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityTargetAdapter.java | 135 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/rs/toolkit/test/ |
D | ReferenceLut.kt | 38 val newValue = byteArrayOf( in <lambda>() constant 44 output[x, y] = newValue.asUByteArray() in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManagerConstants.java | 82 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()
|