/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
H A D | HostInfo.java | 7 import org.json.JSONArray; 8 import org.json.JSONException; 9 import org.json.JSONObject; 40 public static HostInfo create(JSONObject json) throws JSONException { argument 41 assert json != null; 44 JSONArray jsonPatterns = json.optJSONArray("tokenUrlPatterns"); 55 json.getString("hostName"), 56 json.getString("hostId"), 57 json.optString("jabberId"), 58 json [all...] |
/external/chromium_org/chrome/browser/resources/print_preview/data/ |
H A D | cloud_parsers.js | 58 * @param {!Object} json Object that represents a Google Cloud Print search or 66 CloudDestinationParser.parse = function(json, origin, account) { 67 if (!json.hasOwnProperty(CloudDestinationParser.Field_.ID) || 68 !json.hasOwnProperty(CloudDestinationParser.Field_.TYPE) || 69 !json.hasOwnProperty(CloudDestinationParser.Field_.DISPLAY_NAME)) { 72 var id = json[CloudDestinationParser.Field_.ID]; 73 var tags = json[CloudDestinationParser.Field_.TAGS] || []; 75 json[CloudDestinationParser.Field_.CONNECTION_STATUS] || 82 json[CloudDestinationParser.Field_.LAST_ACCESS], 10) || Date.now(), 84 json[CloudDestinationParse [all...] |
/external/chromium_org/tools/sheriffing/ |
H A D | buildinfo.js | 6 function BuildInfo(json) { 9 if (json.currentStep) { 10 statusText = 'running ' + json.currentStep.name; 12 statusText = json.text.join(' '); 33 var failures = (state == 'failed') ? this.parseFailures(json) : null; 35 this.number = json.number; 43 BuildInfo.prototype.parseFailures = function(json) { 44 var revisionRange = this.getRevisionRange(json); 48 var botName = json.builderName; 49 for (var i = 0; i < json [all...] |
/external/chromium_org/base/debug/ |
H A D | trace_event_argument_unittest.cc | 17 std::string json; local 18 value->AppendAsTraceFormat(&json); 20 json); 43 std::string json; local 44 value->AppendAsTraceFormat(&json); 49 json);
|
/external/chromium_org/tools/telemetry/telemetry/timeline/ |
H A D | tracing_timeline_data.py | 5 import json namespace 18 json.dump(self._event_data, f, indent=4) 20 json.dump({'traceEvents' : self._event_data}, f, indent=4)
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/ |
H A D | SuggestionAnswerTest.java | 14 String json = "} malformed json {"; 15 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json); 21 String json = ""; 22 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json); 28 String json = 32 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json); 38 String json = 43 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json); 49 String json [all...] |
/external/chromium_org/components/cloud_devices/common/ |
H A D | cloud_device_description_consts.h | 12 namespace json { namespace in namespace:cloud_devices 21 } // namespace json
|
H A D | cloud_device_description.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 24 root_->SetString(json::kVersion, json::kVersion10); 34 root_->GetString(json::kVersion, &version); 35 return version == json::kVersion10; 38 bool CloudDeviceDescription::InitFromString(const std::string& json) { argument 39 scoped_ptr<base::Value> parsed(base::JSONReader::Read(json)); 48 std::string json; local 50 root_.get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
H A D | JSONParser.h | 41 PassRefPtr<JSONValue> parseJSON(const String& json);
|
/external/chromium_org/v8/test/mjsunit/ |
H A D | mirror-boolean.js | 35 var json = JSON.stringify(serializer.serializeValue(mirror)); 51 var fromJSON = eval('(' + json + ')'); 52 assertEquals('boolean', fromJSON.type, json); 53 assertEquals(b, fromJSON.value, json);
|
/external/chromium_org/cloud_print/gcp20/prototype/ |
H A D | printer_state.cc | 8 #include "base/json/json_reader.h" 9 #include "base/json/json_writer.h" 45 base::DictionaryValue json; local 47 json.SetBoolean(kRegistered, true); 48 json.SetString(kUser, state.user); 49 json.SetString(kDeviceId, state.device_id); 50 json.SetString(kRefreshToken, state.refresh_token); 51 json.SetString(kXmppJid, state.xmpp_jid); 52 json.SetString(kAccessToken, state.access_token); 53 json 89 base::DictionaryValue* json = NULL; local [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | redirector_test.py | 6 import json namespace 18 'redirects.json': json.dumps({ 25 'redirects.json': json.dumps({ 32 'redirects.json': json.dumps({ 46 'redirects.json': json.dumps({ 52 'redirects.json' [all...] |
/external/chromium_org/tools/json_schema_compiler/ |
H A D | model.py | 31 json, 35 """Add a namespace's json to the model and returns the namespace. 37 namespace = Namespace(json, 66 files such as chrome/common/extensions/api/_permission_features.json. 104 json, 108 self.name = json['namespace'] 109 if 'description' not in json: 113 json['description'] = '' 114 self.description = json['description'] 115 self.deprecated = json [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
H A D | json_results_generator_unittest.py | 29 import json namespace 55 json = "['contents']" 56 self.assertEqual(json_results_generator.strip_json_wrapper(json_results_generator._JSON_PREFIX + json + json_results_generator._JSON_SUFFIX), json) 57 self.assertEqual(json_results_generator.strip_json_wrapper(json), json) 82 self.assertEqual(json.dumps(trie), json.dumps(expected_trie))
|
/external/chromium_org/third_party/libaddressinput/chromium/tools/ |
H A D | require_fields.py | 6 import json namespace 41 data = json.load(urllib.urlopen(url))
|
/external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/ |
H A D | monsoon_power_monitor_unittest.py | 5 import json namespace 18 json.dumps(data))
|
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/ |
H A D | AddressVerificationData.java | 48 String json = mPropertiesMap.get(key); 49 if (json != null && isValidKey(key)) { 50 return createNodeData(json); 80 AddressVerificationNodeData createNodeData(String json) { argument 82 json = json.substring(1, json.length() - 1); 90 Matcher sm = SEPARATOR_PATTERN.matcher(json); 92 while (pos < json.length()) { 95 pair = json [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/common/ |
H A D | nav_braille.js | 63 * Creates a NavBraille from its serialized json form as created 65 * @param {!Object} json the serialized json object. 68 cvox.NavBraille.fromJson = function(json) { 69 if (typeof json.startIndex !== 'number' || 70 typeof json.endIndex !== 'number') { 71 throw 'Invalid start or end index in serialized NavBraille: ' + json; 74 text: cvox.Spannable.fromJson(json.spannable), 75 startIndex: json.startIndex, 76 endIndex: json [all...] |
/external/chromium_org/base/json/ |
H A D | json_writer.h | 32 // Return a slightly nicer formatted json string (pads with whitespace to 37 // Given a root node, generates a JSON string and puts it into |json|. 38 // TODO(tc): Should we generate json if it would be invalid json (e.g., 41 static bool Write(const Value* const node, std::string* json); 46 std::string* json); 49 JSONWriter(int options, std::string* json);
|
H A D | json_reader.h | 95 // Reads and parses |json|, returning a Value. The caller owns the returned 96 // instance. If |json| is not a properly formed JSON string, returns NULL. 97 static Value* Read(const StringPiece& json); 99 // Reads and parses |json|, returning a Value owned by the caller. The 102 static Value* Read(const StringPiece& json, int options); 104 // Reads and parses |json| like Read(). |error_code_out| and |error_msg_out| 108 static Value* ReadAndReturnError(const StringPiece& json, 118 Value* ReadToValue(const std::string& json);
|
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/ |
H A D | generate_supported_css.py | 31 import simplejson as json namespace 33 import json namespace 55 f.write("WebInspector.CSSMetadata.initializeWithSupportedProperties(%s);" % json.dumps(properties))
|
/external/chromium_org/tools/clang/blink_gc_plugin/tests/ |
H A D | test.sh | 34 local json="${input%cpp}graph.json" 35 if [ -f "$json" ]; then 36 output="$(python ../process-graph.py -c ${json} 2>&1)"
|
/external/chromium_org/cc/test/ |
H A D | layer_tree_json_parser.h | 17 scoped_refptr<Layer> ParseTreeFromJson(std::string json,
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
H A D | TracedValueTest.cpp | 22 String json = value->asTraceFormat(); local 23 EXPECT_EQ("{\"int\":2014,\"double\":0,\"bool\":true,\"string\":\"string\"}", json); 47 String json = value->asTraceFormat(); local 48 EXPECT_EQ("{\"i0\":2014,\"dict1\":{\"i1\":2014,\"dict2\":{\"b2\":false},\"s1\":\"foo\"},\"d0\":0,\"b0\":true,\"a1\":[1,true,{\"i2\":3}],\"s0\":\"foo\"}", json);
|
/external/chromium_org/third_party/libaddressinput/chromium/ |
H A D | fallback_data_store_unittest.cc | 12 #include "third_party/libaddressinput/src/cpp/src/util/json.h" 31 Json json; local 32 ASSERT_TRUE(json.ParseObject(data)); 36 EXPECT_FALSE(json.GetStringValueForKey("data/US", &value)); 39 const std::vector<const Json*>& sub_dicts = json.GetSubDictionaries();
|