Home
last modified time | relevance | path

Searched refs:TKey (Results 1 – 12 of 12) sorted by relevance

/aosp14/system/core/libutils/include/utils/
H A DLruCache.h37 template <typename TKey, typename TValue>
49 const TValue& get(const TKey& key);
51 bool remove(const TKey& key);
69 TKey key;
81 const TKey& key;
151 const TKey& key() const { in key()
174 LruCache<TKey, TValue>::~LruCache() { in ~LruCache()
190 const TValue& LruCache<TKey, TValue>::get(const TKey& key) { in get()
204 bool LruCache<TKey, TValue>::put(const TKey& key, const TValue& value) { in put()
220 bool LruCache<TKey, TValue>::remove(const TKey& key) { in remove()
[all …]
H A DTypeHelpers.h299 template <typename TKey>
300 hash_t hash_type(const TKey& key);
/aosp14/frameworks/base/tools/aapt2/util/
H A DImmutableMap.h27 template <typename TKey, typename TValue>
29 static_assert(is_comparable<TKey, TKey>::value, "key is not comparable");
33 typename std::vector<std::pair<TKey, TValue>>::const_iterator;
38 static ImmutableMap<TKey, TValue> CreatePreSorted( in CreatePreSorted()
39 std::initializer_list<std::pair<TKey, TValue>> list) { in CreatePreSorted() argument
41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); in CreatePreSorted()
44 static ImmutableMap<TKey, TValue> CreateAndSort( in CreateAndSort()
45 std::initializer_list<std::pair<TKey, TValue>> list) { in CreateAndSort() argument
54 auto cmp = [](const std::pair<TKey, TValue>& candidate, in find()
74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) in ImmutableMap() argument
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/
H A DCameraMetadata.java54 public abstract class CameraMetadata<TKey> {
128 protected abstract Class<TKey> getKeyClass(); in getKeyClass()
144 public List<TKey> getKeys() { in getKeys()
145 Class<CameraMetadata<TKey>> thisClass = (Class<CameraMetadata<TKey>>) getClass(); in getKeys()
167 <TKey> ArrayList<TKey> getKeys( in getKeys()
168 Class<?> type, Class<TKey> keyClass, in getKeys()
169 CameraMetadata<TKey> instance, in getKeys()
183 ArrayList<TKey> keyList = new ArrayList<TKey>(); in getKeys()
191 TKey key; in getKeys()
221 for (TKey k : vendorKeys) { in getKeys()
[all …]
H A DCameraCharacteristics.java664 <TKey> List<TKey>
665 getAvailableKeyList(Class<?> metadataClass, Class<TKey> keyClass, int[] filterTags, in getAvailableKeyList()
676 List<TKey> staticKeyList = getKeys( in getAvailableKeyList()
/aosp14/frameworks/base/services/core/java/com/android/server/location/listeners/
H A DRemovableListenerRegistration.java32 public abstract class RemovableListenerRegistration<TKey, TListener> extends
35 @Nullable private volatile TKey mKey;
47 protected abstract ListenerMultiplexer<TKey, ? super TListener, ?, ?> getOwner(); in getOwner()
53 protected final TKey getKey() { in getKey()
78 TKey key = mKey; in remove()
101 mKey = (TKey) Objects.requireNonNull(key); in onRegister()
H A DListenerMultiplexer.java88 public abstract class ListenerMultiplexer<TKey, TListener,
100 private final ArrayMap<TKey, TRegistration> mRegistrations = new ArrayMap<>();
210 @NonNull TKey oldKey, in onRegistrationReplaced()
212 @NonNull TKey newKey, in onRegistrationReplaced()
260 protected final void replaceRegistration(@NonNull TKey oldKey, @NonNull TKey key, in replaceRegistration()
319 protected final void removeRegistrationIf(@NonNull Predicate<TKey> predicate) { in removeRegistrationIf()
335 TKey key = mRegistrations.keyAt(i); in removeRegistrationIf()
348 protected final void removeRegistration(TKey key) { in removeRegistration()
367 protected final void removeRegistration(@NonNull TKey key, in removeRegistration()
391 TKey key = mRegistrations.keyAt(index); in removeRegistration()
[all …]
H A DPendingIntentListenerRegistration.java31 public abstract class PendingIntentListenerRegistration<TKey, TListener> extends
32 RemovableListenerRegistration<TKey, TListener> implements PendingIntent.CancelListener {
38 protected abstract PendingIntent getPendingIntentFromKey(TKey key); in getPendingIntentFromKey()
H A DBinderListenerRegistration.java34 public abstract class BinderListenerRegistration<TKey, TListener> extends
35 RemovableListenerRegistration<TKey, TListener> implements DeathRecipient {
41 protected abstract IBinder getBinderFromKey(TKey key); in getBinderFromKey()
/aosp14/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
H A DClockRegistry.kt68 private fun <TKey, TVal> ConcurrentHashMap<TKey, TVal>.concurrentGetOrPut(
69 key: TKey,
/aosp14/frameworks/base/core/api/
H A Dtest-current.txt1470 public abstract class CameraMetadata<TKey> {
H A Dcurrent.txt18708 public abstract class CameraMetadata<TKey> {
18709 method @NonNull public java.util.List<TKey> getKeys();