/aosp14/system/core/libutils/include/utils/ |
H A D | LruCache.h | 37 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 D | TypeHelpers.h | 299 template <typename TKey> 300 hash_t hash_type(const TKey& key);
|
/aosp14/frameworks/base/tools/aapt2/util/ |
H A D | ImmutableMap.h | 27 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 D | CameraMetadata.java | 54 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 D | CameraCharacteristics.java | 664 <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 D | RemovableListenerRegistration.java | 32 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 D | ListenerMultiplexer.java | 88 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 D | PendingIntentListenerRegistration.java | 31 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 D | BinderListenerRegistration.java | 34 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 D | ClockRegistry.kt | 68 private fun <TKey, TVal> ConcurrentHashMap<TKey, TVal>.concurrentGetOrPut( 69 key: TKey,
|
/aosp14/frameworks/base/core/api/ |
H A D | test-current.txt | 1470 public abstract class CameraMetadata<TKey> {
|
H A D | current.txt | 18708 public abstract class CameraMetadata<TKey> { 18709 method @NonNull public java.util.List<TKey> getKeys();
|