HomeSort by relevance Sort by last modified time
    Searched full:jsonarray (Results 1 - 25 of 115) sorted by null

1 2 3 4 5

  /external/google-tv-pairing-protocol/java/src/com/google/polo/json/
CDL.java 29 * JSONArray, and to covert a JSONArray into comma delimited text. Comma
40 * A comma delimited list can be converted into a JSONArray of JSONObjects.
76 * Produce a JSONArray of strings from a row of comma delimited values.
78 * @return A JSONArray of strings.
81 public static JSONArray rowToJSONArray(JSONTokener x) throws JSONException {
82 JSONArray ja = new JSONArray();
107 * parallel JSONArray of strings to provides the names of the elements.
108 * @param names A JSONArray of names. This is commonly obtained from th
    [all...]
JSONArray.java 36 * A JSONArray is an ordered sequence of values. Its external text form is a
41 * <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>,
83 public class JSONArray {
87 * The arrayList where the JSONArray's properties are kept.
93 * Construct an empty JSONArray.
95 public JSONArray() {
100 * Construct a JSONArray from a JSONTokener.
104 public JSONArray(JSONTokener x) throws JSONException {
113 throw x.syntaxError("A JSONArray text must start with '['");
150 * Construct a JSONArray from a source JSON text
    [all...]
JSONML.java 31 * This provides static methods to convert an XML text into a JSONArray or
32 * JSONObject, and to covert a JSONArray or JSONObject into an XML text using
40 * Parse XML values and store them in a JSONArray.
43 * @param ja The JSONArray that is containing the current tag or null
45 * @return A JSONArray if the value is the outermost tag, otherwise null.
49 JSONArray ja) throws JSONException {
54 JSONArray newja = null;
132 newja = new JSONArray();
231 * JSONArray using the JsonML transform. Each XML tag is represented as
232 * a JSONArray in which the first element is the tag name. If the tag ha
    [all...]
JSONString.java 5 * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
JSONObject.java 45 * <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>,
347 map.put(key, new JSONArray(result, includeSuperClass));
349 map.put(key, new JSONArray((Collection)result, includeSuperClass));
427 * JSONArray is stored under the key to hold all of the accumulated values.
428 * If there is already a JSONArray, then the new value is appended to it.
441 put(key, value instanceof JSONArray ?
442 new JSONArray().put(value) :
444 } else if (o instanceof JSONArray) {
445 ((JSONArray)o).put(value);
447 put(key, new JSONArray().put(o).put(value))
    [all...]
  /libcore/json/src/test/java/org/json/
JSONArrayTest.java 31 JSONArray array = new JSONArray();
55 assertNull(array.toJSONObject(new JSONArray()));
59 JSONArray a = new JSONArray();
60 JSONArray b = new JSONArray();
77 JSONArray array = new JSONArray();
103 JSONArray other = new JSONArray()
    [all...]
JSONObjectTest.java 47 assertNull(object.toJSONArray(new JSONArray()));
455 JSONArray a = new JSONArray();
533 JSONArray names = new JSONArray();
538 JSONArray array = object.toJSONArray(names);
553 JSONArray names = new JSONArray();
559 JSONArray array = object.toJSONArray(names);
585 JSONArray array = new JSONArray()
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
ItsSerializer.java 43 import org.json.JSONArray;
137 JSONArray cfgArray = new JSONArray();
188 JSONArray pairObj = new JSONArray();
197 JSONArray rangeObj = new JSONArray();
206 JSONArray xformObj = new JSONArray();
221 JSONArray curveArr = new JSONArray()
    [all...]
  /frameworks/volley/src/main/java/com/android/volley/toolbox/
JsonArrayRequest.java 25 import org.json.JSONArray;
31 * A request for retrieving a {@link JSONArray} response body at a given URL.
33 public class JsonArrayRequest extends JsonRequest<JSONArray> {
41 public JsonArrayRequest(String url, Listener<JSONArray> listener, ErrorListener errorListener) {
49 * @param jsonRequest A {@link JSONArray} to post with the request. Null is allowed and
54 public JsonArrayRequest(int method, String url, JSONArray jsonRequest,
55 Listener<JSONArray> listener, ErrorListener errorListener) {
61 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) {
65 return Response.success(new JSONArray(jsonString),
  /cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
CameraMetadataGetter.java 53 import org.json.JSONArray;
307 JSONArray cfgArray = new JSONArray();
345 JSONArray pairObj = new JSONArray();
354 JSONArray rangeObj = new JSONArray();
363 JSONArray xformObj = new JSONArray();
379 JSONArray curveArr = new JSONArray()
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/preferences/
SimpleBackupSharedPreference.java 21 import org.json.JSONArray;
62 final JSONArray array = new JSONArray();
75 if (value instanceof JSONArray) {
77 final JSONArray array = (JSONArray) value;
  /libcore/json/src/main/java/org/json/
JSONArray.java 29 * {@link JSONObject JSONObjects}, other {@link JSONArray JSONArrays}, Strings,
34 * <p>{@code JSONArray} has the same type coercion behavior and
49 public class JSONArray {
54 * Creates a {@code JSONArray} with no values.
56 public JSONArray() {
61 * Creates a new {@code JSONArray} by copying all values from the given
69 public JSONArray(Collection copyFrom) {
79 * Creates a new {@code JSONArray} with values from the next array in the
83 * {@code JSONArray}.
85 * {@code JSONArray}
    [all...]
JSONObject.java 30 * Values may be any mix of {@link JSONObject JSONObjects}, {@link JSONArray
249 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
289 * {@link JSONArray}. Using {@code accumulate} will result in either a
290 * {@link JSONArray} or a mapping whose type is the type of {@code value}
293 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
305 if (current instanceof JSONArray) {
306 JSONArray array = (JSONArray) current;
309 JSONArray array = new JSONArray();
    [all...]
  /prebuilts/misc/common/json/
json-prebuilt.jar 
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
GoogleSuggestClient.java 41 import org.json.JSONArray;
124 JSONArray results = new JSONArray(EntityUtils.toString(response.getEntity()));
125 JSONArray suggestions = results.getJSONArray(1);
126 JSONArray popularity = results.getJSONArray(2);
164 private final JSONArray mSuggestions;
169 private final JSONArray mPopularity;
172 JSONArray suggestions, JSONArray popularity) {
  /prebuilts/tools/common/m2/repository/org/json/json/20080701/
json-20080701-sources.jar 
json-20080701.jar 
  /external/robolectric/lib/main/
json-20080701.jar 
  /frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/
BluetoothPbapCard.java 24 import org.json.JSONArray;
97 JSONArray jsonPhones = new JSONArray();
119 JSONArray jsonEmails = new JSONArray();
  /frameworks/base/docs/html/sdk/api_diff/19/changes/
org.json.JSONArray.html 10 org.json.JSONArray
74 Class org.json.<A HREF="../../../../reference/org/json/JSONArray.html" target="_top"><font size="+2"><code>JSONArray</code></font></A>
85 <A NAME="org.json.JSONArray.ctor_added(java.lang.Object)"></A>
86 <nobr><A HREF="../../../../reference/org/json/JSONArray.html#JSONArray(java.lang.Object)" target="_top"><code>JSONArray</code></A>(<code>Object</code>)</nobr>
101 <A NAME="org.json.JSONArray.remove_added(int)"></A>
102 <nobr><code>Object</code>&nbsp;<A HREF="../../../../reference/org/json/JSONArray.html#remove(int)" target="_top"><code>remove</code></A>(<code>int</code>)</nobr>
  /packages/apps/Browser/src/com/android/browser/search/
OpenSearchSearchEngine.java 28 import org.json.JSONArray;
143 JSONArray results = new JSONArray(content);
144 JSONArray suggestions = results.getJSONArray(1);
145 JSONArray descriptions = null;
222 private final JSONArray mSuggestions;
224 private final JSONArray mDescriptions;
226 public SuggestionsCursor(JSONArray suggestions, JSONArray descriptions) {
  /prebuilts/tools/common/m2/repository/net/sf/json-lib/json-lib/2.3/
json-lib-2.3-jdk15.jar 
  /frameworks/volley/src/test/java/com/android/volley/toolbox/
JsonRequestTest.java 20 import org.json.JSONArray;
41 assertNotNull(JsonArrayRequest.class.getConstructor(int.class, String.class, JSONArray.class,
JsonRequestCharsetTest.java 24 import org.json.JSONArray;
74 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network);
102 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network);
116 JSONArray json = new JSONArray().put(TEXT_INDEX, TEXT_VALUE).put(COPY_INDEX, COPY_VALUE);
  /cts/tests/tests/hardware/src/android/hardware/camera2/cts/
StaticMetadataCollectionTest.java 28 import org.json.JSONArray;
122 private void dumpJsonArrayAsCtsResult(String name, JSONArray arr) throws Exception {
129 } else if (arr.get(0) instanceof JSONArray) {
131 dumpJsonArrayAsCtsResult(name+String.format("[%04d]",i),(JSONArray)arr.get(i));
161 } else if (obj.get(key) instanceof JSONArray) {
162 dumpJsonArrayAsCtsResult(name+"."+key, (JSONArray)obj.get(key));

Completed in 1303 milliseconds

1 2 3 4 5