/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 | 46 assertNull(object.toJSONArray(new JSONArray())); 454 JSONArray a = new JSONArray(); 532 JSONArray names = new JSONArray(); 537 JSONArray array = object.toJSONArray(names); 552 JSONArray names = new JSONArray(); 558 JSONArray array = object.toJSONArray(names); 584 JSONArray array = new JSONArray() [all...] |
SelfUseTest.java | 77 private final JSONArray array = new JSONArray() { 78 @Override public JSONArray put(int index, Object value) throws JSONException { 209 JSONArray values = new JSONArray();
|
ParsingTest.java | 220 private JSONArray array(Object... elements) { 221 return new JSONArray(Arrays.asList(elements)); 249 if (input instanceof JSONArray) { 250 JSONArray array = (JSONArray) input;
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
GraphicsLayerDebugInfo.cpp | 31 RefPtr<JSONArray> jsonArray = JSONArray::create(); 35 RefPtr<JSONArray> rectArray = JSONArray::create(); 41 jsonArray->pushObject(rectContainer); 43 *out = jsonArray->toJSONString();
|
/frameworks/volley/src/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) { 46 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) { 50 return Response.success(new JSONArray(jsonString),
|
/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 | 29 * Values may be any mix of {@link JSONObject JSONObjects}, {@link JSONArray 248 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean, 286 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean, 301 if (current instanceof JSONArray) { 302 JSONArray array = (JSONArray) current; 305 JSONArray array = new JSONArray(); 543 * JSONArray}. 546 * JSONArray} [all...] |
JSONException.java | 35 * <pre> public JSONArray toJSONObject() {
|
JSONStringer.java | 26 * Implements {@link JSONObject#toString} and {@link JSONArray#toString}. Most 48 * {@link JSONArray#toString(int)}. 222 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean, 232 if (value instanceof JSONArray) { 233 ((JSONArray) value).writeTo(this);
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
CodeGeneratorInspectorStrings.py | 49 RefPtr<JSONArray> protocolErrors = JSONArray::create(); 141 class JSONArray; 263 static R getPropertyValueImpl(JSONObject* object, const String& name, bool* valueFound, JSONArray* protocolErrors, V0 initial_value, bool (*as_method)(JSONValue*, V*), const char* type_name); 265 static int getInt(JSONObject* object, const String& name, bool* valueFound, JSONArray* protocolErrors); 266 static double getDouble(JSONObject* object, const String& name, bool* valueFound, JSONArray* protocolErrors); 267 static String getString(JSONObject* object, const String& name, bool* valueFound, JSONArray* protocolErrors); 268 static bool getBoolean(JSONObject* object, const String& name, bool* valueFound, JSONArray* protocolErrors); 269 static PassRefPtr<JSONObject> getObject(JSONObject* object, const String& name, bool* valueFound, JSONArray* protocolErrors); 270 static PassRefPtr<JSONArray> getArray(JSONObject* object, const String& name, bool* valueFound, JSONArray* protocolErrors) [all...] |
InspectorRuntimeAgent.h | 44 class JSONArray; 70 const RefPtr<JSONArray>* optionalArguments,
|
/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) {
|
/external/robolectric/lib/main/ |
json-20080701.jar | |
/pdk/apps/CameraITS/service/src/com/android/camera2/its/ |
ItsSerializer.java | 25 import org.json.JSONArray; 106 return new MetadataEntry(key.getName(), new JSONArray(md.get(key))); 109 JSONArray jsonArray = new JSONArray(); 114 jsonArray.put(ratObj); 116 return new MetadataEntry(key.getName(), jsonArray); 120 JSONArray jsonArray = new JSONArray(); [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
JSONValues.h | 44 class JSONArray; 81 virtual bool asArray(RefPtr<JSONArray>* output); 83 virtual PassRefPtr<JSONArray> asArray(); 177 void setArray(const String& name, PassRefPtr<JSONArray>); 191 PassRefPtr<JSONArray> getArray(const String& name) const; 251 virtual PassRefPtr<JSONArray> asArray(); 258 virtual bool asArray(RefPtr<JSONArray>* output); 266 void pushArray(PassRefPtr<JSONArray>); 284 class PLATFORM_EXPORT JSONArray : public JSONArrayBase { 286 static PassRefPtr<JSONArray> create( [all...] |
JSONValues.cpp | 131 bool JSONValue::asArray(RefPtr<JSONArray>*) 141 PassRefPtr<JSONArray> JSONValue::asArray() 297 PassRefPtr<JSONArray> JSONObjectBase::getArray(const String& name) const 350 bool JSONArrayBase::asArray(RefPtr<JSONArray>* output) 352 COMPILE_ASSERT(sizeof(JSONArrayBase) == sizeof(JSONArray), cannot_cast); 353 *output = static_cast<JSONArray*>(this); 357 PassRefPtr<JSONArray> JSONArrayBase::asArray() 359 COMPILE_ASSERT(sizeof(JSONArrayBase) == sizeof(JSONArray), cannot_cast); 360 return static_cast<JSONArray*>(this);
|
/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> <A HREF="../../../../reference/org/json/JSONArray.html#remove(int)" target="_top"><code>remove</code></A>(<code>int</code>)</nobr>
|
pkg_org.json.html | 84 <A NAME="JSONArray"></A> 85 <nobr><A HREF="org.json.JSONArray.html">JSONArray</A></nobr>
|
/packages/apps/Browser/src/com/android/browser/search/ |
OpenSearchSearchEngine.java | 25 import org.json.JSONArray; 149 JSONArray results = new JSONArray(content); 150 JSONArray suggestions = results.getJSONArray(1); 151 JSONArray descriptions = null; 214 private final JSONArray mSuggestions; 216 private final JSONArray mDescriptions; 218 public SuggestionsCursor(JSONArray suggestions, JSONArray descriptions) {
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
NetworkUtilities.java | 34 import org.json.JSONArray; 169 // Create a special JSONArray of our JSON contacts 170 JSONArray buffer = new JSONArray(jsonContacts); 199 final JSONArray serverContacts = new JSONArray(response);
|
/development/samples/Vault/src/com/example/android/vault/ |
VaultProvider.java | 41 import org.json.JSONArray; 307 meta.put(KEY_CHILDREN, new JSONArray()); 341 final JSONArray children = meta.getJSONArray(KEY_CHILDREN); 368 final JSONArray children = meta.getJSONArray(KEY_CHILDREN); 421 final JSONArray children = meta.getJSONArray(KEY_CHILDREN); 522 * Maybe remove the given value from a {@link JSONArray}. 526 private static boolean maybeRemove(JSONArray array, long value) throws JSONException {
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
ComposeActivityTest.java | 43 import org.json.JSONArray; 145 JSONArray array = new JSONArray(); 218 JSONArray array = new JSONArray(); 547 JSONArray array = new JSONArray(); 587 JSONArray array = new JSONArray(); 629 JSONArray array = new JSONArray() [all...] |