/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | Lerper.java | 43 public int getValue(int currentValue, int targetValue) { in getValue() argument 44 int delta = targetValue - currentValue; in getValue() 52 retValue = currentValue + delta; in getValue() 62 retValue = currentValue + delta; in getValue() 72 public float getValue(float currentValue, float targetValue) { in getValue() argument 73 float delta = targetValue - currentValue; in getValue() 78 retValue = currentValue + delta; in getValue() 85 retValue = currentValue + delta; in getValue()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/development/bluetooth/ |
D | BluetoothStackLogPreferenceControllerTest.java | 116 final String currentValue = mPreference.getValue().toString(); in onPreferenceChange_withEachValue_uiSetProperlyAndAllValuesWrittenToProperties() local 119 final int currentIndex = mPreference.findIndexOfValue(currentValue); in onPreferenceChange_withEachValue_uiSetProperlyAndAllValuesWrittenToProperties() 124 assertThat(currentValue).isEqualTo(value); in onPreferenceChange_withEachValue_uiSetProperlyAndAllValuesWrittenToProperties() 145 final String currentValue = mPreference.getValue().toString(); in updateState_withEachValue_uiSetProperly() local 148 final int currentIndex = mPreference.findIndexOfValue(currentValue); in updateState_withEachValue_uiSetProperly() 151 assertThat(currentValue).isEqualTo(value); in updateState_withEachValue_uiSetProperly() 170 final String currentValue = mPreference.getValue().toString(); in onDeveloperOptionsSwitchDisabled_preferenceSetToDefault() local 173 final int currentIndex = mPreference.findIndexOfValue(currentValue); in onDeveloperOptionsSwitchDisabled_preferenceSetToDefault() 178 assertThat(currentValue).isEqualTo(defaultValue); in onDeveloperOptionsSwitchDisabled_preferenceSetToDefault()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | NfcVerboseVendorLogPreferenceController.java | 72 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in updateState() local 74 .setChecked(currentValue.equals(VERBOSE_VENDOR_LOG_ENABLED)); in updateState() 96 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in isDefaultValue() local 97 return !currentValue.equals(VERBOSE_VENDOR_LOG_ENABLED); in isDefaultValue() 112 final String currentValue = SystemProperties in onNfcRebootDialogConfirmed() local 114 if (currentValue.equals(VERBOSE_VENDOR_LOG_DISABLED)) { in onNfcRebootDialogConfirmed()
|
D | NfcSnoopLogPreferenceController.java | 72 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in updateState() local 73 ((TwoStatePreference) mPreference).setChecked(currentValue.equals(NFCSNOOP_MODE_FULL)); in updateState() 95 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in isDefaultValue() local 96 return !currentValue.equals(NFCSNOOP_MODE_FULL); in isDefaultValue() 111 final String currentValue = in onNfcRebootDialogConfirmed() local 113 if (currentValue.equals(NFCSNOOP_MODE_FILTERED)) { in onNfcRebootDialogConfirmed()
|
D | BluetoothLeAudioModePreferenceController.java | 96 String currentValue; in updateState() local 99 currentValue = "broadcast"; in updateState() 102 currentValue = "unicast"; in updateState() 104 currentValue = "disabled"; in updateState() 109 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
|
D | CachedAppsFreezerPreferenceController.java | 74 final String currentValue = Settings.Global.getString(mContext.getContentResolver(), in onPreferenceChange() local 77 if (!newValue.equals(currentValue)) { in onPreferenceChange() 112 final String currentValue = Settings.Global.getString(mContext.getContentResolver(), 117 if (TextUtils.equals(currentValue, mListValues[i])) {
|
D | BluetoothMaxConnectedAudioDevicesPreferenceController.java | 85 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in updateState() local 87 if (!currentValue.isEmpty()) { in updateState() 88 index = listPreference.findIndexOfValue(currentValue); in updateState()
|
D | BluetoothMapVersionPreferenceController.java | 68 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in updateState() local 71 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
|
D | BluetoothAvrcpVersionPreferenceController.java | 65 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in updateState() local 68 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
|
D | HdcpCheckingPreferenceController.java | 77 final String currentValue = SystemProperties.get(HDCP_CHECKING_PROPERTY); in updateHdcpValues() local 80 if (TextUtils.equals(currentValue, mListValues[i])) { in updateHdcpValues()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | NfcSnoopLogPreferenceControllerTest.java | 74 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in onNfcRebootDialogConfirmed_nfcSnoopLogDisabled_shouldChangeProperty() local 75 assertThat(currentValue.equals(NFCSNOOP_MODE_FULL)).isTrue(); in onNfcRebootDialogConfirmed_nfcSnoopLogDisabled_shouldChangeProperty() 85 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in onNfcRebootDialogConfirmed_nfcSnoopLogEnabled_shouldChangeProperty() local 86 assertThat(currentValue.equals(NFCSNOOP_MODE_FILTERED)).isTrue(); in onNfcRebootDialogConfirmed_nfcSnoopLogEnabled_shouldChangeProperty() 96 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in onNfcRebootDialogCanceled_shouldNotChangeProperty() local 97 assertThat(currentValue.equals(NFCSNOOP_MODE_FILTERED)).isTrue(); in onNfcRebootDialogCanceled_shouldNotChangeProperty()
|
D | NfcVerboseVendorLogPreferenceControllerTest.java | 74 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in onNfcRebootDialogConfirmed_nfcVendorLogDisabled_shouldChangeProperty() local 75 assertThat(currentValue.equals(VERBOSE_VENDOR_LOG_ENABLED)).isTrue(); in onNfcRebootDialogConfirmed_nfcVendorLogDisabled_shouldChangeProperty() 85 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in onNfcRebootDialogConfirmed_nfcVendorLogEnabled_shouldChangeProperty() local 86 assertThat(currentValue.equals(VERBOSE_VENDOR_LOG_DISABLED)).isTrue(); in onNfcRebootDialogConfirmed_nfcVendorLogEnabled_shouldChangeProperty() 96 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in onNfcRebootDialogCanceled_shouldNotChangeProperty() local 97 assertThat(currentValue.equals(VERBOSE_VENDOR_LOG_DISABLED)).isTrue(); in onNfcRebootDialogCanceled_shouldNotChangeProperty()
|
D | GrammaticalGenderPreferenceControllerTest.java | 79 final String currentValue = SystemProperties.get(GRAMMATICAL_GENDER_PROPERTY); in onPreferenceChange_setNeuter_shouldEnableNeuter() local 80 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setNeuter_shouldEnableNeuter() 99 final String currentValue = SystemProperties.get(GRAMMATICAL_GENDER_PROPERTY); in onPreferenceChange_setFeminine_shouldEnableFeminine() local 100 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setFeminine_shouldEnableFeminine() 119 final String currentValue = SystemProperties.get(GRAMMATICAL_GENDER_PROPERTY); in onPreferenceChange_setMasculine_shouldEnableMasculine() local 120 assertThat(currentValue).isEqualTo(mListValues[3]); in onPreferenceChange_setMasculine_shouldEnableMasculine()
|
D | BluetoothMapVersionPreferenceControllerTest.java | 73 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in onPreferenceChange_setMap13_shouldEnableMap13() local 74 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setMap13_shouldEnableMap13() 80 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in onPreferenceChange_setMap14_shouldEnableMap14() local 81 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setMap14_shouldEnableMap14()
|
D | BluetoothAvrcpVersionPreferenceControllerTest.java | 80 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in onPreferenceChange_setAvrcp13_shouldEnableAvrcp13() local 82 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setAvrcp13_shouldEnableAvrcp13() 89 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in onPreferenceChange_setAvrcp15_shouldEnableAvrcp15() local 91 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setAvrcp15_shouldEnableAvrcp15()
|
/packages/apps/Settings/src/com/android/settings/notification/lockscreen/ |
D | MinimalismPreferenceController.java | 152 private void highlightButton(int currentValue) { in highlightButton() argument 153 mButtons.forEach((value, button) -> button.setSelected(currentValue == value)); in highlightButton() 156 private void highlightIllustration(int currentValue) { in highlightIllustration() argument 158 -> preference.setVisible(currentValue == value)); in highlightIllustration() 175 int currentValue = getCurrentMinimalismValue(); in refreshState() local 176 highlightButton(currentValue); in refreshState() 177 highlightIllustration(currentValue); in refreshState()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/audio/ |
D | MediaQualityAnalyzer.h | 57 bool checkNotifiable(std::vector<int32_t> thresholds, int32_t currentValue) in checkNotifiable() argument 70 return ((currentValue >= thres && previousValue < thres) || in checkNotifiable() 71 (currentValue < thres && previousValue >= thres)); in checkNotifiable() 76 uint32_t currentDirection = (currentValue - previousValue) > 0 ? 1 : 0; in checkNotifiable() 85 previousValue = currentValue; in checkNotifiable()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AppManifestConfigMetricsLogger.java | 88 @Result int currentValue = prefs.getInt(key, RESULT_UNSPECIFIED); in handleLogUsage() local 89 if (currentValue == RESULT_UNSPECIFIED) { in handleLogUsage() 91 } else if (currentValue != newValue) { in handleLogUsage() 92 LogUtil.v("Logging as value change (was %d)", currentValue); in handleLogUsage()
|
/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/testing/ |
D | DeviceConfigHelper.java | 255 String currentValue = get(name, /* defaultValue= */ null); in syncSet() local 256 boolean changed = !value.equals(currentValue); in syncSet() 272 currentValue = get(name, /* defaultValue= */ null); in syncSet() 273 changed = value.equals(currentValue); in syncSet() 293 name, value, currentValue, CHANGE_CHECK_SLEEP_TIME_MS); in syncSet()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSliceHelper.java | 374 final boolean currentValue = isWifiCallingEnabled(); in handleWifiCallingChanged() 376 currentValue)); in handleWifiCallingChanged() 381 if ((newValue != currentValue) && (activationAppIntent == null || !newValue)) { in handleWifiCallingChanged() 392 + " from " + currentValue + " to " + newValue); in handleWifiCallingChanged() 433 int currentValue = ImsMmTelManager.WIFI_MODE_UNKNOWN; in handleWifiCallingPreferenceChanged() local 435 currentValue = imsMmTelManager.getVoWiFiModeSetting(); in handleWifiCallingPreferenceChanged() 456 if (newValue != errorValue && newValue != currentValue) { in handleWifiCallingPreferenceChanged()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/ |
D | ReorderPreviewAnimationTest.kt | 109 val currentValue = view.toAnimationValues() in testAnimationAtGivenProgress() constant 110 assert(currentValue == valueToMatch) { in testAnimationAtGivenProgress() 111 …"The value of the animation $currentValue at $animationTime time (milliseconds) doesn't match the … in testAnimationAtGivenProgress()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServer.java | 958 String compareValue = "", currentValue; in createList() local 986 currentValue = nameList.get(pos); in createList() 987 Log.v(TAG, "currentValue=" + currentValue); in createList() 988 if (currentValue.equals(compareValue)) { in createList() 989 if (currentValue.contains(",")) { in createList() 990 currentValue = currentValue.substring(0, currentValue.lastIndexOf(',')); in createList() 992 selectedNameList.add(currentValue); in createList() 1013 currentValue = nameList.get(pos); in createList() 1015 if (currentValue.contains(",")) { in createList() 1016 currentValue = currentValue.substring(0, currentValue.lastIndexOf(',')); in createList() [all …]
|
/packages/services/Car/tests/CarServiceTest/src/com/android/car/ |
D | CarProjectionManagerTest.java | 171 VehiclePropValue currentValue = mMap.get(value.prop); in onPropertyGet() local 173 return currentValue != null ? currentValue : value; in onPropertyGet()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/displayarea/ |
D | CarDisplayAreaAnimationController.java | 244 float currentValue = getCastedFractionValue(start, end, fraction); in ofYOffset() local 245 setCurrentValue(currentValue); in ofYOffset() 248 .translate(tx, leash, currentValue); in ofYOffset()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 744 public void startIfNecessary(float currentValue) { in startIfNecessary() argument 745 if (!hasStarted && predicate.shouldStart(currentValue)) { in startIfNecessary() 890 abstract boolean shouldStart(float currentValue); in shouldStart() argument 902 boolean shouldStart(float currentValue) { in shouldStart() argument 903 return currentValue > thresholdValue; in shouldStart() 916 boolean shouldStart(float currentValue) { in shouldStart() argument 917 return currentValue < thresholdValue; in shouldStart()
|