Home
last modified time | relevance | path

Searched refs:currentValue (Results 1 – 25 of 26) 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/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/Launcher3/src/com/android/launcher3/config/
DBaseFlags.java145 private boolean currentValue; field in BaseFlags.TogglableFlag
152 this.currentValue = this.defaultValue = defaultValue; in TogglableFlag()
162 currentValue = value; in setForTests()
170 currentValue = getFromStorage(context, defaultValue); in initialize()
194 return currentValue; in get()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
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.java81 T currentValue = getValue(); in registerChangeListener()
82 listener.onValueChanged(currentValue, currentValue); in registerChangeListener()
86 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()
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/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/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/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/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/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/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()
/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java289 int currentValue = stack.get(i).mChars[0]; in checkStack() local
290 if (currentValue <= lastValue) { in checkStack()
293 lastValue = currentValue; in checkStack()
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java403 boolean currentValue = in updateVtWfc()
406 mEnableVideoCalling.setChecked(currentValue); in updateVtWfc()

12