/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/ |
D | GainmapMetadataEditor.kt | 202 val newValue = minRatioMin + normalized * (maxRatioMin - minRatioMin) in updateGainmapMin() constant 204 "%.3f".format(newValue)) in updateGainmapMin() 205 currentMetadata.ratioMin = newValue in updateGainmapMin() 206 gainmap.setRatioMin(newValue, newValue, newValue) in updateGainmapMin() 211 val newValue = minRatioMax + normalized * (maxRatioMax - minRatioMax) in updateGainmapMax() constant 213 "%.3f".format(newValue)) in updateGainmapMax() 214 currentMetadata.ratioMax = newValue in updateGainmapMax() 215 gainmap.setRatioMax(newValue, newValue, newValue) in updateGainmapMax() 220 val newValue = minCapacityMin + normalized * (maxCapacityMin - minCapacityMin) in updateCapacityMin() constant 222 "%.3f".format(newValue)) in updateCapacityMin() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/log/ |
D | BouncerLoggerStartable.kt | 48 biometricSettingsInteractor.isFaceAuthEnrolledAndEnabled.collectLatest { newValue -> in <lambda>() method 49 bouncerLogger.interestedStateChanged("isFaceAuthEnrolledAndEnabled", newValue) in <lambda>() 53 biometricSettingsInteractor.isFingerprintAuthEnrolledAndEnabled.collectLatest { newValue in <lambda>() method 57 newValue in <lambda>() 62 faceAuthInteractor.isLockedOut.collectLatest { newValue -> in <lambda>() method 63 bouncerLogger.interestedStateChanged("faceAuthLockedOut", newValue) in <lambda>() 67 fingerprintAuthInteractor.isLockedOut.collectLatest { newValue -> in <lambda>() method 68 bouncerLogger.interestedStateChanged("fingerprintLockedOut", newValue) in <lambda>() 73 newValue -> in <lambda>() method 76 newValue in <lambda>()
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | TestableDeviceConfigTest.java | 81 String newValue = "value2"; in setAndGetProperty_multipleNamespaces() local 83 DeviceConfig.setProperty(newNamespace, sKey, newValue, false); in setAndGetProperty_multipleNamespaces() 87 assertThat(result).isEqualTo(newValue); in setAndGetProperty_multipleNamespaces() 92 String newValue = "value2"; in setAndGetProperty_overrideValue() local 94 DeviceConfig.setProperty(sNamespace, sKey, newValue, false); in setAndGetProperty_overrideValue() 96 assertThat(result).isEqualTo(newValue); in setAndGetProperty_overrideValue() 104 String newValue = "value2"; in setProperties() local 106 sValue).setString(newKey, newValue).build()); in setProperties() 108 assertThat(DeviceConfig.getProperty(sNamespace, newKey)).isEqualTo(newValue); in setProperties() 121 String newValue = "value2"; in deleteProperty() local [all …]
|
/frameworks/libs/systemui/tracinglib/core/common/src/ |
D | TraceStateLogger.kt | 47 fun log(newValue: String) { in log() 49 instantForTrack(trackName, newValue) in log() 51 if (logOnlyIfDifferent && previousValue == newValue) return in log() 53 asyncTraceForTrackBegin(trackName, newValue, 0) in log() 55 Log.d(trackName, "newValue: $newValue") in log() 57 previousValue = newValue in log()
|
/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/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsProviderMultiUsersTest.java | 189 String newValue; in assertSettingsCloned() local 191 newValue = generateNewValue(oldValue); in assertSettingsCloned() 193 newValue = oldValue.startsWith("0") ? "1" : "0"; in assertSettingsCloned() 196 setSetting(type, name, newValue, mPrimaryUser.id()); in assertSettingsCloned() 200 assertThat(value).startsWith(newValue); in assertSettingsCloned() 211 String newValue = oldValue.replace("\n", ""); in generateNewValue() local 212 if (newValue.endsWith("0")) { in generateNewValue() 213 final int size = newValue.length(); in generateNewValue() 214 newValue = newValue.substring(0, size - 1) + "1"; in generateNewValue() 216 final int size = newValue.length(); in generateNewValue() [all …]
|
D | DeviceConfigServiceTest.java | 81 final String newValue = "value2"; in testOverrideDisabled() local 84 executeShellCommand("device_config override " + sNamespace + " " + sKey + " " + newValue); in testOverrideDisabled() 95 final String newValue = "value2"; in testOverride() local 98 executeShellCommand("device_config override " + sNamespace + " " + sKey + " " + newValue); in testOverride() 101 assertEquals(newValue + "\n", result); in testOverride() 111 final String newValue = "value2"; in testPut() local 118 executeShellCommand("device_config put " + newNamespace + " " + sKey + " " + newValue); in testPut() 123 assertEquals(newValue, result); in testPut() 190 String newValue = "value2"; in testReset() local 197 "device_config put " + sNamespace + " " + sKey + " " + newValue); in testReset() [all …]
|
D | InstallNonMarketAppsDeprecationTest.java | 65 String newValue = action.get(); in waitTillValueChanges() local 66 while (Objects.equals(newValue, oldValue) && SystemClock.uptimeMillis() <= (startTime in waitTillValueChanges() 73 newValue = action.get(); in waitTillValueChanges() 78 assertNotEquals(errorMessage, newValue, oldValue); in waitTillValueChanges() 79 return newValue; in waitTillValueChanges()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | JoystickInputMapper.cpp | 269 float newValue, highNewValue; in process() local 272 newValue = (axis.rawAxisInfo.maxValue - rawEvent.value) * axis.scale + in process() 278 newValue = (axis.axisInfo.splitValue - rawEvent.value) * axis.scale + in process() 282 newValue = 0.0f; in process() 287 newValue = 0.0f; in process() 292 newValue = rawEvent.value * axis.scale + axis.offset; in process() 296 axis.newValue = newValue; in process() 377 hasValueChangedSignificantly(axis.filter, axis.newValue, axis.currentValue, axis.min, in filterAxes() 379 axis.currentValue = axis.newValue; in filterAxes() 394 bool JoystickInputMapper::hasValueChangedSignificantly(float filter, float newValue, in hasValueChangedSignificantly() argument [all …]
|
D | JoystickInputMapper.h | 80 float newValue; // most recent value member 86 this->newValue = 0; in resetValue() 107 static bool hasValueChangedSignificantly(float filter, float newValue, float currentValue, 109 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/tests/servicestests/src/com/android/server/media/projection/ |
D | MediaProjectionSessionIdGeneratorTest.java | 82 int newValue = mGenerator.createAndGetNewSessionId(); in createAndGetNewSessionId_returnsIncrementedId() local 84 assertThat(newValue).isEqualTo(previousValue + 1); in createAndGetNewSessionId_returnsIncrementedId() 89 int newValue = mGenerator.createAndGetNewSessionId(); in createAndGetNewSessionId_persistsNewValue() local 93 assertThat(newInstance.getCurrentSessionId()).isEqualTo(newValue); in createAndGetNewSessionId_persistsNewValue()
|
/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/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()
|
/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 | FeatureFlagsClassicRelease.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()).equals(newValue)) { 74 int newValue = 0; 76 newValue = value == null ? 0 : Integer.parseInt(value); 79 if (mIntCache.get(flag.getName()) != newValue) {
|
/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>() 157 val newValue = roundnessMap.values.maxOrNull() ?: 0f in <lambda>() constant 159 if (lastValue != newValue) { in <lambda>() 166 val shouldAnimate = wasAnimating && abs(newValue - lastValue) > 0.5f in <lambda>() 168 roundableState.setBottomRoundness(value = newValue, animated = shouldAnimate || animate) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 621 final boolean newValue = newRestrictions.getBoolean(key); in applyUserRestrictions() 624 if (newValue != prevValue) { in applyUserRestrictions() 625 applyUserRestriction(context, userId, key, newValue); in applyUserRestrictions() 637 boolean newValue) { in applyUserRestriction() argument 640 + " key=" + key + " value=" + newValue); in applyUserRestriction() 657 if (newValue) { in applyUserRestriction() 679 if (newValue) { in applyUserRestriction() 687 if (newValue) { in applyUserRestriction() 701 if (newValue) { in applyUserRestriction() 711 newValue)); in applyUserRestriction() [all …]
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/util/ |
D | DeduplicateConsumerTest.java | 51 String newValue = "test_value_new"; in test_different_value_is_filtered() local 54 expected.add(newValue); in test_different_value_is_filtered() 61 deduplicateConsumer.accept(newValue); in test_different_value_is_filtered()
|
/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 | 312 final long newValue = SQLiteGlobal.getDefaultPageSize(); in setPageSize() local 314 if (value != newValue) { in setPageSize() 315 execute("PRAGMA page_size=" + newValue, null, null); in setPageSize() 322 final long newValue = SQLiteGlobal.getWALAutoCheckpoint(); in setAutoCheckpointInterval() local 324 if (value != newValue) { in setAutoCheckpointInterval() 325 executeForLong("PRAGMA wal_autocheckpoint=" + newValue, null, null); in setAutoCheckpointInterval() 332 final long newValue = SQLiteGlobal.getJournalSizeLimit(); in setJournalSizeLimit() local 334 if (value != newValue) { in setJournalSizeLimit() 335 executeForLong("PRAGMA journal_size_limit=" + newValue, null, null); in setJournalSizeLimit() 342 final long newValue = mConfiguration.foreignKeyConstraintsEnabled ? 1 : 0; in setForeignKeyModeFromConfiguration() local [all …]
|