Home
last modified time | relevance | path

Searched refs:K (Results 1 – 25 of 132) sorted by relevance

123456

/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/ext/
Dext.kt20 private class LazyExt<K, T>(private val initializer: (k : K) -> T) : ReadOnlyProperty<K, T> {
21 private val mapping = hashMapOf<K, T>()
22 override fun getValue(thisRef: K, property: kotlin.reflect.KProperty<*>): T { in getValue()
33 private class VersionedLazyExt<K, T>(private val initializer: (k : K) -> T) : ReadOnlyProperty<K, T…
34 private val mapping = hashMapOf<K, VersionedResult<T>>()
36 override fun getValue(thisRef: K, property: KProperty<*>): T { in getValue()
50 fun <K, T> lazyProp(initializer: (k : K) -> T): ReadOnlyProperty<K, T> = LazyExt(initializer) in lazyProp()
51 fun <K, T> versionedLazy(initializer: (k : K) -> T): ReadOnlyProperty<K, T> = VersionedLazyExt(init… in lazyProp()
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
DObservableMap.java32 public interface ObservableMap<K, V> extends Map<K, V> {
39 OnMapChangedCallback<? extends ObservableMap<K, V>, K, V> callback); in addOnMapChangedCallback() argument
46 OnMapChangedCallback<? extends ObservableMap<K, V>, K, V> callback); in removeOnMapChangedCallback() argument
51 abstract class OnMapChangedCallback<T extends ObservableMap<K, V>, K, V> {
59 public abstract void onMapChanged(T sender, K key); in onMapChanged()
/frameworks/support/compat/java/android/support/v4/util/
DArrayMap.java50 public class ArrayMap<K, V> extends SimpleArrayMap<K, V> implements Map<K, V> {
51 MapCollections<K, V> mCollections;
71 private MapCollections<K, V> getCollection() { in getCollection()
73 mCollections = new MapCollections<K, V>() { in getCollection()
95 protected Map<K, V> colGetMap() { in getCollection()
100 protected void colPut(K key, V value) { in getCollection()
138 public void putAll(Map<? extends K, ? extends V> map) { in putAll() argument
140 for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) { in putAll()
178 public Set<Entry<K, V>> entrySet() { in entrySet()
190 public Set<K> keySet() { in keySet()
DLruCache.java29 public class LruCache<K, V> {
30 private final LinkedHashMap<K, V> map;
52 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache()
77 public final V get(K key) { in get()
131 public final V put(K key, V value) { in put()
163 K key; in trimToSize()
175 Map.Entry<K, V> toEvict = map.entrySet().iterator().next(); in trimToSize()
192 public final V remove(K key) { in remove()
227 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} in entryRemoved()
244 protected V create(K key) { in create()
[all …]
DMapCollections.java30 abstract class MapCollections<K, V> {
72 final class MapIterator implements Iterator<Map.Entry<K, V>>, Map.Entry<K, V> {
88 public Map.Entry<K, V> next() { in next()
107 public K getKey() { in getKey()
112 return (K)colGetEntry(mIndex, 0); in getKey()
165 final class EntrySet implements Set<Map.Entry<K, V>> {
167 public boolean add(Map.Entry<K, V> object) { in add() argument
172 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() argument
174 for (Map.Entry<K, V> entry : collection) { in addAll()
215 public Iterator<Map.Entry<K, V>> iterator() { in iterator()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DLruCache.java66 public class LruCache<K, V> {
67 private final LinkedHashMap<K, V> map;
89 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache()
115 public final V get(K key) { in get()
169 public final V put(K key, V value) { in put()
198 K key; in trimToSize()
214 Map.Entry<K, V> toEvict = null; in trimToSize()
215 for (Map.Entry<K, V> entry : map.entrySet()) { in trimToSize()
240 public final V remove(K key) { in remove()
275 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} in entryRemoved()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DWeakIdentityHashMap.java30 public class WeakIdentityHashMap<K,V> {
32 private final HashMap<WeakReference<K>,V> mMap = new HashMap<>();
42 public void put(K key, V value) { in put()
47 public V get(K key) { in get()
57 public Set<Map.Entry<WeakReference<K>, V>> entrySet() { in entrySet()
71 private static class CmpWeakReference<K> extends WeakReference<K> {
74 public CmpWeakReference(K key) { in CmpWeakReference()
79 public CmpWeakReference(K key, ReferenceQueue<Object> refQueue) { in CmpWeakReference()
89 K k = get(); in equals()
/frameworks/base/core/java/android/util/
DLruCache.java62 public class LruCache<K, V> {
63 private final LinkedHashMap<K, V> map;
85 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache()
110 public final V get(K key) { in get()
164 public final V put(K key, V value) { in put()
196 K key; in trimToSize()
208 Map.Entry<K, V> toEvict = map.eldest(); in trimToSize()
229 public final V remove(K key) { in remove()
264 protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} in entryRemoved()
281 protected V create(K key) { in create()
[all …]
DMapCollections.java33 abstract class MapCollections<K, V> {
75 final class MapIterator implements Iterator<Map.Entry<K, V>>, Map.Entry<K, V> {
91 public Map.Entry<K, V> next() { in next()
110 public K getKey() { in getKey()
115 return (K)colGetEntry(mIndex, 0); in getKey()
168 final class EntrySet implements Set<Map.Entry<K, V>> {
170 public boolean add(Map.Entry<K, V> object) { in add() argument
175 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() argument
177 for (Map.Entry<K, V> entry : collection) { in addAll()
218 public Iterator<Map.Entry<K, V>> iterator() { in iterator()
[all …]
DArrayMap.java48 public final class ArrayMap<K, V> implements Map<K, V> {
100 MapCollections<K, V> mCollections;
297 public ArrayMap(ArrayMap<K, V> map) { in ArrayMap() argument
429 public K keyAt(int index) { in keyAt()
430 return (K)mArray[index << 1]; in keyAt()
472 public V put(K key, V value) { in put()
538 public void append(K key, V value) { in append()
603 public void putAll(ArrayMap<? extends K, ? extends V> array) { in putAll() argument
729 K key = keyAt(i); in equals()
807 private MapCollections<K, V> getCollection() { in getCollection()
[all …]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DObservableArrayMap.java22 public class ObservableArrayMap<K, V> extends ArrayMap<K, V> implements ObservableMap<K, V> {
28 OnMapChangedCallback<? extends ObservableMap<K, V>, K, V> listener) { in addOnMapChangedCallback() argument
37 OnMapChangedCallback<? extends ObservableMap<K, V>, K, V> listener) { in removeOnMapChangedCallback() argument
52 public V put(K k, V v) { in put()
86 K key = keyAt(index); in removeAt()
96 K key = keyAt(index); in setValueAt()
/frameworks/base/core/java/com/google/android/collect/
DMaps.java32 public static <K, V> HashMap<K, V> newHashMap() { in newHashMap()
33 return new HashMap<K, V>(); in newHashMap()
39 public static <K, V> ArrayMap<K, V> newArrayMap() { in newArrayMap()
40 return new ArrayMap<K, V>(); in newArrayMap()
/frameworks/opt/bitmap/src/com/android/bitmap/
DUnrefedPooledCache.java44 public class UnrefedPooledCache<K, V extends Poolable> implements PooledCache<K, V> {
46 private final LinkedHashMap<K, V> mCache;
49 private final LruCache<K, V> mNonPooledCache;
60 mCache = new LinkedHashMap<K, V>(0, 0.75f, true); in UnrefedPooledCache()
72 public V get(K key, boolean incrementRefCount) { in get()
88 public V put(K key, V value) { in put()
131 Map.Entry<K, V> eldestUnref = null; in poll()
132 for (Map.Entry<K, V> entry : mCache.entrySet()) { in poll()
191 for (Map.Entry<K, V> item : mCache.entrySet()) { in toDebugString()
201 for (Map.Entry<K, V> item : mNonPooledCache.snapshot().entrySet()) { in toDebugString()
[all …]
DPooledCache.java19 public interface PooledCache<K, V> {
21 V get(K key, boolean incrementRefCount); in get()
22 V put(K key, V value); in put()
/frameworks/base/test-runner/src/android/test/
DSimpleCache.java23 abstract class SimpleCache<K, V> {
24 private Map<K, V> map = new HashMap<K, V>();
26 protected abstract V load(K key); in load()
28 final V get(K key) { in get()
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
DAbstractCache.java24 public abstract class AbstractCache<K, V> {
31 private final HashMap<K, CacheEntry<V>> mCacheMap;
34 mCacheMap = new HashMap<K, CacheEntry<V>>(); in AbstractCache()
37 public boolean put(K key, V value) { in put()
64 public V get(K key) { in get()
82 public V purge(K key) { in purge()
/frameworks/rs/cpp/util/
DTypeHelpers.h248 template <typename K, typename V>
249 struct trait_trivial_ctor< key_value_pair_t<K, V> >
250 { enum { value = aggregate_traits<K,V>::has_trivial_ctor }; };
251 template <typename K, typename V>
252 struct trait_trivial_dtor< key_value_pair_t<K, V> >
253 { enum { value = aggregate_traits<K,V>::has_trivial_dtor }; };
254 template <typename K, typename V>
255 struct trait_trivial_copy< key_value_pair_t<K, V> >
256 { enum { value = aggregate_traits<K,V>::has_trivial_copy }; };
257 template <typename K, typename V>
[all …]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DLinkedHashMap_Delegate.java32 public static <K,V> Map.Entry<K,V> eldest(LinkedHashMap<K,V> map) { in eldest() argument
33 Iterator<Entry<K, V>> iterator = map.entrySet().iterator(); in eldest()
/frameworks/rs/cpu_ref/
DrsCpuBLASDispatch.h40 const int N, const int K, const float *A, const int lda,
51 const int N, const int K, const float *A, const int lda,
73 const int N, const int K, const double *A, const int lda,
84 const int N, const int K, const double *A, const int lda,
106 const int N, const int K, const void *A, const int lda,
117 const int N, const int K, const void *A, const int lda,
139 const int N, const int K, const void *A, const int lda,
150 const int N, const int K, const void *A, const int lda,
165 const int N, const int K, const float alpha, const float *A,
194 const int N, const int K, const double alpha, const double *A,
[all …]
/frameworks/support/dynamic-animation/src/android/support/animation/
DSpringAnimation.java90 public <K> SpringAnimation(K object, FloatPropertyCompat<K> property) { in SpringAnimation()
104 public <K> SpringAnimation(K object, FloatPropertyCompat<K> property, in SpringAnimation()
/frameworks/base/tests/LegacyRestoreTest/
Djbmr2-encrypted-settings-abcd.ab10 ���$t�)�&����Y�e�Y��� ?A>Q��ª_j��a<�E��K��g�;�e���c��:k�(�K*rFA�ȏ�"��wR���&�%�?\��}����z��…
13 …tክ�:[�]�r )��Ayާ�5;JM����<pJ�˓�����'�?H���k��N�<�7��Ww4�-XReTr�VZ��K<����'ɷ���;����…
14 �&d?�6g1g�K��^�?�(<Ȭ��F�R���2’]����?e�p��� EO���3 ����{n{��Sn$��� ��fcʲ1i�Bu�z�1z� � XG��E�K�…
15K ��;�Q2���+�b�w�-uy xj��^�qqy��>� ��`�x���⼖��0���I�0j��T�z�,aB�Zo���(7 �V5��.���$����…
/frameworks/rs/cpp/
DScriptIntrinsicBLAS.cpp52 int M, int N, int K, int incX, int incY, int KL, int KU, in setUpBLASCall() argument
67 call.K = K; in setUpBLASCall()
108 int TransB, int Side, int Uplo, int Diag, int M, int N, int K, in nScriptIntrinsicBLAS_Single() argument
112 M, N, K, incX, incY, KL, KU, alpha, beta, 0.0, 0.0, in nScriptIntrinsicBLAS_Single()
122 int TransB, int Side, int Uplo, int Diag, int M, int N, int K, in nScriptIntrinsicBLAS_Double() argument
126 M, N, K, incX, incY, KL, KU, 0.0f, 0.0f, alpha, beta, in nScriptIntrinsicBLAS_Double()
135 int TransB, int Side, int Uplo, int Diag, int M, int N, int K, in nScriptIntrinsicBLAS_Complex() argument
139 M, N, K, incX, incY, KL, KU, 0.0f, 0.0f, 0.0, 0.0, in nScriptIntrinsicBLAS_Complex()
148 int TransB, int Side, int Uplo, int Diag, int M, int N, int K, in nScriptIntrinsicBLAS_Z() argument
152 M, N, K, incX, incY, KL, KU, 0.0f, 0.0f, 0.0, 0.0, in nScriptIntrinsicBLAS_Z()
[all …]
/frameworks/base/media/tests/contents/media_api/music/
Dtest_amr_ietf.amr2 …M���R�['���E`|X�<Mq�I�C��:8%�h��[(q]���V���<`<4]�� ��x��K˳�'+�{��{���KP<Zga4� ��^�?�y苁�s`…
6 ]�is��n�,�U����!������<x@0�E�ȍ:�_K�.LJ�:����<$9(6pT��s:����A�I�uNiS��vp<ۘ��R�����`…
21 ؠ<���W%�g-KLo�}�G�@J��bҗ�Z�<[›�'����?��K���B�j˞|���!�`<4���k��3�::�۩m�O�$�q��`+� <Y���"��…
35 …���k/0��"Y]�Qa�<x;0~��ie����U+�t���Ɓziy�Z�<G9�_|���K]\%I\�h6J��yP`��<N�����燌��b<̎�K"…
43 …b�:�\W�C���E�M�������<�y:��!�R�.UCR�p��.�2�}`����<�)��)�l��T�h���~\�(�_��<������K�…
97 �W�<h[t��(��J��UJ��?8K����|AՐ<�)aG���瘐 �K��� ��b��7�奒�_��<�qwH��0r݄zCmu�����w���AD�<#�`l…
124 ���i��0<�-&5Wq���9\{��5�����T���Z!�<0�>`&K��X�Z͐��K�b!!� EꙸtP<8�&K��w�J������P��
125 …I�������j$�W��j����'��Kޜ0<DvcA�w�UХrT̈́j�J��B��� 5p<��}J��i�~)�ՄA��xD0a�?����<�6)A�_���…
153 ���K(n�3����aV�T�`<dG�Z!��̾�1�Q*S��f�D�R�]@<�'����8����2���=��������<"dG�3�A��,�Z()N4��d…
154 …i�5:8)]�b�q��O<�d��w'��LZæ�u,k0f��9)�"�W4�<>$G��<��-��3`Ҭ'<��o�?�`볠<�$6�֒��$�K��L�'ܰ�
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DSimpleCache.java25 class SimpleCache<K, V> extends LinkedHashMap<K, V> {
35 protected boolean removeEldestEntry(final Map.Entry<K, V> eldest) { in removeEldestEntry() argument
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBLAS.java687 …public void STBMV(@Uplo int Uplo, @Transpose int TransA, @Diag int Diag, int K, Allocation A, Al… in STBMV() argument
689 if (K < 0) { in STBMV()
694 …mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_stbmv, TransA, 0, 0, Uplo, Diag, 0, N, K, 0, A.… in STBMV() local
718 …public void DTBMV(@Uplo int Uplo, @Transpose int TransA, @Diag int Diag, int K, Allocation A, Al… in DTBMV() argument
720 if (K < 0) { in DTBMV()
725 …mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dtbmv, TransA, 0, 0, Uplo, Diag, 0, N, K, 0, A.… in DTBMV() local
749 …public void CTBMV(@Uplo int Uplo, @Transpose int TransA, @Diag int Diag, int K, Allocation A, Al… in CTBMV() argument
751 if (K < 0) { in CTBMV()
756 …insicBLAS_Complex(getID(mRS), RsBlas_ctbmv, TransA, 0, 0, Uplo, Diag, 0, N, K, 0, 0, A.getID(mRS),… in CTBMV() local
780 …public void ZTBMV(@Uplo int Uplo, @Transpose int TransA, @Diag int Diag, int K, Allocation A, Al… in ZTBMV() argument
[all …]

123456