Home
last modified time | relevance | path

Searched refs:Key (Results 1 – 25 of 225) sorted by relevance

123456789

/frameworks/base/core/java/android/hardware/camera2/
DCaptureResult.java54 public class CaptureResult extends CameraMetadata<CaptureResult.Key<?>> {
75 public final static class Key<T> { class in CaptureResult
76 private final CameraMetadataNative.Key<T> mKey;
84 public Key(String name, Class<T> type, long vendorId) { in Key() method in CaptureResult.Key
85 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key()
93 public Key(String name, String fallbackName, Class<T> type) { in Key() method in CaptureResult.Key
94 mKey = new CameraMetadataNative.Key<T>(name, fallbackName, type); in Key()
104 public Key(@NonNull String name, @NonNull Class<T> type) { in Key() method in CaptureResult.Key
105 mKey = new CameraMetadataNative.Key<T>(name, type); in Key()
114 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureResult.Key
[all …]
DCameraCharacteristics.java60 public final class CameraCharacteristics extends CameraMetadata<CameraCharacteristics.Key<?>> {
79 public static final class Key<T> { class in CameraCharacteristics
80 private final CameraMetadataNative.Key<T> mKey;
88 public Key(String name, Class<T> type, long vendorId) { in Key() method in CameraCharacteristics.Key
89 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key()
97 public Key(String name, String fallbackName, Class<T> type) { in Key() method in CameraCharacteristics.Key
98 mKey = new CameraMetadataNative.Key<T>(name, fallbackName, type); in Key()
109 public Key(@NonNull String name, @NonNull Class<T> type) { in Key() method in CameraCharacteristics.Key
110 mKey = new CameraMetadataNative.Key<T>(name, type); in Key()
119 public Key(String name, TypeReference<T> typeReference) { in Key() method in CameraCharacteristics.Key
[all …]
DCaptureRequest.java83 public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>>
104 public final static class Key<T> { class in CaptureRequest
105 private final CameraMetadataNative.Key<T> mKey;
113 public Key(String name, Class<T> type, long vendorId) { in Key() method in CaptureRequest.Key
114 mKey = new CameraMetadataNative.Key<T>(name, type, vendorId); in Key()
124 public Key(@NonNull String name, @NonNull Class<T> type) { in Key() method in CaptureRequest.Key
125 mKey = new CameraMetadataNative.Key<T>(name, type); in Key()
134 public Key(String name, TypeReference<T> typeReference) { in Key() method in CaptureRequest.Key
135 mKey = new CameraMetadataNative.Key<T>(name, typeReference); in Key()
179 return o instanceof Key && ((Key<T>)o).mKey.equals(mKey); in equals()
[all …]
DCameraMetadata.java224 if (k instanceof CaptureRequest.Key<?>) { in getKeys()
225 keyName = ((CaptureRequest.Key<?>) k).getName(); in getKeys()
226 vendorId = ((CaptureRequest.Key<?>) k).getVendorId(); in getKeys()
227 } else if (k instanceof CaptureResult.Key<?>) { in getKeys()
228 keyName = ((CaptureResult.Key<?>) k).getName(); in getKeys()
229 vendorId = ((CaptureResult.Key<?>) k).getVendorId(); in getKeys()
230 } else if (k instanceof CameraCharacteristics.Key<?>) { in getKeys()
231 keyName = ((CameraCharacteristics.Key<?>) k).getName(); in getKeys()
232 vendorId = ((CameraCharacteristics.Key<?>) k).getVendorId(); in getKeys()
260 CameraMetadataNative.Key nativeKey; in shouldKeyBeAdded()
[all …]
/frameworks/av/media/libstagefright/renderfright/gl/
DProgramCache.cpp86 Key shaderKey; in primeCache()
88 shaderKey.set(Key::BLEND_MASK | Key::INPUT_TRANSFORM_MATRIX_MASK | in primeCache()
89 Key::OUTPUT_TRANSFORM_MATRIX_MASK | Key::OUTPUT_TF_MASK | in primeCache()
90 Key::OPACITY_MASK | Key::ALPHA_MASK | in primeCache()
91 Key::ROUNDED_CORNERS_MASK | Key::TEXTURE_MASK, in primeCache()
92 Key::BLEND_NORMAL | Key::INPUT_TRANSFORM_MATRIX_ON | in primeCache()
93 Key::OUTPUT_TRANSFORM_MATRIX_ON | Key::OUTPUT_TF_SRGB | in primeCache()
94 Key::OPACITY_OPAQUE | Key::ALPHA_EQ_ONE | in primeCache()
95 Key::ROUNDED_CORNERS_OFF | Key::TEXTURE_EXT); in primeCache()
98 shaderKey.set(Key::INPUT_TF_MASK, (i & 1) ? in primeCache()
[all …]
DProgramCache.h54 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()
178 bool operator==(const Key& other) const { return mKey == other.mKey; }
181 size_t operator()(const Key& key) const { return static_cast<size_t>(key.mKey); } in operator()
[all …]
/frameworks/native/libs/renderengine/gl/
DProgramCache.cpp86 Key shaderKey; in primeCache()
88 shaderKey.set(Key::BLEND_MASK | Key::INPUT_TRANSFORM_MATRIX_MASK | in primeCache()
89 Key::OUTPUT_TRANSFORM_MATRIX_MASK | Key::OUTPUT_TF_MASK | in primeCache()
90 Key::OPACITY_MASK | Key::ALPHA_MASK | in primeCache()
91 Key::ROUNDED_CORNERS_MASK | Key::TEXTURE_MASK, in primeCache()
92 Key::BLEND_NORMAL | Key::INPUT_TRANSFORM_MATRIX_ON | in primeCache()
93 Key::OUTPUT_TRANSFORM_MATRIX_ON | Key::OUTPUT_TF_SRGB | in primeCache()
94 Key::OPACITY_OPAQUE | Key::ALPHA_EQ_ONE | in primeCache()
95 Key::ROUNDED_CORNERS_OFF | Key::TEXTURE_EXT); in primeCache()
98 shaderKey.set(Key::INPUT_TF_MASK, (i & 1) ? in primeCache()
[all …]
DProgramCache.h54 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()
187 bool operator==(const Key& other) const { return mKey == other.mKey; }
190 size_t operator()(const Key& key) const { return static_cast<size_t>(key.mKey); } in operator()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DRenderParamsFlags.java21 import com.android.ide.common.rendering.api.SessionParams.Key;
32 public static final Key<String> FLAG_KEY_ROOT_TAG =
33 new Key<String>("rootTag", String.class);
34 public static final Key<Boolean> FLAG_KEY_DISABLE_BITMAP_CACHING =
35 new Key<Boolean>("disableBitmapCaching", Boolean.class);
36 public static final Key<Boolean> FLAG_KEY_RENDER_ALL_DRAWABLE_STATES =
37 new Key<Boolean>("renderAllDrawableStates", Boolean.class);
43 public static final Key<Boolean> FLAG_DO_NOT_RENDER_ON_CREATE =
44 new Key<Boolean>("doNotRenderOnCreate", Boolean.class);
48 public static final Key<String> FLAG_KEY_ADAPTIVE_ICON_MASK_PATH =
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java48 Key.OVERVIEW_LAST_STACK_TASK_ACTIVE_TIME,
49 Key.DEBUG_MODE_ENABLED,
50 Key.HOTSPOT_TILE_LAST_USED,
51 Key.COLOR_INVERSION_TILE_LAST_USED,
52 Key.DND_TILE_VISIBLE,
53 Key.DND_TILE_COMBINED_ICON,
54 Key.DND_CONFIRMED_PRIORITY_INTRODUCTION,
55 Key.DND_CONFIRMED_SILENCE_INTRODUCTION,
56 Key.DND_FAVORITE_BUCKET_INDEX,
57 Key.DND_NONE_SELECTED,
[all …]
/frameworks/libs/net/common/native/bpf_headers/include/bpf/
DBpfMap.h46 template <class Key, class Value>
49 BpfMap<Key, Value>() {};
53 BpfMap<Key, Value>(const BpfMap<Key, Value>&) = delete;
59 if (bpfGetFdKeySize(mMapFd) != sizeof(Key)) abort(); in abortOnKeyOrValueSizeMismatch()
66 BpfMap<Key, Value>(const char* pathname, uint32_t flags) {
72 explicit BpfMap<Key, Value>(const char* pathname) : BpfMap<Key, Value>(pathname, 0) {}
77 BpfMap<Key, Value>(bpf_map_type map_type, uint32_t max_entries, uint32_t map_flags = 0) {
78 mMapFd.reset(createMap(map_type, sizeof(Key), sizeof(Value), max_entries, map_flags));
83 base::Result<Key> getFirstKey() const { in getFirstKey()
84 Key firstKey; in getFirstKey()
[all …]
/frameworks/base/media/java/android/media/
DMediaMetrics.java83 public static final Key<String> ADDRESS = createKey("address", String.class);
85 public static final Key<String> ATTRIBUTES = createKey("attributes", String.class);
88 public static final Key<String> CALLING_PACKAGE =
92 public static final Key<String> CLIENT_NAME = createKey("clientName", String.class);
94 public static final Key<Integer> CLOSED_COUNT =
98 public static final Key<Integer> DELAY_MS = createKey("delayMs", Integer.class);
101 public static final Key<String> DEVICE = createKey("device", String.class);
104 public static final Key<String> DEVICE_DISCONNECTED =
108 public static final Key<Integer> DEVICE_ID =
112 public static final Key<String> DIRECTION = createKey("direction", String.class);
[all …]
DAudioMetadata.java61 public interface Key<T> { interface in AudioMetadata
120 @NonNull public static final Key<Integer> KEY_BIT_RATE =
131 @NonNull public static final Key<Integer> KEY_CHANNEL_MASK =
142 @NonNull public static final Key<String> KEY_MIME = createKey("mime", String.class);
152 @NonNull public static final Key<Integer> KEY_SAMPLE_RATE =
162 @NonNull public static final Key<Integer> KEY_BIT_WIDTH =
175 @NonNull public static final Key<Boolean> KEY_ATMOS_PRESENT =
185 @NonNull public static final Key<Integer> KEY_HAS_ATMOS =
196 @NonNull public static final Key<Integer> KEY_AUDIO_ENCODING =
208 @NonNull public static final Key<Integer> KEY_PRESENTATION_ID =
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DCollection.h42 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;
72 status_t add(const std::string &name, Key key) in add()
92 T *get(Key key) const in get()
DEngine.h125 template <typename Key>
126 status_t add(const std::string &name, const Key &key);
128 template <typename Key>
129 Element<Key> *getFromCollection(const Key &key) const;
131 template <typename Key>
132 const Collection<Key> &getCollection() const;
134 template <typename Key>
135 Collection<Key> &getCollection();
137 template <typename Property, typename Key>
138 Property getPropertyForKey(Key key) const;
[all …]
/frameworks/base/services/core/java/com/android/server/accounts/
DTokenCache.java47 private static class Key { class in TokenCache
53 public Key(Account account, String tokenType, String packageName, byte[] sigDigest) { in Key() method in TokenCache.Key
62 if (o != null && o instanceof Key) { in equals()
63 Key cacheKey = (Key) o; in equals()
82 private static class TokenLruCache extends LruCache<Key, Value> {
85 private final List<Key> mKeys;
91 public void add(Key k) { in add()
96 for (Key k : mKeys) { in evict()
115 protected int sizeOf(Key k, Value v) { in sizeOf()
120 protected void entryRemoved(boolean evicted, Key k, Value oldVal, Value newVal) { in entryRemoved()
[all …]
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/serviceforward/
DPlatformApi.java27 Map<CaptureRequest.Key<?>, Object> parameters) { in createCaptureRequest() argument
32 for (CaptureRequest.Key<?> key : parameters.keySet()) { in createCaptureRequest()
33 CaptureRequest.Key<Object> objKey = (CaptureRequest.Key<Object>) key; in createCaptureRequest()
51 Map<CaptureRequest.Key<?>, Object> parameters) { in createCameraMetadataNative() argument
53 for (CaptureRequest.Key<?> key : parameters.keySet()) { in createCameraMetadataNative()
54 CaptureRequest.Key<Object> objKey = (CaptureRequest.Key<Object>) key; in createCameraMetadataNative()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DVoiceCallRatTracker.java41 private final Map<Key, Value> mRatUsageMap = new HashMap<>();
44 private Key mLastKey;
93 Key key = new Key(carrierId, rat); in add()
134 private void addToKey(Key key, long durationMillis, Set<Integer> connectionIds) { in addToKey()
144 mRatUsageMap.put(Key.fromProto(usage), Value.fromProto(usage)); in addProto()
147 private static VoiceCallRatUsage entryToProto(Map.Entry<Key, Value> entry) { in entryToProto() argument
148 Key key = entry.getKey(); in entryToProto()
166 private static class Key { class in VoiceCallRatTracker
170 Key(int carrierId, int rat) { in Key() method in VoiceCallRatTracker.Key
175 static Key fromProto(VoiceCallRatUsage usage) { in fromProto()
[all …]
/frameworks/base/core/java/android/os/
DBatteryConsumer.java252 public static final class Key { class in BatteryConsumer
261 private Key(int powerComponent, int processState, int powerModelColumnIndex, in Key() method in BatteryConsumer.Key
275 final Key key = (Key) o; in equals()
335 public Key[] getKeys(@PowerComponent int componentId) { in getKeys()
343 public Key getKey(@PowerComponent int componentId) { in getKey()
350 public Key getKey(@PowerComponent int componentId, @ProcessState int processState) { in getKey()
373 public double getConsumedPower(@NonNull Key key) { in getConsumedPower()
394 public @PowerModel int getPowerModel(@NonNull BatteryConsumer.Key key) { in getPowerModel()
442 public long getUsageDurationMillis(@NonNull Key key) { in getUsageDurationMillis()
588 public Key[] getKeys(int componentId) { in getKeys()
[all …]
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
DCamera2RequestSettingsSet.java23 import android.hardware.camera2.CaptureRequest.Key;
34 private final Map<Key<?>, Object> mDictionary;
83 public <T> boolean set(Key<T> key, T value) { in set()
111 public boolean unset(Key<?> key) { in unset()
134 public <T> T get(Key<T> key) { in get()
155 public boolean contains(Key<?> key) { in contains()
172 public <T> boolean matches(Key<T> key, T value) { in matches()
235 for (Key<?> key : mDictionary.keySet()) { in createRequest()
247 private <T> void setRequestFieldIfNonNull(Builder requestBuilder, Key<T> key) { in setRequestFieldIfNonNull()
/frameworks/compile/mclinker/include/mcld/LD/
DBranchIsland.h106 class Key {
108 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend) in Key() function
111 ~Key() {} in ~Key()
120 size_t operator()(const Key& KEY) const { in operator()
129 bool operator()(const Key& KEY1, const Key& KEY2) const { in operator()
157 typedef HashEntry<Key, Stub*, Key::Compare> StubEntryType;
159 typedef HashTable<StubEntryType, Key::Hash, EntryFactory<StubEntryType> >
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java24 import android.hardware.camera2.CameraCharacteristics.Key;
390 Key<Float> key = CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE; in getMinimumFocusDistanceChecked()
423 Key<Integer> key = CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION; in getFocusDistanceCalibrationChecked()
481 Key<int[]> key = CameraCharacteristics.CONTROL_AE_AVAILABLE_ANTIBANDING_MODES; in getAeAvailableAntiBandingModesChecked()
519 Key<Boolean> key = CameraCharacteristics.FLASH_INFO_AVAILABLE; in getFlashInfoChecked()
531 Key<int[]> key = in getAvailableTestPatternModesChecked()
553 Key<Size[]> key = CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES; in getAvailableThumbnailSizesChecked()
581 Key<float[]> key = CameraCharacteristics.LENS_INFO_AVAILABLE_FOCAL_LENGTHS; in getAvailableFocalLengthsChecked()
602 Key<float[]> key = CameraCharacteristics.LENS_INFO_AVAILABLE_APERTURES; in getAvailableAperturesChecked()
623 Key<int[]> key = CameraCharacteristics.HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES; in getAvailableHotPixelModesChecked()
[all …]
/frameworks/native/libs/input/tests/
DStructLayout_test.cpp37 CHECK_OFFSET(InputMessage::Body::Key, eventId, 0); in TestInputMessageAlignment()
38 CHECK_OFFSET(InputMessage::Body::Key, eventTime, 8); in TestInputMessageAlignment()
39 CHECK_OFFSET(InputMessage::Body::Key, deviceId, 16); in TestInputMessageAlignment()
40 CHECK_OFFSET(InputMessage::Body::Key, source, 20); in TestInputMessageAlignment()
41 CHECK_OFFSET(InputMessage::Body::Key, displayId, 24); in TestInputMessageAlignment()
42 CHECK_OFFSET(InputMessage::Body::Key, hmac, 28); in TestInputMessageAlignment()
43 CHECK_OFFSET(InputMessage::Body::Key, action, 60); in TestInputMessageAlignment()
44 CHECK_OFFSET(InputMessage::Body::Key, flags, 64); in TestInputMessageAlignment()
45 CHECK_OFFSET(InputMessage::Body::Key, keyCode, 68); in TestInputMessageAlignment()
46 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 72); in TestInputMessageAlignment()
[all …]
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DSettableCaptureStage.java30 private Map<CaptureRequest.Key, Object> mCaptureRequestKeyValueMap = new HashMap<>();
58 public List<Pair<CaptureRequest.Key, Object>> getParameters() { in getParameters()
59 List<Pair<CaptureRequest.Key, Object>> parameters = new ArrayList<>(); in getParameters()
61 for (Map.Entry<CaptureRequest.Key, Object> entry : mCaptureRequestKeyValueMap.entrySet()) { in getParameters()
71 <T> void addCaptureRequestParameters(CaptureRequest.Key<T> key, T value) { in addCaptureRequestParameters()
/frameworks/native/libs/ui/include/ui/
DDisplayMap.h26 template <typename Key, typename Value>
27 using DisplayMap = ftl::SmallMap<Key, Value, 5>;
29 template <typename Key, typename Value>
30 using PhysicalDisplayMap = ftl::SmallMap<Key, Value, 3>;

123456789