Home
last modified time | relevance | path

Searched refs:jsonArray (Results 1 – 10 of 10) sorted by relevance

/external/gson/gson/src/test/java/com/google/gson/
DJsonArrayTest.java135 JsonArray jsonArray = new JsonArray(); in testFailedGetArrayValues() local
136jsonArray.add(JsonParser.parseString("{" + "\"key1\":\"value1\"," + "\"key2\":\"value2\"," + "\"ke… in testFailedGetArrayValues()
138 jsonArray.getAsBoolean(); in testFailedGetArrayValues()
145 jsonArray.get(-1); in testFailedGetArrayValues()
152 jsonArray.getAsString(); in testFailedGetArrayValues()
159 jsonArray.remove(0); in testFailedGetArrayValues()
160 jsonArray.add("hello"); in testFailedGetArrayValues()
162 jsonArray.getAsDouble(); in testFailedGetArrayValues()
169 jsonArray.getAsInt(); in testFailedGetArrayValues()
176 jsonArray.get(0).getAsJsonArray(); in testFailedGetArrayValues()
[all …]
/external/gson/gson/src/test/java/com/google/gson/internal/bind/
DJsonTreeReaderTest.java43 JsonArray jsonArray = new JsonArray(); in testSkipValue_filledJsonObject() local
44 jsonArray.add('c'); in testSkipValue_filledJsonObject()
45 jsonArray.add("text"); in testSkipValue_filledJsonObject()
46 jsonObject.add("a", jsonArray); in testSkipValue_filledJsonObject()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/
DBuilderDeserializationTest2486.java33 public Builder(final List<Object> jsonArray) { in Builder() argument
34 withIndex((int) jsonArray.get(0)); in Builder()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DDirectRTCClient.java207 JSONArray jsonArray = new JSONArray(); in sendLocalIceCandidateRemovals()
209 jsonArray.put(toJsonCandidate(candidate)); in sendLocalIceCandidateRemovals()
211 jsonPut(json, "candidates", jsonArray); in sendLocalIceCandidateRemovals()
DWebSocketRTCClient.java264 JSONArray jsonArray = new JSONArray(); in sendLocalIceCandidateRemovals()
266 jsonArray.put(toJsonCandidate(candidate)); in sendLocalIceCandidateRemovals()
268 jsonPut(json, "candidates", jsonArray); in sendLocalIceCandidateRemovals()
DConnectActivity.java184 JSONArray jsonArray = new JSONArray(roomListJson); in onResume() local
185 for (int i = 0; i < jsonArray.length(); i++) { in onResume()
186 roomList.add(jsonArray.get(i).toString()); in onResume()
/external/ot-br-posix/src/openwrt/ubus/
Dotubus.cpp739 void * jsonArray = nullptr; in UbusParentHandlerDetail() local
746 jsonArray = blobmsg_open_array(&mBuf, "parent_list"); in UbusParentHandlerDetail()
762 blobmsg_close_array(&mBuf, jsonArray); in UbusParentHandlerDetail()
1201 void * jsonArray = nullptr; in UbusGetInformation() local
1209 jsonArray = blobmsg_open_array(&mBuf, "joinerList"); in UbusGetInformation()
1239 blobmsg_close_array(&mBuf, jsonArray); in UbusGetInformation()
1319 void * jsonArray = nullptr; in HandleDiagnosticGetResponse() local
1347 jsonArray = blobmsg_open_array(&mNetworkdataBuf, "routedata"); in HandleDiagnosticGetResponse()
1364 blobmsg_close_array(&mNetworkdataBuf, jsonArray); in HandleDiagnosticGetResponse()
1370 jsonArray = blobmsg_open_array(&mNetworkdataBuf, "childdata"); in HandleDiagnosticGetResponse()
[all …]
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_NvExtend.c405 json_object *jsonArray = json_object_new_array(); in Fapi_NvExtend_Finish() local
406 json_object_array_add(jsonArray, command->jso_event_log); in Fapi_NvExtend_Finish()
407 command->jso_event_log = jsonArray; in Fapi_NvExtend_Finish()
/external/gson/gson/src/test/java/com/google/gson/functional/
DParameterizedTypesTest.java539 JsonArray jsonArray = new JsonArray(); in testGsonFromJsonTypeToken() local
540 jsonArray.add(jsonObject); in testGsonFromJsonTypeToken()
542 assertCorrectlyDeserialized(gson.fromJson(jsonArray, typeToken)); in testGsonFromJsonTypeToken()
543 assertCorrectlyDeserialized(gson.fromJson(jsonArray, type)); in testGsonFromJsonTypeToken()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothConnectionFacade.java391 private List<Integer> jsonArrayToIntegerList(JSONArray jsonArray) throws JSONException { in jsonArrayToIntegerList() argument
392 if (jsonArray == null) { in jsonArrayToIntegerList()
396 for (int i = 0; i < jsonArray.length(); i++) { in jsonArrayToIntegerList()
397 intArray.add(jsonArray.getInt(i)); in jsonArrayToIntegerList()