Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/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 …]