/test/vti/dashboard/src/main/java/com/android/vts/entity/ |
D | TestAcknowledgmentEntity.java | 225 public static TestAcknowledgmentEntity fromJson(User user, JsonObject json) { in fromJson() argument 227 if (!json.has(TEST_NAME)) return null; in fromJson() 228 String testName = json.get(TEST_NAME).getAsString(); in fromJson() 233 if (json.has(BRANCHES)) { in fromJson() 234 branches = new Gson().fromJson(json.get(BRANCHES), listType); in fromJson() 238 if (json.has(DEVICES)) { in fromJson() 239 devices = new Gson().fromJson(json.get(DEVICES), listType); in fromJson() 243 if (json.has(TEST_CASE_NAMES)) { in fromJson() 244 testCaseNames = new Gson().fromJson(json.get(TEST_CASE_NAMES), listType); in fromJson() 248 if (json.has(NOTE)) { in fromJson() [all …]
|
D | TestRunEntity.java | 419 JsonObject json = new JsonObject(); in toJson() local 420 json.add(TEST_NAME, new JsonPrimitive(this.testName)); in toJson() 421 json.add(TEST_BUILD_ID, new JsonPrimitive(this.testBuildId)); in toJson() 422 json.add(HOST_NAME, new JsonPrimitive(this.hostName)); in toJson() 423 json.add(PASS_COUNT, new JsonPrimitive(this.passCount)); in toJson() 424 json.add(FAIL_COUNT, new JsonPrimitive(this.failCount)); in toJson() 425 json.add(START_TIMESTAMP, new JsonPrimitive(this.startTimestamp)); in toJson() 426 json.add(END_TIMESTAMP, new JsonPrimitive(this.endTimestamp)); in toJson() 448 … json.add(CodeCoverageEntity.COVERED_LINE_COUNT, new JsonPrimitive(coveredLineCount)); in toJson() 449 json.add(CodeCoverageEntity.TOTAL_LINE_COUNT, new JsonPrimitive(totalLineCount)); in toJson() [all …]
|
D | TestPlanRunEntity.java | 301 JsonObject json = new JsonObject(); in toJson() local 302 json.add(TEST_PLAN_NAME, new JsonPrimitive(this.testPlanName)); in toJson() 303 json.add(TEST_BUILD_ID, new JsonPrimitive(this.testBuildId)); in toJson() 304 json.add(PASS_COUNT, new JsonPrimitive(this.passCount)); in toJson() 305 json.add(FAIL_COUNT, new JsonPrimitive(this.failCount)); in toJson() 306 json.add(START_TIMESTAMP, new JsonPrimitive(this.startTimestamp)); in toJson() 307 json.add(END_TIMESTAMP, new JsonPrimitive(this.endTimestamp)); in toJson() 308 return json; in toJson()
|
/test/vti/dashboard/src/main/java/com/android/vts/api/ |
D | CoverageRestServlet.java | 49 String json = ""; in doGet() local 53 json = apiCoverageData(key); in doGet() 55 json = "{error: 'true', message: 'unexpected path!!!'}"; in doGet() 60 json = "{error: 'true', message: 'the path info is not existed!!!'}"; in doGet() 66 response.getWriter().write(json); in doGet() 80 String json = ""; in doPost() local 87 json = postCoverageData(cmd, coverageId, testName, testRunId); in doPost() 90 json = postCoverageDataSum(urlSafeKey); in doPost() 92 json = "{error: 'true', message: 'unexpected path!!!'}"; in doPost() 95 json = "{error: 'true', message: 'the path info is not existed!!!'}"; in doPost() [all …]
|
D | DataRestServlet.java | 41 String json = ""; in doGet() local 48 json = new Gson().toJson(BranchEntity.getByBranch(schKey)); in doGet() 50 json = new Gson().toJson(BuildTargetEntity.getByBuildTarget(schKey)); in doGet() 55 json = in doGet() 61 json = in doGet() 68 json = "{error: 'true', message: 'unexpected path!!!'}"; in doGet() 73 json = "{error: 'true', message: 'the path info is not existed!!!'}"; in doGet() 79 response.getWriter().write(json); in doGet()
|
D | UserFavoriteRestServlet.java | 109 JsonObject json = new JsonObject(); in addFavorite() local 110 json.add("key", new JsonPrimitive(KeyFactory.keyToString(favoriteKey))); in addFavorite() 111 return json; in addFavorite() 153 JsonObject json = new JsonObject(); in updateFavorite() local 154 json.add("key", new JsonPrimitive(KeyFactory.keyToString(favoriteKey))); in updateFavorite() 155 return json; in updateFavorite()
|
D | BigtableLegacyJsonServlet.java | 24 import com.google.api.client.json.jackson.JacksonFactory; 41 import org.json.JSONException; 42 import org.json.JSONObject;
|
D | TestSuiteResultRestServlet.java | 24 import com.google.api.client.json.jackson.JacksonFactory; 124 String json = new Gson().toJson(resultMap); in doPost() local 128 response.getWriter().write(json); in doPost()
|
D | TestAcknowledgmentRestServlet.java | 90 JsonObject json; in doPost() local 92 json = new JsonParser().parse(sb.toString()).getAsJsonObject(); in doPost() 97 TestAcknowledgmentEntity ack = TestAcknowledgmentEntity.fromJson(currentUser, json); in doPost()
|
/test/vti/dashboard/src/main/java/com/android/vts/util/ |
D | Graph.java | 83 JsonObject json = new JsonObject(); in toJson() local 84 json.add(X_LABEL_KEY, new JsonPrimitive(getXLabel())); in toJson() 85 json.add(Y_LABEL_KEY, new JsonPrimitive(getYLabel())); in toJson() 86 json.add(NAME_KEY, new JsonPrimitive(getName())); in toJson() 87 json.add(TYPE_KEY, new JsonPrimitive(getType().toString())); in toJson() 88 return json; in toJson()
|
D | Histogram.java | 156 JsonObject json = super.toJson(); in toJson() local 157 json.add(VALUE_KEY, new Gson().toJsonTree(values).getAsJsonArray()); in toJson() 158 json.add(PERCENTILES_KEY, new Gson().toJsonTree(percentiles).getAsJsonArray()); in toJson() 159 json.add(PERCENTILE_VALUES_KEY, new Gson().toJsonTree(percentileValues).getAsJsonArray()); in toJson() 160 json.add(IDS_KEY, new Gson().toJsonTree(ids).getAsJsonArray()); in toJson() 161 json.add(MIN_KEY, new JsonPrimitive(min)); in toJson() 162 json.add(MAX_KEY, new JsonPrimitive(max)); in toJson() 163 return json; in toJson()
|
D | TestRunMetadata.java | 132 JsonObject json = new JsonObject(); in toJson() local 133 json.add(DEVICE_INFO, new JsonPrimitive(this.deviceInfo)); in toJson() 134 json.add(ABI_INFO, new JsonPrimitive(this.abiInfo)); in toJson() 135 json.add(TEST_RUN, this.testRun.toJson()); in toJson() 137 json.add(TEST_DETAILS, this.details.toJson()); in toJson() 139 return json; in toJson()
|
D | LineGraph.java | 118 JsonObject json = super.toJson(); in toJson() local 144 json.add(VALUE_KEY, new Gson().toJsonTree(lineGraphValues).getAsJsonArray()); in toJson() 145 json.add(IDS_KEY, new Gson().toJsonTree(ids).getAsJsonArray()); in toJson() 146 json.add(TICKS_KEY, new Gson().toJsonTree(axisTicks)); in toJson() 147 return json; in toJson()
|
D | TestRunDetails.java | 54 JsonObject json = new JsonObject(); in toJson() local 55 json.add(NAME_KEY, new JsonPrimitive(name)); in toJson() 56 json.add(DATA_KEY, new Gson().toJsonTree(testCases)); in toJson() 57 return json; in toJson()
|
D | BoxPlot.java | 149 JsonObject json = super.toJson(); in toJson() local 181 json.add(VALUE_KEY, new Gson().toJsonTree(stats)); in toJson() 182 json.add(SERIES_KEY, new Gson().toJsonTree(seriesList)); in toJson() 183 return json; in toJson()
|
/test/vti/test_serving/gae/script/ |
D | deploy-endpoint.sh | 33 …nts services deploy buildv1openapi.json hostv1openapi.json labv1openapi.json schedulev1openapi.jso…
|
/test/vti/test_serving/gae/frontend/ |
D | .gitignore | 22 !.vscode/settings.json 23 !.vscode/tasks.json 24 !.vscode/launch.json 25 !.vscode/extensions.json
|
/test/vti/dashboard/ |
D | README.md | 117 ### How to set test data on json files for generating mock data on local dev server 120 on json files under the testdata folder. However, you need to abide by some rules in doing this, 123 First, in test-plan-report-data.json, you need to set the same number of data under "testCaseNames" 127 ```json 152 Second, in test-report-data.json file, you need to make sure that "testModules" should have 154 in the test-report-data.json file. 156 test-report-data.json 157 ```json 172 test-plan-report-data.json 173 ```json [all …]
|
/test/vts/utils/python/controllers/ |
D | android.py | 22 import json 93 result = json.loads(str(resp, encoding="utf8")) 107 self.client.write(json.dumps({'cmd': command, 117 request = json.dumps(data) 123 result = json.loads(str(response, encoding="utf8"))
|
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/result/ |
D | CompatibilityTestResult.java | 19 import org.json.JSONException; 20 import org.json.JSONObject; 76 public static CompatibilityTestResult fromJsonString(String json) throws JSONException { in fromJsonString() argument 77 JSONObject o = new JSONObject(json); in fromJsonString()
|
/test/vts-testcase/vndk/golden/ |
D | extract_lsdump.py | 20 import json 223 lsdump = json.load(lsdump_file, object_hook=AttrDict) 242 output_str = json.dumps(output_dump, indent=1, 267 json.dump(output_dump, output_file,
|
/test/vts/utils/python/performance/ |
D | benchmark_parser.py | 17 import json 60 json_obj = json.loads(json_string)
|
/test/vts/runners/host/ |
D | signals.py | 20 import json 63 json.dumps(extras)
|
/test/vti/dashboard/src/test/java/com/android/vts/entity/ |
D | TestAcknowledgmentEntityTest.java | 136 JsonObject json = TestAcknowledgmentEntity.fromEntity(e).toJson(); in testJsonSerialization() local 138 TestAcknowledgmentEntity deserialized = TestAcknowledgmentEntity.fromJson(user, json); in testJsonSerialization() 157 JsonObject json = TestAcknowledgmentEntity.fromEntity(e).toJson(); in testJsonSerializationWithNulls() local 159 TestAcknowledgmentEntity deserialized = TestAcknowledgmentEntity.fromJson(user, json); in testJsonSerializationWithNulls()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | TestModelsListLoader.java | 22 import org.json.JSONArray; 23 import org.json.JSONException; 24 import org.json.JSONObject;
|