Home
last modified time | relevance | path

Searched refs:json (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/
DUpdateConfig.java22 import org.json.JSONArray;
23 import org.json.JSONException;
24 import org.json.JSONObject;
54 public static UpdateConfig fromJson(String json) throws JSONException { in fromJson() argument
57 JSONObject o = new JSONObject(json); in fromJson()
94 c.mRawJson = json; in fromJson()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
DUpdateConfigs.java71 String json = new String(Files.readAllBytes(f.toPath()), in getUpdateConfigs() local
73 configs.add(UpdateConfig.fromJson(json)); in getUpdateConfigs()
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/
DUpdateConfigTest.java102 String json = "{" in getUpdatePackageFile_throwsErrorIfNotAFile() local
108 UpdateConfig config = UpdateConfig.fromJson(json); in getUpdatePackageFile_throwsErrorIfNotAFile()
/bootable/recovery/updater_sample/tools/
Dgen_update_config.py30 import json
120 json.dump(self.config, out_file, indent=4, separators=(',', ': '), sort_keys=True)
/bootable/recovery/updater_sample/
DREADME.md25 at `res/raw/sample.json`.
211 - [x] Add `UpdateConfig` for working with json config files