/aosp12/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CaptureResult.java | 75 public final static class Key<T> { class in CaptureResult 159 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() 189 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { in Key() method in CaptureResult.Key 318 public <T> T get(Key<T> key) { in get() 330 protected <T> T getProtected(Key<?> key) { in getProtected() 340 protected Class<Key<?>> getKeyClass() { in getKeyClass() 341 Object thisClass = Key.class; in getKeyClass() 342 return (Class<Key<?>>)thisClass; in getKeyClass() 362 public List<Key<?>> getKeys() { in getKeys() 2645 public static final Key<Integer> EDGE_MODE = [all …]
|
H A D | CameraCharacteristics.java | 76 public static final class Key<T> { class in CameraCharacteristics 161 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() 193 private Key(CameraMetadataNative.Key<?> nativeKey) { in Key() method in CameraCharacteristics.Key 293 public <T> T get(Key<T> key) { in get() 315 Object thisClass = Key.class; in getKeyClass() 316 return (Class<Key<?>>)thisClass; in getKeyClass() 324 public List<Key<?>> getKeys() { in getKeys() 529 Class<CaptureRequest.Key<?>> crKeyTyped = (Class<CaptureRequest.Key<?>>)crKey; in getAvailableSessionKeys() 565 Class<CaptureRequest.Key<?>> crKeyTyped = (Class<CaptureRequest.Key<?>>)crKey; in getAvailablePhysicalCameraRequestKeys() 597 Class<CaptureRequest.Key<?>> crKeyTyped = (Class<CaptureRequest.Key<?>>)crKey; in getAvailableCaptureRequestKeys() [all …]
|
H A D | CaptureRequest.java | 104 public final static class Key<T> { class in CaptureRequest 179 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals() 209 /*package*/ Key(CameraMetadataNative.Key<?> nativeKey) { in Key() method in CaptureRequest.Key 405 public <T> T get(Key<T> key) { in get() 415 protected <T> T getProtected(Key<?> key) { in getProtected() 425 protected Class<Key<?>> getKeyClass() { in getKeyClass() 426 Object thisClass = Key.class; in getKeyClass() 427 return (Class<Key<?>>)thisClass; in getKeyClass() 435 public List<Key<?>> getKeys() { in getKeys() 862 public <T> T get(Key<T> key) { in get() [all …]
|
/aosp12/frameworks/av/media/libstagefright/renderfright/gl/ |
H A D | ProgramCache.cpp | 90 Key::OPACITY_MASK | Key::ALPHA_MASK | in primeCache() 112 uint32_t keyMask = Key::BLEND_MASK | Key::OPACITY_MASK | Key::ALPHA_MASK | Key::TEXTURE_MASK in primeCache() 122 if (tex != Key::TEXTURE_OFF && tex != Key::TEXTURE_EXT && tex != Key::TEXTURE_2D) { in primeCache() 134 shaderKey.set(Key::BLEND_MASK | Key::OUTPUT_TRANSFORM_MATRIX_MASK | Key::INPUT_TF_MASK | in primeCache() 136 Key::BLEND_PREMULT | Key::OUTPUT_TRANSFORM_MATRIX_ON | Key::INPUT_TF_SRGB | in primeCache() 141 shaderKey.set(Key::ALPHA_MASK, (i & 2) ? Key::ALPHA_LT_ONE : Key::ALPHA_EQ_ONE); in primeCache() 148 shaderKey.set(Key::TEXTURE_MASK, (i & 8) ? Key::TEXTURE_EXT : Key::TEXTURE_OFF); in primeCache() 171 .set(Key::ALPHA_MASK, (description.color.a < 1) ? Key::ALPHA_LT_ONE : Key::ALPHA_EQ_ONE) in computeKey() 176 .set(Key::Key::INPUT_TRANSFORM_MATRIX_MASK, in computeKey() 179 .set(Key::Key::OUTPUT_TRANSFORM_MATRIX_MASK, in computeKey() [all …]
|
H A D | ProgramCache.h | 54 class Key { 122 inline Key() : mKey(0) {} in Key() function 123 inline Key(const Key& rhs) : mKey(rhs.mKey) {} in Key() function 125 inline Key& set(key_t mask, key_t value) { in set() 163 if (inputTF == Key::INPUT_TF_SRGB && outputTF == Key::OUTPUT_TF_LINEAR) { in needsToneMapping() 166 if (inputTF == Key::INPUT_TF_LINEAR && outputTF == Key::OUTPUT_TF_SRGB) { in needsToneMapping() 170 inputTF >>= Key::INPUT_TF_SHIFT; in needsToneMapping() 171 outputTF >>= Key::OUTPUT_TF_SHIFT; in needsToneMapping() 199 static Key computeKey(const Description& description); 211 static String8 generateVertexShader(const Key& needs); [all …]
|
/aosp12/frameworks/native/libs/renderengine/gl/ |
H A D | ProgramCache.cpp | 90 Key::OPACITY_MASK | Key::ALPHA_MASK | in primeCache() 112 uint32_t keyMask = Key::BLEND_MASK | Key::OPACITY_MASK | Key::ALPHA_MASK | Key::TEXTURE_MASK in primeCache() 122 if (tex != Key::TEXTURE_OFF && tex != Key::TEXTURE_EXT && tex != Key::TEXTURE_2D) { in primeCache() 134 shaderKey.set(Key::BLEND_MASK | Key::OUTPUT_TRANSFORM_MATRIX_MASK | Key::INPUT_TF_MASK | in primeCache() 136 Key::BLEND_PREMULT | Key::OUTPUT_TRANSFORM_MATRIX_ON | Key::INPUT_TF_SRGB | in primeCache() 141 shaderKey.set(Key::ALPHA_MASK, (i & 2) ? Key::ALPHA_LT_ONE : Key::ALPHA_EQ_ONE); in primeCache() 148 shaderKey.set(Key::TEXTURE_MASK, (i & 8) ? Key::TEXTURE_EXT : Key::TEXTURE_OFF); in primeCache() 171 .set(Key::ALPHA_MASK, (description.color.a < 1) ? Key::ALPHA_LT_ONE : Key::ALPHA_EQ_ONE) in computeKey() 176 .set(Key::Key::INPUT_TRANSFORM_MATRIX_MASK, in computeKey() 179 .set(Key::Key::OUTPUT_TRANSFORM_MATRIX_MASK, in computeKey() [all …]
|
H A D | ProgramCache.h | 54 class Key { 127 inline Key() : mKey(0) {} in Key() function 128 inline Key(const Key& rhs) : mKey(rhs.mKey) {} in Key() function 130 inline Key& set(key_t mask, key_t value) { in set() 172 if (inputTF == Key::INPUT_TF_SRGB && outputTF == Key::OUTPUT_TF_LINEAR) { in needsToneMapping() 175 if (inputTF == Key::INPUT_TF_LINEAR && outputTF == Key::OUTPUT_TF_SRGB) { in needsToneMapping() 179 inputTF >>= Key::INPUT_TF_SHIFT; in needsToneMapping() 180 outputTF >>= Key::OUTPUT_TF_SHIFT; in needsToneMapping() 210 static Key computeKey(const Description& description); 222 static String8 generateVertexShader(const Key& needs); [all …]
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | RenderParamsFlags.java | 22 import com.android.ide.common.rendering.api.SessionParams.Key; 33 public static final Key<String> FLAG_KEY_ROOT_TAG = 34 new Key<String>("rootTag", String.class); 49 public static final Key<String> FLAG_KEY_APPLICATION_PACKAGE = 50 new Key<String>("applicationPackage", String.class); 56 new Key<Boolean>("xmlFileParser", Boolean.class); 67 new Key<>("adaptiveIconMaskPath", String.class); 82 new Key<>("renderHighQualityShadow", Boolean.class); 87 public static final Key<Boolean> FLAG_ENABLE_SHADOW = 88 new Key<>("enableShadow", Boolean.class); [all …]
|
/aosp12/system/bpf/libbpf_android/include/bpf/ |
H A D | BpfMap.h | 44 template <class Key, class Value> 47 BpfMap<Key, Value>() {}; in BpfMap() 57 explicit BpfMap<Key, Value>(const char* pathname) : BpfMap<Key, Value>(pathname, 0) {} 65 Key firstKey; in getFirstKey() 72 base::Result<Key> getNextKey(const Key& key) const { in getNextKey() 73 Key nextKey; in getNextKey() 119 const std::function<base::Result<void>(const Key& key, BpfMap<Key, Value>& map)>& 131 BpfMap<Key, Value>& operator=(const BpfMap<Key, Value>& other) { 137 BpfMap<Key, Value>& operator=(BpfMap<Key, Value>&& other) noexcept { 180 template <class Key, class Value> [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | Prefs.java | 49 Key.DEBUG_MODE_ENABLED, 52 Key.DND_TILE_VISIBLE, 57 Key.DND_NONE_SELECTED, 58 Key.DND_FAVORITE_ZEN, 59 Key.QS_HOTSPOT_ADDED, 60 Key.QS_DATA_SAVER_ADDED, 63 Key.QS_WORK_ADDED, 64 Key.QS_NIGHTDISPLAY_ADDED, 66 Key.SEEN_MULTI_USER, 69 Key.TOUCHED_RINGER_TOGGLE, [all …]
|
/aosp12/art/libartbase/base/ |
H A D | hash_map.h | 29 size_t operator()(const Key& key) const { in operator() 44 bool operator()(const std::pair<Key, Value>& a, const std::pair<Key, Value>& b) const { in operator() 57 template <typename Key, typename Value> 60 void MakeEmpty(std::pair<Key, Value>& item) const { in MakeEmpty() argument 61 item = std::pair<Key, Value>(); in MakeEmpty() 64 return item.first == Key(); in IsEmpty() 68 template <class Key, 71 class HashFn = DefaultHashFn<Key>, 72 class Pred = DefaultPred<Key>, 74 class HashMap : public HashSet<std::pair<Key, Value>, [all …]
|
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
H A D | ActualKeyboardBuilder.java | 19 import com.android.inputmethod.keyboard.Key; 38 private static ArrayList<Key> filterOutSpacer(final List<Key> keys) { in filterOutSpacer() 39 final ArrayList<Key> filteredKeys = new ArrayList<>(); in filterOutSpacer() 40 for (final Key key : keys) { in filterOutSpacer() 55 public static Key[][] buildKeyboard(final List<Key> sortedKeys) { in buildKeyboard() 61 ArrayList<Key> elements = new ArrayList<>(); in buildKeyboard() 63 for (final Key key : filteredSortedKeys) { in buildKeyboard() 90 Key defaultElement() { return null; } in defaultElement() 93 Key[] newArray(final int size) { return new Key[size]; } in newArray() 96 Key[][] newArrayOfArray(final int size) { return new Key[size][]; } in newArrayOfArray() [all …]
|
/aosp12/packages/apps/MusicFX/src/com/android/musicfx/ |
H A D | ControlPanelEffect.java | 68 static enum Key { enum in ControlPanelEffect 374 final Key key, final boolean value) { in setParameterBoolean() 384 if (key == Key.global_enabled) { in setParameterBoolean() 412 Key.eq_band_level); in setParameterBoolean() 548 final Key key) { in getParameterBoolean() 795 final Key key, final int arg) { in setParameterInt() 831 final Key key) { in getParameterInt() 845 final Key key, final int arg) { in getParameterInt() 874 final Key key) { in getParameterIntArray() 949 final Key key) { in getParameterString() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | DynamicGridKeyboard.java | 23 import com.android.inputmethod.keyboard.Key; 52 private List<Key> mCachedGridKeys; 67 private Key getTemplateKey(final int code) { in getTemplateKey() 91 public void addKeyFirst(final Key usedKey) { in addKeyFirst() 98 public void addKeyLast(final Key usedKey) { in addKeyLast() 134 for (final Key key : mGridKeys) { in saveRecentKeys() 173 final Key key; in loadRecentKeys() 209 public List<Key> getSortedKeys() { in getSortedKeys() 214 final ArrayList<Key> cachedKeys = new ArrayList<Key>(mGridKeys); in getSortedKeys() 226 static final class GridKey extends Key { [all …]
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | MediaMetrics.java | 120 public static final Key<Double> GAIN_DB = 122 public static final Key<String> GROUP = 129 public static final Key<String> MODE = 131 public static final Key<String> MUTE = 135 public static final Key<String> NAME = 139 public static final Key<Integer> OBSERVERS = 142 public static final Key<String> REQUEST = 179 public interface Key<T> { interface in MediaMetrics 204 return new Key<T>() { in createKey() 228 if (!(obj instanceof Key)) { in createKey() [all …]
|
H A D | AudioMetadata.java | 60 public interface Key<T> { interface in AudioMetadata 277 return new Key<T>() { in createKey() 301 if (!(obj instanceof Key)) { in createKey() 304 Key<?> other = (Key<?>) obj; in createKey() 329 public <T> boolean containsKey(@NonNull Key<T> key) { in containsKey() 344 public <T> T get(@NonNull Key<T> key) { in get() 351 public Set<Key<?>> keySet() { in keySet() 352 HashSet<Key<?>> set = new HashSet(); in keySet() 361 public <T> T remove(@NonNull Key<T> key) { in remove() 370 Pair<Key<?>, Object> valuePair = mHashMap in set() [all …]
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | WifiSettingsConfigStore.java | 64 new Key<>("wifi_scan_always_enabled", false); 70 new Key<>("wifi_scan_throttle_enabled", true); 82 public static final Key<String> WIFI_P2P_DEVICE_NAME = 83 new Key<>("wifi_p2p_device_name", null); 88 public static final Key<Boolean> WIFI_SCORING_ENABLED = 89 new Key<>("wifi_scoring_enabled", true); 95 new Key<>("wifi_sta_factory_mac_address", null); 149 for (Key key : sKeys) { in invokeAllListeners() 155 private <T> void invokeListeners(@NonNull Key<T> key) { in invokeListeners() 240 public @Nullable <T> T get(@NonNull Key<T> key) { in get() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardParams.java | 21 import com.android.inputmethod.keyboard.Key; 70 public final ArrayList<Key> mShiftKeys = new ArrayList<>(); 94 private static final Comparator<Key> ROW_COLUMN_COMPARATOR = new Comparator<Key>() { 96 public int compare(final Key lhs, final Key rhs) { 119 public void onAddKey(@Nonnull final Key newKey) { in onAddKey() 120 final Key key = mUniqueKeysCache.getUniqueKey(newKey); in onAddKey() 145 for (final Key key : mSortedKeys) { in removeRedundantMoreKeys() 148 final ArrayList<Key> allKeys = new ArrayList<>(mSortedKeys); in removeRedundantMoreKeys() 150 for (final Key key : allKeys) { in removeRedundantMoreKeys() 151 final Key filteredKey = Key.removeRedundantMoreKeys(key, lettersOnBaseLayout); in removeRedundantMoreKeys() [all …]
|
H A D | UniqueKeysCache.java | 19 import com.android.inputmethod.keyboard.Key; 28 public abstract @Nonnull Key getUniqueKey(@Nonnull Key key); in getUniqueKey() 39 public Key getUniqueKey(Key key) { return key; } 48 private final HashMap<Key, Key> mCache; 67 public Key getUniqueKey(final Key key) { in getUniqueKey() 71 final Key existingKey = mCache.get(key); in getUniqueKey()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
H A D | CarInputServiceTest.java | 430 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_shortPress_withoutEventHandler_launchesDialer() 442 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_shortPress_withoutEventHandler_whenCallRinging_answersCall() 456 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_shortPress_withEventHandler_triggersEventHandler() 472 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_shortPress_withEventHandler_whenCallRinging_answersCall() 484 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_shortPress_duringCall_endCallViaCallButtonOn_endsCall() 494 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_shortPress_duringCall_endCallViaCallButtonOff_doesNotEndCall() 517 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_longPress_withoutEventHandler_redialsLastCall() 540 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_longPress_withoutEventHandler_whenCallRinging_answersCall() 571 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_longPress_withEventHandler_whenCallRinging_answersCall() 620 send(Key.UP, KeyEvent.KEYCODE_CALL, Display.MAIN); in callKey_keyUp_afterLongPress_withEventHandler_triggersEventHandler() [all …]
|
/aosp12/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
H A D | Engine.h | 108 template <typename Key> 109 status_t add(const std::string &name, const Key &key); 111 template <typename Key> 112 Element<Key> *getFromCollection(const Key &key) const; 114 template <typename Key> 115 const Collection<Key> &getCollection() const; 117 template <typename Key> 118 Collection<Key> &getCollection(); 120 template <typename Property, typename Key> 121 Property getPropertyForKey(Key key) const; [all …]
|
H A D | Collection.h | 42 template <typename Key> 43 class Collection : public std::map<Key, Element<Key> *> 46 typedef std::map<Key, Element<Key> *> Base; 47 typedef Element<Key> T; 48 typedef typename std::map<Key, T *>::iterator CollectionIterator; 49 typedef typename std::map<Key, T *>::const_iterator CollectionConstIterator; 68 status_t add(const std::string &name, Key key) in add() 88 T *get(Key key) const in get()
|
/aosp12/system/memory/libmemunreachable/ |
H A D | Allocator.h | 200 template <class Key, class T, class Compare = std::less<Key>> 201 using map = std::map<Key, T, Compare, Allocator<std::pair<const Key, T>>>; 203 template <class Key, class T, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 205 std::unordered_map<Key, T, Hash, KeyEqual, Allocator<std::pair<const Key, T>>>; 207 template <class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>> 208 using unordered_set = std::unordered_set<Key, Hash, KeyEqual, Allocator<Key>>; 210 template <class Key, class Compare = std::less<Key>> 211 using set = std::set<Key, Compare, Allocator<Key>>;
|
/aosp12/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | TokenCache.java | 48 private static class Key { class in TokenCache 63 if (o != null && o instanceof Key) { in equals() 64 Key cacheKey = (Key) o; in equals() 83 private static class TokenLruCache extends LruCache<Key, Value> { 86 private final List<Key> mKeys; 92 public void add(Key k) { in add() 97 for (Key k : mKeys) { in evict() 116 protected int sizeOf(Key k, Value v) { in sizeOf() 135 public void putToken(Key k, Value v) { in putToken() 200 Key k = new Key(account, tokenType, packageName, sigDigest); in put() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | KeyboardAccessibilityDelegate.java | 30 import com.android.inputmethod.keyboard.Key; 54 private Key mLastHoverKey; 92 protected final Key getLastHoverKey() { in getLastHoverKey() 197 final Key key = getHoverKeyOf(event); in onHoverEnter() 213 final Key lastKey = getLastHoverKey(); in onHoverMove() 214 final Key key = getHoverKeyOf(event); in onHoverMove() 235 final Key lastKey = getLastHoverKey(); in onHoverExit() 242 final Key key = getHoverKeyOf(event); in onHoverExit() 256 public void performClickOn(final Key key) { in performClickOn() 285 protected void onHoverEnterTo(final Key key) { in onHoverEnterTo() [all …]
|