Home
last modified time | relevance | path

Searched refs:keyObj (Results 1 – 3 of 3) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java434 private static String getKeyName(Object keyObj) { in getKeyName() argument
435 if (keyObj.getClass() == CaptureResult.Key.class in getKeyName()
436 || keyObj.getClass() == TotalCaptureResult.class) { in getKeyName()
437 return ((CaptureResult.Key) keyObj).getName(); in getKeyName()
438 } else if (keyObj.getClass() == CaptureRequest.Key.class) { in getKeyName()
439 return ((CaptureRequest.Key) keyObj).getName(); in getKeyName()
440 } else if (keyObj.getClass() == CameraCharacteristics.Key.class) { in getKeyName()
441 return ((CameraCharacteristics.Key) keyObj).getName(); in getKeyName()
447 private static Object getKeyValue(CameraMetadata md, Object keyObj) { in getKeyValue() argument
449 return ((CaptureResult) md).get((CaptureResult.Key) keyObj); in getKeyValue()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java276 private static String getKeyName(Object keyObj) throws ItsException { in getKeyName() argument
277 if (keyObj.getClass() == CaptureResult.Key.class in getKeyName()
278 || keyObj.getClass() == TotalCaptureResult.class) { in getKeyName()
279 return ((CaptureResult.Key)keyObj).getName(); in getKeyName()
280 } else if (keyObj.getClass() == CaptureRequest.Key.class) { in getKeyName()
281 return ((CaptureRequest.Key)keyObj).getName(); in getKeyName()
282 } else if (keyObj.getClass() == CameraCharacteristics.Key.class) { in getKeyName()
283 return ((CameraCharacteristics.Key)keyObj).getName(); in getKeyName()
288 private static Object getKeyValue(CameraMetadata md, Object keyObj) throws ItsException { in getKeyValue() argument
290 return ((CaptureResult)md).get((CaptureResult.Key)keyObj); in getKeyValue()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java218 private static String getKeyName(Object keyObj) { in getKeyName() argument
219 return ((CameraCharacteristics.Key) keyObj).getName(); in getKeyName()
222 private static Object getKeyValue(CameraCharacteristics chars, Object keyObj) { in getKeyValue() argument
223 return chars.get((CameraCharacteristics.Key) keyObj); in getKeyValue()
226 private void storeEntry(Type keyType, Object keyObj, in storeEntry() argument
228 String keyName = getKeyName(keyObj); in storeEntry()
230 Object keyValue = getKeyValue(chars, keyObj); in storeEntry()
294 private void storeArrayEntry(Type keyType, Object keyObj, in storeArrayEntry() argument
296 String keyName = getKeyName(keyObj); in storeArrayEntry()
298 Object keyValue = getKeyValue(chars, keyObj); in storeArrayEntry()
[all …]