Home
last modified time | relevance | path

Searched refs:JSONObject (Results 1 – 25 of 133) sorted by relevance

123456

/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
DJsonBuilder.java95 import org.json.JSONObject;
117 return JSONObject.NULL; in build()
140 if (data instanceof JSONObject) { in build()
343 private static JSONObject buildJsonAudioState(CallAudioState data) in buildJsonAudioState()
345 JSONObject state = new JSONObject(); in buildJsonAudioState()
353 JSONObject dm = new JSONObject(); in buildDisplayMetrics()
375 private static JSONObject buildJsonAddress(Address address) in buildJsonAddress()
377 JSONObject result = new JSONObject(); in buildJsonAddress()
399 private static JSONObject buildJsonBleAdvertiseSettings( in buildJsonBleAdvertiseSettings()
401 JSONObject result = new JSONObject(); in buildJsonBleAdvertiseSettings()
[all …]
DJsonRpcResult.java20 import org.json.JSONObject;
34 public static JSONObject empty(int id) throws JSONException { in empty()
35 JSONObject json = new JSONObject(); in empty()
37 json.put("result", JSONObject.NULL); in empty()
38 json.put("error", JSONObject.NULL); in empty()
42 public static JSONObject result(int id, Object data) throws JSONException { in result()
43 JSONObject json = new JSONObject(); in result()
46 json.put("error", JSONObject.NULL); in result()
50 public static JSONObject error(int id, Throwable t) throws JSONException { in error()
51 JSONObject json = new JSONObject(); in error()
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/
DJsonMessageBuilder.java25 import com.google.polo.json.JSONObject;
112 public static PoloMessage outerJsonToPoloMessage(JSONObject outerMessage) in outerJsonToPoloMessage()
114 JSONObject payload; in outerJsonToPoloMessage()
161 static PairingRequestMessage getPairingRequest(JSONObject body) in getPairingRequest()
181 static PairingRequestAckMessage getPairingRequestAck(JSONObject body) in getPairingRequestAck()
201 static OptionsMessage getOptionsMessage(JSONObject body) in getOptionsMessage()
216 JSONObject enc = inEncodings.getJSONObject(i); in getOptionsMessage()
231 JSONObject enc = outEncodings.getJSONObject(i); in getOptionsMessage()
253 static ConfigurationMessage getConfigMessage(JSONObject body) in getConfigMessage()
272 static ConfigurationAckMessage getConfigAckMessage(JSONObject body) { in getConfigAckMessage()
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/
DXmlMessageBuilder.java23 import com.google.polo.json.JSONObject;
129 JSONObject outerMessage; in outerXMLToPoloMessage()
136 JSONObject payload; in outerXMLToPoloMessage()
206 PairingRequestMessage getPairingRequest(JSONObject body) in getPairingRequest()
209 JSONObject jsonObj = body.getJSONObject( in getPairingRequest()
230 PairingRequestAckMessage getPairingRequestAck(JSONObject body) in getPairingRequestAck()
233 JSONObject jsonObj = body.getJSONObject( in getPairingRequestAck()
252 OptionsMessage getOptionsMessage(JSONObject body) throws PoloException { in getOptionsMessage()
254 JSONObject jsonOptions; in getOptionsMessage()
258 JSONObject inEnc = jsonOptions.getJSONObject( in getOptionsMessage()
[all …]
/external/autotest/frontend/client/src/autotest/common/table/
DSelectionManager.java8 import com.google.gwt.json.client.JSONObject;
29 private Set<JSONObject> selectedObjects = new JSONObjectSet<JSONObject>();
36 public void onAdd(Collection<JSONObject> objects); in onAdd()
37 public void onRemove(Collection<JSONObject> objects); in onRemove()
41 public boolean isRowSelectable(JSONObject row); in isRowSelectable()
55 JSONObject row = attachedTable.getRow(i); in refreshSelection()
68 private boolean isSelectable(JSONObject row) { in isSelectable()
75 public void selectObject(JSONObject object) { in selectObject()
79 public void selectObjects(Collection<? extends JSONObject> objects) { in selectObjects()
87 public void deselectObject(JSONObject object) { in deselectObject()
[all …]
DDataSource.java5 import com.google.gwt.json.client.JSONObject;
56 public JSONObject getParams(); in getParams()
77 protected JSONObject params;
79 public DefaultQuery(JSONObject params) { in DefaultQuery()
81 this.params = new JSONObject(); in DefaultQuery()
88 public JSONObject getParams() { in getParams()
102 public void handlePage(List<JSONObject> data); in handlePage()
104 public void onError(JSONObject errorObject); in onError()
108 public void handlePage(List<JSONObject> data) {} in handlePage()
111 public void onError(JSONObject errorObject) {} in onError()
[all …]
DSimpleFilter.java3 import com.google.gwt.json.client.JSONObject;
11 private JSONObject parameters = new JSONObject();
17 private void updateObject(JSONObject to, JSONObject from) { in updateObject()
24 public void setAllParameters(JSONObject params) { in setAllParameters()
30 public void addParams(JSONObject params) { in addParams()
45 parameters = new JSONObject(); in clear()
DDynamicTableSelectionManager.java9 import com.google.gwt.json.client.JSONObject;
25 public void handlePage(List<JSONObject> data) {
29 Set<JSONObject> filteredRows = new JSONObjectSet<JSONObject>(data);
30 Set<JSONObject> rowsToRemove = new JSONObjectSet<JSONObject>(getSelectedObjects());
51 public void handlePage(List<JSONObject> data) { in selectAll()
71 JSONObject params = attachedDynamicTable.getCurrentQuery().getParams(); in deselectFiltered()
78 for (JSONObject object : getSelectedObjects()) { in selectedIdList()
DRpcDataSource.java10 import com.google.gwt.json.client.JSONObject;
21 public RpcQuery(JSONObject params) { in RpcQuery()
28 JSONObject pageParams = Utils.copyJSONObject(params); in getPage()
48 List<JSONObject> resultData = handleJsonResult(result); in getPage()
53 public void onError(JSONObject errorObject) { in getPage()
71 public void onError(JSONObject errorObject) { in getTotalResultCount()
91 protected List<JSONObject> handleJsonResult(JSONValue result) { in handleJsonResult()
92 return new JSONArrayList<JSONObject>(result.isArray()); in handleJsonResult()
96 public void query(JSONObject params, DataCallback callback) { in query()
/external/autotest/frontend/client/src/autotest/afe/
DHostSelector.java19 import com.google.gwt.json.client.JSONObject;
65 private ArrayDataSource<JSONObject> selectedHostData =
66 new ArrayDataSource<JSONObject>(new String[] {"hostname"});
100 public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) { in initialize()
108 public void onAdd(Collection<JSONObject> objects) { in initialize()
109 for (JSONObject row : objects) { in initialize()
115 public void onRemove(Collection<JSONObject> objects) { in initialize()
116 for (JSONObject row : objects) { in initialize()
124 public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) { in initialize()
163 JSONObject params = new JSONObject(); in setSelectedHostnames()
[all …]
DJobStatusDataSource.java9 import com.google.gwt.json.client.JSONObject;
24 private JSONObject dictionary;
46 protected List<JSONObject> handleJsonResult(JSONValue result) { in handleJsonResult()
47 List<JSONObject> queueEntries = super.handleJsonResult(result); in handleJsonResult()
48 List<JSONObject> rows = new ArrayList<JSONObject>(); in handleJsonResult()
49 Map<List<String>, JSONObject> metaHostEntries= new HashMap<List<String>, JSONObject>(); in handleJsonResult()
50 for(JSONObject queueEntry : queueEntries) { in handleJsonResult()
78 protected void processHostData(JSONObject queueEntry) { in processHostData()
79 JSONObject host = queueEntry.get("host").isObject(); in processHostData()
90 private void incrementMetaHostCount(Map<List<String>, JSONObject> metaHostEntries, in incrementMetaHostCount()
[all …]
DAfeUtils.java16 import com.google.gwt.json.client.JSONObject;
39 public static String formatStatusCounts(JSONObject counts, String joinWith) { in formatStatusCounts()
65 JSONObject label = labels.get(i).isObject(); in getFilteredLabelStrings()
98 public static JSONString getLockedText(JSONObject host) { in getLockedText()
103 public static void abortHostQueueEntries(Collection<JSONObject> entries, in abortHostQueueEntries()
111 Set<JSONObject> synchronousEntries = new JSONObjectSet<JSONObject>(); in abortHostQueueEntries()
112 for (JSONObject entry : entries) { in abortHostQueueEntries()
113 JSONObject job = entry.get("job").isObject(); in abortHostQueueEntries()
137 JSONObject params = new JSONObject(); in abortHostQueueEntries()
161 JSONObject params = new JSONObject(); in abortSpecialTasks()
[all …]
DJobDetailView.java29 import com.google.gwt.json.client.JSONObject;
139 JSONObject params = new JSONObject(); in fetchData()
144 JSONObject jobObject; in fetchData()
200 JSONObject counts = jobObject.get("status_counts").isObject(); in fetchData()
238 public void onError(JSONObject errorObject) { in fetchData()
245 protected boolean isAnyEntryAbortable(JSONObject statusCounts) { in isAnyEntryAbortable()
267 public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) { in initialize()
283 public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) { in initialize()
284 JSONObject host = row.get("host").isObject(); in initialize()
353 public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) { in initialize()
[all …]
DTestSelector.java18 import com.google.gwt.json.client.JSONObject;
44 public void addRow(JSONObject row); in addRow()
58 public Widget createWidget(int row, int cell, JSONObject rowObject); in createWidget()
90 private JSONObject test;
92 public TestInfoBuilder(JSONObject test) { in TestInfoBuilder()
121 private void writeSkipVerify(JSONObject test) { in writeSkipVerify()
143 private List<JSONObject> selectedTests = new ArrayList<JSONObject>();
174 for (JSONObject test : new JSONArrayList<JSONObject>(tests)) { in populateTests()
189 JSONObject user = staticData.getData("current_user").isObject(); in includeExperimentalTests()
194 public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick) { in onRowClicked()
[all …]
DHostDetailView.java35 import com.google.gwt.json.client.JSONObject;
65 protected List<JSONObject> handleJsonResult(JSONValue result) { in handleJsonResult()
66 List<JSONObject> resultArray = super.handleJsonResult(result); in handleJsonResult()
67 for (JSONObject row : resultArray) { in handleJsonResult()
134 protected void preprocessRow(JSONObject row) { in preprocessRow()
135 JSONObject job = row.get("job").isObject(); in preprocessRow()
160 private JSONObject currentHostObject;
225 JSONObject params = new JSONObject(); in fetchData()
231 JSONObject params = new JSONObject(); in fetchDataByHostname()
236 private void fetchDataCommmon(JSONObject params) { in fetchDataCommmon()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DConnectivityEvents.java22 import org.json.JSONObject;
47 public JSONObject toJSON() throws JSONException { in toJSON()
48 JSONObject packetKeepalive = new JSONObject(); in toJSON()
80 public JSONObject toJSON() throws JSONException { in toJSON()
81 JSONObject networkCallback = new JSONObject(); in toJSON()
111 public JSONObject toJSON() throws JSONException { in toJSON()
112 JSONObject json = super.toJSON(); in toJSON()
134 public JSONObject toJSON() throws JSONException { in toJSON()
135 JSONObject json = super.toJSON(); in toJSON()
158 public JSONObject toJSON() throws JSONException { in toJSON()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyEvents.java20 import org.json.JSONObject;
50 public JSONObject toJSON() throws JSONException { in toJSON()
51 JSONObject callState = new JSONObject(); in toJSON()
99 public JSONObject toJSON() throws JSONException { in toJSON()
100 JSONObject preciseCallState = new JSONObject(); in toJSON()
141 public JSONObject toJSON() throws JSONException { in toJSON()
142 JSONObject dataConnectionRealTimeInfo = new JSONObject(); in toJSON()
185 public JSONObject toJSON() throws JSONException { in toJSON()
186 JSONObject dataConnectionState = new JSONObject(); in toJSON()
230 public JSONObject toJSON() throws JSONException { in toJSON()
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/
DJSONArray.java185 this.myArrayList.add(new JSONObject((Map)o, includeSuperClass)); in JSONArray()
186 } else if (!JSONObject.isStandardProperty(o.getClass())) { in JSONArray()
187 this.myArrayList.add(new JSONObject(o, includeSuperClass)); in JSONArray()
224 if (JSONObject.isStandardProperty(o.getClass())) { in JSONArray()
227 this.myArrayList.add(new JSONObject(o,includeSuperClass)); in JSONArray()
338 public JSONObject getJSONObject(int index) throws JSONException { in getJSONObject()
340 if (o instanceof JSONObject) { in getJSONObject()
341 return (JSONObject)o; in getJSONObject()
380 return JSONObject.NULL.equals(opt(index)); in isNull()
400 sb.append(JSONObject.valueToString(this.myArrayList.get(i))); in join()
[all …]
DJSONObject.java89 public class JSONObject { class
147 public JSONObject() { in JSONObject() method in JSONObject
160 public JSONObject(JSONObject jo, String[] names) throws JSONException { in JSONObject() method in JSONObject
174 public JSONObject(JSONTokener x) throws JSONException { in JSONObject() method in JSONObject
235 public JSONObject(Map map) { in JSONObject() method in JSONObject
248 public JSONObject(Map map, boolean includeSuperClass) { in JSONObject() method in JSONObject
257 this.map.put(e.getKey(), new JSONObject(e.getValue(), in JSONObject()
284 public JSONObject(Object bean) { in JSONObject() method in JSONObject
306 public JSONObject(Object bean, boolean includeSuperClass) { in JSONObject() method in JSONObject
351 map.put(key, new JSONObject((Map)result, includeSuperClass)); in populateInternalMap()
[all …]
DJSONML.java55 JSONObject newjo = null; in parse()
133 newjo = new JSONObject(); in parse()
169 newjo.accumulate(attribute, JSONObject.stringToValue((String)token)); in parse()
222 JSONObject.stringToValue((String)token) : token); in parse()
277 public static JSONObject toJSONObject(XMLTokener x) throws JSONException { in toJSONObject()
278 return (JSONObject)parse(x, false, null); in toJSONObject()
293 public static JSONObject toJSONObject(String string) throws JSONException { in toJSONObject()
307 JSONObject jo; in toString()
324 if (e instanceof JSONObject) { in toString()
326 jo = (JSONObject)e; in toString()
[all …]
/external/autotest/frontend/client/src/autotest/moblab/rpc/
DMoblabRpcHelper.java5 import com.google.gwt.json.client.JSONObject;
51 public static void submitConfigData(JSONObject configValues, JsonRpcCallback callback) { in submitConfigData()
52 JSONObject params = new JSONObject(); in submitConfigData()
111 JSONObject params = new JSONObject(); in validateCloudStorageInfo()
127 public static void submitWizardConfigData(Map<String, JSONObject> configDataMap, in submitWizardConfigData()
129 JSONObject params = new JSONObject(); in submitWizardConfigData()
133 params.put(RPC_PARAM_CLOUD_STORAGE_INFO, new JSONObject()); in submitWizardConfigData()
138 params.put(RPC_PARAM_WIFI_INFO, new JSONObject()); in submitWizardConfigData()
199 JSONObject params = new JSONObject(); in addMoblabDut()
219 JSONObject params = new JSONObject(); in removeMoblabDut()
[all …]
/external/autotest/frontend/client/src/autotest/common/
DJsonRpcProxy.java8 import com.google.gwt.json.client.JSONObject;
60 public void rpcCall(String method, JSONObject params, final JsonRpcCallback callback) { in rpcCall()
61 JSONObject request = buildRequestObject(method, params); in rpcCall()
65 protected abstract void sendRequest(JSONObject request, final JsonRpcCallback callback); in sendRequest()
67 public static JSONObject buildRequestObject(String method, JSONObject params) { in buildRequestObject()
68 JSONObject request = new JSONObject(); in buildRequestObject()
75 private static JSONArray processParams(JSONObject params) { in processParams()
77 JSONObject newParams = new JSONObject(); in processParams()
89 protected static void handleResponseObject(JSONObject responseObject, in handleResponseObject()
DUtils.java9 import com.google.gwt.json.client.JSONObject;
84 public static JSONObject mapToJsonObject(Map<String, String> map) { in mapToJsonObject()
85 JSONObject result = new JSONObject(); in mapToJsonObject()
92 public static Map<String, String> jsonObjectToMap(JSONObject object) { in jsonObjectToMap()
105 public static JSONObject getSingleObjectFromList(List<JSONObject> list) { in getSingleObjectFromList()
112 public static JSONObject getSingleObjectFromArray(JSONArray array) { in getSingleObjectFromArray()
113 return getSingleObjectFromList(new JSONArrayList<JSONObject>(array)); in getSingleObjectFromArray()
116 public static JSONObject copyJSONObject(JSONObject source) { in copyJSONObject()
117 JSONObject dest = new JSONObject(); in copyJSONObject()
244 public static JSONValue setDefaultValue(JSONObject object, String key, JSONValue defaultValue) { in setDefaultValue()
[all …]
/external/volley/src/main/java/com/android/volley/toolbox/
DJsonObjectRequest.java26 import org.json.JSONObject;
34 public class JsonObjectRequest extends JsonRequest<JSONObject> {
45 public JsonObjectRequest(int method, String url, JSONObject jsonRequest, in JsonObjectRequest()
46 Listener<JSONObject> listener, ErrorListener errorListener) { in JsonObjectRequest()
57 public JsonObjectRequest(String url, JSONObject jsonRequest, Listener<JSONObject> listener, in JsonObjectRequest()
64 protected Response<JSONObject> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
68 return Response.success(new JSONObject(jsonString), in parseNetworkResponse()
/external/autotest/frontend/client/src/autotest/tko/
DTestGroupDataSource.java8 import com.google.gwt.json.client.JSONObject;
29 private JSONObject queryParameters;
49 public void query(JSONObject params, DataCallback callback) { in query()
53 public JSONObject getFullRequestParams(JSONObject conditionParams) { in getFullRequestParams()
54 JSONObject fullParams = Utils.copyJSONObject(conditionParams); in getFullRequestParams()
67 protected List<JSONObject> handleJsonResult(JSONValue result) { in handleJsonResult()
68 JSONObject resultObject = result.isObject(); in handleJsonResult()
70 return new JSONArrayList<JSONObject>(resultObject.get("groups").isArray()); in handleJsonResult()
105 public void setQueryParameters(JSONObject queryParameters) { in setQueryParameters()

123456