/cts/libs/input/src/com/android/cts/input/ |
D | UinputDevice.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 118 JSONObject json = new JSONObject(); in injectEvents() local 120 json.put("command", "inject"); in injectEvents() 121 json.put("id", mId); in injectEvents() 122 json.put("events", new JSONArray(evdevEvents)); in injectEvents() 126 writeCommands(json.toString().getBytes()); in injectEvents() 136 JSONObject json = new JSONObject(); in injectDelay() local 138 json.put("command", "delay"); in injectDelay() [all …]
|
D | HidDevice.java | 25 import org.json.JSONArray; 26 import org.json.JSONException; 27 import org.json.JSONObject; 122 JSONObject json = new JSONObject(); in sendHidReport() local 124 json.put("command", "report"); in sendHidReport() 125 json.put("id", mId); in sendHidReport() 126 json.put("report", new JSONArray(report)); in sendHidReport() 130 writeCommands(json.toString().getBytes()); in sendHidReport()
|
D | InputJsonParser.java | 30 import org.json.JSONArray; 31 import org.json.JSONException; 32 import org.json.JSONObject; 155 JSONObject json = new JSONObject(readRawResource(resourceId)); in readDeviceId() local 156 return json.getInt("id"); in readDeviceId() 170 JSONObject json = new JSONObject(readRawResource(resourceId)); in readVendorId() local 171 return json.getInt("vid"); in readVendorId() 185 JSONObject json = new JSONObject(readRawResource(resourceId)); in readSources() local 186 return sourceFromString(json.optString("source")); in readSources() 200 JSONObject json = new JSONObject(readRawResource(resourceId)); in readProductId() local [all …]
|
D | VirtualInputDevice.java | 33 import org.json.JSONException; 34 import org.json.JSONObject; 166 JSONObject json = new JSONObject(); in delay() local 168 json.put("command", "delay"); in delay() 169 json.put("id", mId); in delay() 170 json.put("duration", milliSeconds); in delay() 175 writeCommands(json.toString().getBytes()); in delay()
|
/cts/tools/cts-test-metrics/ |
D | README | 1 The parse_test_metrics.py script can be used to parse test metrics json files. Run the following 3 python parse_test_metrics.py CtsCameraTestCases.reportlog.json 6 python parse_test_metrics.py CtsCameraTestCases.reportlog.json CtsUiHostTestCases.reportlog.json 7 python parse_test_metrics.py *.json 9 Test metrics json files can be found in $CTS_ROOT/repository/results/$RESULT_DIR/report-log-files/ 12 The MetricsParser class defines functions to parse a json file. The _Parse function takes a filename 13 as input, reads the json file and adds the json object to json_data. The _PrintJson function
|
D | parse_test_metrics.py | 17 import argparse, json, sys 33 json_data = json.load(json_file)
|
/cts/tests/sensor/src/android/hardware/cts/accessories/ |
D | HidCommand.kt | 19 import org.json.JSONArray 20 import org.json.JSONException 21 import org.json.JSONObject 86 val json = JSONObject() in setGetReportResponse() constant 88 json.put("command", "set_get_report_response") in setGetReportResponse() 89 json.put("id", deviceId) in setGetReportResponse() 90 json.put("report", JSONArray(report)) in setGetReportResponse() 94 writeCommands(json.toString().toByteArray()) in setGetReportResponse() 124 val json = JSONObject() in sendSetReportReply() constant 126 json.put("command", "send_set_report_reply") in sendSetReportReply() [all …]
|
/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/hostsidetests/mediapc/videoencodingquality/app/ |
D | README.md | 2 …t side test sends an input clip and encoding configuration parameters via json file to this apk. T… 6 …ncodingTestCases -- --module-arg CtsVideoEncodingTestCases:instrumentation-arg:conf-json:=test.json
|
/cts/hostsidetests/videoencodingminimum/app/ |
D | README.md | 2 …t side test sends an input clip and encoding configuration parameters via json file to this apk. T… 6 …estCases -- --module-arg CtsVideoQualityFloorHostTestCases:instrumentation-arg:conf-json:=test.json
|
/cts/tests/mediapc/requirements/ |
D | requirements.pb.go | 248 …Requirements []*Requirement `protobuf:"bytes,1,rep,name=requirements" json:"requirements,omitempty… 250 …AllMpcs []int64 `protobuf:"varint,2,rep,packed,name=all_mpcs,json=allMpcs" json:"all_mpcs,omitempt… 307 Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` 309 Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` 310 …Description *string `protobuf:"bytes,3,opt,name=description" json:"description,… 311 …nt,4,opt,name=group,enum=android.media.performanceclass.requirements.Group" json:"group,omitempty"` 312 …Specs map[int64]*RequirementSpec `protobuf:"bytes,5,rep,name=specs" json:"specs,omitempty" p… 315 …Measurements map[string]*RequiredMeasurement `protobuf:"bytes,6,rep,name=measurements" json:"measu… 319 …Variants map[string]*Variant `protobuf:"bytes,57,rep,name=variants" json:"variants,omitempty" prot… 408 …int,1,opt,name=mpc,enum=android.media.performanceclass.MediaPerformanceClass" json:"mpc,omitempty"` [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 …]
|
/cts/apps/CameraITS/utils/ |
D | its_session_utils.py | 21 import json 446 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 485 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 508 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 528 jobj = json.loads(line) 566 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 573 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 597 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 612 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 634 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) [all …]
|
/cts/hostsidetests/seccomp/app/ |
D | gen_blocklist.py | 16 import json 186 json.dump(allowed, f, sort_keys=True, indent=2) 190 json.dump(blocked, f, sort_keys=True, indent=2)
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | VulkanTest.java | 29 import org.json.JSONArray; 30 import org.json.JSONException; 31 import org.json.JSONObject;
|
/cts/libs/json/ |
D | Android.bp | 22 name: "json", 33 static_libs: ["json"],
|
/cts/libs/vogar-expect/ |
D | Android.bp | 30 "json", 46 "json",
|
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/ |
D | FallbackDetails.java | 22 import org.json.JSONException; 23 import org.json.JSONObject;
|
/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;
|
/cts/hostsidetests/edi/src/android/edi/cts/ |
D | DynamicPartitionsDeviceInfo.java | 25 import org.json.JSONException; 26 import org.json.JSONObject;
|
/cts/apps/CameraITS/ |
D | .gitignore | 3 *.json
|
/cts/tests/tests/car/src/android/car/cts/property/ |
D | CarSvcPropsParser.java | 21 import org.json.JSONException; 22 import org.json.JSONObject;
|
/cts/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/ |
D | ReferenceConfig.java | 53 JsonElement json, Type typeOfT, JsonDeserializationContext context) in deserialize() argument 55 JsonObject referenceConfig = json.getAsJsonObject(); in deserialize()
|