/frameworks/base/services/core/java/com/android/server/storage/ |
H A D | DiskStatsFileLogger.java | 27 import org.json.JSONArray; 28 import org.json.JSONException; 29 import org.json.JSONObject; 98 JSONObject json = new JSONObject(); 100 json.put(LAST_QUERY_TIMESTAMP_KEY, System.currentTimeMillis()); 101 json.put(PHOTOS_KEY, mResult.imagesSize); 102 json.put(VIDEOS_KEY, mResult.videosSize); 103 json.put(AUDIO_KEY, mResult.audioSize); 104 json.put(DOWNLOADS_KEY, mDownloadsSize); 105 json 116 addAppsToJson(JSONObject json) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
H A D | DiskStatsLoggingServiceTest.java | 52 import org.json.JSONObject; 103 JSONObject json = getJsonOutput(); 104 assertThat(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(0L); 105 assertThat(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(0L); 106 assertThat(json.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(0L); 107 assertThat(json.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)).isEqualTo(0L); 108 assertThat(json.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); 109 assertThat(json.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); 110 assertThat(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)).isEqualTo(0L); 111 assertThat(json [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | DiskStatsService.java | 43 import org.json.JSONArray; 44 import org.json.JSONException; 45 import org.json.JSONObject; 59 private static final String DISKSTATS_DUMP_FILE = "/data/system/diskstats_cache.json"; 212 JSONObject json = new JSONObject(jsonString); 214 pw.println(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)); 216 pw.println(json.getLong(DiskStatsFileLogger.APP_DATA_SIZE_AGG_KEY)); 218 pw.println(json.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)); 220 pw.println(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)); 222 pw.println(json [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | AbstractAssetMatcher.java | 19 import org.json.JSONException;
|
H A D | AssetMatcherFactory.java | 19 import org.json.JSONException; 20 import org.json.JSONObject;
|
H A D | JsonParser.java | 22 import org.json.JSONArray; 23 import org.json.JSONException; 24 import org.json.JSONObject;
|
H A D | AbstractAsset.java | 21 import org.json.JSONException;
|
H A D | AssetFactory.java | 19 import org.json.JSONObject;
|
H A D | StatementParser.java | 21 import org.json.JSONArray; 22 import org.json.JSONException; 23 import org.json.JSONObject;
|
H A D | AndroidAppAsset.java | 19 import org.json.JSONArray; 20 import org.json.JSONException; 21 import org.json.JSONObject;
|
/frameworks/base/cmds/bootanimation/iot/ |
H A D | BootParameters.cpp | 26 #include <base/json/json_parser.h> 27 #include <base/json/json_reader.h> 28 #include <base/json/json_value_converter.h> 41 // Brightness and volume are stored as integer strings in next_boot.json. 47 constexpr const char* kNextBootFile = "/data/misc/bootanimation/next_boot.json"; 48 constexpr const char* kLastBootFile = "/data/misc/bootanimation/last_boot.json"; 51 // rename() will fail if next_boot.json doesn't exist, so delete 52 // last_boot.json manually first. 64 // Make next_boot.json writable to everyone so DeviceManagementService 101 std::unique_ptr<Value> json local [all...] |
H A D | BootParameters.h | 23 #include <base/json/json_value_converter.h> 47 // Raw boot saved_parameters loaded from .json.
|
/frameworks/native/vulkan/vkjson/ |
H A D | vkjson_unittest.cc | 66 std::string json = VkJsonInstanceToJson(instance); local 67 std::cout << json << std::endl; 70 result = VkJsonInstanceFromJson(json, &instance2, &errors); 85 json = VkJsonImageFormatPropertiesToJson(props); 87 result = VkJsonImageFormatPropertiesFromJson(json, &props2, &errors);
|
H A D | vkjson.h | 127 bool VkJsonInstanceFromJson(const std::string& json, 136 bool VkJsonDeviceFromJson(const std::string& json, 142 bool VkJsonImageFormatPropertiesFromJson(const std::string& json, 156 inline bool VkJsonAllPropertiesFromJson(const std::string& json, argument 159 return VkJsonDeviceFromJson(json, properties, errors);
|
H A D | vkjson_info.cc | 132 output_file.append(".json"); 147 std::string json = out_device ? VkJsonDeviceToJson(*out_device) local 149 fwrite(json.data(), 1, json.size(), file);
|
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/model/ |
H A D | MusicProvider.java | 23 import org.json.JSONArray; 24 import org.json.JSONException; 25 import org.json.JSONObject; 50 "http://storage.googleapis.com/automotive-media/music.json"; 252 private MediaMetadataCompat buildFromJSON(JSONObject json, String basePath) throws JSONException { argument 253 String title = json.getString(JSON_TITLE); 254 String album = json.getString(JSON_ALBUM); 255 String artist = json.getString(JSON_ARTIST); 256 String genre = json.getString(JSON_GENRE); 257 String source = json [all...] |
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/model/ |
H A D | MusicProvider.java | 23 import org.json.JSONArray; 24 import org.json.JSONException; 25 import org.json.JSONObject; 50 "http://storage.googleapis.com/automotive-media/music.json"; 252 private MediaMetadataCompat buildFromJSON(JSONObject json, String basePath) throws JSONException { argument 253 String title = json.getString(JSON_TITLE); 254 String album = json.getString(JSON_ALBUM); 255 String artist = json.getString(JSON_ARTIST); 256 String genre = json.getString(JSON_GENRE); 257 String source = json [all...] |
/frameworks/base/tools/bit/ |
H A D | make.cpp | 23 #include <json/reader.h> 24 #include <json/value.h> 105 get_values(const Json::Value& json, const string& name, vector<string>* result) argument 109 const Json::Value& value = json.get(name, nullValue); 126 string filename(string(buildOut + "/target/product/") + device + "/module-info.json"); 137 Json::Value json; local 139 if (!reader.parse(stream, json)) { 140 json_error(filename, "can't parse json format", quiet); 144 if (!json.isObject()) { 149 vector<string> names = json [all...] |
/frameworks/base/services/core/java/com/android/server/updates/ |
H A D | CertificateTransparencyLogInstallReceiver.java | 35 import org.json.JSONArray; 36 import org.json.JSONException; 37 import org.json.JSONObject; 95 JSONObject json = new JSONObject(new String(content, StandardCharsets.UTF_8)); 96 JSONArray logs = json.getJSONArray("logs");
|
/frameworks/native/services/surfaceflinger/ |
H A D | GpuService.cpp | 115 std::string json = VkJsonInstanceToJson(VkJsonGetInstance()); local 116 fwrite(json.data(), 1, json.size(), out);
|
/frameworks/support/jetifier/jetifier/source-transformer/ |
H A D | rewritePackageNames.py | 10 import json namespace 67 parsed = json.loads("".join(nonCommentLines)) 71 self.json = parsedJson 75 for rule in self.json["rules"]:
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | ShortcutPackageItem.java | 25 import org.json.JSONException; 26 import org.json.JSONObject;
|
/frameworks/base/libs/hwui/tests/scripts/ |
H A D | process_systrace.py | 3 import codecs, httplib, json, os, urllib, shutil, subprocess, sys, argparse namespace 13 parser.add_argument('--output_file', dest='outfile', default=os.path.join(os.getcwd(), 'mapper_output.json'),
|
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | MusicPlayerFragment.java | 227 String json = inputStreamToString( 229 MusicItem[] musicItems = new Gson().fromJson(json, MusicItem[].class); 250 String json = new String(bytes); 251 return json;
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | MusicPlayerFragment.java | 227 String json = inputStreamToString( 229 MusicItem[] musicItems = new Gson().fromJson(json, MusicItem[].class); 250 String json = new String(bytes); 251 return json;
|