Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DIdentityCache.java25 public class IdentityCache<K, V> {
27 private final HashMap<K, Entry<K, V>> mWeakMap =
28 new HashMap<K, Entry<K, V>>();
34 private static class Entry<K, V> extends WeakReference<V> {
35 K mKey;
37 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry()
44 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
47 entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
51 public synchronized V put(K key, V value) { in put()
53 Entry<K, V> entry = mWeakMap.put( in put()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DLruCache.java29 public class LruCache<K, V> {
31 private final HashMap<K, V> mLruMap;
32 private final HashMap<K, Entry<K, V>> mWeakMap =
33 new HashMap<K, Entry<K, V>>();
38 mLruMap = new LinkedHashMap<K, V>(16, 0.75f, true) { in LruCache()
40 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) { in LruCache()
46 private static class Entry<K, V> extends WeakReference<V> {
47 K mKey;
49 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry()
57 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
[all …]
/packages/apps/Gallery/src/com/android/camera/gallery/
DLruCache.java25 public class LruCache<K, V> {
27 private final HashMap<K, V> mLruMap;
28 private final HashMap<K, Entry<K, V>> mWeakMap =
29 new HashMap<K, Entry<K, V>>();
34 mLruMap = new LinkedHashMap<K, V>(16, 0.75f, true) { in LruCache()
36 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) { in LruCache()
42 private static class Entry<K, V> extends WeakReference<V> {
43 K mKey;
45 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry()
53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Ddtoa.h59 …ne void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* K) { in DigitGen() argument
87 *K += kappa; in DigitGen()
103 *K += kappa; in DigitGen()
110 inline void Grisu2(double value, char* buffer, int* length, int* K) { in Grisu2() argument
115 const DiyFp c_mk = GetCachedPower(w_p.e, K); in Grisu2()
121 DigitGen(W, Wp, Wp.f - Wm.f, buffer, length, K); in Grisu2()
124 inline char* WriteExponent(int K, char* buffer) { in WriteExponent() argument
125 if (K < 0) { in WriteExponent()
127 K = -K; in WriteExponent()
130 if (K >= 100) { in WriteExponent()
[all …]
Ddiyfp.h221 inline DiyFp GetCachedPower(int e, int* K) { in GetCachedPower() argument
230 *K = -(-348 + static_cast<int>(index << 3)); // decimal exponent no need lookup table in GetCachedPower()
/packages/apps/Dialer/java/com/android/dialer/util/
DExpirableCache.java91 public class ExpirableCache<K, V> {
103 private LruCache<K, CachedValue<V>> cache;
105 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() argument
121 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create() argument
122 return new ExpirableCache<K, V>(cache); in create()
132 public static <K, V> ExpirableCache<K, V> create(int maxSize) { in create()
133 return create(new LruCache<K, CachedValue<V>>(maxSize)); in create()
149 public CachedValue<V> getCachedValue(K key) { in getCachedValue()
165 public V getPossiblyExpired(K key) { in getPossiblyExpired()
179 public V get(K key) { in get()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_camera.cpp29 void db_Approx3DCalMat(double K[9],double Kinv[9],int im_width,int im_height,double f_correction,in… in db_Approx3DCalMat()
39 K[0]=f_correction*av_size; in db_Approx3DCalMat()
40 K[1]=0; in db_Approx3DCalMat()
41 K[2]=iw/2.0; in db_Approx3DCalMat()
42 K[3]=0; in db_Approx3DCalMat()
43 K[4]=f_correction*av_size/field_fact; in db_Approx3DCalMat()
44 K[5]=ih/2.0/field_fact; in db_Approx3DCalMat()
45 K[6]=0; in db_Approx3DCalMat()
46 K[7]=0; in db_Approx3DCalMat()
47 K[8]=1; in db_Approx3DCalMat()
[all …]
Ddb_utilities_camera.h52 DB_API void db_Approx3DCalMat(double K[9],double Kinv[9],int im_width,int im_height,double f_correc…
75 void inline db_InvertCalibrationMatrix(double Kinv[9],const double K[9]) in db_InvertCalibrationMatrix()
79 a=K[0];b=K[1];c=K[2];d=K[4];e=K[5];f=K[8]; in db_InvertCalibrationMatrix()
Ddb_rob_image_homography.h98 double K[9],
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDummySelectionTracker.java32 public class DummySelectionTracker<K> extends SelectionTracker<K> {
44 public Selection<K> getSelection() { in getSelection()
45 return new MutableSelection<K>(); in getSelection()
49 public void copySelection(MutableSelection<K> dest) { in copySelection()
53 public boolean isSelected(K key) { in isSelected()
58 public void restoreSelection(Selection<K> selection) { in restoreSelection()
67 public boolean setItemsSelected(Iterable<K> keys, boolean selected) { in setItemsSelected()
72 public boolean select(K key) { in select()
77 public boolean deselect(K key) { in deselect()
112 public void setProvisionalSelection(Set<K> newSelection) { in setProvisionalSelection()
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar8 …d5m^p,��MWT�U�,iGqkQ�Ğo��t�� ĩ��YZ�хm�Ջ���ɫBH�����ߝ�o���Q���'$�I`�6�� KV��+�#�'u,��\��%&1…
19K�~Po�2�W��rjzkdm�*������g�{�O�����׎�[[��h�8�r�!m�\���j~��)�8�P����W]�wI|��iR6��x�O%���…
26 �R�u�fo�?��J⁴���-{��87o(��d]aRK�� ]��� K纫�|T�s�->^v���������D�6�B�j���;���YN��7��J�ͥ�y…
27 A�4�P]X߸͒x�6w#<[���Kט&g፿n|o��� ��ºϺ�4����Y����J@��B0-n�M�b˄�vu���>E�㖳a�p�}���oE����c…
30 …y�c#�F��B׶ӿ�����6�P�g��#���K�{У��,� �x�ԫ�UlN���M��F���r����@�삟��������opiR�����գ�wCp�>�…
32 ��0P\�A^u�[��V�������#��L��{K@K�!���s������!l�H�&���ͧ��O��[�̮��zP��m��ԣ�x��>I���
47 �#�^����?S<L�h٥��b t�PsL���(K�(Pþ��ȥ[���ܫ��۱�l�D(��n}8���R*%�/�dꥩ�$�t�8���[S 9��"��9(…
55 =ۗl>)��o���B�7�O����t�lNX�%��%�/�^�7|�}�B{c*F��*K����G�oE~��Z�wW�H��@N=�}�n�0 �v�}��,�…
58 +��!��G4h�8a���Y��4�{#���E���w��,����� %eg�K+��?��>����ή*��x�</8w� ����??m���I���:�?H&…
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DLruCache.java28 public final class LruCache<K, V> extends LinkedHashMap<K, V> {
60 public synchronized V getElement(K key) { in getElement()
69 public synchronized void putElement(K key, V value) { in putElement()
79 public synchronized V removeElement(K key) { in removeElement()
91 public synchronized void putAll(Map<? extends K, ? extends V> m) { in putAll() argument
92 for (Map.Entry<? extends K, ? extends V> e : m.entrySet()) { in putAll()
105 protected synchronized boolean removeEldestEntry(Map.Entry<K, V> eldest) { in removeEldestEntry() argument
DRankedComparator.java34 public class RankedComparator<T, K> implements Comparator<T> {
36 private final Map<K, Integer> mRankOrder;
38 private final Function<T, K> mRankExtractorFunction;
49 public RankedComparator(K[] rankOrder, Function<T, K> rankExtractorFunction) { in RankedComparator()
50 final ImmutableMap.Builder<K, Integer> orderBuilder = ImmutableMap.builder(); in RankedComparator()
60 final K key = mRankExtractorFunction.apply(object); in getOrder()
DDequeMap.java30 public class DequeMap<K, V> {
36 private final Map<K, Deque<V>> mMap = Maps.newHashMap();
42 public void add(K key, V item) { in add()
60 public V poll(K key) { in poll()
77 public V peek(K key) { in peek()
98 for (Map.Entry<K, Deque<V>> entry : mMap.entrySet()) { in visitAll()
/packages/services/Car/service/src/com/android/car/
DSetMultimap.java33 public class SetMultimap<K, V> {
34 private Map<K, Set<V>> mMap;
42 public Set<V> get(K key) { in get()
47 public boolean put(K key, V value) { in put()
52 public boolean containsEntry(K key, V value) { in containsEntry()
58 public boolean remove(K key, V value) { in remove()
77 public Set<K> keySet() { in keySet()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallIdMapper.java31 static class BiMap<K, V> {
32 private Map<K, V> mPrimaryMap = new ArrayMap<>();
33 private Map<V, K> mSecondaryMap = new ArrayMap<>();
35 public boolean put(K key, V value) { in put()
46 public boolean remove(K key) { in remove()
66 public V getValue(K key) { in getValue()
70 public K getKey(V value) { in getKey()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMultiHashMap.java25 public class MultiHashMap<K, V> extends HashMap<K, ArrayList<V>> {
33 public void addToList(K key, V value) { in addToList()
45 public MultiHashMap<K, V> clone() { in clone()
46 MultiHashMap<K, V> map = new MultiHashMap<>(size()); in clone()
47 for (Entry<K, ArrayList<V>> entry : entrySet()) { in clone()
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DAbstractCache.java23 public abstract class AbstractCache<K, V> {
29 private final SimpleArrayMap<K, CacheEntry<V>> mCacheMap;
32 mCacheMap = new SimpleArrayMap<K, CacheEntry<V>>(); in AbstractCache()
35 public boolean put(K key, V value) { in put()
62 public V get(K key) { in get()
80 public V purge(K key) { in purge()
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/
DPartitionedNumbers.java119 private static <K, V> ImmutableMap<K, ImmutableSet<V>> makeImmutable( in makeImmutable() argument
120 Map<K, Set<V>> mutableMapOfSet) { in makeImmutable()
121 ImmutableMap.Builder<K, ImmutableSet<V>> mapBuilder = ImmutableMap.builder(); in makeImmutable()
122 for (Map.Entry<K, Set<V>> entry : mutableMapOfSet.entrySet()) { in makeImmutable()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDummyLookup.java21 public final class DummyLookup<K, V> implements Lookup<K, V> {
23 public V lookup(K key) { in lookup()
DLookup.java29 public interface Lookup<K, V> {
30 @Nullable V lookup(K key); in lookup()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DImageMemoryCache.java49 private static class CacheMap<K, V> extends LinkedHashMap<K, V> {
58 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) { in removeEldestEntry() argument
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DFlingSpringAnim.java39 public <K> FlingSpringAnim(K object, FloatPropertyCompat<K> property, float startPosition, in FlingSpringAnim()
/packages/services/Car/tools/ioanalyze/
Danalyzer.py186 A = [(K, self.uids[K].totalWrittenBytes) for K in self.uids]
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/loader/
DTmaLoaderUtils.java71 static <K extends Enum, E extends Enum> E getEnum( in getEnum()
72 JSONObject json, K key, Map<String, E> enumMap, E fallback) { in getEnum()

12