/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfigTest.java | 76 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/ |
D | JoystickInputMapper.cpp | 261 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 …]
|
D | JoystickInputMapper.h | 57 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/ |
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/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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | MetricsUtils.java | 113 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/ |
D | ClockPreference.java | 61 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()
|
D | NavBarTuner.java | 108 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()
|
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/services/core/java/com/android/server/location/ |
D | IContextHubWrapper.java | 98 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/ |
D | UserRestrictionsUtils.java | 495 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/ |
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()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MultiSimSettingController.java | 530 (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/ |
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/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 174 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/ |
D | SQLiteConnection.java | 288 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/ |
D | VolumeDialogComponent.java | 108 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/ |
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | ReferenceWithHistoryTest.java | 125 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/ |
D | LockSettingsStrongAuth.java | 200 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/ |
D | ChannelEditorListView.kt | 51 set(newValue) { in <lambda>() 52 field = newValue in <lambda>() 169 set(newValue) { 170 field = newValue
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
D | BaseFragmentPagerAdapter.java | 184 Fragment oldValue, Fragment newValue) { in entryRemoved() argument 186 if (evicted || (newValue != null && oldValue != newValue)) { in entryRemoved()
|