HomeSort by relevance Sort by last modified time
    Searched refs:JSONObject (Results 26 - 50 of 189) sorted by null

12 3 4 5 6 7 8

  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
ListParams.java 26 import org.json.JSONObject;
91 JSONObject json = new JSONObject();
112 JSONObject json = null;
114 json = new JSONObject(serializedParams);
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/google-tv-pairing-protocol/java/src/com/google/polo/json/
JSONArray.java 41 * <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>,
43 * <code>JSONObject.NULL object</code>.
185 this.myArrayList.add(new JSONObject((Map)o, includeSuperClass));
186 } else if (!JSONObject.isStandardProperty(o.getClass())) {
187 this.myArrayList.add(new JSONObject(o, includeSuperClass));
224 if (JSONObject.isStandardProperty(o.getClass())) {
227 this.myArrayList.add(new JSONObject(o,includeSuperClass));
332 * Get the JSONObject associated with an index.
334 * @return A JSONObject value.
336 * value is not a JSONObject
    [all...]
JSONWriter.java 55 * This can sometimes be easier than using a JSONObject to build a string.
81 private JSONObject stack[];
99 this.stack = new JSONObject[maxdepth];
211 this.writer.write(JSONObject.quote(s));
239 this.push(new JSONObject());
270 private void push(JSONObject jo) throws JSONException {
315 * String, JSONObject, or JSONArray, or an object with a toJSONString()
321 return this.append(JSONObject.valueToString(o));
JSONML.java 32 * JSONObject, and to covert a JSONArray or JSONObject into an XML text using
55 JSONObject newjo = null;
133 newjo = new JSONObject();
169 newjo.accumulate(attribute, JSONObject.stringToValue((String)token));
222 JSONObject.stringToValue((String)token) : token);
233 * attributes, then the second element will be JSONObject containing the
250 * attributes, then the second element will be JSONObject containing the
266 * JSONObject using the JsonML transform. Each XML tag is represented as
267 * a JSONObject with a "tagName" property. If the tag has attributes, then
    [all...]
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...]
  /libcore/json/src/main/java/org/json/
JSONObject.java 30 * Values may be any mix of {@link JSONObject JSONObjects}, {@link JSONArray
54 * coerced, the sentinel value {@link JSONObject#NULL} is coerced to the
70 * JSONObject#NULL}. In particular, calling {@code put(name, null)} removes the
71 * named entry from the object but {@code put(name, JSONObject.NULL)} stores an
72 * entry whose value is {@code JSONObject.NULL}.
80 public class JSONObject {
111 * Creates a {@code JSONObject} with no name/value mappings.
113 public JSONObject() {
118 * Creates a new {@code JSONObject} by copying all name/value mappings from
126 public JSONObject(Map copyFrom)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/inspector/
InspectorDOMDebuggerAgent.cpp 184 static PassRefPtr<JSONObject> ensurePropertyObject(JSONObject* object, const String& propertyName)
186 JSONObject::iterator it = object->find(propertyName);
190 RefPtr<JSONObject> result = JSONObject::create();
210 RefPtr<JSONObject> eventListenerBreakpoints = m_state->getObject(DOMDebuggerAgentState::eventListenerBreakpoints);
211 RefPtr<JSONObject> breakpointsByTarget = ensurePropertyObject(eventListenerBreakpoints.get(), eventName);
236 RefPtr<JSONObject> eventListenerBreakpoints = m_state->getObject(DOMDebuggerAgentState::eventListenerBreakpoints);
237 RefPtr<JSONObject> breakpointsByTarget = ensurePropertyObject(eventListenerBreakpoints.get(), eventName);
248 RefPtr<JSONObject> eventData = JSONObject::create()
    [all...]
InspectorInspectorAgent.h 46 class JSONObject;
82 void inspect(PassRefPtr<TypeBuilder::Runtime::RemoteObject> objectToInspect, PassRefPtr<JSONObject> hints);
92 pair<RefPtr<TypeBuilder::Runtime::RemoteObject>, RefPtr<JSONObject> > m_pendingInspectData;
  /frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/
BluetoothPbapCard.java 26 import org.json.JSONObject;
64 JSONObject json = new JSONObject();
82 JSONObject json = new JSONObject();
103 JSONObject jsonPhone = new JSONObject();
125 JSONObject jsonEmail = new JSONObject();
  /external/chromium_org/components/cronet/android/java/src/org/chromium/net/
HttpUrlRequestFactoryConfig.java 9 import org.json.JSONObject;
38 mConfig = new JSONObject(json);
122 JSONObject hint = new JSONObject();
179 private JSONObject mConfig = new JSONObject();
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/
LoggingCanvas.h 96 PassRefPtr<JSONObject> addItem(const String& name);
97 PassRefPtr<JSONObject> addItemWithParams(const String& name);
98 PassRefPtr<JSONObject> objectForSkRect(const SkRect&);
99 PassRefPtr<JSONObject> objectForSkIRect(const SkIRect&);
101 PassRefPtr<JSONObject> objectForSkPoint(const SkPoint&);
103 PassRefPtr<JSONObject> objectForSkPicture(const SkPicture&);
104 PassRefPtr<JSONObject> objectForRadius(const SkRRect& rrect, SkRRect::Corner);
107 PassRefPtr<JSONObject> objectForSkRRect(const SkRRect&);
112 PassRefPtr<JSONObject> objectForSkPath(const SkPath&);
114 PassRefPtr<JSONObject> objectForBitmapData(const SkBitmap&)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/filesystem/
InspectorFrontendHostFileSystem.cpp 25 RefPtr<JSONObject> message = JSONObject::create();
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
IncludedDependenciesTest.java 3 import org.json.JSONObject;
17 assertEquals("value", new JSONObject("{'name':'value'}").getString("name"));
  /developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
AssetUtils.java 25 import org.json.JSONObject;
47 public static JSONObject loadJSONAsset(Context context, String asset) {
49 JSONObject jsonObject = null;
51 jsonObject = new JSONObject(jsonString);
55 return jsonObject;
  /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
AssetUtils.java 25 import org.json.JSONObject;
47 public static JSONObject loadJSONAsset(Context context, String asset) {
49 JSONObject jsonObject = null;
51 jsonObject = new JSONObject(jsonString);
55 return jsonObject;
  /development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
AssetUtils.java 25 import org.json.JSONObject;
47 public static JSONObject loadJSONAsset(Context context, String asset) {
49 JSONObject jsonObject = null;
51 jsonObject = new JSONObject(jsonString);
55 return jsonObject;
  /external/chromium_org/third_party/WebKit/Source/core/html/parser/
XSSAuditorDelegate.cpp 93 RefPtr<JSONObject> reportDetails = JSONObject::create();
97 RefPtr<JSONObject> reportObject = JSONObject::create();
  /external/chromium_org/third_party/WebKit/Source/platform/
JSONValues.h 45 class JSONObject;
80 virtual bool asObject(RefPtr<JSONObject>* output);
82 virtual PassRefPtr<JSONObject> asObject();
170 virtual PassRefPtr<JSONObject> asObject() OVERRIDE;
171 JSONObject* openAccessors();
178 virtual bool asObject(RefPtr<JSONObject>* output) OVERRIDE;
184 void setObject(const String& name, PassRefPtr<JSONObject>);
198 PassRefPtr<JSONObject> getObject(const String& name) const;
221 class PLATFORM_EXPORT JSONObject : public JSONObjectBase {
223 static PassRefPtr<JSONObject> create(
    [all...]
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/omnibox/
SuggestionAnswer.java 11 import org.json.JSONObject;
57 JSONObject jsonAnswer = new JSONObject(answerContents);
101 ImageLine(JSONObject jsonLine) throws JSONException {
179 TextField(JSONObject jsonTextField) throws JSONException {
  /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 {
  /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/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
JsoMap.java 21 import org.json.JSONObject;
30 class JsoMap extends JSONObject {
63 private JsoMap(JSONObject copyFrom, String[] names) throws JSONException {
100 * Access JSONObject.get(String) which is shadowed by JsoMap.get(String).
146 // JSONObject.keys() has no type information.
151 if (o instanceof JSONObject) {
152 JSONObject value = (JSONObject) o;
239 * Save a string to JSONObject mapping into this map.
242 * @param value a JSONObject as value
    [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...]

Completed in 1317 milliseconds

12 3 4 5 6 7 8