Home
last modified time | relevance | path

Searched refs:V (Results 1 – 25 of 212) sorted by relevance

123456789

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DMapFieldLite.java47 public final class MapFieldLite<K, V> extends LinkedHashMap<K, V> {
55 private MapFieldLite(Map<K, V> mapData) { in MapFieldLite()
68 public static <K, V> MapFieldLite<K, V> emptyMapField() { in emptyMapField()
69 return (MapFieldLite<K, V>) EMPTY_MAP_FIELD; in emptyMapField()
72 public void mergeFrom(MapFieldLite<K, V> other) { in mergeFrom()
80 @Override public Set<Map.Entry<K, V>> entrySet() { in entrySet()
81 return isEmpty() ? Collections.<Map.Entry<K, V>>emptySet() : super.entrySet(); in entrySet()
89 @Override public V put(K key, V value) { in put()
94 public V put(Map.Entry<K, V> entry) { in put()
98 @Override public void putAll(Map<? extends K, ? extends V> m) { in putAll()
[all …]
DMapEntry.java51 public final class MapEntry<K, V> extends AbstractMessage {
53 private static final class Metadata<K, V> extends MapEntryLite.Metadata<K, V> {
56 public final Parser<MapEntry<K, V>> parser;
60 MapEntry<K, V> defaultInstance, in Metadata()
65 this.parser = new AbstractParser<MapEntry<K, V>>() { in Metadata()
68 public MapEntry<K, V> parsePartialFrom( in Metadata()
71 return new MapEntry<K, V>(Metadata.this, input, extensionRegistry); in Metadata()
78 private final V value;
79 private final Metadata<K, V> metadata;
85 WireFormat.FieldType valueType, V defaultValue) { in MapEntry()
[all …]
DMapField.java57 public class MapField<K, V> implements MutabilityOracle {
80 private MutatabilityAwareMap<K, V> mapData;
84 private static interface Converter<K, V> {
85 Message convertKeyAndValueToMessage(K key, V value); in convertKeyAndValueToMessage()
86 void convertMessageToKeyAndValue(Message message, Map<K, V> map); in convertMessageToKeyAndValue()
91 private static class ImmutableMessageConverter<K, V> implements Converter<K, V> {
92 private final MapEntry<K, V> defaultEntry;
93 public ImmutableMessageConverter(MapEntry<K, V> defaultEntry) { in ImmutableMessageConverter()
98 public Message convertKeyAndValueToMessage(K key, V value) { in convertKeyAndValueToMessage()
103 public void convertMessageToKeyAndValue(Message message, Map<K, V> map) { in convertMessageToKeyAndValue()
[all …]
DMapEntryLite.java46 public class MapEntryLite<K, V> {
48 static class Metadata<K, V> {
52 public final V defaultValue;
56 WireFormat.FieldType valueType, V defaultValue) { in Metadata()
67 private final Metadata<K, V> metadata;
69 private final V value;
74 WireFormat.FieldType valueType, V defaultValue) { in MapEntryLite()
75 this.metadata = new Metadata<K, V>(keyType, defaultKey, valueType, defaultValue); in MapEntryLite()
81 private MapEntryLite(Metadata<K, V> metadata, K key, V value) { in MapEntryLite()
91 public V getValue() { in getValue()
[all …]
DSmallSortedMap.java87 class SmallSortedMap<K extends Comparable<K>, V> extends AbstractMap<K, V> {
132 static <K extends Comparable<K>, V> SmallSortedMap<K, V> newInstanceForTest(
134 return new SmallSortedMap<K, V>(arraySize);
142 private Map<K, V> overflowEntries;
167 Collections.<K, V>emptyMap() :
184 public Map.Entry<K, V> getArrayEntryAt(int index) {
194 public Iterable<Map.Entry<K, V>> getOverflowEntries() {
196 EmptySet.<Map.Entry<K, V>>iterable() :
225 public V get(Object o) { in get()
236 public V put(K key, V value) { in put()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DViewPool.java27 public class ViewPool<V, T> {
30 public interface ViewPoolConsumer<V, T> {
31 public V createView(Context context); in createView()
32 public void onReturnViewToPool(V v); in onReturnViewToPool()
33 public void onPickUpViewFromPool(V v, T prepareData, boolean isNewView); in onPickUpViewFromPool()
34 public boolean hasPreferredData(V v, T preferredData); in hasPreferredData()
38 ViewPoolConsumer<V, T> mViewCreator;
39 LinkedList<V> mPool = new LinkedList<V>();
42 public ViewPool(Context context, ViewPoolConsumer<V, T> viewCreator) { in ViewPool() argument
48 void returnViewToPool(V v) { in returnViewToPool()
[all …]
/frameworks/base/services/
Dart-profile2 PLandroid/hardware/authsecret/V1_0/IAuthSecret$Proxy;->primaryUserCredential(Ljava/util/ArrayList;)V
14 …iometricsFingerprintClientCallback$Stub;->onTransact(ILandroid/os/HwParcel;Landroid/os/HwParcel;I)V
19 …ardware/health/V1_0/HealthInfo;->readEmbeddedFromParcel(Landroid/os/HwParcel;Landroid/os/HwBlob;J)V
20 …hardware/health/V2_0/DiskStats;->readEmbeddedFromParcel(Landroid/os/HwParcel;Landroid/os/HwBlob;J)V
21 …ardware/health/V2_0/HealthInfo;->readEmbeddedFromParcel(Landroid/os/HwParcel;Landroid/os/HwBlob;J)V
24 …ealth/V2_0/IHealth$Proxy;->getCapacity(Landroid/hardware/health/V2_0/IHealth$getCapacityCallback;)V
25 …/IHealth$Proxy;->getChargeCounter(Landroid/hardware/health/V2_0/IHealth$getChargeCounterCallback;)V
26 …Health$Proxy;->getCurrentAverage(Landroid/hardware/health/V2_0/IHealth$getCurrentAverageCallback;)V
27 …/IHealth$Proxy;->getEnergyCounter(Landroid/hardware/health/V2_0/IHealth$getEnergyCounterCallback;)V
33 …re/health/V2_0/IHealthInfoCallback$Stub;->onTransact(ILandroid/os/HwParcel;Landroid/os/HwParcel;I)V
[all …]
/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;
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 …]
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()
23 void offer(V scrapValue); in offer()
24 V poll(); in poll()
/frameworks/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()
120 V mapValue; in get()
137 V createdValue = create(key); in get()
169 public final V put(K key, V value) { in put()
174 V previous; in put()
199 V value; in trimToSize()
214 Map.Entry<K, V> toEvict = null; in trimToSize()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-p.txt2 Landroid/app/ISearchManager$Stub;-><init>()V
4 Landroid/app/IUiModeManager;->disableCarMode(I)V
5 Landroid/bluetooth/IBluetooth$Stub;-><init>()V
6 Landroid/bluetooth/IBluetoothA2dp$Stub;-><init>()V
10 Landroid/net/IConnectivityManager;->reportInetCondition(II)V
11 Landroid/os/BatteryStats$Counter;-><init>()V
12 Landroid/os/BatteryStats$HistoryItem;->clear()V
15 Landroid/os/BatteryStats$HistoryItem;->setTo(JBLandroid/os/BatteryStats$HistoryItem;)V
16 Landroid/os/BatteryStats$HistoryItem;->setTo(Landroid/os/BatteryStats$HistoryItem;)V
17 Landroid/os/BatteryStats$Timer;-><init>()V
[all …]
Dboot-image-profile.txt16 HSPLandroid/accessibilityservice/AccessibilityServiceInfo$1;-><init>()V
19 …rvice/AccessibilityServiceInfo;-><init>(Landroid/content/pm/ResolveInfo;Landroid/content/Context;)V
25 HSPLandroid/accessibilityservice/AccessibilityServiceInfo;->initFromParcel(Landroid/os/Parcel;)V
28 HSPLandroid/accessibilityservice/AccessibilityServiceInfo;->writeToParcel(Landroid/os/Parcel;I)V
29 HSPLandroid/accounts/Account$1;-><init>()V
34 HSPLandroid/accounts/Account;-><init>(Landroid/os/Parcel;)V
35 HSPLandroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;)V
36 HSPLandroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
43 HSPLandroid/accounts/Account;->writeToParcel(Landroid/os/Parcel;I)V
44 HPLandroid/accounts/AccountAndUser;-><init>(Landroid/accounts/Account;I)V
[all …]
Dhiddenapi-greylist-max-o.txt8 …ssibilityButtonController;-><init>(Landroid/accessibilityservice/IAccessibilityServiceConnection;)V
9 …ssibilityservice/AccessibilityButtonController;->dispatchAccessibilityButtonAvailabilityChanged(Z)V
10 Landroid/accessibilityservice/AccessibilityButtonController;->dispatchAccessibilityButtonClicked()V
16 Landroid/accessibilityservice/AccessibilityService$Callbacks;->init(ILandroid/os/IBinder;)V
17 …/accessibilityservice/AccessibilityService$Callbacks;->onAccessibilityButtonAvailabilityChanged(Z)V
18 Landroid/accessibilityservice/AccessibilityService$Callbacks;->onAccessibilityButtonClicked()V
19 …ssibilityService$Callbacks;->onAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
20 …oid/accessibilityservice/AccessibilityService$Callbacks;->onFingerprintCapturingGesturesChanged(Z)V
21 Landroid/accessibilityservice/AccessibilityService$Callbacks;->onFingerprintGesture(I)V
23 Landroid/accessibilityservice/AccessibilityService$Callbacks;->onInterrupt()V
[all …]
Dhiddenapi-greylist.txt2 …ccountManager;Landroid/app/Activity;Landroid/os/Handler;Landroid/accounts/AccountManagerCallback;)V
3 …t>(Landroid/accounts/AccountManager;Landroid/os/Handler;Landroid/accounts/AccountManagerCallback;)V
4 Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
6 Landroid/accounts/IAccountAuthenticator$Stub;-><init>()V
8 Landroid/accounts/IAccountAuthenticatorResponse$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
10 Landroid/accounts/IAccountAuthenticatorResponse$Stub;-><init>()V
12 Landroid/accounts/IAccountManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
13 Landroid/accounts/IAccountManager$Stub;-><init>()V
15 Landroid/accounts/IAccountManagerResponse$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
17 Landroid/accounts/IAccountManagerResponse$Stub;-><init>()V
[all …]
/frameworks/base/core/java/android/util/
DLruCache.java63 public class LruCache<K, V> {
65 private final LinkedHashMap<K, V> map;
87 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache()
112 public final V get(K key) { in get()
117 V mapValue; in get()
134 V createdValue = create(key); in get()
166 public final V put(K key, V value) { in put()
171 V previous; in put()
199 V value; in trimToSize()
210 Map.Entry<K, V> toEvict = map.eldest(); in trimToSize()
[all …]
DProperty.java28 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()
DMapCollections.java32 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 …]
/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()
52 CacheEntry<V> cacheEntry = new CacheEntry<V>(); in put()
64 public V get(K key) { in get()
70 CacheEntry<V> cacheEntry = mCacheMap.get(key); in get()
82 public V purge(K key) { in purge()
87 CacheEntry<V> v = mCacheMap.remove(key); in purge()
108 private static class CacheEntry<V> {
[all …]
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java81 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/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DMapFactories.java41 <K, V> Map<K, V> forMap(Map<K, V> oldMap); in forMap()
57 public <K, V> Map<K, V> forMap(Map<K, V> oldMap) { in forMap()
59 return new HashMap<K, V>(); in forMap()
DInternalNano.java391 public static final <K, V> Map<K, V> mergeMapEntry( in mergeMapEntry()
393 Map<K, V> map, in mergeMapEntry()
397 V value, in mergeMapEntry()
415 value = (V) input.readPrimitiveField(valueType); in mergeMapEntry()
433 value = (V) primitiveDefaultValue(valueType); in mergeMapEntry()
440 public static <K, V> void serializeMapField( in serializeMapField()
442 Map<K, V> map, int number, int keyType, int valueType) in serializeMapField()
444 for (Entry<K, V> entry: map.entrySet()) { in serializeMapField()
446 V value = entry.getValue(); in serializeMapField()
461 public static <K, V> int computeMapFieldSize( in computeMapFieldSize()
[all …]
/frameworks/base/core/java/com/google/android/collect/
DMaps.java34 public static <K, V> HashMap<K, V> newHashMap() { in newHashMap()
35 return new HashMap<K, V>(); in newHashMap()
41 public static <K, V> ArrayMap<K, V> newArrayMap() { in newArrayMap()
42 return new ArrayMap<K, V>(); in newArrayMap()
/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()
32 V value = load(key); in get()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTaskKeyLruCache.java33 public class TaskKeyLruCache<V> extends TaskKeyCache<V> {
39 private final LruCache<Integer, V> mCache;
48 mCache = new LruCache<Integer, V>(cacheSize) { in TaskKeyLruCache()
51 protected void entryRemoved(boolean evicted, Integer taskId, V oldV, V newV) { in TaskKeyLruCache()
78 protected V getCacheEntry(int id) { in getCacheEntry()
83 protected void putCacheEntry(int id, V value) { in putCacheEntry()
/frameworks/compile/slang/BitWriter_2_9_func/
DValueEnumerator.cpp30 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 …]

123456789