/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SubprocessEventHelper.java | 105 public TestRunStartedEventInfo(JSONObject jsonObject) throws JSONException { in TestRunStartedEventInfo() argument 106 mRunName = jsonObject.getString(RUNNAME_KEY); in TestRunStartedEventInfo() 107 mTestCount = jsonObject.getInt(TESTCOUNT_KEY); in TestRunStartedEventInfo() 108 mAttempt = jsonObject.optInt(ATTEMPT_KEY, 0); in TestRunStartedEventInfo() 109 mStartTime = jsonObject.optLong(START_TIME, System.currentTimeMillis()); in TestRunStartedEventInfo() 150 public TestRunFailedEventInfo(JSONObject jsonObject) throws JSONException { in TestRunFailedEventInfo() argument 151 mReason = jsonObject.getString(REASON_KEY); in TestRunFailedEventInfo() 153 updateFailureFromJsonObject(mFailure, jsonObject); in TestRunFailedEventInfo() 193 public TestRunEndedEventInfo(JSONObject jsonObject) throws JSONException { in TestRunEndedEventInfo() argument 194 mTime = jsonObject.getLong(TIME_KEY); in TestRunEndedEventInfo() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | LUCIResultReporterTest.java | 188 JSONObject jsonObject = jsonArray.getJSONObject(i); in assertJsonKeysExist() local 189 Assert.assertTrue(jsonObject.has(KEY_TEST_METADATA)); in assertJsonKeysExist() 190 Assert.assertTrue(jsonObject.getJSONObject(KEY_TEST_METADATA).has(KEY_NAME)); in assertJsonKeysExist() 191 Assert.assertTrue(jsonObject.has(KEY_DURATION)); in assertJsonKeysExist() 192 Assert.assertTrue(jsonObject.has(KEY_EXPECTED)); in assertJsonKeysExist() 193 Assert.assertTrue(jsonObject.has(KEY_STATUS)); in assertJsonKeysExist() 194 Assert.assertTrue(jsonObject.has(KEY_TAGS)); in assertJsonKeysExist()
|
/tools/tradefederation/core/src/com/android/tradefed/auth/ |
D | ServiceAccountKeyCredentialFactory.java | 83 JSONObject jsonObject = new JSONObject(keyContent); in parseKeyFile() local 84 info.put(CLIENT_EMAIL_KEY, jsonObject.getString(CLIENT_EMAIL_KEY)); in parseKeyFile() 85 info.put(TYPE_KEY, jsonObject.getString(TYPE_KEY)); in parseKeyFile() 86 info.put(PRIVATE_KEY_ID_KEY, jsonObject.getString(PRIVATE_KEY_ID_KEY)); in parseKeyFile()
|
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/ |
D | TestDiscoveryInvoker.java | 589 JSONObject jsonObject = new JSONObject(discoveryOutput); in parseTestDiscoveryOutput() local 591 if (jsonObject.has(dependencyListKey)) { in parseTestDiscoveryOutput() 592 JSONArray jsonArray = jsonObject.getJSONArray(dependencyListKey); in parseTestDiscoveryOutput() 601 JSONObject jsonObject = new JSONObject(discoveryOutput); in parsePartialFallback() local 602 if (jsonObject.has(PARTIAL_FALLBACK_KEY)) { in parsePartialFallback() 603 return jsonObject.getString(PARTIAL_FALLBACK_KEY); in parsePartialFallback() 609 JSONObject jsonObject = new JSONObject(discoveryOutput); in hasNoPossibleDiscovery() local 610 if (jsonObject.has(NO_POSSIBLE_TEST_DISCOVERY_KEY)) { in hasNoPossibleDiscovery()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LUCIResultReporter.java | 273 boolean isValidJSONObject(String key, JSONObject jsonObject) throws JSONException { in isValidJSONObject() argument 275 Iterator<String> keys = (Iterator<String>) jsonObject.keys(); in isValidJSONObject() 278 isValid = isValid && isValidObject(subKey, jsonObject.get(subKey)); in isValidJSONObject() 287 JSONObject jsonObject = jsonArray.getJSONObject(i); in isValidJSONArray() local 288 isValid = isValid && isValidJSONObject("", jsonObject); in isValidJSONArray()
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/ |
D | DeviceBaselineChecker.java | 94 JSONObject jsonObject = new JSONObject(jsonStr); in initializeDeviceBaselineSetters() local 95 JSONArray names = jsonObject.names(); in initializeDeviceBaselineSetters() 98 JSONObject objectValue = jsonObject.getJSONObject(name); in initializeDeviceBaselineSetters()
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | ImageStats.java | 193 JSONObject jsonObject = jsonArray.getJSONObject(i); in parseFileSizes() local 194 String fileName = jsonObject.getString("Name"); in parseFileSizes() 195 Long fileSize = Long.parseLong(jsonObject.getString("Size")); in parseFileSizes()
|
/tools/tradefederation/core/clearcut_client/com/android/tradefed/clearcut/ |
D | ClearcutClient.java | 347 String jsonObject = JsonFormat.printer().preservingProtoFieldNames().print(event); in sendToClearcut() local 348 outputStreamWriter.write(jsonObject.toString()); in sendToClearcut()
|
/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/ |
D | TestMappingsValidation.java | 720 private void mergeModuleInfoByName(JsonObject jsonObject) { in mergeModuleInfoByName() argument 721 mergedModuleInfo.add(jsonObject.get(MODULE_NAME).getAsString(), jsonObject); in mergeModuleInfoByName() local
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 536 JSONObject jsonObject = new JSONObject(jsonString); in parse() local 541 (JSONArray) jsonObject.get(METHOD_JSON_KEY_MAP.get(testMethod)); in parse()
|