Searched refs:json (Results 1 - 18 of 18) sorted by relevance

/libcore/tools/docs/crypto/
H A Dcrypto_docs.py17 import json namespace
29 data = json.loads(stripped_contents)
H A Drun_update_crypto_support.sh6 if [ ! -f libcore/tools/docs/crypto/src/java/libcore/java/security/ListProviders.java -o ! -f libcore/tools/docs/crypto/data/crypto_support.json ]; then
17 vogar --mode=activity --multidex=false libcore/tools/docs/crypto/src/java/libcore/java/security/ListProviders.java | libcore/tools/docs/crypto/update_crypto_support.py --api_level=$1 --rewrite_file libcore/tools/docs/crypto/data/crypto_support.json
H A Dupdate_crypto_support.py28 import json namespace
272 json.dump(
276 print json.dumps(
/libcore/json/src/main/java/org/json/
H A DJSONException.java17 package org.json;
19 // Note: this class was written without inspecting the non-free org.json sourcecode.
H A DJSON.java17 package org.json;
H A DJSONTokener.java17 package org.json;
19 // Note: this class was written without inspecting the non-free org.json sourcecode.
26 * String json = "{"
31 * JSONObject object = (JSONObject) new JSONTokener(json).nextValue();
H A DJSONArray.java17 package org.json;
25 // Note: this class was written without inspecting the non-free org.json sourcecode.
103 * @param json a JSON-encoded string containing an array.
107 public JSONArray(String json) throws JSONException { argument
108 this(new JSONTokener(json));
H A DJSONObject.java17 package org.json;
27 // Note: this class was written without inspecting the non-free org.json sourcecode.
171 * @param json a JSON-encoded string containing an object.
175 public JSONObject(String json) throws JSONException { argument
176 this(new JSONTokener(json));
H A DJSONStringer.java17 package org.json;
23 // Note: this class was written without inspecting the non-free org.json sourcecode.
30 * String json = object.toString();</pre>
/libcore/json/src/test/java/libcore/org/json/
H A DParsingTest.java17 package libcore.org.json;
27 import org.json.JSONArray;
28 import org.json.JSONException;
29 import org.json.JSONObject;
30 import org.json.JSONTokener;
237 private void assertParsed(String message, Object expected, String json) throws JSONException { argument
238 Object actual = new JSONTokener(json).nextValue();
241 assertEquals("For input \"" + json + "\" " + message, expected, actual);
244 private void assertParsed(Object expected, String json) throws JSONException { argument
245 assertParsed("", expected, json);
[all...]
H A DSelfUseTest.java17 package libcore.org.json;
21 import org.json.JSONArray;
22 import org.json.JSONException;
23 import org.json.JSONObject;
24 import org.json.JSONTokener;
31 * <p>This black box test was written without inspecting the non-free org.json
H A DJSONStringerTest.java17 package libcore.org.json;
21 import org.json.JSONArray;
22 import org.json.JSONException;
23 import org.json.JSONObject;
24 import org.json.JSONStringer;
27 * This black box test was written without inspecting the non-free org.json sourcecode.
H A DJSONArrayTest.java17 package libcore.org.json;
25 import org.json.JSONArray;
26 import org.json.JSONException;
27 import org.json.JSONObject;
28 import org.json.JSONTokener;
31 * This black box test was written without inspecting the non-free org.json sourcecode.
H A DJSONTokenerTest.java17 package libcore.org.json;
22 import org.json.JSONArray;
23 import org.json.JSONException;
24 import org.json.JSONTokener;
27 * This black box test was written without inspecting the non-free org.json sourcecode.
H A DJSONObjectTest.java17 package libcore.org.json;
35 import org.json.JSONArray;
36 import org.json.JSONException;
37 import org.json.JSONObject;
38 import org.json.JSONTokener;
41 * This black box test was written without inspecting the non-free org.json sourcecode.
/libcore/benchmarks/src/benchmarks/regression/
H A DParseBenchmark.java29 import org.json.JSONArray;
30 import org.json.JSONObject;
54 ANDROID_STREAM("json") {
59 ORG_JSON("json") {
/libcore/luni/src/module/java/
H A Dmodule-info.java122 exports org.json;
/libcore/
H A DJavaLibrary.mk53 test_src_files := $(call all-test-java-files-under,dalvik dalvik/test-rules dom harmony-tests json luni xml)

Completed in 175 milliseconds