Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java542 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
544 jsonArray.put(serializeRational((Rational) Array.get(keyValue, i))); in serializeArrayEntry()
546 return new MetadataEntry(keyName, jsonArray); in serializeArrayEntry()
548 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
550 jsonArray.put(serializeSize((Size) Array.get(keyValue, i))); in serializeArrayEntry()
552 return new MetadataEntry(keyName, jsonArray); in serializeArrayEntry()
554 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
556 jsonArray.put(serializeRect((Rect) Array.get(keyValue, i))); in serializeArrayEntry()
558 return new MetadataEntry(keyName, jsonArray); in serializeArrayEntry()
560 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java382 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
384 jsonArray.put(serializeRational((Rational)Array.get(keyValue,i))); in serializeArrayEntry()
386 return new MetadataEntry(keyName, jsonArray); in serializeArrayEntry()
388 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
390 jsonArray.put(serializeSize((Size)Array.get(keyValue,i))); in serializeArrayEntry()
392 return new MetadataEntry(keyName, jsonArray); in serializeArrayEntry()
394 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
396 jsonArray.put(serializeRect((Rect)Array.get(keyValue,i))); in serializeArrayEntry()
398 return new MetadataEntry(keyName, jsonArray); in serializeArrayEntry()
400 JSONArray jsonArray = new JSONArray(); in serializeArrayEntry() local
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DVulkanDeviceInfo.java652 JSONArray jsonArray = parent.getJSONArray(name); in emitLongArray() local
653 long[] array = new long[jsonArray.length()]; in emitLongArray()
654 for (int i = 0; i < jsonArray.length(); i++) { in emitLongArray()
655 array[i] = jsonArray.getLong(i); in emitLongArray()
662 JSONArray jsonArray = parent.getJSONArray(name); in emitDoubleArray() local
663 double[] array = new double[jsonArray.length()]; in emitDoubleArray()
664 for (int i = 0; i < jsonArray.length(); i++) { in emitDoubleArray()
665 array[i] = jsonArray.getDouble(i); in emitDoubleArray()