/cts/libs/input/src/com/android/cts/input/ |
D | HidDevice.java | 27 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 …]
|
D | HidJsonParser.java | 25 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/ |
D | JsonReaderTest.java | 129 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/ |
D | CameraMetadataGetter.java | 53 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/ |
D | ItsSerializer.java | 43 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 …]
|
D | ItsUtils.java | 43 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/ |
D | device.py | 15 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 …]
|
D | target.py | 21 import json 23 import json 101 f.write(json.dumps({"exposure":exposure})) 111 o = json.load(f)
|
/cts/hostsidetests/seccomp/app/ |
D | gen_blacklist.py | 16 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/ |
D | Android.bp | 18 name: "json", 27 static_libs: ["json"],
|
/cts/hostsidetests/edi/src/android/edi/cts/ |
D | DynamicPartitionsDeviceInfo.java | 25 import org.json.JSONException; 26 import org.json.JSONObject;
|
/cts/libs/vogar-expect/ |
D | Android.bp | 26 "json", 42 "json",
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | IntentGenerationTests.java | 27 import org.json.JSONException; 28 import org.json.JSONObject;
|
D | IntentTests.java | 32 import org.json.JSONException; 33 import org.json.JSONObject;
|
D | StateComparisonException.java | 19 import org.json.JSONException;
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonScope.java | 17 package com.android.json.stream;
|
D | JsonToken.java | 17 package com.android.json.stream;
|
D | NewlineDelimitedJsonWriter.java | 17 package com.android.json.stream;
|
/cts/apps/CameraITS/ |
D | .gitignore | 3 *.json
|
/cts/tools/cts-media/ |
D | get_achievable_rates.py | 17 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/ |
D | DummyGalProvider.java | 33 import org.json.JSONException; 34 import org.json.JSONObject;
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 39 import org.json.JSONException; 40 import org.json.JSONObject;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanFeaturesTest.java | 35 import org.json.JSONArray; 36 import org.json.JSONException; 37 import org.json.JSONObject;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 40 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/ |
D | MockListener.java | 26 import org.json.JSONException; 27 import org.json.JSONObject;
|