Home
last modified time | relevance | path

Searched refs:jsonObject (Results 1 – 6 of 6) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java217 JSONObject jsonObject = new JSONObject( in testWearEstimateRecordJson() local
219 WearEstimateRecord newWearEstimateRecord = new WearEstimateRecord(jsonObject); in testWearEstimateRecordJson()
253 JSONObject jsonObject = new JSONObject( in testWearHistoryJson() local
255 WearHistory newWearHistory = new WearHistory(jsonObject); in testWearHistoryJson()
445 JSONObject jsonObject = new JSONObject( in testUidIoStatEntryJson() local
447 IoStatsEntry other = new IoStatsEntry(jsonObject); in testUidIoStatEntryJson()
652 JSONObject jsonObject = new JSONObject( in testUidIoStatsDeltaJson() local
654 IoStats other = new IoStats(jsonObject); in testUidIoStatsDeltaJson()
733 JSONObject jsonObject = new JSONObject( in testLifetimeWriteInfoJson() local
735 LifetimeWriteInfo other = new LifetimeWriteInfo(jsonObject); in testLifetimeWriteInfoJson()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearHistory.java49 WearHistory(@NonNull JSONObject jsonObject) throws JSONException { in WearHistory() argument
50 final JSONArray wearHistory = jsonObject.getJSONArray("wearHistory"); in WearHistory()
65 JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath()))); in fromJson() local
66 return new WearHistory(jsonObject); in fromJson()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/
DWikidata.java222 JSONObject jsonObject = (JSONObject) object; in dumpJson() local
223 Iterator<String> keys = jsonObject.keys(); in dumpJson()
226 dumpJson(key, indent + " ", jsonObject.get(key)); in dumpJson()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsDumpServiceTest.java98 final JSONObject jsonObject = mTestService.dumpAnomalyDetection(); in testDumpAnomalyDetection_returnAnomalyInfo() local
100 assertThat(jsonObject.getInt(AnomalyConfigJobService.KEY_ANOMALY_CONFIG_VERSION)).isEqualTo( in testDumpAnomalyDetection_returnAnomalyInfo()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java692 JSONObject jsonObject = jsonArray.getJSONObject(i); in addRandomDataToJson() local
693 jsonObject.put(UUID.randomUUID().toString(), UUID.randomUUID().toString()); in addRandomDataToJson()
694 res = res.put(jsonObject); in addRandomDataToJson()
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java431 JSONObject jsonObject = new JSONObject( in loadLifetimeWrites() local
434 JSONArray jsonArray = jsonObject.getJSONArray("lifetimeWriteInfo"); in loadLifetimeWrites()