/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...] |
/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/native/vulkan/vkjson/ |
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);
|
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.cc | 36 #include <json/json.h> 1080 template <typename T> bool VkTypeFromJson(const std::string& json, argument 1086 reader.parse(json, object, false); 1100 bool VkJsonInstanceFromJson(const std::string& json, argument 1103 return VkTypeFromJson(json, instance, errors); 1110 bool VkJsonDeviceFromJson(const std::string& json, argument 1113 return VkTypeFromJson(json, device, errors); 1121 bool VkJsonImageFormatPropertiesFromJson(const std::string& json, argument 1124 return VkTypeFromJson(json, propertie [all...] |
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);
|
/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/native/services/surfaceflinger/ |
H A D | GpuService.cpp | 115 std::string json = VkJsonInstanceToJson(VkJsonGetInstance()); local 116 fwrite(json.data(), 1, json.size(), out);
|
/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/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/rs/rsov/compiler/spirit/ |
H A D | generate.py | 19 import json namespace 482 grammar = json.load(grammar_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...] |