Home
last modified time | relevance | path

Searched refs:K (Results 1 – 25 of 37) 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/Dialer/src/com/android/dialer/util/
DExpirableCache.java87 public class ExpirableCache<K, V> {
143 private LruCache<K, CachedValue<V>> mCache;
155 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() argument
173 public CachedValue<V> getCachedValue(K key) { in getCachedValue()
189 public V getPossiblyExpired(K key) { in getPossiblyExpired()
204 public V get(K key) { in get()
217 public void put(K key, V value) { in put()
252 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create() argument
253 return new ExpirableCache<K, V>(cache); in create()
263 public static <K, V> ExpirableCache<K, V> create(int maxSize) { in create()
[all …]
/packages/apps/Camera/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],
Ddb_rob_image_homography.cpp634 double K[9], in db_RobImageHomography()
727 db_InvertCalibrationMatrix(K_inv,K); in db_RobImageHomography()
/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],
Ddb_rob_image_homography.cpp634 double K[9], in db_RobImageHomography()
727 db_InvertCalibrationMatrix(K_inv,K); in db_RobImageHomography()
/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/apps/Mms/src/com/android/mms/util/
DSimpleCache.java32 public class SimpleCache<K, V> {
39 private class SoftReferenceMap extends LinkedHashMap<K, SoftReference<V>> {
49 protected boolean removeEldestEntry(Map.Entry<K, SoftReference<V>> eldest) { in removeEldestEntry() argument
55 private class HardReferenceMap extends LinkedHashMap<K, V> {
65 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) { in removeEldestEntry() argument
110 public V put(K key, V value) { in put()
130 public V remove(K key) { in remove()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallIdMapper.java28 static class BiMap<K, V> {
29 private Map<K, V> mPrimaryMap = new ArrayMap<>();
30 private Map<V, K> mSecondaryMap = new ArrayMap<>();
32 public boolean put(K key, V value) { in put()
43 public boolean remove(K key) { in remove()
63 public V getValue(K key) { in getValue()
67 public K getKey(V value) { in getKey()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSettings.java157 private static class Multimap<K,V> {
158 private final HashMap<K,List<V>> store = new HashMap<K,List<V>>();
160 List<V> getAll(K key) { in getAll()
165 void put(K key, V val) { in put()
/packages/inputmethods/LatinIME/dictionaries/
Dde_wordlist.combined.gz1dictionary=main:de,locale=de,description=Deutsch,date=1393228134, ...
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1393228155, ...
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...
Dcs_wordlist.combined.gz
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...
Dsv_wordlist.combined.gz1dictionary=main:sv,locale=sv,description=Svenska,date=1393228154, ...
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java2073 @Deprecated public static <K, V> String map2String( in map2String()
2074 Map<K, V> in, String sepKey, String sepEntry) { in map2String() argument

12