Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/tests/util/src/android/util/cts/
DJsonReaderTest.java128 String json = "{\n" + in testHelloWorld() local
132 JsonReader reader = new JsonReader(new StringReader(json)); in testHelloWorld()
166 String json = "[\"a\"," in testCharacterUnescaping() local
186 JsonReader reader = new JsonReader(new StringReader(json)); in testCharacterUnescaping()
222 String json = "[-0.0," in testDoubles() local
237 JsonReader reader = new JsonReader(new StringReader(json)); in testDoubles()
259 String json = "[" in testLenientDoubles() local
267 JsonReader reader = new JsonReader(new StringReader(json)); in testLenientDoubles()
294 String json = "[\"" + new String(pad) + "\",33333]"; in testBufferBoundary() local
295 JsonReader reader = new JsonReader(new StringReader(json)); in testBufferBoundary()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java53 import org.json.JSONArray;
54 import org.json.JSONObject;
248 private static Object serializeRational(Rational rat) throws org.json.JSONException { in serializeRational()
256 private static Object serializeSize(Size size) throws org.json.JSONException { in serializeSize()
264 private static Object serializeSizeF(SizeF size) throws org.json.JSONException { in serializeSizeF()
272 private static Object serializeRect(Rect rect) throws org.json.JSONException { in serializeRect()
281 private static Object serializePoint(Point point) throws org.json.JSONException { in serializePoint()
290 throws org.json.JSONException { in serializeFace()
304 throws org.json.JSONException { in serializeStreamConfigurationMap()
332 throws org.json.JSONException { in serializeMeteringRectangle()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java43 import org.json.JSONArray;
44 import org.json.JSONObject;
73 private static Object serializeRational(Rational rat) throws org.json.JSONException { in serializeRational()
81 private static Object serializeSize(Size size) throws org.json.JSONException { in serializeSize()
89 private static Object serializeSizeF(SizeF size) throws org.json.JSONException { in serializeSizeF()
97 private static Object serializeRect(Rect rect) throws org.json.JSONException { in serializeRect()
106 private static Object serializePoint(Point point) throws org.json.JSONException { in serializePoint()
115 throws org.json.JSONException { in serializeFace()
135 throws org.json.JSONException { in serializeStreamConfigurationMap()
176 throws org.json.JSONException { in serializeMeteringRectangle()
[all …]
DItsUtils.java35 import org.json.JSONArray;
36 import org.json.JSONObject;
80 } catch (org.json.JSONException e) { in getJsonWeightedRectsFromArray()
92 } catch (org.json.JSONException e) { in getOutputSpecs()
DItsService.java69 import org.json.JSONArray;
70 import org.json.JSONObject;
449 } catch (org.json.JSONException e) { in run()
675 } catch (org.json.JSONException e) { in processSocketCommand()
705 } catch (org.json.JSONException e) { in sendResponse()
753 } catch (org.json.JSONException e) { in sendResponse()
825 } catch (org.json.JSONException e) { in sendResponseCaptureResult()
882 } catch (org.json.JSONException e) {
920 } catch (org.json.JSONException e) {
952 } catch (org.json.JSONException e) {
[all …]
DItsTestActivity.java55 import org.json.JSONArray;
56 import org.json.JSONObject;
249 } catch (org.json.JSONException e) { in onReceive()
/cts/apps/CameraITS/pymodules/its/
Dtarget.py21 import json
23 import json
101 f.write(json.dumps({"exposure":exposure}))
111 o = json.load(f)
Ddevice.py20 import json
247 jobj = json.loads(line)
268 self.sock.send(json.dumps(cmd) + "\n")
275 self.sock.send(json.dumps(cmd) + "\n")
298 self.sock.send(json.dumps(cmd) + "\n")
311 self.sock.send(json.dumps(cmd) + "\n")
327 self.sock.send(json.dumps(cmd) + "\n")
355 self.sock.send(json.dumps(cmd) + "\n")
372 self.sock.send(json.dumps(cmd) + "\n")
386 self.sock.send(json.dumps(cmd) + "\n")
[all …]
Dobjects.py19 import json
/cts/hostsidetests/seccomp/app/
Dgen_blacklist.py16 import json
168 json.dump(allowed, f, sort_keys=True, indent=2)
172 json.dump(blocked, f, sort_keys=True, indent=2)
/cts/libs/json/src/com/android/json/stream/
DJsonScope.java17 package com.android.json.stream;
DJsonToken.java17 package com.android.json.stream;
/cts/apps/CameraITS/
D.gitignore3 *.json
/cts/libs/json/
DAndroid.mk34 LOCAL_MODULE := json
/cts/libs/vogar-expect/
DAndroid.mk37 LOCAL_STATIC_JAVA_LIBRARIES := guava json
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java28 import org.json.JSONObject;
29 import org.json.JSONException;
/cts/tools/cts-media/
Dget_achievable_rates.py17 import argparse, json, math, re, sys, zipfile
305 def parse_json(self, json, device, build): argument
306 for test, results in json:
334 jsonData = json.load(jsonFile, encoding='utf-8')
341 jsonData = json.load(jsonFile, encoding='utf-8', object_pairs_hook=lambda items: items)
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java31 import org.json.JSONArray;
32 import org.json.JSONException;
33 import org.json.JSONObject;
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDummyGalProvider.java33 import org.json.JSONException;
34 import org.json.JSONObject;
DContactsContract_DirectoryTest.java31 import org.json.JSONObject;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java26 import org.json.JSONException;
27 import org.json.JSONObject;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java39 import org.json.JSONObject;
40 import org.json.JSONException;
489 JSONObject json = new JSONObject(content); in VideoMetaInfo() local
490 frameWidth = json.getInt("width"); in VideoMetaInfo()
491 frameHeight = json.getInt("height"); in VideoMetaInfo()
492 fps = json.getDouble("frameRate"); in VideoMetaInfo()
493 fovWidth = json.getDouble("fovW")*Math.PI/180.0; in VideoMetaInfo()
494 fovHeight = json.getDouble("fovH")*Math.PI/180.0; in VideoMetaInfo()
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py16 import json
403 events = json.loads(f.read())
475 f.write(json.dumps(events))
/cts/tests/tests/assist/common/src/android/assist/common/
DUtils.java22 import org.json.JSONObject;
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DDeviceReportTest.java29 import org.json.JSONObject;

12