Home
last modified time | relevance | path

Searched refs:currentValue (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DLerper.java43 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/Launcher3/src/com/android/launcher3/config/
DBaseFlags.java159 private boolean currentValue; field in BaseFlags.BaseTogglableFlag
166 this.currentValue = this.defaultValue = defaultValue; in BaseTogglableFlag()
177 currentValue = value; in setForTests()
185 currentValue = getFromStorage(context, getDefaultValue()); in initialize()
213 return currentValue; in get()
226 + "currentValue=" + currentValue + ", " in toString()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java812 String compareValue = "", currentValue; in createList() local
830 currentValue = nameList.get(pos); in createList()
832 Log.d(TAG, "currentValue=" + currentValue); in createList()
834 if (currentValue.equals(compareValue)) { in createList()
835 if (currentValue.contains(",")) { in createList()
836 currentValue = currentValue.substring(0, currentValue.lastIndexOf(',')); in createList()
838 selectedNameList.add(currentValue); in createList()
858 currentValue = nameList.get(pos); in createList()
860 if (currentValue.contains(",")) { in createList()
861 currentValue = currentValue.substring(0, currentValue.lastIndexOf(',')); in createList()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBluetoothMapVersionPreferenceControllerTest.java80 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in onPreferenceChange_setMap13_shouldEnableMap13() local
82 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setMap13_shouldEnableMap13()
89 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in onPreferenceChange_setMap14_shouldEnableMap14() local
91 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setMap14_shouldEnableMap14()
DBluetoothAvrcpVersionPreferenceControllerTest.java81 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in onPreferenceChange_setAvrcp13_shouldEnableAvrcp13() local
83 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setAvrcp13_shouldEnableAvrcp13()
90 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in onPreferenceChange_setAvrcp15_shouldEnableAvrcp15() local
92 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setAvrcp15_shouldEnableAvrcp15()
DBluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java116 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in onPreferenceChange_setNumberOfDevices() local
117 assertThat(currentValue).isEqualTo(mListValues[index]); in onPreferenceChange_setNumberOfDevices()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefs.java90 T currentValue = getValue(); in registerChangeListener()
91 listener.onValueChanged(currentValue, currentValue); in registerChangeListener()
95 private T mOldValue = currentValue; in registerChangeListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DBluetoothMaxConnectedAudioDevicesPreferenceController.java80 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in updateState() local
82 if (!currentValue.isEmpty()) { in updateState()
83 index = listPreference.findIndexOfValue(currentValue); in updateState()
DBluetoothAvrcpVersionPreferenceController.java65 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in updateState() local
68 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
DHdcpCheckingPreferenceController.java77 final String currentValue = SystemProperties.get(HDCP_CHECKING_PROPERTY); in updateHdcpValues() local
80 if (TextUtils.equals(currentValue, mListValues[i])) { in updateHdcpValues()
DBluetoothSnoopLogPreferenceController.java91 final String currentValue = SystemProperties.get(BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY); in updateState() local
95 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothMaxConnectedAudioDevicesPreferenceController.java80 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in updateState() local
82 if (!currentValue.isEmpty()) { in updateState()
83 index = listPreference.findIndexOfValue(currentValue); in updateState()
DBluetoothAvrcpVersionPreferenceController.java65 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in updateState() local
68 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
DBluetoothMapVersionPreferenceController.java65 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in updateState() local
68 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
DHdcpCheckingPreferenceController.java77 final String currentValue = SystemProperties.get(HDCP_CHECKING_PROPERTY); in updateHdcpValues() local
80 if (TextUtils.equals(currentValue, mListValues[i])) { in updateHdcpValues()
DBluetoothSnoopLogPreferenceController.java91 final String currentValue = SystemProperties.get(BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY); in updateState() local
95 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDotsPageIndicator.java744 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()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java744 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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSliceHelper.java384 final boolean currentValue = imsManager.isWfcEnabledByUser() in handleWifiCallingChanged()
387 currentValue); in handleWifiCallingChanged()
393 if (newValue != currentValue) { in handleWifiCallingChanged()
431 final int currentValue = imsManager.getWfcMode(false); in handleWifiCallingPreferenceChanged() local
447 if (newValue != errorValue && newValue != currentValue) { in handleWifiCallingPreferenceChanged()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java374 final boolean currentValue = queryState.isEnabledByUser() in handleWifiCallingChanged()
377 currentValue); in handleWifiCallingChanged()
383 if (newValue != currentValue) { in handleWifiCallingChanged()
422 final int currentValue = imsMmTelManager.getVoWiFiModeSetting(); in handleWifiCallingPreferenceChanged() local
438 if (newValue != errorValue && newValue != currentValue) { in handleWifiCallingPreferenceChanged()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarProjectionManagerTest.java171 VehiclePropValue currentValue = mMap.get(value.prop); in onPropertyGet() local
173 return currentValue != null ? currentValue : value; in onPropertyGet()
DCarCabinManagerTest.java188 VehiclePropValue currentValue = mMap.get(value.prop); in onPropertyGet() local
190 return currentValue != null ? currentValue : value; in onPropertyGet()
DCarHvacManagerTest.java226 VehiclePropValue currentValue = mMap.get(value.prop); in onPropertyGet() local
228 return currentValue != null ? currentValue : value; in onPropertyGet()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelper.java204 final boolean currentValue = imsManager.isEnhanced4gLteModeSettingEnabledByUser() in handleEnhanced4gLteChanged()
207 currentValue); in handleEnhanced4gLteChanged()
208 if (newValue != currentValue) { in handleEnhanced4gLteChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DEnhanced4gLteSliceHelper.java204 final boolean currentValue = imsManager.isEnhanced4gLteModeSettingEnabledByUser() in handleEnhanced4gLteChanged()
207 currentValue); in handleEnhanced4gLteChanged()
208 if (newValue != currentValue) { in handleEnhanced4gLteChanged()

12