Home
last modified time | relevance | path

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

12

/cts/libs/input/src/com/android/cts/input/
DHidDevice.java27 import org.json.JSONArray;
28 import org.json.JSONException;
29 import org.json.JSONObject;
100 JSONObject json = new JSONObject(); in delay() local
102 json.put("command", "delay"); in delay()
103 json.put("id", mId); in delay()
104 json.put("duration", milliSeconds); in delay()
109 writeHidCommands(json.toString().getBytes()); in delay()
121 JSONObject json = new JSONObject(); in sendHidReport() local
123 json.put("command", "report"); in sendHidReport()
[all …]
DHidJsonParser.java25 import org.json.JSONArray;
26 import org.json.JSONException;
27 import org.json.JSONObject;
149 JSONObject json = new JSONObject(readRawResource(resourceId)); in readDeviceId() local
150 return json.getInt("id"); in readDeviceId()
161 JSONArray json = getJsonArrayFromResource(resourceId); in getTestData() local
163 for (int testCaseNumber = 0; testCaseNumber < json.length(); testCaseNumber++) { in getTestData()
167 JSONObject testcaseEntry = json.getJSONObject(testCaseNumber); in getTestData()
/cts/tests/tests/util/src/android/util/cts/
DJsonReaderTest.java129 String json = "{\n" + in testHelloWorld() local
133 JsonReader reader = new JsonReader(new StringReader(json)); in testHelloWorld()
167 String json = "[\"a\"," in testCharacterUnescaping() local
187 JsonReader reader = new JsonReader(new StringReader(json)); in testCharacterUnescaping()
223 String json = "[-0.0," in testDoubles() local
238 JsonReader reader = new JsonReader(new StringReader(json)); in testDoubles()
260 String json = "[" in testLenientDoubles() local
268 JsonReader reader = new JsonReader(new StringReader(json)); in testLenientDoubles()
295 String json = "[\"" + new String(pad) + "\",33333]"; in testBufferBoundary() local
296 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.java43 import org.json.JSONArray;
44 import org.json.JSONObject;
90 } catch (org.json.JSONException e) { in getJsonWeightedRectsFromArray()
102 } catch (org.json.JSONException e) { in getOutputSpecs()
/cts/apps/CameraITS/pymodules/its/
Ddevice.py15 import json
254 jobj = json.loads(line)
288 self.sock.send(json.dumps(cmd) + "\n")
295 self.sock.send(json.dumps(cmd) + "\n")
318 self.sock.send(json.dumps(cmd) + "\n")
331 self.sock.send(json.dumps(cmd) + "\n")
347 self.sock.send(json.dumps(cmd) + "\n")
375 self.sock.send(json.dumps(cmd) + "\n")
392 self.sock.send(json.dumps(cmd) + "\n")
406 self.sock.send(json.dumps(cmd) + "\n")
[all …]
Dtarget.py21 import json
23 import json
101 f.write(json.dumps({"exposure":exposure}))
111 o = json.load(f)
/cts/hostsidetests/seccomp/app/
Dgen_blacklist.py16 import json
182 json.dump(allowed, f, sort_keys=True, indent=2)
186 json.dump(blocked, f, sort_keys=True, indent=2)
/cts/libs/json/
DAndroid.bp18 name: "json",
27 static_libs: ["json"],
/cts/hostsidetests/edi/src/android/edi/cts/
DDynamicPartitionsDeviceInfo.java25 import org.json.JSONException;
26 import org.json.JSONObject;
/cts/libs/vogar-expect/
DAndroid.bp26 "json",
42 "json",
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DIntentGenerationTests.java27 import org.json.JSONException;
28 import org.json.JSONObject;
DIntentTests.java32 import org.json.JSONException;
33 import org.json.JSONObject;
DStateComparisonException.java19 import org.json.JSONException;
/cts/libs/json/src/com/android/json/stream/
DJsonScope.java17 package com.android.json.stream;
DJsonToken.java17 package com.android.json.stream;
DNewlineDelimitedJsonWriter.java17 package com.android.json.stream;
/cts/apps/CameraITS/
D.gitignore3 *.json
/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/provider/src/android/provider/cts/contacts/
DDummyGalProvider.java33 import org.json.JSONException;
34 import org.json.JSONObject;
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java39 import org.json.JSONException;
40 import org.json.JSONObject;
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java35 import org.json.JSONArray;
36 import org.json.JSONException;
37 import org.json.JSONObject;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java40 import org.json.JSONObject;
41 import org.json.JSONException;
490 JSONObject json = new JSONObject(content); in VideoMetaInfo() local
491 frameWidth = json.getInt("width"); in VideoMetaInfo()
492 frameHeight = json.getInt("height"); in VideoMetaInfo()
493 fps = json.getDouble("frameRate"); in VideoMetaInfo()
494 fovWidth = json.getDouble("fovW")*Math.PI/180.0; in VideoMetaInfo()
495 fovHeight = json.getDouble("fovH")*Math.PI/180.0; in VideoMetaInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java26 import org.json.JSONException;
27 import org.json.JSONObject;

12