/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/ |
JsonRpcResult.java | 20 import org.json.JSONObject; 35 public static JSONObject empty(int id) throws JSONException { 36 JSONObject json = new JSONObject(); 38 json.put("result", JSONObject.NULL); 39 json.put("error", JSONObject.NULL); 43 public static JSONObject result(int id, Object data) throws JSONException { 44 JSONObject json = new JSONObject(); 47 json.put("error", JSONObject.NULL) [all...] |
JsonDeserializable.java | 20 import org.json.JSONObject; 23 public JSONObject fromJSON() throws JSONException;
|
JsonSerializable.java | 20 import org.json.JSONObject; 23 public JSONObject toJSON() throws JSONException;
|
/external/autotest/frontend/client/src/autotest/tko/ |
SingleTestSet.java | 3 import com.google.gwt.json.client.JSONObject; 7 private JSONObject initialCondition = new JSONObject(); 13 public SingleTestSet(int testIndex, JSONObject initialCondition) { 19 public JSONObject getInitialCondition() {
|
TestSet.java | 3 import com.google.gwt.json.client.JSONObject; 10 public abstract JSONObject getInitialCondition(); 18 public JSONObject getCondition() { 19 JSONObject condition = getInitialCondition();
|
ConditionTestSet.java | 5 import com.google.gwt.json.client.JSONObject; 12 private JSONObject initialCondition = new JSONObject(); 14 public ConditionTestSet(JSONObject initialCondition) { 19 this.initialCondition = new JSONObject(); 27 public JSONObject getInitialCondition() {
|
TestViewDataSource.java | 5 import com.google.gwt.json.client.JSONObject; 19 protected List<JSONObject> handleJsonResult(JSONValue result) { 20 List<JSONObject> objects = super.handleJsonResult(result); 21 for (JSONObject object : objects) {
|
TestGroupDataSource.java | 8 import com.google.gwt.json.client.JSONObject; 29 private JSONObject queryParameters; 49 public void query(JSONObject params, DataCallback callback) { 53 public JSONObject getFullRequestParams(JSONObject conditionParams) { 54 JSONObject fullParams = Utils.copyJSONObject(conditionParams); 67 protected List<JSONObject> handleJsonResult(JSONValue result) { 68 JSONObject resultObject = result.isObject(); 70 return new JSONArrayList<JSONObject>(resultObject.get("groups").isArray()); 105 public void setQueryParameters(JSONObject queryParameters) [all...] |
/external/autotest/frontend/client/src/autotest/common/table/ |
SimpleFilter.java | 3 import com.google.gwt.json.client.JSONObject; 11 private JSONObject parameters = new JSONObject(); 17 private void updateObject(JSONObject to, JSONObject from) { 24 public void setAllParameters(JSONObject params) { 30 public void addParams(JSONObject params) { 45 parameters = new JSONObject();
|
SelectionManager.java | 8 import com.google.gwt.json.client.JSONObject; 29 private Set<JSONObject> selectedObjects = new JSONObjectSet<JSONObject>(); 36 public void onAdd(Collection<JSONObject> objects); 37 public void onRemove(Collection<JSONObject> objects); 41 public boolean isRowSelectable(JSONObject row); 55 JSONObject row = attachedTable.getRow(i); 68 private boolean isSelectable(JSONObject row) { 75 public void selectObject(JSONObject object) { 79 public void selectObjects(Collection<? extends JSONObject> objects) [all...] |
DataSource.java | 5 import com.google.gwt.json.client.JSONObject; 56 public JSONObject getParams(); 77 protected JSONObject params; 79 public DefaultQuery(JSONObject params) { 81 this.params = new JSONObject(); 88 public JSONObject getParams() { 102 public void handlePage(List<JSONObject> data); 104 public void onError(JSONObject errorObject); 108 public void handlePage(List<JSONObject> data) {} 111 public void onError(JSONObject errorObject) { [all...] |
DynamicTableSelectionManager.java | 9 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) { 71 JSONObject params = attachedDynamicTable.getCurrentQuery().getParams(); 78 for (JSONObject object : getSelectedObjects()) {
|
JSONObjectComparator.java | 5 import com.google.gwt.json.client.JSONObject; 9 public class JSONObjectComparator implements Comparator<JSONObject> { 17 public int compare(JSONObject arg0, JSONObject arg1) { 29 // JSONObject.equals()
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
BackupSharedPreference.java | 20 import org.json.JSONObject; 30 JSONObject toJson() throws JSONException;
|
/libcore/json/src/test/java/org/json/ |
JSONObjectTest.java | 40 JSONObject object = new JSONObject(); 109 JSONObject a = new JSONObject(); 110 JSONObject b = new JSONObject(); 118 JSONObject object = new JSONObject(); 142 JSONObject object = new JSONObject(); [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
ConnectivityEvents.java | 22 import org.json.JSONObject; 47 public JSONObject toJSON() throws JSONException { 48 JSONObject packetKeepalive = new JSONObject(); 76 public JSONObject toJSON() throws JSONException { 77 JSONObject networkCallback = new JSONObject(); 102 public JSONObject toJSON() throws JSONException { 103 JSONObject json = super.toJSON(); 124 public JSONObject toJSON() throws JSONException [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
JsonObjectRequest.java | 26 import org.json.JSONObject; 31 * A request for retrieving a {@link JSONObject} response body at a given URL, allowing for an 32 * optional {@link JSONObject} to be passed in as part of the request body. 34 public class JsonObjectRequest extends JsonRequest<JSONObject> { 40 * @param jsonRequest A {@link JSONObject} to post with the request. Null is allowed and 45 public JsonObjectRequest(int method, String url, JSONObject jsonRequest, 46 Listener<JSONObject> listener, ErrorListener errorListener) { 55 * @see #JsonObjectRequest(int, String, JSONObject, Listener, ErrorListener) 57 public JsonObjectRequest(String url, JSONObject jsonRequest, Listener<JSONObject> listener [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SettingsDumpService.java | 31 import org.json.JSONObject; 46 JSONObject dump = new JSONObject(); 60 private JSONObject dumpMemory() throws JSONException { 61 JSONObject obj = new JSONObject(); 74 private JSONObject dumpDataUsage() throws JSONException { 75 JSONObject obj = new JSONObject(); 85 final JSONObject usage = dumpDataUsage(mobileAll, controller) [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/ |
TimePickerDialogTask.java | 25 import org.json.JSONObject; 49 JSONObject result = new JSONObject(); 63 JSONObject result = new JSONObject(); 77 JSONObject result = new JSONObject();
|
/external/autotest/frontend/client/src/autotest/afe/models/ |
Host.java | 5 import com.google.gwt.json.client.JSONObject; 7 public class Host extends JSONObject { 8 public static Host fromJsonObject(JSONObject object) {
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/ |
XmlMessageBuilder.java | 23 import com.google.polo.json.JSONObject; 129 JSONObject outerMessage; 136 JSONObject payload; 185 * NOTE(mikey): These methods are implemented in terms of JSONObject 204 * @throws PoloException on error parsing the {@link JSONObject} 206 PairingRequestMessage getPairingRequest(JSONObject body) 209 JSONObject jsonObj = body.getJSONObject( 228 * @throws PoloException on error parsing the {@link JSONObject} 230 PairingRequestAckMessage getPairingRequestAck(JSONObject body) 233 JSONObject jsonObj = body.getJSONObject [all...] |
/external/autotest/frontend/client/src/autotest/afe/ |
JobStatusDataSource.java | 9 import com.google.gwt.json.client.JSONObject; 24 private JSONObject dictionary; 46 protected List<JSONObject> handleJsonResult(JSONValue result) { 47 List<JSONObject> queueEntries = super.handleJsonResult(result); 48 List<JSONObject> rows = new ArrayList<JSONObject>(); 49 Map<List<String>, JSONObject> metaHostEntries= new HashMap<List<String>, JSONObject>(); 50 for(JSONObject queueEntry : queueEntries) { 78 protected void processHostData(JSONObject queueEntry) [all...] |
RecurringTable.java | 7 import com.google.gwt.json.client.JSONObject; 31 protected void preprocessRow(JSONObject row) { 32 JSONObject job = row.get("job").isObject(); 34 JSONObject owner = row.get("owner").isObject();
|
HostDataSource.java | 9 import com.google.gwt.json.client.JSONObject; 29 protected List<JSONObject> handleJsonResult(JSONValue result) { 30 List<JSONObject> resultList = super.handleJsonResult(result); 31 List<JSONObject> hosts = new ArrayList<JSONObject>(); 32 for (JSONObject row : resultList) { 40 protected void processHost(JSONObject host) {
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/ |
JsonMessageBuilder.java | 25 import com.google.polo.json.JSONObject; 107 * @param outerMessage a {@link JSONObject} corresponding to the 110 * @throws PoloException on error parsing the {@link JSONObject} 112 public static PoloMessage outerJsonToPoloMessage(JSONObject outerMessage) 114 JSONObject payload; 159 * @throws PoloException on error parsing the {@link JSONObject} 161 static PairingRequestMessage getPairingRequest(JSONObject body) 181 static PairingRequestAckMessage getPairingRequestAck(JSONObject body) 199 * @throws PoloException on error parsing the {@link JSONObject} 201 static OptionsMessage getOptionsMessage(JSONObject body [all...] |