/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | UnrefedPooledCache.java | 44 public class UnrefedPooledCache<K, V extends Poolable> implements PooledCache<K, V> { 46 private final LinkedHashMap<K, V> mCache; 47 private final LinkedBlockingQueue<V> mPool; 49 private final LruCache<K, V> mNonPooledCache; 60 mCache = new LinkedHashMap<K, V>(0, 0.75f, true); in UnrefedPooledCache() 61 mPool = new LinkedBlockingQueue<V>(); in UnrefedPooledCache() 72 public V get(K key, boolean incrementRefCount) { in get() 75 V result = mCache.get(key); in get() 88 public V put(K key, V value) { in put() 96 final V prev; in put() [all …]
|
D | PooledCache.java | 19 public interface PooledCache<K, V> { 21 V get(K key, boolean incrementRefCount); in get() 22 V put(K key, V value); in put() 23 void offer(V scrapValue); in offer() 24 V poll(); in poll()
|
/frameworks/base/services/ |
D | art-profile | 1 PLandroid/app/usage/UsageStatsManagerInternal$AppUsageLimitData;-><init>(JJ)V 4 HSPLandroid/app/usage/UsageStatsManagerInternal;-><init>()V 5 …roid/content/pm/PackageManagerInternal$PackageListObserver;->onPackageChanged(Ljava/lang/String;I)V 6 HSPLandroid/content/pm/PackageManagerInternal;-><init>()V 9 HPLandroid/hardware/audio/common/V2_0/AudioConfig;-><init>()V 10 …/audio/common/V2_0/AudioConfig;->readEmbeddedFromParcel(Landroid/os/HwParcel;Landroid/os/HwBlob;J)V 13 HPLandroid/hardware/audio/common/V2_0/AudioOffloadInfo;-><init>()V 14 …o/common/V2_0/AudioOffloadInfo;->readEmbeddedFromParcel(Landroid/os/HwParcel;Landroid/os/HwBlob;J)V 18 HSPLandroid/hardware/audio/common/V2_0/Uuid;-><init>()V 19 …ardware/audio/common/V2_0/Uuid;->readEmbeddedFromParcel(Landroid/os/HwParcel;Landroid/os/HwBlob;J)V [all …]
|
D | art-profile-boot | 1 Lcom/android/server/appop/AppOpsService;->readUidOps(Lorg/xmlpull/v1/XmlPullParser;)V 2 …org/xmlpull/v1/XmlPullParser;Lcom/android/server/appop/AppOpsService$UidState;Ljava/lang/String;Z)V 3 Lcom/android/server/appop/AppOpsService$UidState;->evalForegroundOps(Landroid/util/SparseArray;)V 4 Lcom/android/server/appop/AppOpsService;->readUid(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;)V 5 Lcom/android/server/appop/AppOpsService$Op;->updateProxyState(JILjava/lang/String;)V 6 Lcom/android/server/appop/AppOpsService$Op;->accessed(JILjava/lang/String;II)V 7 …ission/PermissionSettings;->readPermissions(Landroid/util/ArrayMap;Lorg/xmlpull/v1/XmlPullParser;)V 8 Lcom/android/server/pm/permission/BasePermission;-><init>(Ljava/lang/String;Ljava/lang/String;I)V 14 Lcom/android/server/pm/permission/PermissionsState;->enforceValidUserId(I)V 22 …lPermissionsLPr(Lorg/xmlpull/v1/XmlPullParser;Lcom/android/server/pm/permission/PermissionsState;)V [all …]
|
/frameworks/base/core/java/android/util/ |
D | LruCache.java | 64 public class LruCache<K, V> { 66 private final LinkedHashMap<K, V> map; 88 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache() 113 public final V get(K key) { in get() 118 V mapValue; in get() 135 V createdValue = create(key); in get() 167 public final V put(K key, V value) { in put() 172 V previous; in put() 200 V value; in trimToSize() 211 Map.Entry<K, V> toEvict = map.eldest(); in trimToSize() [all …]
|
D | Property.java | 28 public abstract class Property<T, V> { 31 private final Class<V> mType; 54 public static <T, V> Property<T, V> of(Class<T> hostType, Class<V> valueType, String name) { in of() 55 return new ReflectiveProperty<T, V>(hostType, valueType, name); in of() 61 public Property(Class<V> type, String name) { in Property() 84 public void set(T object, V value) { in set() 91 public abstract V get(T object); in get() 103 public Class<V> getType() { in getType()
|
D | MapCollections.java | 32 abstract class MapCollections<K, V> { 74 final class MapIterator implements Iterator<Map.Entry<K, V>>, Map.Entry<K, V> { 90 public Map.Entry<K, V> next() { in next() 118 public V getValue() { in getValue() 123 return (V)colGetEntry(mIndex, 1); in getValue() 127 public V setValue(V object) { in setValue() 167 final class EntrySet implements Set<Map.Entry<K, V>> { 169 public boolean add(Map.Entry<K, V> object) { in add() 174 public boolean addAll(Collection<? extends Map.Entry<K, V>> collection) { in addAll() 176 for (Map.Entry<K, V> entry : collection) { in addAll() [all …]
|
D | ArrayMap.java | 54 public final class ArrayMap<K, V> implements Map<K, V> { 122 private MapCollections<K, V> mCollections; 353 public ArrayMap(ArrayMap<K, V> map) { in ArrayMap() 483 public V get(Object key) { in get() 485 return index >= 0 ? (V)mArray[(index<<1)+1] : null; in get() 519 public V valueAt(int index) { in valueAt() 525 return (V)mArray[(index << 1) + 1]; in valueAt() 540 public V setValueAt(int index, V value) { in setValueAt() 547 V old = (V)mArray[index]; in setValueAt() 569 public V put(K key, V value) { in put() [all …]
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 18 HSPLandroid/accessibilityservice/AccessibilityServiceInfo;-><init>()V 19 …rvice/AccessibilityServiceInfo;-><init>(Landroid/content/pm/ResolveInfo;Landroid/content/Context;)V 20 …rviceInfo;->access$000(Landroid/accessibilityservice/AccessibilityServiceInfo;Landroid/os/Parcel;)V 26 HSPLandroid/accessibilityservice/AccessibilityServiceInfo;->initFromParcel(Landroid/os/Parcel;)V 28 HSPLandroid/accessibilityservice/AccessibilityServiceInfo;->writeToParcel(Landroid/os/Parcel;I)V 33 HSPLandroid/accounts/Account;-><init>(Landroid/os/Parcel;)V 34 HSPLandroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;)V 35 HSPLandroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V 40 HSPLandroid/accounts/Account;->writeToParcel(Landroid/os/Parcel;I)V 41 HSPLandroid/accounts/AccountAndUser;-><init>(Landroid/accounts/Account;I)V [all …]
|
D | boot-profile.txt | 2 Lcom/android/internal/os/ZygoteInit;->preloadClasses()V 3 Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V 4 Landroid/os/Trace;->traceEnd(J)V 8 …$Font;-><init>(Ljava/lang/String;I[Landroid/graphics/fonts/FontVariationAxis;IZLjava/lang/String;)V 10 …lback(Landroid/text/FontConfig$Family;Landroid/util/ArrayMap;Ljava/util/Map;Ljava/util/ArrayList;)V 12 Lcom/android/internal/util/Preconditions;->checkArgument(ZLjava/lang/Object;)V 26 …ndroid/graphics/fonts/Font$Builder;-><init>(Ljava/nio/ByteBuffer;Ljava/io/File;Ljava/lang/String;)V 27 Landroid/graphics/fonts/Font$Builder;-><init>(Ljava/nio/ByteBuffer;)V 30 Lcom/android/internal/util/Preconditions;->checkArgument(Z)V 37 Landroid/graphics/fonts/FontStyle;-><init>(II)V [all …]
|
D | hiddenapi-greylist.txt | 2 Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-><init>(Landroid/os/IBinder;)V 4 Landroid/accounts/IAccountAuthenticator$Stub;-><init>()V 6 Landroid/accounts/IAccountAuthenticatorResponse$Stub$Proxy;-><init>(Landroid/os/IBinder;)V 8 Landroid/accounts/IAccountAuthenticatorResponse$Stub;-><init>()V 10 Landroid/accounts/IAccountManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V 11 Landroid/accounts/IAccountManager$Stub;-><init>()V 13 Landroid/accounts/IAccountManagerResponse$Stub$Proxy;-><init>(Landroid/os/IBinder;)V 15 Landroid/accounts/IAccountManagerResponse$Stub;-><init>()V 21 Landroid/app/backup/IFullBackupRestoreObserver$Stub;-><init>()V 22 Landroid/app/backup/IRestoreObserver$Stub;-><init>()V [all …]
|
D | hiddenapi-force-blacklist.txt | 1 Ldalvik/system/VMRuntime;->setHiddenApiExemptions([Ljava/lang/String;)V 2 Ldalvik/system/VMRuntime;->setTargetSdkVersion(I)V 3 Ldalvik/system/VMRuntime;->setTargetSdkVersionNative(I)V 5 Ljava/lang/invoke/VarHandle;->acquireFence()V 10 Ljava/lang/invoke/VarHandle;->fullFence()V 30 Ljava/lang/invoke/VarHandle;->loadLoadFence()V 31 Ljava/lang/invoke/VarHandle;->releaseFence()V 32 Ljava/lang/invoke/VarHandle;->set([Ljava/lang/Object;)V 33 Ljava/lang/invoke/VarHandle;->setOpaque([Ljava/lang/Object;)V 34 Ljava/lang/invoke/VarHandle;->setRelease([Ljava/lang/Object;)V [all …]
|
/frameworks/base/telephony/common/com/google/android/mms/util/ |
D | AbstractCache.java | 25 public abstract class AbstractCache<K, V> { 32 private final HashMap<K, CacheEntry<V>> mCacheMap; 36 mCacheMap = new HashMap<K, CacheEntry<V>>(); in AbstractCache() 40 public boolean put(K key, V value) { in put() 55 CacheEntry<V> cacheEntry = new CacheEntry<V>(); in put() 68 public V get(K key) { in get() 74 CacheEntry<V> cacheEntry = mCacheMap.get(key); in get() 87 public V purge(K key) { in purge() 92 CacheEntry<V> v = mCacheMap.remove(key); in purge() 114 private static class CacheEntry<V> { [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | RegisteredServicesCache.java | 81 public abstract class RegisteredServicesCache<V> { 90 private final XmlSerializerAndParser<V> mSerializerAndParser; 95 private final SparseArray<UserServices<V>> mUserServices = new SparseArray<UserServices<V>>(2); 97 private static class UserServices<V> { 99 final Map<V, Integer> persistentServices = Maps.newHashMap(); 101 Map<V, ServiceInfo<V>> services = null; 109 private UserServices<V> findOrCreateUserLocked(int userId) { in findOrCreateUserLocked() 114 private UserServices<V> findOrCreateUserLocked(int userId, boolean loadFromFileIfNew) { in findOrCreateUserLocked() 115 UserServices<V> services = mUserServices.get(userId); in findOrCreateUserLocked() 117 services = new UserServices<V>(); in findOrCreateUserLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | ArrayMapWithHistoryTest.java | 115 private static <K, V> void putAndCompareReturnValue(ArrayMapWithHistory<K, V> historyMap, in putAndCompareReturnValue() 116 ArrayMap<K, V> arrayMap, K key, V value) { in putAndCompareReturnValue() 120 private static class Entry<K, V> { 122 public final V value; 124 Entry(K key, V value) { in Entry() 130 private static <K, V> Entry<K, V> entry(K key, V value) { in entry() 135 private static <K, V> void compareGetAndSizeForKeys(ArrayMapWithHistory<K, V> historyMap, in compareGetAndSizeForKeys() 136 ArrayMap<K, V> arrayMap, Entry<K, V>... expectedEntries) { in compareGetAndSizeForKeys() 137 for (Entry<K, V> expectedEntry : expectedEntries) { in compareGetAndSizeForKeys()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | ArrayMapWithHistory.java | 42 public final class ArrayMapWithHistory<K, V> { 49 private ArrayMap<K, ReferenceWithHistory<V>> mMap; 65 public V put(@Nullable K key, @Nullable V value) { in put() 70 ReferenceWithHistory<V> valueHolder = mMap.get(key); in put() 85 public V get(@Nullable Object key) { in get() 90 ReferenceWithHistory<V> valueHolder = mMap.get(key); in get() 121 public V valueAt(int index) { in valueAt() 126 ReferenceWithHistory<V> valueHolder = mMap.valueAt(index); in valueAt() 143 ReferenceWithHistory<V> value = mMap.valueAt(i); in dump() 169 ReferenceWithHistory<V> valueHolder = mMap.get(key); in getHistoryCountForKeyForTests()
|
D | ReferenceWithHistory.java | 51 public final class ReferenceWithHistory<V> { 78 public V get() { in get() 91 public V set(@Nullable V newValue) { in set() 100 V previous = get(); in set() 141 private V unpackNullIfRequired(@NonNull Object value) { in unpackNullIfRequired() 142 return value == NULL_MARKER ? null : (V) value; in unpackNullIfRequired() 150 private Object packNullIfRequired(@Nullable V value) { in packNullIfRequired()
|
/frameworks/base/test-runner/src/android/test/ |
D | SimpleCache.java | 23 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() 32 V value = load(key); in get()
|
/frameworks/compile/slang/BitWriter_2_9/ |
D | ValueEnumerator.cpp | 30 static bool isIntOrIntVectorValue(const std::pair<const Value*, unsigned> &V) { in isIntOrIntVectorValue() argument 31 return V.first->getType()->isIntOrIntVectorTy(); in isIntOrIntVectorValue() 133 unsigned ValueEnumerator::getValueID(const Value *V) const { in getValueID() 134 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 137 ValueMapType::const_iterator I = ValueMap.find(V); in getValueID() 157 const Value *V = I->first; in print() local 158 if (V->hasName()) in print() 159 OS << "Value: " << V->getName(); in print() 162 V->dump(); in print() 164 OS << " Uses(" << std::distance(V->use_begin(),V->use_end()) << "):"; in print() [all …]
|
/frameworks/compile/slang/BitWriter_3_2/ |
D | ValueEnumerator.cpp | 30 static bool isIntOrIntVectorValue(const std::pair<const Value*, unsigned> &V) { in isIntOrIntVectorValue() argument 31 return V.first->getType()->isIntOrIntVectorTy(); in isIntOrIntVectorValue() 133 unsigned ValueEnumerator::getValueID(const Value *V) const { in getValueID() 134 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 137 ValueMapType::const_iterator I = ValueMap.find(V); in getValueID() 157 const Value *V = I->first; in print() local 158 if (V->hasName()) in print() 159 OS << "Value: " << V->getName(); in print() 162 V->dump(); in print() 164 OS << " Uses(" << std::distance(V->use_begin(),V->use_end()) << "):"; in print() [all …]
|
/frameworks/compile/slang/BitWriter_2_9_func/ |
D | ValueEnumerator.cpp | 30 static bool isIntOrIntVectorValue(const std::pair<const Value*, unsigned> &V) { in isIntOrIntVectorValue() argument 31 return V.first->getType()->isIntOrIntVectorTy(); in isIntOrIntVectorValue() 133 unsigned ValueEnumerator::getValueID(const Value *V) const { in getValueID() 134 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 137 ValueMapType::const_iterator I = ValueMap.find(V); in getValueID() 157 const Value *V = I->first; in print() local 158 if (V->hasName()) in print() 159 OS << "Value: " << V->getName(); in print() 162 V->dump(); in print() 164 OS << " Uses(" << std::distance(V->use_begin(),V->use_end()) << "):"; in print() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ScrollCaptureViewHelper.java | 24 interface ScrollCaptureViewHelper<V extends View> { 35 default boolean onAcceptSession(@Nullable V view) { in onAcceptSession() 46 default Rect onComputeScrollBounds(@Nullable V view) { in onComputeScrollBounds() 60 void onPrepareForStart(@NonNull V view, Rect scrollBounds); in onPrepareForStart() 77 Rect onScrollRequested(@NonNull V view, Rect scrollBounds, Rect requestRect); in onScrollRequested() 86 void onPrepareForEnd(@NonNull V view); in onPrepareForEnd()
|
D | ScrollCaptureViewSupport.java | 46 public class ScrollCaptureViewSupport<V extends View> implements ScrollCaptureCallback { 48 private final WeakReference<V> mWeakView; 49 private final ScrollCaptureViewHelper<V> mViewHelper; 55 static <V extends View> ScrollCaptureCallback createCallback(V view, in createCallback() 56 ScrollCaptureViewHelper<V> impl) { in createCallback() 60 ScrollCaptureViewSupport(V containingView, ScrollCaptureViewHelper<V> viewHelper) { in ScrollCaptureViewSupport() 71 V view = mWeakView.get(); in onScrollCaptureSearch() 84 V view = mWeakView.get(); in onScrollCaptureStart() 100 V view = mWeakView.get(); in onScrollCaptureImageRequest() 114 V view = mWeakView.get(); in onScrollCaptureEnd()
|
/frameworks/base/core/java/android/animation/ |
D | TypeConverter.java | 25 public abstract class TypeConverter<T, V> { 27 private Class<V> mToClass; 29 public TypeConverter(Class<T> fromClass, Class<V> toClass) { in TypeConverter() 39 Class<V> getTargetType() { in getTargetType() 55 public abstract V convert(T value); in convert()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | SparseArrayUtils.java | 38 public static<V> HashSet<V> union(SparseArray<HashSet<V>> sets) { in union() 39 HashSet<V> unionSet = new HashSet<>(); in union() 42 HashSet<V> ithSet = sets.valueAt(i); in union()
|