Home
last modified time | relevance | path

Searched refs:JSONArray (Results 1 – 25 of 77) sorted by relevance

1234

/external/autotest/frontend/client/src/autotest/tko/
DTestGroupDataSource.java7 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/sl4a/Common/src/com/googlecode/android_scripting/facade/
DAndroidFacade.java62 import org.json.JSONArray;
215 JSONArray names = extras.names(); in putExtrasFromJsonObject()
247 if (data instanceof JSONArray) { in putExtrasFromJsonObject()
249 if (((JSONArray) data).length() == 0) { in putExtrasFromJsonObject()
254 if (((JSONArray) data).get(0) instanceof Integer) { in putExtrasFromJsonObject()
255 Integer[] integerArrayData = new Integer[((JSONArray) data).length()]; in putExtrasFromJsonObject()
256 for (int j = 0; j < ((JSONArray) data).length(); ++j) { in putExtrasFromJsonObject()
257 integerArrayData[j] = ((JSONArray) data).getInt(j); in putExtrasFromJsonObject()
262 if (((JSONArray) data).get(0) instanceof Double) { in putExtrasFromJsonObject()
263 Double[] doubleArrayData = new Double[((JSONArray) data).length()]; in putExtrasFromJsonObject()
[all …]
DContactsFacade.java43 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/volley/src/main/java/com/android/volley/toolbox/
DJsonArrayRequest.java26 import org.json.JSONArray;
30 public class JsonArrayRequest extends JsonRequest<JSONArray> {
40 String url, Listener<JSONArray> listener, @Nullable ErrorListener errorListener) { in JsonArrayRequest()
57 @Nullable JSONArray jsonRequest, in JsonArrayRequest()
58 Listener<JSONArray> listener, in JsonArrayRequest()
69 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
76 new JSONArray(jsonString), HttpHeaderParser.parseCacheHeaders(response)); in parseNetworkResponse()
/external/autotest/frontend/client/src/autotest/common/
DJSONArrayList.java3 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()
DUtils.java7 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()
DJsonRpcProxy.java5 import com.google.gwt.json.client.JSONArray;
75 private static JSONArray processParams(JSONObject params) { in processParams()
76 JSONArray result = new JSONArray(); in processParams()
DStaticDataRepository.java6 import com.google.gwt.json.client.JSONArray;
49 private void populatePriorities(JSONArray priorities) { in populatePriorities()
51 JSONArray priorityData = priorities.get(i).isArray(); in populatePriorities()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/json/
DJSONArrayTest.java7 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/llvm-project/clang-tools-extra/clangd/benchmarks/
DIndexBenchmark.cpp42 auto JSONArray = llvm::json::parse(Log); in extractQueriesFromLogs() local
45 if (!JSONArray) { in extractQueriesFromLogs()
47 << llvm::toString(JSONArray.takeError()); in extractQueriesFromLogs()
50 if (!JSONArray->getAsArray()) { in extractQueriesFromLogs()
56 for (const auto &Item : *JSONArray->getAsArray()) { in extractQueriesFromLogs()
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/
DTestListInstrumentationRunListener.java9 import org.json.JSONArray;
45 ((JSONArray) mTestClassJsonMap.get(desc.getTestClass()).get("methods")) in testStarted()
54 .put("methods", new JSONArray().put(getTestMethodJSON(desc)))); in testStarted()
66 JSONArray allTestClassesJSON = new JSONArray(mTestClassJsonMap.values()); in saveTestsToJson()
132 ? new JSONArray(Arrays.asList((Object[]) value)) in getAnnotationJSON()
/external/autotest/frontend/client/src/autotest/afe/
DAfeUtils.java14 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()
DHostListView.java12 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/llvm-project/lldb/tools/debugserver/source/
DJSON.h231 class JSONArray : public JSONValue {
233 JSONArray();
235 JSONArray(const JSONArray &s) = delete;
236 JSONArray &operator=(const JSONArray &s) = delete;
240 typedef std::shared_ptr<JSONArray> SP;
261 ~JSONArray() override = default;
DJSON.cpp182 JSONArray::JSONArray() : JSONValue(JSONValue::Kind::Array) {} in JSONArray() function in JSONArray
184 void JSONArray::Write(std::ostream &s) { in Write()
198 bool JSONArray::SetObject(Index i, JSONValue::SP value) { in SetObject()
212 bool JSONArray::AppendObject(JSONValue::SP value) { in AppendObject()
219 JSONValue::SP JSONArray::GetObject(Index i) { in GetObject()
225 JSONArray::Size JSONArray::GetNumElements() { return m_elements.size(); } in GetNumElements()
514 std::unique_ptr<JSONArray> array_up(new JSONArray()); in ParseJSONArray()
/external/autotest/frontend/client/src/autotest/moblab/rpc/
DNetworkInfo.java3 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/
DJsonRequestCharsetTest.java28 import org.json.JSONArray;
72 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/autotest/frontend/client/src/autotest/moblab/
DConfigSettingsView.java12 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/autotest/frontend/client/src/autotest/common/table/
DMultipleListFilter.java3 import com.google.gwt.json.client.JSONArray;
22 JSONArray labels = new JSONArray(); in getMatchValue()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiRtt2ManagerFacade.java47 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()
DWifiJsonParser.java25 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/llvm-project/lldb/unittests/debugserver/
DJSONTest.cpp68 ParseAndTestJSON<JSONArray>("[1, \"bar\", 3.14]", [](JSONArray &array_val) { in TEST()
86 ParseAndTestJSON<JSONArray>("[]", [](JSONArray &array_val) { in TEST()
/external/autotest/frontend/client/src/autotest/afe/create/
DCreateJobViewPresenter.java42 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/webrtc/examples/androidapp/src/org/appspot/apprtc/
DRoomParametersFetcher.java24 import org.json.JSONArray;
105 JSONArray messages = new JSONArray(messagesString); in roomHttpResponseParse()
181 JSONArray iceServers = responseJSON.getJSONArray("iceServers"); in requestTurnServers()
184 JSONArray turnUrls = server.getJSONArray("urls"); in requestTurnServers()
205 JSONArray servers = json.getJSONArray("iceServers"); in iceServersFromPCConfigJSON()
/external/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/trigger/
DEventGenerationControllingObserver.java27 import org.json.JSONArray;
89 startEventGeneratingMethod.invoke(mFacadeManager, new JSONArray()); in startMonitoring()
99 stopEventGeneratingMethod.invoke(mFacadeManager, new JSONArray()); in stopMonitoring()

1234