/external/chromium_org/third_party/WebKit/Source/devtools/scripts/ |
devtools_file_hashes.py | 34 import json namespace 36 import simplejson as json namespace 42 json.dump(hashes, hashes_file, indent=4, separators=(",", ": ")) 51 hashes = json.load(hashes_file)
|
/external/chromium_org/third_party/mesa/src/src/gallium/docs/ |
Makefile | 15 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest 22 @echo " json to make JSON files" 48 json: 49 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json 51 @echo "Build finished; now you can process the JSON files."
|
/external/chromium_org/third_party/skia/tools/bug_chomper/ |
run_server.sh | 18 if [[ ! -f oauth_client_secret.json ]]; then 19 gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json .
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-369450.js | 10 var json = JSON.stringify(v); variable 11 assertEquals("[]", json);
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/ |
HTTPTokener.java | 1 package com.google.polo.json; 4 Copyright (c) 2002 JSON.org 30 * @author JSON.org
|
JSONException.java | 1 package com.google.polo.json; 4 * The JSONException is thrown by the JSON.org classes then things are amiss. 5 * @author JSON.org
|
/external/mesa3d/src/gallium/docs/ |
Makefile | 15 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest 22 @echo " json to make JSON files" 48 json: 49 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json 51 @echo "Build finished; now you can process the JSON files."
|
/external/skia/tools/bug_chomper/ |
run_server.sh | 18 if [[ ! -f oauth_client_secret.json ]]; then 19 gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json .
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
JsonBackedSuggestionExtras.java | 18 import org.json.JSONException; 19 import org.json.JSONObject; 36 public JsonBackedSuggestionExtras(String json) throws JSONException { 37 mExtras = new JSONObject(json); 62 Log.w(TAG, "Could not extract JSON extra", e);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
test_default.py | 1 from json.tests import PyTest, CTest
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
test_default.py | 1 from json.tests import PyTest, CTest
|
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/ |
main.py | 89 logging.debug('Attempting to JSON parse: %s' % response_text) 90 json = simplejson.loads(response_text) 91 logging.debug('Got license server response: %s' % json) 93 logging.exception('Could not parse response as JSON: %s' % response_text) 101 if json.has_key('error'): 103 license['message'] = json['error']['message'] 104 elif json['result'] == 'YES' and json['accessLevel'] in VALID_ACCESS_LEVELS: 105 license['access'] = json['accessLevel']
|
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
Recipe.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 63 public static Recipe fromJson(Context context, JSONObject json) { 66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE); 67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY); 68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) { 69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE); 71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS); 78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS) [all...] |
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
Recipe.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 63 public static Recipe fromJson(Context context, JSONObject json) { 66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE); 67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY); 68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) { 69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE); 71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS); 78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS) [all...] |
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
Recipe.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 63 public static Recipe fromJson(Context context, JSONObject json) { 66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE); 67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY); 68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) { 69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE); 71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS); 78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS) [all...] |
/external/chromium_org/base/json/ |
json_writer.cc | 5 #include "base/json/json_writer.h" 9 #include "base/json/string_escape.h" 24 bool JSONWriter::Write(const Value* const node, std::string* json) { 25 return WriteWithOptions(node, 0, json); 30 std::string* json) { 31 json->clear(); 33 json->reserve(1024); 35 JSONWriter writer(options, json); 39 json->append(kPrettyPrintLineEnding); 44 JSONWriter::JSONWriter(int options, std::string* json) [all...] |
/external/chromium_org/third_party/WebKit/Tools/GardeningServer/ |
alerts.py | 7 import json namespace 17 class DateTimeEncoder(json.JSONEncoder): 22 return json.JSONEncoder.default(self, obj) 32 self.response.headers['Content-Type'] = 'application/json' 41 return json.dumps(alerts, cls=DateTimeEncoder, indent=1) 58 alerts = json.loads(self.request.get('content')) 60 warning = 'content field was not JSON'
|
/external/chromium_org/third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js/ |
dom_distiller_json_converter.h | 15 namespace json { namespace in namespace:dom_distiller::proto 18 static bool ReadFromValue(const base::Value* json, dom_distiller::proto::DistilledContent* message) { 20 if (!json->GetAsDictionary(&dict)) goto error; 45 static bool ReadFromValue(const base::Value* json, dom_distiller::proto::PaginationInfo* message) { 47 if (!json->GetAsDictionary(&dict)) goto error; 92 static bool ReadFromValue(const base::Value* json, dom_distiller::proto::MarkupArticle* message) { 94 if (!json->GetAsDictionary(&dict)) goto error; 167 static bool ReadFromValue(const base::Value* json, dom_distiller::proto::MarkupImage* message) { 169 if (!json->GetAsDictionary(&dict)) goto error; 244 static bool ReadFromValue(const base::Value* json, dom_distiller::proto::MarkupInfo* message) [all...] |
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
BluetoothMapEventReport.java | 20 import org.json.JSONException; 21 import org.json.JSONObject; 169 JSONObject json = new JSONObject(); local 172 json.put("type", mType); 173 json.put("handle", mHandle); 174 json.put("folder", mFolder); 175 json.put("old_folder", mOldFolder); 176 json.put("msg_type", mMsgType); 181 return json.toString();
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/ |
MusicProvider.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 41 * Utility class to get a list of MusicTrack's based on a server-side JSON 48 private static final String CATALOG_URL = "http://storage.googleapis.com/automotive-media/music.json"; 220 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { 221 String title = json.getString(JSON_TITLE); 222 String album = json.getString(JSON_ALBUM); 223 String artist = json.getString(JSON_ARTIST); 224 String genre = json.getString(JSON_GENRE) [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/ |
MusicProvider.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 41 * Utility class to get a list of MusicTrack's based on a server-side JSON 48 private static final String CATALOG_URL = "http://storage.googleapis.com/automotive-media/music.json"; 220 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { 221 String title = json.getString(JSON_TITLE); 222 String album = json.getString(JSON_ALBUM); 223 String artist = json.getString(JSON_ARTIST); 224 String genre = json.getString(JSON_GENRE) [all...] |
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/ |
MusicProvider.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 41 * Utility class to get a list of MusicTrack's based on a server-side JSON 48 private static final String CATALOG_URL = "http://storage.googleapis.com/automotive-media/music.json"; 220 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { 221 String title = json.getString(JSON_TITLE); 222 String album = json.getString(JSON_ALBUM); 223 String artist = json.getString(JSON_ARTIST); 224 String genre = json.getString(JSON_GENRE) [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/buildbot/ |
utils.js | 12 if (responseType == "json") 13 // WebKit doesn't handle xhr.responseType = "json" as of Chrome 25. 22 responseType == "json" ? JSON.parse(xhr.response) : xhr.response;
|
/external/chromium_org/third_party/libaddressinput/chromium/ |
json.cc | 5 #include "third_party/libaddressinput/src/cpp/src/util/json.h" 11 #include "base/json/json_reader.h" 22 // Returns |json| parsed into a JSON dictionary. Sets |parser_error| to true if 24 ::scoped_ptr<const base::DictionaryValue> Parse(const std::string& json, 29 // |json| is converted to a |c_str()| here because rapidjson and other parts 31 ::scoped_ptr<const base::Value> parsed(base::JSONReader::Read(json.c_str())); 44 // Implementation of JSON parser for libaddressinput using JSON parser in 46 class Json::JsonImpl [all...] |
/packages/experimental/procstatlog/ |
procstatreport.py | 19 import json namespace 201 "id_js": json.write("total_cpu"), 203 "filename_js": json.write(files_url + "/total_cpu.csv"), 204 "options_js": json.write({ 243 "id_js": json.write("cpu_speed"), 245 "filename_js": json.write(files_url + "/cpu_speed.csv"), 246 "options_js": json.write({ 275 "id_js": json.write("context_switches"), 277 "filename_js": json.write(files_url + "/context_switches.csv"), 278 "options_js": json.write( [all...] |