Searched refs:jsonReader (Results 1 – 8 of 8) sorted by relevance
90 private void readIntValues(JsonReader jsonReader) throws IOException { in readIntValues() argument91 while (jsonReader.hasNext()) { in readIntValues()94 jsonReader.beginObject(); in readIntValues()95 while (jsonReader.hasNext()) { in readIntValues()96 String name = jsonReader.nextName(); in readIntValues()97 if (name.equals("id")) id = jsonReader.nextInt(); in readIntValues()98 else if (name.equals("value")) value = jsonReader.nextInt(); in readIntValues()100 jsonReader.endObject(); in readIntValues()105 private void readFloatValues(JsonReader jsonReader) throws IOException { in readFloatValues() argument106 while (jsonReader.hasNext()) { in readFloatValues()[all …]
52 public VehiclePropValue build(JsonReader jsonReader) throws IOException { in build() argument53 DiagnosticJson diagnosticJson = DiagnosticJson.build(jsonReader); in build()
613 try (JsonReader jsonReader = getJsonReader(fd)) {616 putSmsMessagesToProvider(jsonReader);619 putMmsMessagesToProvider(jsonReader);627 void putSmsMessagesToProvider(JsonReader jsonReader) throws IOException {628 jsonReader.beginArray();632 while (jsonReader.hasNext()) {633 ContentValues cv = readSmsValuesFromReader(jsonReader);646 jsonReader.endArray();650 void putMmsMessagesToProvider(JsonReader jsonReader) throws IOException {651 jsonReader.beginArray();[all …]
102 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2FreezeFrameGeneration() local104 jsonReader.beginArray(); in testObd2FreezeFrameGeneration()105 VehiclePropValue vehiclePropValue = diagnosticJsonReader.build(jsonReader); in testObd2FreezeFrameGeneration()109 vehiclePropValue = diagnosticJsonReader.build(jsonReader); in testObd2FreezeFrameGeneration()
81 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2LiveFrameGeneration() local83 VehiclePropValue vehiclePropValue = diagnosticJsonReader.build(jsonReader); in testObd2LiveFrameGeneration()
597 JsonReader jsonReader = new JsonReader(new StringReader(EMPTY_JSON_ARRAY)); in testRestoreSms_NoSms() local600 mTelephonyBackupAgent.putSmsMessagesToProvider(jsonReader); in testRestoreSms_NoSms()610 JsonReader jsonReader = new JsonReader(new StringReader(addRandomDataToJson(mAllSmsJson))); in testRestoreSms_AllSms() local613 mTelephonyBackupAgent.putSmsMessagesToProvider(jsonReader); in testRestoreSms_AllSms()623 JsonReader jsonReader = new JsonReader(new StringReader(EMPTY_JSON_ARRAY)); in testRestoreMms_NoMms() local626 mTelephonyBackupAgent.putMmsMessagesToProvider(jsonReader); in testRestoreMms_NoMms()635 JsonReader jsonReader = new JsonReader(new StringReader(addRandomDataToJson(mAllMmsJson))); in testRestoreMms_AllMms() local638 mTelephonyBackupAgent.putMmsMessagesToProvider(jsonReader); in testRestoreMms_AllMms()648 JsonReader jsonReader = new JsonReader in testRestoreMmsWithAttachment() local652 mTelephonyBackupAgent.putMmsMessagesToProvider(jsonReader); in testRestoreMmsWithAttachment()[all …]
558 JsonReader jsonReader = new JsonReader(stringReader); in testDiagnosticJson() local559 DiagnosticJson diagnosticJson = DiagnosticJson.build(jsonReader); in testDiagnosticJson()
220 JsonReader jsonReader = new JsonReader(stringReader); in testWearEstimateJson() local221 WearEstimate newWearEstimate = new WearEstimate(jsonReader); in testWearEstimateJson()