| /external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/ |
| JsonWireAdapter.java | 21 import com.google.polo.json.JSONObject; 90 JSONObject outerMessage; 92 outerMessage = new JSONObject(outerString); 119 JSONObject outerJson; 131 * Writes a {@link JSONObject} to the output stream as a {@link String}. 136 private void writeJson(JSONObject message) throws IOException {
|
| /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
| RoomParametersFetcher.java | 21 import org.json.JSONObject; 92 JSONObject roomJson = new JSONObject(response); 100 roomJson = new JSONObject(response); 112 JSONObject message = new JSONObject(messageString); 187 JSONObject responseJSON = new JSONObject(response); 202 JSONObject json = new JSONObject(pcConfig) [all...] |
| WebSocketRTCClient.java | 23 import org.json.JSONObject; 193 JSONObject json = new JSONObject(); 218 JSONObject json = new JSONObject(); 232 JSONObject json = new JSONObject(); 266 JSONObject json = new JSONObject(msg); 270 json = new JSONObject(msgText) [all...] |
| /development/samples/Wiktionary/src/com/example/android/wiktionary/ |
| SimpleWikiHelper.java | 27 import org.json.JSONObject; 148 JSONObject response = new JSONObject(content); 149 JSONObject query = response.getJSONObject("query"); 150 JSONObject pages = query.getJSONObject("pages"); 151 JSONObject page = pages.getJSONObject((String) pages.keys().next()); 153 JSONObject revision = revisions.getJSONObject(0);
|
| /development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
| SimpleWikiHelper.java | 27 import org.json.JSONObject; 155 JSONObject response = new JSONObject(content); 156 JSONObject query = response.getJSONObject("query"); 157 JSONObject pages = query.getJSONObject("pages"); 158 JSONObject page = pages.getJSONObject((String) pages.keys().next()); 160 JSONObject revision = revisions.getJSONObject(0);
|
| /external/autotest/frontend/client/src/autotest/tko/embedded_spreadsheet/ |
| EmbeddedSpreadsheetPresenter.java | 17 import com.google.gwt.json.client.JSONObject; 55 private JSONObject condition; 84 private JSONObject getFilterCondition(String afeJobIdStr) { 96 JSONObject condition = new JSONObject(); 105 private void renderSpreadsheet(JSONObject condition) { 110 spreadsheetProcessor.setHeaders(rowHeader, columnHeader, new JSONObject());
|
| /external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/ |
| SeekBarDialogTask.java | 30 import org.json.JSONObject; 83 JSONObject result = new JSONObject(); 114 JSONObject result = new JSONObject(); 131 JSONObject result = new JSONObject();
|
| /external/autotest/frontend/client/src/autotest/common/ |
| Utils.java | 9 import com.google.gwt.json.client.JSONObject; 83 public static JSONObject mapToJsonObject(Map<String, String> map) { 84 JSONObject result = new JSONObject(); 91 public static Map<String, String> jsonObjectToMap(JSONObject object) { 100 * Get a value out of a JSONObject list of size 1. 104 public static JSONObject getSingleObjectFromList(List<JSONObject> list) { 111 public static JSONObject getSingleObjectFromArray(JSONArray array) { 112 return getSingleObjectFromList(new JSONArrayList<JSONObject>(array)) [all...] |
| PaddedJsonRpcProxy.java | 7 import com.google.gwt.json.client.JSONObject; 108 JSONObject responseObject = new JSONObject(responseJso); 151 protected void sendRequest(JSONObject request, JsonRpcCallback callback) {
|
| /external/google-tv-pairing-protocol/java/src/com/google/polo/json/ |
| JSONObject.java | 39 * A JSONObject is an unordered collection of name/value pairs. Its 45 * <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>, 46 * <code>Number</code>, <code>String</code>, or the <code>JSONObject.NULL</code> 47 * object. A JSONObject constructor can be used to convert an external form 62 * myString = new JSONObject().put("JSON", "Hello, World!").toString();</pre> 89 public class JSONObject { 92 * JSONObject.NULL is equivalent to the value that JavaScript calls null, 111 * @return true if the object parameter is the JSONObject.NULL object 130 * The map where the JSONObject's properties are kept. 138 * <code>JSONObject.NULL.equals(null)</code> returns <code>true</code> [all...] |
| /external/autotest/frontend/client/src/autotest/afe/ |
| HostDetailView.java | 35 import com.google.gwt.json.client.JSONObject; 65 protected List<JSONObject> handleJsonResult(JSONValue result) { 66 List<JSONObject> resultArray = super.handleJsonResult(result); 67 for (JSONObject row : resultArray) { 134 protected void preprocessRow(JSONObject row) { 135 JSONObject job = row.get("job").isObject(); 160 private JSONObject currentHostObject; 226 JSONObject params = new JSONObject(); 232 JSONObject params = new JSONObject() [all...] |
| JobTable.java | 9 import com.google.gwt.json.client.JSONObject; 48 protected void preprocessRow(JSONObject row) { 49 JSONObject status_counts = row.get("status_counts").isObject();
|
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| VulkanFeaturesTest.java | 27 import org.json.JSONObject; 49 JSONObject mVulkanDevices[]; 112 JSONObject bestDevice = null; 115 for (JSONObject device : mVulkanDevices) { 151 private int determineHardwareLevel(JSONObject device) throws JSONException { 152 JSONObject features = device.getJSONObject("features"); 184 private int determineHardwareVersion(JSONObject device) throws JSONException { 221 private JSONObject[] getVulkanDevices() throws JSONException, UnsupportedEncodingException { 223 JSONObject[] devices = new JSONObject[vkjson.length()] [all...] |
| /device/google/contexthub/util/common/ |
| JSONObject.h | 32 struct JSONObject; 58 bool getObject(sp<JSONObject> *value) const; 65 void setObject(const sp<JSONObject> &obj); 139 bool getObject(KEY key, sp<JSONObject> *obj) const { 160 struct JSONObject : public JSONBase<const char *> { 161 JSONObject(); 190 void setObject(const char *key, const sp<JSONObject> &obj) { 203 virtual ~JSONObject(); 211 DISALLOW_EVIL_CONSTRUCTORS(JSONObject); 245 void addObject(const sp<JSONObject> &obj) [all...] |
| /libcore/json/src/test/java/org/json/ |
| ParsingTest.java | 40 assertParsed(JSONObject.NULL, "null"); 41 assertParsed(JSONObject.NULL, "NULL"); 224 private JSONObject object(Object... keyValuePairs) throws JSONException { 225 JSONObject result = new JSONObject(); 256 } else if (input instanceof JSONObject) { 257 JSONObject object = (JSONObject) input; 264 } else if (input == null || input.equals(JSONObject.NULL)) { 265 return JSONObject.NULL [all...] |
| /external/autotest/frontend/client/src/autotest/common/table/ |
| DataTable.java | 12 import com.google.gwt.json.client.JSONObject; 25 * JSONObject. A header row with column titles is automatically generated, and 47 public void onRowClicked(int rowIndex, JSONObject row, boolean isRightClick); 60 protected List<JSONObject> jsonObjects = new ArrayList<JSONObject>(); 64 public Widget createWidget(int row, int cell, JSONObject rowObject); 135 * This gets called for every JSONObject that gets added to the table using 141 protected void preprocessRow(JSONObject row) {} 143 protected String[] getRowText(JSONObject row) { 185 * Add a row from a JSONObject. Columns will be populated by pulling field [all...] |
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
| ItsSerializer.java | 44 import org.json.JSONObject; 73 JSONObject ratObj = new JSONObject(); 81 JSONObject sizeObj = new JSONObject(); 89 JSONObject sizeObj = new JSONObject(); 97 JSONObject rectObj = new JSONObject(); 106 JSONObject pointObj = new JSONObject() [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
| ReplyFromAccount.java | 29 import org.json.JSONObject; 64 public JSONObject serialize() { 65 JSONObject json = new JSONObject(); 79 public static ReplyFromAccount deserialize(Account account, JSONObject json) { 99 replyFromAccount = deserialize(account, new JSONObject(stringExtra));
|
| /external/autotest/frontend/client/src/autotest/tko/ |
| SavedQueriesControl.java | 18 import com.google.gwt.json.client.JSONObject; 104 JSONObject args = new JSONObject(); 109 for (JSONObject query : new JSONArrayList<JSONObject>(result.isArray())) { 148 JSONObject args = new JSONObject(); 163 JSONObject args = new JSONObject(); 183 JSONObject args = new JSONObject() [all...] |
| TestDetailView.java | 16 import com.google.gwt.json.client.JSONObject; 56 public void onError(JSONObject errorObject) { 83 JSONObject params = new JSONObject(); 141 public AttributeTable(JSONObject attributes) { 148 private void processAttributes(JSONObject attributes) { 199 JSONObject params = new JSONObject(); 204 JSONObject test; 218 public void onError(JSONObject errorObject) [all...] |
| DynamicGraphingFrontend.java | 10 import com.google.gwt.json.client.JSONObject; 44 JSONObject params = buildParams(); 59 public void onError(JSONObject errorObject) { 66 protected abstract JSONObject buildParams();
|
| /libcore/json/src/main/java/org/json/ |
| JSONArray.java | 29 * {@link JSONObject JSONObjects}, other {@link JSONArray JSONArrays}, Strings, 30 * Booleans, Integers, Longs, Doubles, {@code null} or {@link JSONObject#NULL}. 35 * optional/mandatory accessors as {@link JSONObject}. See that class' 40 * JSONObject#NULL}. In particular, {@code get} fails if the requested index 41 * holds the null reference, but succeeds if it holds {@code JSONObject.NULL}. 73 put(JSONObject.wrap(it.next())); 121 put(JSONObject.wrap(Array.get(array, i))); 177 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean, 178 * Integer, Long, Double, {@link JSONObject#NULL}, or {@code null}. May 251 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean [all...] |
| /packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/ |
| AccountTests.java | 26 import org.json.JSONObject; 63 final JSONObject json = new JSONObject();
|
| /packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
| MetadataEntryParser.java | 24 import org.json.JSONObject; 154 final JSONObject root = new JSONObject(inputData); 156 final JSONObject uniqueContactJSON = root.getJSONObject(UNIQUE_CONTACT_ID); 160 final JSONObject contactPrefs = root.getJSONObject(CONTACT_PREFS); 173 final JSONObject aggregationData = aggregationDatas.getJSONObject(i); 180 final JSONObject rawContact1 = contacts.getJSONObject(0); 182 final JSONObject rawContact2 = contacts.getJSONObject(1); 201 final JSONObject fieldData = fieldDatas.getJSONObject(i); 206 final JSONObject fieldDataPrefs = fieldData.getJSONObject(FIELD_DATA_PREFS) [all...] |
| /external/autotest/frontend/client/src/autotest/moblab/ |
| KeyUploadView.java | 11 import com.google.gwt.json.client.JSONObject; 62 JSONObject params = new JSONObject(); 72 public void rpcCall(JSONObject params) {
|