Lines Matching refs:key

35  * This class defines the basic key/value map used for querying for camera
42 * never changes, nor do the values returned by any key with {@code #get} throughout
60 * @param key The metadata field to write.
62 * type to the key.
76 * <p>Querying the value for the same key more than once will return a value
79 * @throws IllegalArgumentException if the key was not valid
81 * @param key The metadata field to read.
82 * @return The value of that key, or {@code null} if the field is not set.
86 protected abstract <T> T getProtected(TKey key);
99 * <p>All values retrieved by a key from this list with {@code #get} are guaranteed to be
100 * non-{@code null}. Each key is only listed once in the list. The order of the keys
151 TKey key;
153 key = (TKey) field.get(instance);
160 if (instance == null || instance.getProtected(key) != null) {
161 if (shouldKeyBeAdded(key, field, filterTags)) {
162 keyList.add(key);
165 Log.v(TAG, "getKeysStatic - key was added - " + key);
168 Log.v(TAG, "getKeysStatic - key was filtered - " + key);
178 private static <TKey> boolean shouldKeyBeAdded(TKey key, Field field, int[] filterTags) {
179 if (key == null) {
180 throw new NullPointerException("key must not be null");
186 * Get the native key from the public api key
188 if (key instanceof CameraCharacteristics.Key) {
189 nativeKey = ((CameraCharacteristics.Key)key).getNativeKey();
190 } else if (key instanceof CaptureResult.Key) {
191 nativeKey = ((CaptureResult.Key)key).getNativeKey();
192 } else if (key instanceof CaptureRequest.Key) {
193 nativeKey = ((CaptureRequest.Key)key).getNativeKey();
195 // Reject fields that aren't a key
196 throw new IllegalArgumentException("key type must be that of a metadata key");
210 // This key is synthetic, so calling #getTag will throw IAE
217 * Regular key: look up it's native tag and see if it's in filterTags
1833 * <p>This is the default if the key is not set.</p>