HomeSort by relevance Sort by last modified time
    Searched refs:json (Results 126 - 150 of 1255) sorted by null

1 2 3 4 56 7 8 91011>>

  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
RawContact.java 21 import org.json.JSONObject;
22 import org.json.JSONException;
136 * Convert the RawContact object into a JSON string. From the
138 * @return a JSON string representation of the object
141 JSONObject json = new JSONObject(); local
145 json.put("f", mFirstName);
148 json.put("l", mLastName);
151 json.put("m", mCellPhone);
154 json.put("o", mOfficePhone);
157 json.put("h", mHomePhone)
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
Credential.java 15 import org.json.JSONException;
16 import org.json.JSONObject;
174 final JSONObject json = new JSONObject(); local
175 json.put(PROVIDER_COLUMN, mProviderId);
176 json.putOpt(ACCESS_TOKEN_COLUMN, mAccessToken);
177 json.putOpt(REFRESH_TOKEN_COLUMN, mRefreshToken);
178 json.put(EXPIRATION_COLUMN, mExpiration);
179 return json;
186 protected static Credential fromJson(final JSONObject json) {
189 c.mProviderId = json.getString(PROVIDER_COLUMN)
    [all...]
  /developers/build/prebuilts/gradle/Quiz/Application/src/main/java/com/example/android/wearable/quiz/
JsonUtils.java 21 import org.json.JSONException;
22 import org.json.JSONObject;
  /developers/samples/android/wearable/wear/Quiz/Application/src/main/java/com/example/android/wearable/quiz/
JsonUtils.java 21 import org.json.JSONException;
22 import org.json.JSONObject;
  /development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
JsonUtils.java 21 import org.json.JSONException;
22 import org.json.JSONObject;
  /external/chromium_org/chrome/browser/resources/chromeos/chromevox/tools/
generate_test_messages.py 7 '''Generates test_messages.js from an extension message json file.'''
23 cvox.TestMessages = %(json)s;
39 json = in_file.read().strip()
41 out_file.write(_JS_TEMPLATE % {'in_file': in_file_name, 'json': json})
  /external/chromium_org/chrome/browser/ui/app_list/search/webstore/
webstore_provider.h 46 void OnWebstoreSearchFetched(scoped_ptr<base::DictionaryValue> json);
47 void ProcessWebstoreSearchResults(const base::DictionaryValue* json);
  /external/chromium_org/components/omnibox/
search_suggestion_parser_unittest.cc 7 #include "base/json/json_reader.h"
15 scoped_ptr<base::DictionaryValue> AsDictionary(const std::string& json) {
16 base::Value* value = base::JSONReader::Read(json);
  /external/chromium_org/third_party/WebKit/Source/devtools/scripts/
build_applications.py 17 import simplejson as json namespace
19 import json namespace
  /external/chromium_org/third_party/skia/tools/
buildbot_globals.py 8 Provides read access to buildbot's global_variables.json .
13 import json namespace
24 _GLOBAL_VARS_PATH = 'site_config/global_variables.json'
28 """Exception which is raised when the global_variables.json file cannot be
34 """Exception which is raised when the global_variables.json file cannot be
35 interpreted as JSON. This may be due to the file itself being incorrectly
43 global_variables.json file."""
48 """Return the value associated with this name in global_variables.json.
66 _global_vars = json.loads(global_vars_text)
  /external/chromium_org/tools/memory_inspector/memory_inspector/backends/
native_heap_dump_parser.py 7 import json namespace
23 heap_dump provides a conveniente JSON output.
32 data = json.loads(content)
  /external/chromium_org/tools/memory_inspector/memory_inspector/unittest/mock_adb/
mock_adb.py 5 import json namespace
16 commands. The dictionary is stored into a json file and read by the mock 'adb'
17 script. The path of the json dict is held in the MOCK_ADB_CFG env var.
27 json.dump(self._responses, f)
  /external/chromium_org/tools/perf/benchmarks/
service_worker.py 19 json = tab.EvaluateJavaScript('window.results')
20 for key, value in json.iteritems():
  /external/chromium_org/tools/profile_chrome/
chrome_controller_unittest.py 6 import json namespace
44 json.loads(f.read())
perf_controller_unittest.py 6 import json namespace
40 json.loads(f.read())
  /external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
inspector_memory.py 4 import json namespace
46 json.dumps(res, indent=2))
  /external/skia/tools/
buildbot_globals.py 8 Provides read access to buildbot's global_variables.json .
13 import json namespace
24 _GLOBAL_VARS_PATH = 'site_config/global_variables.json'
28 """Exception which is raised when the global_variables.json file cannot be
34 """Exception which is raised when the global_variables.json file cannot be
35 interpreted as JSON. This may be due to the file itself being incorrectly
43 global_variables.json file."""
48 """Return the value associated with this name in global_variables.json.
66 _global_vars = json.loads(global_vars_text)
  /external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-java/
HelloLicenseServlet.java 23 import com.google.appengine.repackaged.org.json.JSONObject;
92 // Parse the string as JSON and display the license state.
93 JSONObject json = new JSONObject(file); local
96 "YES".equals(json.get("result")) ?
97 "FULL".equals(json.get("accessLevel")) ? "full" : "free trial" :
  /external/chromium_org/components/policy/core/common/cloud/
policy_header_service.cc 8 #include "base/json/json_writer.h"
76 std::string json; local
77 base::JSONWriter::Write(&value, &json);
78 DCHECK(!json.empty());
82 base::Base64Encode(json, &encoded);
  /external/jsoncpp/include/json/
assertions.h 12 # include <json/config.h>
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/
test_pass1.py 1 from json.tests import PyTest, CTest
4 # from http://json.org/JSON_checker/test/pass1.json
5 JSON = r'''
7 "JSON Test Pattern pass1",
40 "url": "http://www.JSON.org/",
69 res = self.loads(JSON)
test_pass2.py 1 from json.tests import PyTest, CTest
4 # from http://json.org/JSON_checker/test/pass2.json
5 JSON = r'''
12 res = self.loads(JSON)
test_pass3.py 1 from json.tests import PyTest, CTest
4 # from http://json.org/JSON_checker/test/pass3.json
5 JSON = r'''
7 "JSON Test Pattern pass3": {
18 res = self.loads(JSON)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/
test_pass1.py 1 from json.tests import PyTest, CTest
4 # from http://json.org/JSON_checker/test/pass1.json
5 JSON = r'''
7 "JSON Test Pattern pass1",
40 "url": "http://www.JSON.org/",
69 res = self.loads(JSON)
test_pass2.py 1 from json.tests import PyTest, CTest
4 # from http://json.org/JSON_checker/test/pass2.json
5 JSON = r'''
12 res = self.loads(JSON)

Completed in 1448 milliseconds

1 2 3 4 56 7 8 91011>>