Home
last modified time | relevance | path

Searched refs:oldValue (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DListenerUtil.java57 final T oldValue = (T) view.getTag(listenerResourceId); in trackListener() local
59 return oldValue; in trackListener()
67 final WeakReference<T> oldValue; in trackListener() local
69 oldValue = (WeakReference<T>) listeners.remove(view); in trackListener()
71 oldValue = (WeakReference<T>) listeners.put(view, new WeakReference(listener)); in trackListener()
73 if (oldValue == null) { in trackListener()
76 return oldValue.get(); in trackListener()
100 final WeakReference<T> oldValue = (WeakReference<T>) listeners.get(view); in getListener() local
101 if (oldValue == null) { in getListener()
104 return oldValue.get(); in getListener()
DViewBindingAdapter.java194 public static void setOnLayoutChangeListener(View view, View.OnLayoutChangeListener oldValue, in setOnLayoutChangeListener() argument
197 if (oldValue != null) { in setOnLayoutChangeListener()
198 view.removeOnLayoutChangeListener(oldValue); in setOnLayoutChangeListener()
DTextViewBindingAdapter.java379 final TextWatcher oldValue = ListenerUtil.trackListener(view, newValue, R.id.textWatcher); in setTextWatcher() local
380 if (oldValue != null) { in setTextWatcher()
381 view.removeTextChangedListener(oldValue); in setTextWatcher()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayTransformManager.java99 final float[] oldValue = mColorMatrix.get(level); in setColorMatrix() local
100 if (!Arrays.equals(oldValue, value)) { in setColorMatrix()
103 } else if (oldValue == null) { in setColorMatrix()
106 System.arraycopy(value, 0, oldValue, 0, value.length); in setColorMatrix()
/frameworks/base/core/tests/coretests/src/android/util/
DLruCacheTest.java373 boolean evicted, String key, String oldValue, String newValue) { in testEntryRemovedIsCalledWithoutSynchronization()
411 boolean evicted, String key, String oldValue, String newValue) { in testCreateWithConcurrentPut()
412 log.add(key + "=" + oldValue + ">" + newValue); in testCreateWithConcurrentPut()
438 boolean evicted, String key, Integer oldValue, Integer newValue) { in testCreateWithConcurrentCreate()
439 log.add(key + "=" + oldValue + ">" + newValue); in testCreateWithConcurrentCreate()
458 boolean evicted, String key, String oldValue, String newValue) {
460 ? (key + "=" + oldValue)
461 : (key + "=" + oldValue + ">" + newValue);
/frameworks/base/services/core/java/com/android/server/
DLockSettingsStrongAuth.java96 int oldValue = mStrongAuthForUser.get(userId, mDefaultStrongAuthFlags); in handleRequireStrongAuthOneUser() local
99 : (oldValue | strongAuthReason); in handleRequireStrongAuthOneUser()
100 if (oldValue != newValue) { in handleRequireStrongAuthOneUser()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseFragmentPagerAdapter.java184 Fragment oldValue, Fragment newValue) { in entryRemoved() argument
186 if (evicted || (newValue != null && oldValue != newValue)) { in entryRemoved()
187 mCurTransaction.remove(oldValue); in entryRemoved()
/frameworks/base/core/java/android/os/
DMemoryFile.java161 boolean oldValue = mAllowPurging; in allowPurging()
162 if (oldValue != allowPurging) { in allowPurging()
166 return oldValue; in allowPurging()
/frameworks/support/documents-archive/src/android/support/provider/
DDocumentArchiveHelper.java79 Loader oldValue, Loader newValue) {
80 oldValue.getWriteLock().lock();
82 oldValue.get().close();
86 oldValue.getWriteLock().unlock();
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DObservableArrayMap.java97 V oldValue = super.setValueAt(index, value); in setValueAt() local
99 return oldValue; in setValueAt()
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/
DMultiArgTestAdapter.java71 public static void setWithOldValue(TextView view, String oldValue, String newValue) { in setWithOldValue() argument
72 view.setText(String.format("%s -> %s", oldValue, newValue)); in setWithOldValue()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMultiValueMap.java37 public T replace(String key, T oldValue, T newValue) { in replace() argument
46 if (value == oldValue) { in replace()
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
DMultiValueMap.java35 public T replace(String key, T oldValue, T newValue) { in replace() argument
44 if (value == oldValue) { in replace()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pGroupList.java56 WifiP2pGroup oldValue, WifiP2pGroup newValue) { in WifiP2pGroupList()
58 mListener.onDeleteGroup(oldValue.getNetworkId()); in WifiP2pGroupList()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java114 String oldValue = null; in restoreValue() local
128 oldValue = table.lookup(cr, name, UserHandle.USER_SYSTEM); in restoreValue()
169 .putExtra(Intent.EXTRA_SETTING_PREVIOUS_VALUE, oldValue); in restoreValue()
DSettingsState.java259 String oldValue = (oldState != null) ? oldState.value : null; in insertSettingLocked() local
274 updateMemoryUsagePerPackageLocked(packageName, oldValue, value); in insertSettingLocked()
363 private void updateMemoryUsagePerPackageLocked(String packageName, String oldValue, in updateMemoryUsagePerPackageLocked() argument
373 final int oldValueSize = (oldValue != null) ? oldValue.length() : 0; in updateMemoryUsagePerPackageLocked()
/frameworks/base/core/java/com/android/internal/util/
DTypedProperties.java204 final Object oldValue = map.remove(propertyName); in parse() local
205 if (oldValue != null) { in parse()
208 if (value.getClass() != oldValue.getClass()) { in parse()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java86 final String oldValue = in testRowNameContentUriForSystem() local
94 if (oldValue != null) { in testRowNameContentUriForSystem()
95 Settings.System.putString(getContext().getContentResolver(), testKey, oldValue); in testRowNameContentUriForSystem() local
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DBinding.java217 String oldValue, String converted) { in toJavaInternal() argument
266 String oldValue, String converted) { in toJavaInternal() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DPhoneMock.java594 final boolean oldValue = mInEmergencyCall.getAndSet(value); in setInEmergencyCall()
595 if (oldValue != value) { in setInEmergencyCall()
608 final boolean oldValue = mInEcm.getAndSet(value); in setInEcm()
609 if (oldValue != value) { in setInEcm()
/frameworks/base/docs/html/training/displaying-bitmaps/
Dmanage-memory.jd178 BitmapDrawable oldValue, BitmapDrawable newValue) {
179 if (RecyclingBitmapDrawable.class.isInstance(oldValue)) {
182 ((RecyclingBitmapDrawable) oldValue).setIsCached(false);
189 (new SoftReference&lt;Bitmap&gt;(oldValue.getBitmap()));
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DLruCache.java275 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} in entryRemoved() argument
/frameworks/base/core/java/android/util/
DLruCache.java264 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} in entryRemoved() argument
/frameworks/support/compat/java/android/support/v4/util/
DLruCache.java227 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} in entryRemoved() argument
/frameworks/support/transition/ics/android/support/transition/
DTransitionPort.java876 Object oldValue = oldValues.values.get(key); in playTransition() local
878 if (oldValue != null && newValue != null && in playTransition()
879 !oldValue.equals(newValue)) { in playTransition()
884 ": old, new = " + oldValue + ", " + newValue); in playTransition()

12