Home
last modified time | relevance | path

Searched refs:JsonReader (Results 1 – 25 of 31) sorted by relevance

12

/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticJson.java20 import android.util.JsonReader;
90 private void readIntValues(JsonReader jsonReader) throws IOException { in readIntValues()
105 private void readFloatValues(JsonReader jsonReader) throws IOException { in readFloatValues()
120 Builder(JsonReader jsonReader) throws IOException { in Builder()
157 public static DiagnosticJson build(JsonReader jsonReader) throws IOException { in build()
DDiagnosticJsonReader.java24 import android.util.JsonReader;
52 public VehiclePropValue build(JsonReader jsonReader) throws IOException { in build()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java38 import android.util.JsonReader;
586 JsonReader jsonReader = new JsonReader(new StringReader(EMPTY_JSON_ARRAY)); in testRestoreSms_NoSms()
599 JsonReader jsonReader = new JsonReader(new StringReader(addRandomDataToJson(mAllSmsJson))); in testRestoreSms_AllSms()
612 JsonReader jsonReader = new JsonReader(new StringReader(EMPTY_JSON_ARRAY)); in testRestoreMms_NoMms()
624 JsonReader jsonReader = new JsonReader(new StringReader(addRandomDataToJson(mAllMmsJson))); in testRestoreMms_AllMms()
637 JsonReader jsonReader = new JsonReader in testRestoreMmsWithAttachment()
646 JsonReader jsonReader = new JsonReader in testRestoreMmsWithNullBody()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySessionInfo.java21 import android.util.JsonReader;
63 try (JsonReader reader = new JsonReader(new FileReader(mCacheFile))) { in load()
84 private List<PrinterId> loadPrinterIds(JsonReader reader) throws IOException { in loadPrinterIds()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataParser.java20 import android.util.JsonReader;
53 private static WordListMetadata parseOneWordList(final JsonReader reader) in parseOneWordList()
103 JsonReader reader = new JsonReader(input); in parseMetadata()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCertificateStore.java19 import android.util.JsonReader;
106 try (JsonReader reader = new JsonReader(new BufferedReader(new FileReader(mStoreFile)))) { in load()
128 private void loadItem(JsonReader reader) throws IOException { in loadItem()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2LiveFrameGeneratorTest.java25 import android.util.JsonReader;
81 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2LiveFrameGeneration()
DObd2FreezeFrameGeneratorTest.java25 import android.util.JsonReader;
102 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2FreezeFrameGeneration()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DJsonUtils.java19 import android.util.JsonReader;
41 final JsonReader reader = new JsonReader(new StringReader(s)); in jsonStrToList()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java54 import android.util.JsonReader;
531 try (JsonReader reader = new JsonReader( in readPersistedConfig()
552 private void readV1Json(JsonReader reader, in readV1Json()
557 private void readV2Json(JsonReader reader, in readV2Json()
575 try (JsonReader reader = new JsonReader( in readFileSchemaVersion()
604 private void readRestrictionsArray(JsonReader reader, in readRestrictionsArray()
DCarConfigurationService.java65 private final JsonReader mJsonReader;
79 interface JsonReader { interface in CarConfigurationService
92 CarConfigurationService(Context context, JsonReader reader) { in CarConfigurationService()
DUptimeTracker.java19 import android.util.JsonReader;
150 JsonReader reader = new JsonReader(new FileReader(mUptimeFile)); in getHistoricalUptimeLocked()
DCarLocationService.java40 import android.util.JsonReader;
375 JsonReader reader = new JsonReader(new InputStreamReader(fis, "UTF-8")); in readLocationFromCacheFile()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DSavedDiscovery.java20 import android.util.JsonReader;
119 try (JsonReader reader = new JsonReader(new BufferedReader(new FileReader(mCacheFile)))) { in load()
DDiscoveredPrinter.java24 import android.util.JsonReader;
82 public DiscoveredPrinter(JsonReader reader) throws IOException { in DiscoveredPrinter()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java46 import android.util.JsonReader;
612 try (JsonReader jsonReader = getJsonReader(fd)) {
632 void putSmsMessagesToProvider(JsonReader jsonReader) throws IOException {
655 void putMmsMessagesToProvider(JsonReader jsonReader) throws IOException {
790 private ContentValues readSmsValuesFromReader(JsonReader jsonReader)
836 private static Set<String> getRecipients(JsonReader jsonReader) throws IOException {
902 private Mms readMmsFromReader(JsonReader jsonReader) throws IOException {
1051 private static void getMmsAddressesFromReader(JsonReader jsonReader, Mms mms)
1084 private static void getMmsAttachmentsFromReader(JsonReader jsonReader, Mms mms)
1264 private static JsonReader getJsonReader(final FileDescriptor fileDescriptor)
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java33 import android.util.JsonReader;
318 public static CarUxRestrictionsConfiguration readJson(@NonNull JsonReader reader, in readJson()
371 void readJson(JsonReader reader, String name, Builder builder) throws IOException; in readJson()
377 public void readJson(JsonReader reader, String name, Builder builder) throws IOException { in readJson()
397 public void readJson(JsonReader reader, String name, Builder builder) throws IOException { in readJson()
438 private static void readRestrictionsMode(JsonReader reader, String mode, Builder builder) in readRestrictionsMode()
463 private static void readRestrictionsList(JsonReader reader, @CarDrivingState int drivingState, in readRestrictionsList()
475 private static DrivingStateRestrictions readRestrictions(JsonReader reader) throws IOException { in readRestrictions()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java34 import android.util.JsonReader;
473 new JsonReader(new StringReader(v1LegacyJsonFormat)), /* schemaVersion= */ 1); in testJsonSerialization_ReadsV1()
483 new JsonReader(new StringReader("")), unsupportedVersion); in testJsonSerialization_ReadUnsupportedVersion_ThrowsException()
810 try (JsonReader reader = new JsonReader(new InputStreamReader(in))) { in verifyConfigThroughJsonSerialization()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterStraightenRepresentation.java19 import android.util.JsonReader;
129 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation()
DFilterRotateRepresentation.java19 import android.util.JsonReader;
173 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation()
DFilterMirrorRepresentation.java19 import android.util.JsonReader;
195 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation()
DFilterCurvesRepresentation.java3 import android.util.JsonReader;
142 public void deSerializeRepresentation(JsonReader sreader) throws IOException { in deSerializeRepresentation()
DFilterCropRepresentation.java20 import android.util.JsonReader;
163 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation()
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DWearEstimate.java22 import android.util.JsonReader;
91 public WearEstimate(JsonReader in) throws IOException { in WearEstimate()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImagePreset.java22 import android.util.JsonReader;
676 JsonReader reader = new JsonReader(sreader); in readJsonFromString()
697 public boolean readJson(JsonReader sreader) throws IOException { in readJson()

12