/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-java/ |
HelloLicenseServlet.java | 23 import com.google.appengine.repackaged.org.json.JSONObject; 93 JSONObject json = new JSONObject(file);
|
/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();
|
/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...] |
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
InspectorDOMDebuggerAgent.h | 53 class JSONObject; 110 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synchronous); 111 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName, const String* targetName); 128 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion, JSONObject* description);
|
InspectorWorkerAgent.h | 41 class JSONObject; 68 virtual void sendMessageToWorker(ErrorString*, int workerId, const RefPtr<JSONObject>& message) OVERRIDE;
|
InspectorDOMAgent.h | 136 virtual void setInspectModeEnabled(ErrorString*, bool enabled, const bool* inspectUAShadowDOM, const RefPtr<JSONObject>* highlightConfig) OVERRIDE; 141 virtual void highlightRect(ErrorString*, int x, int y, int width, int height, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor) OVERRIDE; 142 virtual void highlightQuad(ErrorString*, const RefPtr<JSONArray>& quad, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor) OVERRIDE; 143 virtual void highlightNode(ErrorString*, const RefPtr<JSONObject>& highlightConfig, const int* nodeId, const String* objectId) OVERRIDE; 144 virtual void highlightFrame(ErrorString*, const String& frameId, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor) OVERRIDE; 225 void setSearchingForNode(ErrorString*, SearchMode, JSONObject* highlightConfig); 226 PassOwnPtr<HighlightConfig> highlightConfigFromInspectorObject(ErrorString*, JSONObject* highlightInspectorObject) [all...] |
CodeGeneratorInspectorStrings.py | 47 """void InspectorBackendDispatcherImpl::${domainName}_$methodName(long callId, JSONObject*$requestMessageObject, JSONArray* protocolErrors) 65 RefPtr<JSONObject> jsonMessage = JSONObject::create(); 77 RefPtr<JSONObject> jsonMessage = JSONObject::create(); 136 class JSONObject; 159 void sendIfActive(PassRefPtr<JSONObject> partialMessage, const ErrorString& invocationError, PassRefPtr<JSONValue> errorData); 249 void sendResponse(long callId, const ErrorString& invocationError, PassRefPtr<JSONValue> errorData, PassRefPtr<JSONObject> result); 260 static R getPropertyValueImpl(JSONObject* object, const char* name, bool* valueFound, JSONArray* protocolErrors, V0 initial_value, bool (*as_method)(JSONValue*, V*), const char* type_name); 262 static int getInt(JSONObject* object, const char* name, bool* valueFound, JSONArray* protocolErrors) [all...] |
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/ |
Cookie.java | 28 * Convert a web browser cookie specification to a JSONObject and back. 67 * Convert a cookie specification string into a JSONObject. The string 75 * a JSONObject. 77 * @return A JSONObject containing "name", "value", and possibly other 81 public static JSONObject toJSONObject(String string) throws JSONException { 83 JSONObject o = new JSONObject(); 109 * Convert a JSONObject into a cookie specification string. The JSONObject 111 * If the JSONObject contains "expires", "domain", "path", or "secure [all...] |
HTTP.java | 30 * Convert an HTTP header to a JSONObject and back. 40 * Convert an HTTP header string into a JSONObject. It can be a request 67 * @return A JSONObject containing the elements and attributes 71 public static JSONObject toJSONObject(String string) throws JSONException { 72 JSONObject o = new JSONObject(); 108 * Convert a JSONObject into an HTTP header. A request header must contain 120 * Any other members of the JSONObject will be output as HTTP fields. 122 * @param o A JSONObject 127 public static String toString(JSONObject o) throws JSONException [all...] |
Test.java | 21 JSONObject j; 28 * construct a JSONObject. It also demonstrates constructing 29 * a JSONObject with an array of names. 63 return "{" + JSONObject.quote(this.aString) + ":" + 64 JSONObject.doubleToString(this.aNumber) + "}"; 80 j = new JSONObject(s); 114 j = new JSONObject(obj); 118 j = new JSONObject(s); 138 .value(JSONObject.getNames(obj)) 197 j = new JSONObject(obj, sa) [all...] |
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
StaticMetadataCollectionTest.java | 29 import org.json.JSONObject; 60 JSONObject cameraInfo = cameraInfoGetter.getCameraInfo(id); 65 JSONObject[] templates = cameraInfoGetter.getCaptureRequestTemplates(id); 125 } else if (arr.get(0) instanceof JSONObject) { 127 dumpJsonObjectAsCtsResult(name+String.format("[%04d]",i),(JSONObject)arr.get(i)); 150 private void dumpJsonObjectAsCtsResult(String name, JSONObject obj) { 159 if (obj.get(key) instanceof JSONObject) { 160 dumpJsonObjectAsCtsResult(name+"."+key, (JSONObject)obj.get(key));
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
CameraMetadataGetter.java | 54 import org.json.JSONObject; 138 public JSONObject getCameraInfo(String cameraId) { 139 JSONObject staticMetadata = null; 150 public JSONObject[] getCaptureRequestTemplates(String cameraId) { 151 JSONObject[] templates = new JSONObject[TEMPLATE_IDS.length]; 171 return new JSONObject[0]; 249 JSONObject ratObj = new JSONObject(); 257 JSONObject sizeObj = new JSONObject() [all...] |
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
HostInfo.java | 9 import org.json.JSONObject; 40 public static HostInfo create(JSONObject json) throws JSONException {
|
HostListLoader.java | 14 import org.json.JSONObject; 131 JSONObject data = new JSONObject(response).getJSONObject("data"); 138 JSONObject hostJson = hostsJson.getJSONObject(index);
|
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/ |
AppRTCClient.java | 36 import org.json.JSONObject; 238 JSONObject roomJson = new JSONObject( 309 JSONObject json = new JSONObject(mediaConstraintsString); 335 JSONObject json = new JSONObject(jsonString); 336 JSONObject mandatoryJSON = json.optJSONObject("mandatory"); 351 JSONObject keyValueDict = optionalJSON.getJSONObject(i); 372 JSONObject responseJSON = new JSONObject(response) [all...] |
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
ExtendedWikiHelper.java | 21 import org.json.JSONObject; 208 JSONObject response = new JSONObject(content); 209 JSONObject query = response.getJSONObject("query"); 211 JSONObject word = random.getJSONObject(0);
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
JSONValues.cpp | 132 bool JSONValue::asObject(RefPtr<JSONObject>*) 142 PassRefPtr<JSONObject> JSONValue::asObject() 266 bool JSONObjectBase::asObject(RefPtr<JSONObject>* output) 268 COMPILE_ASSERT(sizeof(JSONObject) == sizeof(JSONObjectBase), cannot_cast); 269 *output = static_cast<JSONObject*>(this); 273 PassRefPtr<JSONObject> JSONObjectBase::asObject() 300 void JSONObjectBase::setObject(const String& name, PassRefPtr<JSONObject> value) 314 JSONObject* JSONObjectBase::openAccessors() 316 COMPILE_ASSERT(sizeof(JSONObject) == sizeof(JSONObjectBase), cannot_cast); 317 return static_cast<JSONObject*>(this) [all...] |
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
BluetoothMapBmessage.java | 22 import org.json.JSONObject; 156 JSONObject json = new JSONObject();
|
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 32 import org.json.JSONObject; 57 JSONObject jsonObject = AssetUtils.loadJSONAsset(mContext, Constants.RECIPE_LIST_FILE); 58 if (jsonObject != null) { 59 List<Item> items = parseJson(jsonObject); 64 private List<Item> parseJson(JSONObject json) { 69 JSONObject item = items.getJSONObject(i);
|
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 32 import org.json.JSONObject; 57 JSONObject jsonObject = AssetUtils.loadJSONAsset(mContext, Constants.RECIPE_LIST_FILE); 58 if (jsonObject != null) { 59 List<Item> items = parseJson(jsonObject); 64 private List<Item> parseJson(JSONObject json) { 69 JSONObject item = items.getJSONObject(i);
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
RecipeListAdapter.java | 32 import org.json.JSONObject; 57 JSONObject jsonObject = AssetUtils.loadJSONAsset(mContext, Constants.RECIPE_LIST_FILE); 58 if (jsonObject != null) { 59 List<Item> items = parseJson(jsonObject); 64 private List<Item> parseJson(JSONObject json) { 69 JSONObject item = items.getJSONObject(i);
|
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
InspectorIndexedDBAgent.h | 59 virtual void requestData(ErrorString*, const String& securityOrigin, const String& databaseName, const String& objectStoreName, const String& indexName, int skipCount, int pageSize, const RefPtr<JSONObject>* keyRange, PassRefPtrWillBeRawPtr<RequestDataCallback>) OVERRIDE;
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
VideoProvider.java | 24 import org.json.JSONObject; 61 protected JSONObject parseUrl(String urlString) { 79 return new JSONObject(json); 105 JSONObject jsonObj = new VideoProvider().parseUrl(url); 115 JSONObject category = categories.getJSONObject(i); 124 JSONObject video = videos.getJSONObject(j);
|
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/ |
CacheData.java | 26 import org.json.JSONObject; 160 private final JSONObject mExistingJso; 170 private JsonHandler(String key, JSONObject oldJso, DataLoadListener listener) { 196 JSONObject json = map; 265 void fetchDynamicData(final LookupKey key, JSONObject existingJso, 404 * @param object The JSONObject to be put into cache. 406 void addToJsoMap(String id, JSONObject object) {
|