/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
test_encode_basestring_ascii.py | 2 from json.tests import PyTest, CTest 26 fname = self.json.encoder.encode_basestring_ascii.__name__ 28 result = self.json.encoder.encode_basestring_ascii(input_string)
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
HostAuth.java | 32 import org.json.JSONException; 33 import org.json.JSONObject; 258 final JSONObject json = new JSONObject(); local 259 json.put(HostAuthColumns.PROTOCOL, mProtocol); 260 json.put(HostAuthColumns.ADDRESS, mAddress); 261 json.put(HostAuthColumns.PORT, mPort); 262 json.put(HostAuthColumns.FLAGS, mFlags); 263 json.put(HostAuthColumns.LOGIN, mLogin); 264 json.putOpt(HostAuthColumns.PASSWORD, mPassword); 265 json.putOpt(HostAuthColumns.DOMAIN, mDomain) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/ |
AppRTCDemoActivity.java | 49 import org.json.JSONException; 50 import org.json.JSONObject; 398 // Send |json| to the underlying AppEngine Channel. 399 private void sendMessage(JSONObject json) { 400 appRtcClient.sendMessage(json.toString()); 403 // Put a |key|->|value| mapping in |json|. 404 private static void jsonPut(JSONObject json, String key, Object value) { 406 json.put(key, value); 466 JSONObject json = new JSONObject(); 467 jsonPut(json, "type", "candidate") 558 JSONObject json = new JSONObject(); local 629 JSONObject json = new JSONObject(data); local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
InstallShortcutReceiver.java | 38 import org.json.*; 84 JSONStringer json = new JSONStringer() local 91 json = json.key(ICON_KEY).value( 96 json = json.key(ICON_RESOURCE_NAME_KEY).value(info.iconResource.resourceName); 97 json = json.key(ICON_RESOURCE_PACKAGE_NAME_KEY) 100 json = json.endObject() [all...] |
/external/chromium_org/build/ |
find_isolated_tests.py | 7 hashes, stores final list in JSON document and then removes *.isolated files 19 import json namespace 40 usage='%prog --build-dir <path> --output-json <path>', 46 '--output-json', 47 help='File to dump JSON results into.') 53 parser.error('--output-json option is required') 72 json.dump(result, f)
|
/external/chromium_org/chrome/browser/devtools/ |
devtools_protocol.h | 99 static Notification* ParseNotification(const std::string& json); 102 static Response* ParseResponse(const std::string& json);
|
/external/chromium_org/chrome/browser/resources/memory_internals/ |
memory_internals.css | 35 #json {
|
/external/chromium_org/chrome/browser/ui/app_list/search/people/ |
people_provider.h | 68 void OnPeopleSearchFetched(scoped_ptr<base::DictionaryValue> json); 69 void ProcessPeopleSearchResults(const base::DictionaryValue* json);
|
/external/chromium_org/chrome/browser/web_resource/ |
notification_promo_mobile_ntp.cc | 25 const base::DictionaryValue& json) { 27 json, NotificationPromo::MOBILE_NTP_SYNC_PROMO);
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
github_file_system_test.py | 6 import json namespace 30 self.assertEqual(json.loads(self._ReadLocalFile('expected_list.json')),
|
platform_bundle_test.py | 6 import json namespace 19 'inspected_window.json': ReadFile( 20 CHROME_API, 'devtools', 'inspected_window.json'), 22 '_api_features.json': json.dumps({ 33 '_manifest_features.json': '{}', 34 '_permission_features.json': '{}', 36 'input_ime.json': ReadFile(CHROME_API, 'input_ime.json'), 37 'page_action.json': ReadFile(CHROME_API, 'page_action.json') [all...] |
template_data_source_test.py | 6 import json namespace 59 context = json.loads(_ReadFile('partials', 'input.json'))
|
/external/chromium_org/chrome/test/ispy/server/ |
update_mask_handler.py | 36 self.response.headers['Content-Type'] = 'json/application' 37 self.response.write(json.dumps( 46 self.response.headers['Content-Type'] = 'json/application' 47 self.response.write(json.dumps(
|
/external/chromium_org/google_apis/drive/ |
gdata_wapi_requests.cc | 18 scoped_ptr<ResourceEntry> ParseResourceEntry(const std::string& json) { 19 scoped_ptr<base::Value> value = ParseJson(json);
|
/external/chromium_org/ppapi/tests/ |
create_nonsfi_test_nmf.py | 14 This script simply reformats the command line arguments into NMF JSON format. 19 import json namespace 47 """Build simple map representing nmf json.""" 74 """Writes the nmf to an output file at given path in JSON format.""" 76 json.dump(nmf_map, output, indent=2)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
display-profiler-output | 31 require 'json' 38 $stderr.puts "sudo gem install json" 138 def initialize(json) 139 @codeHash = json["hash"].to_s 140 @inferredName = json["inferredName"].to_s 141 @source = json["sourceCode"].to_s 142 @instructionCount = json["instructionCount"].to_i 144 json["bytecode"].each { 258 def initialize(json) 259 @bytecodeIndex = json["bytecodeIndex"].to_ [all...] |
print-test-ordering | 31 import json namespace 38 parser = optparse.OptionParser(usage='%prog [stats.json]') 39 parser.description = "Prints out lists of tests run on each worker as per the stats.json file." 46 stats_path = host.filesystem.join(host.port_factory.get().results_directory(), 'stats.json') 49 stats_trie = json.load(fp)
|
/external/chromium_org/third_party/polymer/ |
PRESUBMIT.py | 12 import json namespace 18 bower_json_path = os_path.join(cwd, 'bower.json') 28 set(json.load(open(bower_json_path))['dependencies'].keys()) 41 'Found components that are not listed in bower.json.',
|
extract_inline_scripts.sh | 45 vulcanize -o "$html_without_js" --csp --config vulcanize_config.json \
|
/external/chromium_org/tools/json_schema_compiler/ |
json_parse.py | 5 import json namespace 22 # Successfully imported, so we're running Python >= 2.7, and json.loads 25 return json.loads(json_comment_eater.Nom(json_str), 29 # Failed to import, so we're running Python < 2.7, and json.loads doesn't 33 # let json-schema-compiler do its thing.
|
/external/chromium_org/tools/ |
omahaproxy.py | 12 import json namespace 19 URL = 'https://omahaproxy.appspot.com/json' 24 data = json.load(urllib.urlopen(URL))
|
/external/chromium_org/tools/perf/metrics/ |
v8_object_stats.py | 5 import json namespace 213 """ % json.dumps(counters))
|
/external/chromium_org/tools/telemetry/telemetry/results/ |
chart_json_output_formatter.py | 7 import json namespace 14 """Produces a dict for serialization to Chart JSON format from raw values. 16 Chart JSON is a transformation of the basic Telemetry JSON format that 20 object) and processes them into a dict which can be serialized using the json 31 A Chart JSON dict corresponding to the given data. 61 # TODO(eakuefner): Transition this to translate Telemetry JSON. 68 json.dump(_ResultsAsChartDict(
|