Searched refs:jsonObject (Results 1 – 6 of 6) sorted by relevance
217 JSONObject jsonObject = new JSONObject( in testWearEstimateRecordJson() local219 WearEstimateRecord newWearEstimateRecord = new WearEstimateRecord(jsonObject); in testWearEstimateRecordJson()253 JSONObject jsonObject = new JSONObject( in testWearHistoryJson() local255 WearHistory newWearHistory = new WearHistory(jsonObject); in testWearHistoryJson()445 JSONObject jsonObject = new JSONObject( in testUidIoStatEntryJson() local447 IoStatsEntry other = new IoStatsEntry(jsonObject); in testUidIoStatEntryJson()652 JSONObject jsonObject = new JSONObject( in testUidIoStatsDeltaJson() local654 IoStats other = new IoStats(jsonObject); in testUidIoStatsDeltaJson()733 JSONObject jsonObject = new JSONObject( in testLifetimeWriteInfoJson() local735 LifetimeWriteInfo other = new LifetimeWriteInfo(jsonObject); in testLifetimeWriteInfoJson()
49 WearHistory(@NonNull JSONObject jsonObject) throws JSONException { in WearHistory() argument50 final JSONArray wearHistory = jsonObject.getJSONArray("wearHistory"); in WearHistory()65 JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath()))); in fromJson() local66 return new WearHistory(jsonObject); in fromJson()
222 JSONObject jsonObject = (JSONObject) object; in dumpJson() local223 Iterator<String> keys = jsonObject.keys(); in dumpJson()226 dumpJson(key, indent + " ", jsonObject.get(key)); in dumpJson()
98 final JSONObject jsonObject = mTestService.dumpAnomalyDetection(); in testDumpAnomalyDetection_returnAnomalyInfo() local100 assertThat(jsonObject.getInt(AnomalyConfigJobService.KEY_ANOMALY_CONFIG_VERSION)).isEqualTo( in testDumpAnomalyDetection_returnAnomalyInfo()
692 JSONObject jsonObject = jsonArray.getJSONObject(i); in addRandomDataToJson() local693 jsonObject.put(UUID.randomUUID().toString(), UUID.randomUUID().toString()); in addRandomDataToJson()694 res = res.put(jsonObject); in addRandomDataToJson()
431 JSONObject jsonObject = new JSONObject( in loadLifetimeWrites() local434 JSONArray jsonArray = jsonObject.getJSONArray("lifetimeWriteInfo"); in loadLifetimeWrites()