/external/google-tv-pairing-protocol/java/src/com/google/polo/json/ |
D | CDL.java | 81 public static JSONArray rowToJSONArray(JSONTokener x) throws JSONException { in rowToJSONArray() 82 JSONArray ja = new JSONArray(); in rowToJSONArray() 115 public static JSONObject rowToJSONObject(JSONArray names, JSONTokener x) in rowToJSONObject() 117 JSONArray ja = rowToJSONArray(x); in rowToJSONObject() 128 public static JSONArray toJSONArray(String string) throws JSONException { in toJSONArray() 139 public static JSONArray toJSONArray(JSONTokener x) throws JSONException { in toJSONArray() 151 public static JSONArray toJSONArray(JSONArray names, String string) in toJSONArray() 164 public static JSONArray toJSONArray(JSONArray names, JSONTokener x) in toJSONArray() 169 JSONArray ja = new JSONArray(); in toJSONArray() 190 public static String rowToString(JSONArray ja) { in rowToString() [all …]
|
D | JSONArray.java | 83 public class JSONArray { class 95 public JSONArray() { in JSONArray() method in JSONArray 104 public JSONArray(JSONTokener x) throws JSONException { in JSONArray() method in JSONArray 156 public JSONArray(String source) throws JSONException { in JSONArray() method in JSONArray 165 public JSONArray(Collection collection) { in JSONArray() method in JSONArray 178 public JSONArray(Collection collection, boolean includeSuperClass) { in JSONArray() method in JSONArray 200 public JSONArray(Object array) throws JSONException { in JSONArray() method in JSONArray 218 public JSONArray(Object array,boolean includeSuperClass) throws JSONException { in JSONArray() method in JSONArray 321 public JSONArray getJSONArray(int index) throws JSONException { in getJSONArray() 323 if (o instanceof JSONArray) { in getJSONArray() [all …]
|
D | JSONObject.java | 347 map.put(key, new JSONArray(result, includeSuperClass)); in populateInternalMap() 349 map.put(key, new JSONArray((Collection)result, includeSuperClass)); in populateInternalMap() 441 put(key, value instanceof JSONArray ? in accumulate() 442 new JSONArray().put(value) : in accumulate() 444 } else if (o instanceof JSONArray) { in accumulate() 445 ((JSONArray)o).put(value); in accumulate() 447 put(key, new JSONArray().put(o).put(value)); in accumulate() 469 put(key, new JSONArray().put(value)); in append() 470 } else if (o instanceof JSONArray) { in append() 471 put(key, ((JSONArray)o).put(value)); in append() [all …]
|
D | JSONML.java | 49 JSONArray ja) throws JSONException { in parse() 54 JSONArray newja = null; in parse() 132 newja = new JSONArray(); in parse() 241 public static JSONArray toJSONArray(String string) throws JSONException { in toJSONArray() 258 public static JSONArray toJSONArray(XMLTokener x) throws JSONException { in toJSONArray() 259 return (JSONArray)parse(x, true, null); in toJSONArray() 304 public static String toString(JSONArray ja) throws JSONException { in toString() 364 } else if (e instanceof JSONArray) { in toString() 365 sb.append(toString((JSONArray)e)); in toString() 390 JSONArray ja; in toString() [all …]
|
D | XML.java | 330 JSONArray ja; in toString() 366 if (v instanceof JSONArray) { in toString() 367 ja = (JSONArray)v; in toString() 381 } else if (v instanceof JSONArray) { in toString() 382 ja = (JSONArray)v; in toString() 386 if (v instanceof JSONArray) { in toString() 422 } else if (o instanceof JSONArray) { in toString() 423 ja = (JSONArray)o; in toString()
|
D | Test.java | 20 JSONArray a; in main() 190 System.out.println(new JSONArray(jj.toString()).toString(4)); in main() 193 JSONArray ja = new JSONArray(ar); in main() 213 j.put("JSONArray", new JSONArray()); in main() 230 a.put(new JSONArray()); in main() 375 a = new JSONArray(" [\"<escape>\", next is an implied null , , ok,] "); in main() 422 a = new JSONArray("[2147483647, 2147483648, 9223372036854775807, 9223372036854775808]"); in main() 463 a = new JSONArray(c); in main() 482 a = new JSONArray(s); in main() 501 a = new JSONArray(); in main() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | AndroidFacade.java | 60 import org.json.JSONArray; 213 JSONArray names = extras.names(); in putExtrasFromJsonObject() 245 if (data instanceof JSONArray) { in putExtrasFromJsonObject() 247 if (((JSONArray) data).length() == 0) { in putExtrasFromJsonObject() 252 if (((JSONArray) data).get(0) instanceof Integer) { in putExtrasFromJsonObject() 253 Integer[] integerArrayData = new Integer[((JSONArray) data).length()]; in putExtrasFromJsonObject() 254 for (int j = 0; j < ((JSONArray) data).length(); ++j) { in putExtrasFromJsonObject() 255 integerArrayData[j] = ((JSONArray) data).getInt(j); in putExtrasFromJsonObject() 260 if (((JSONArray) data).get(0) instanceof Double) { in putExtrasFromJsonObject() 261 Double[] doubleArrayData = new Double[((JSONArray) data).length()]; in putExtrasFromJsonObject() [all …]
|
D | ContactsFacade.java | 43 import org.json.JSONArray; 151 @RpcParameter(name = "attributes") @RpcOptional JSONArray attributes) throws JSONException { in contactsGetAllContacts() 226 @RpcParameter(name = "attributes") @RpcOptional JSONArray attributes) in contactsGetContactById() 264 private String[] jsonToArray(JSONArray array) throws JSONException { in jsonToArray() 341 JSONArray attributes, in contactsQueryContent() 351 JSONArray selectionArgs, in contactsQueryContent() 379 public JSONArray queryAttributes( in queryAttributes() 386 JSONArray columns = new JSONArray(); in queryAttributes()
|
/external/autotest/frontend/client/src/autotest/tko/ |
D | TestGroupDataSource.java | 7 import com.google.gwt.json.client.JSONArray; 26 private JSONArray groupByFields; 27 private JSONArray headerGroups; 28 private JSONArray headerGroupValues; 74 groupByFields = new JSONArray(); in setGroupColumns() 82 groupByFields = new JSONArray(); in setHeaderGroups() 83 headerGroups = new JSONArray(); in setHeaderGroups() 97 JSONArray headerList = headerGroupValues.get(groupIndex).isArray(); in getHeaderGroupValues() 99 for (JSONArray header : new JSONArrayList<JSONArray>(headerList)) { in getHeaderGroupValues()
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
D | JsonArrayRequest.java | 25 import org.json.JSONArray; 33 public class JsonArrayRequest extends JsonRequest<JSONArray> { 41 public JsonArrayRequest(String url, Listener<JSONArray> listener, ErrorListener errorListener) { in JsonArrayRequest() 54 public JsonArrayRequest(int method, String url, JSONArray jsonRequest, in JsonArrayRequest() 55 Listener<JSONArray> listener, ErrorListener errorListener) { in JsonArrayRequest() 61 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse() 65 return Response.success(new JSONArray(jsonString), in parseNetworkResponse()
|
/external/autotest/frontend/client/src/autotest/common/ |
D | JSONArrayList.java | 3 import com.google.gwt.json.client.JSONArray; 12 private JSONArray backingArray; 15 backingArray = new JSONArray(); in JSONArrayList() 18 public JSONArrayList(JSONArray array) { in JSONArrayList() 44 public JSONArray getBackingArray() { in getBackingArray()
|
D | Utils.java | 7 import com.google.gwt.json.client.JSONArray; 38 public static JSONArray stringsToJSON(Collection<String> strings) { in stringsToJSON() 39 JSONArray result = new JSONArray(); in stringsToJSON() 50 public static JSONArray integersToJSON(Collection<Integer> integers) { in integersToJSON() 51 JSONArray result = new JSONArray(); in integersToJSON() 62 public static String[] JSONtoStrings(JSONArray strings) { in JSONtoStrings() 75 public static String[] JSONObjectsToStrings(JSONArray objects, String field) { in JSONObjectsToStrings() 112 public static JSONObject getSingleObjectFromArray(JSONArray array) { in getSingleObjectFromArray() 311 public static <T> List<T> createList(JSONArray objects, JsonObjectFactory<T> factory) { in createList()
|
D | JsonRpcProxy.java | 5 import com.google.gwt.json.client.JSONArray; 75 private static JSONArray processParams(JSONObject params) { in processParams() 76 JSONArray result = new JSONArray(); in processParams()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/json/ |
D | JSONArrayTest.java | 6 import org.json.JSONArray; 15 JSONArray array = new JSONArray(Arrays.asList("a", "b")); in testEquality() 16 assertThat(array).isEqualTo(new JSONArray(array.toString())); in testEquality()
|
/external/autotest/frontend/client/src/autotest/afe/ |
D | AfeUtils.java | 14 import com.google.gwt.json.client.JSONArray; 62 JSONArray labels = staticData.getData("labels").isArray(); in getFilteredLabelStrings() 110 final JSONArray asynchronousEntryIds = new JSONArray(); in abortHostQueueEntries() 152 public static void abortSpecialTasks(final JSONArray specialTaskIds, in abortSpecialTasks() 170 private static void extendJsonArray(JSONArray array, JSONArray newValues) { in extendJsonArray() 262 public static void changeHostLocks(JSONArray hostIds, final boolean lock, in changeHostLocks() 300 JSONArray options = staticData.getData(name + "_options").isArray(); in populateRadioChooser() 307 JSONArray options = staticData.getData(staticDataKey).isArray(); in populateListBox() 314 JSONArray options = staticData.getData(staticDataKey).isArray(); in populateListBox() 389 JSONArray testViews = (JSONArray)result; in callGetSpongeUrl()
|
D | HostListView.java | 12 import com.google.gwt.json.client.JSONArray; 74 JSONArray hostIds = getSelectedHostIds(); in reverifySelectedHosts() 88 JSONArray hostIds = getSelectedHostIds(); in changeLockStatus() 109 private JSONArray getSelectedHostIds() { in getSelectedHostIds() 115 JSONArray ids = new JSONArray(); in getSelectedHostIds()
|
/external/autotest/frontend/client/src/autotest/moblab/ |
D | ConfigSettingsView.java | 12 import com.google.gwt.json.client.JSONArray; 96 JSONArray sectionValue = new JSONArray(); in initialize() 98 JSONArray configValuePair = new JSONArray(); in initialize() 141 JSONArray sectionArray = resultObject.get(section).isArray(); in loadData() 149 JSONArray configPair = sectionArray.get(i).isArray(); in loadData()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/ |
D | WifiRtt2ManagerFacade.java | 47 import org.json.JSONArray; 110 @RpcParameter(name = "scanResults") JSONArray scanResults, in wifiRttStartRangingToAccessPoints() 112 @RpcOptional JSONArray uidsOverride) throws JSONException { in wifiRttStartRangingToAccessPoints() 129 @RpcOptional JSONArray uidsOverride) throws JSONException { in wifiRttStartRangingToAwarePeerMac() 147 @RpcOptional JSONArray uidsOverride) throws JSONException { in wifiRttStartRangingToAwarePeerId() 160 @RpcOptional JSONArray uids) throws JSONException { in wifiRttCancelRanging() 216 private static WorkSource getWorkSource(JSONArray uids) throws JSONException { in getWorkSource()
|
D | WifiJsonParser.java | 25 import org.json.JSONArray; 109 JSONArray jIes = j.getJSONArray("InformationElements"); in getScanResult() 122 JSONArray jRinfos = j.getJSONArray("radioChainInfos"); in getScanResult() 145 public static List<ScanResult> getScanResults(JSONArray j) throws JSONException { in getScanResults()
|
/external/autotest/frontend/client/src/autotest/moblab/rpc/ |
D | NetworkInfo.java | 3 import com.google.gwt.json.client.JSONArray; 49 JSONArray serverIpsArray = serverIpsObject.isArray(); in fromJson() 68 JSONArray serverIpsArray = new JSONArray(); in toJson()
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | JsonRequestCharsetTest.java | 24 import org.json.JSONArray; 74 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network); in defaultCharsetJsonArray() 102 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network); in specifiedCharsetJsonArray() 116 JSONArray json = new JSONArray().put(TEXT_INDEX, TEXT_VALUE).put(COPY_INDEX, COPY_VALUE); in jsonArrayString()
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/ |
D | JsonMessageBuilder.java | 23 import com.google.polo.json.JSONArray; 206 JSONArray inEncodings = new JSONArray(); in getOptionsMessage() 221 JSONArray outEncodings = new JSONArray(); in getOptionsMessage() 452 JSONArray inEncsArray = new JSONArray(); in toJson() 458 JSONArray outEncsArray = new JSONArray(); in toJson()
|
/external/autotest/frontend/client/src/autotest/common/table/ |
D | MultipleListFilter.java | 3 import com.google.gwt.json.client.JSONArray; 22 JSONArray labels = new JSONArray(); in getMatchValue()
|
/external/autotest/frontend/client/src/autotest/afe/create/ |
D | CreateJobViewPresenter.java | 42 import com.google.gwt.json.client.JSONArray; 148 private JSONArray dependencies = new JSONArray(); 258 JSONArray hostInfo = cloneObject.get("hosts").isArray(); in cloneJob() 276 private void populatePriorities(JSONArray priorities) { in populatePriorities() 280 JSONArray priorityData = priorities.get(i).isArray(); in populatePriorities() 299 JSONArray tests = staticData.getData("profilers").isArray(); in populateProfilers() 353 JSONArray tests = new JSONArray(); in getControlFileParams() 364 JSONArray profilers = new JSONArray(); in getControlFileParams() 669 dependencies = new JSONArray(); in reset() 755 JSONArray argsArray = new JSONArray(); in submitJob() [all …]
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/ |
D | XmlMessageBuilder.java | 21 import com.google.polo.json.JSONArray; 264 JSONArray inEncodings = new JSONArray(); in getOptionsMessage() 280 JSONArray outEncodings = new JSONArray(); in getOptionsMessage() 512 JSONArray inEncsArray = new JSONArray(); in toXML() 520 JSONArray outEncsArray = new JSONArray(); in toXML()
|