Home
last modified time | relevance | path

Searched refs:jsonReader (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/
DDiagnosticJson.java92 private void readIntValues(JsonReader jsonReader) throws IOException { in readIntValues() argument
93 while (jsonReader.hasNext()) { in readIntValues()
96 jsonReader.beginObject(); in readIntValues()
97 while (jsonReader.hasNext()) { in readIntValues()
98 String name = jsonReader.nextName(); in readIntValues()
100 id = jsonReader.nextInt(); in readIntValues()
102 value = jsonReader.nextInt(); in readIntValues()
105 jsonReader.endObject(); in readIntValues()
110 private void readFloatValues(JsonReader jsonReader) throws IOException { in readFloatValues() argument
111 while (jsonReader.hasNext()) { in readFloatValues()
[all …]
DDiagnosticJsonReader.java53 public VehiclePropValue build(JsonReader jsonReader) throws IOException { in build() argument
54 DiagnosticJson diagnosticJson = DiagnosticJson.build(jsonReader); in build()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java758 try (JsonReader jsonReader = getJsonReader(fd)) {
761 putSmsMessagesToProvider(jsonReader);
764 putMmsMessagesToProvider(jsonReader);
772 void putSmsMessagesToProvider(JsonReader jsonReader) throws IOException {
773 jsonReader.beginArray();
778 while (jsonReader.hasNext()) {
779 ContentValues cv = readSmsValuesFromReader(jsonReader);
798 jsonReader.endArray();
836 void putMmsMessagesToProvider(JsonReader jsonReader) throws IOException {
837 jsonReader.beginArray();
[all …]
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/utils/
DIgnoredV4L2Nodes.java28 JsonReader jsonReader = new JsonReader(new InputStreamReader(in))) { in getIgnoredNodes()
29 jsonReader.beginArray(); in getIgnoredNodes()
30 while (jsonReader.hasNext()) { in getIgnoredNodes()
31 String node = jsonReader.nextString(); in getIgnoredNodes()
37 jsonReader.endArray(); in getIgnoredNodes()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DDiagnosticJsonReaderTest.java53 JsonReader jsonReader = buildEmptyFrameJsonReader(FRAME_TYPE_FREEZE, ANY_TIMESTAMP_VALUE); in testBuild_freezeFrame() local
56 VehiclePropValue actual = diagnosticJsonReader.build(jsonReader); in testBuild_freezeFrame()
64 JsonReader jsonReader = buildEmptyFrameJsonReader(FRAME_TYPE_LIVE, ANY_TIMESTAMP_VALUE); in testBuild_liveFrame() local
67 VehiclePropValue actual = diagnosticJsonReader.build(jsonReader); in testBuild_liveFrame()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2FreezeFrameGeneratorTest.java89 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2FreezeFrameGeneration() local
91 jsonReader.beginArray(); in testObd2FreezeFrameGeneration()
92 VehiclePropValue vehiclePropValue = diagnosticJsonReader.build(jsonReader); in testObd2FreezeFrameGeneration()
96 vehiclePropValue = diagnosticJsonReader.build(jsonReader); in testObd2FreezeFrameGeneration()
DObd2LiveFrameGeneratorTest.java68 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2LiveFrameGeneration() local
70 VehiclePropValue vehiclePropValue = diagnosticJsonReader.build(jsonReader); in testObd2LiveFrameGeneration()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DVendorCameraPrefs.java256 JsonReader jsonReader = new JsonReader(new InputStreamReader(in))) {
257 jsonReader.beginArray();
258 while (jsonReader.hasNext()) {
259 String node = jsonReader.nextString();
262 jsonReader.endArray();
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java638 JsonReader jsonReader = new JsonReader(new StringReader(EMPTY_JSON_ARRAY)); in testRestoreSms_NoSms() local
641 mTelephonyBackupAgent.putSmsMessagesToProvider(jsonReader); in testRestoreSms_NoSms()
651 JsonReader jsonReader = new JsonReader(new StringReader(addRandomDataToJson(mAllSmsJson))); in testRestoreSms_AllSms() local
654 mTelephonyBackupAgent.putSmsMessagesToProvider(jsonReader); in testRestoreSms_AllSms()
666 JsonReader jsonReader = new JsonReader(new StringReader(addRandomDataToJson(mAllSmsJson))); in testRestoreSms_WithException() local
684 mTelephonyBackupAgent.putSmsMessagesToProvider(jsonReader); in testRestoreSms_WithException()
697 JsonReader jsonReader = new JsonReader(new StringReader(EMPTY_JSON_ARRAY)); in testRestoreMms_NoMms() local
703 agent.putMmsMessagesToProvider(jsonReader); in testRestoreMms_NoMms()
719 JsonReader jsonReader = new JsonReader(new StringReader(addRandomDataToJson(mAllMmsJson))); in testRestoreMms_AllMms() local
725 agent.putMmsMessagesToProvider(jsonReader); in testRestoreMms_AllMms()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java221 JsonReader jsonReader = new JsonReader(stringReader); in testWearEstimateJson() local
222 WearEstimate newWearEstimate = new WearEstimate(jsonReader); in testWearEstimateJson()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java731 JsonReader jsonReader = new JsonReader(stringReader); in testDiagnosticJson() local
732 DiagnosticJson diagnosticJson = DiagnosticJson.build(jsonReader); in testDiagnosticJson()