| /cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
| VulkanDeviceInfo.java | 24 import org.json.JSONObject; 289 JSONObject instance = new JSONObject(nativeGetVkJSON()); 299 private static void emitDevices(DeviceInfoStore store, JSONObject parent) 304 JSONObject device = devices.getJSONObject(deviceIdx); 307 JSONObject properties = device.getJSONObject(KEY_PROPERTIES); 318 JSONObject limits = properties.getJSONObject(KEY_LIMITS); 430 JSONObject sparse = properties.getJSONObject(KEY_SPARSE_PROPERTIES); [all...] |
| /external/google-tv-pairing-protocol/java/src/com/google/polo/json/ |
| 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/common/host-side/util/src/com/android/compatibility/common/util/ |
| DynamicConfigHandler.java | 21 import org.json.JSONObject; 60 JSONObject rootObj = new JSONObject(new JSONTokener(apbsConfigJson)); 61 JSONObject configObject = rootObj.getJSONObject("dynamicConfigEntries");
|
| /cts/tests/tests/assist/testapp/src/android/voiceinteraction/testapp/ |
| ExtraAssistDataActivity.java | 26 import org.json.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);
|
| Recipe.java | 26 import org.json.JSONObject; 63 public static Recipe fromJson(Context context, JSONObject json) { 80 JSONObject step = steps.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);
|
| Recipe.java | 26 import org.json.JSONObject; 63 public static Recipe fromJson(Context context, JSONObject json) { 80 JSONObject step = steps.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);
|
| Recipe.java | 26 import org.json.JSONObject; 63 public static Recipe fromJson(Context context, JSONObject json) { 80 JSONObject step = steps.getJSONObject(i);
|
| /device/google/contexthub/util/nanotool/ |
| Android.mk | 39 $(COMMON_UTILS_DIR)/JSONObject.cpp
|
| /external/autotest/frontend/client/src/autotest/tko/ |
| SpreadsheetHeaderSelect.java | 9 import com.google.gwt.json.client.JSONObject; 104 public void addQueryParameters(JSONObject parameters) { 107 JSONObject fixedValuesObject = 108 Utils.setDefaultValue(parameters, "fixed_headers", new JSONObject()).isObject();
|
| GraphingFrontend.java | 16 import com.google.gwt.json.client.JSONObject; 46 protected abstract void addAdditionalEmbeddingParams(JSONObject params); 60 JSONObject params = new JSONObject(); 120 JSONObject args = new JSONObject();
|
| SpreadsheetView.java | 28 import com.google.gwt.json.client.JSONObject; 220 final JSONObject condition = getFullConditionArgs(); 246 private JSONObject getQueryParameters() { 247 JSONObject parameters = new JSONObject(); 253 private JSONObject getFullConditionArgs() { 254 JSONObject args = commonPanel.getConditionArgs(); 288 private void showCompletionPercentage(JSONObject condition) { 297 public void onError(JSONObject errorObject) { 310 JSONObject args = new JSONObject() [all...] |
| /external/autotest/frontend/client/src/autotest/common/ |
| StaticDataRepository.java | 4 import com.google.gwt.json.client.JSONObject; 23 protected JSONObject dataObject = null;
|
| /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);
|
| /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
| VideoProvider.java | 27 import org.json.JSONObject; 75 JSONObject jsonObj = new VideoProvider().parseUrl(url); 85 JSONObject category = categories.getJSONObject(i); 94 JSONObject video = videos.getJSONObject(j); 155 protected JSONObject parseUrl(String urlString) { 173 return new JSONObject(json);
|
| /device/google/contexthub/util/common/ |
| JSONObject.cpp | 18 #define LOG_TAG "JSONObject" 21 #include "JSONObject.h" 113 sp<JSONObject> obj = new JSONObject; 444 bool JSONValue::getObject(sp<JSONObject> *value) const { 449 *value = static_cast<JSONObject *>(mValue.mObjectOrArray); 490 void JSONValue::setObject(const sp<JSONObject> &obj) { 638 sp<JSONObject> obj; 654 val.setObject((JSONObject *)this); 664 JSONObject::JSONObject() { [all...] |
| /external/autotest/frontend/client/src/autotest/afe/create/ |
| CreateJobViewPresenter.java | 44 import com.google.gwt.json.client.JSONObject; 171 JSONObject cloneObject = cloneInfo.isObject(); 172 JSONObject jobObject = cloneObject.get("job").isObject(); 253 for (JSONObject host : new JSONArrayList<JSONObject>(hostInfo)) { 258 JSONObject metaHostCounts = cloneObject.get("meta_host_counts").isObject(); 303 for(JSONObject profiler : new JSONArrayList<JSONObject>(tests)) { 360 protected JSONObject getControlFileParams(boolean readyForSubmit) { 361 JSONObject params = new JSONObject() [all...] |
| /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
| RawContact.java | 21 import org.json.JSONObject; 140 public JSONObject toJSONObject() { 141 JSONObject json = new JSONObject(); 172 Log.i(TAG, "Error converting RawContact to JSONObject" + ex.toString()); 202 * @param user The JSONObject containing user data 205 public static RawContact valueOf(JSONObject contact) {
|
| /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
| WebSocketChannelClient.java | 24 import org.json.JSONObject; 117 JSONObject json = new JSONObject(); 150 JSONObject json = new JSONObject();
|
| /frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/ |
| MusicProvider.java | 28 import org.json.JSONObject; 89 JSONObject jsonObj = parseUrl(MUSIC_URL); 96 JSONObject music = videos.getJSONObject(j); 131 private JSONObject parseUrl(String urlString) { 144 return new JSONObject(sb.toString());
|
| /libcore/json/src/main/java/org/json/ |
| JSONStringer.java | 26 * Implements {@link JSONObject#toString} and {@link JSONArray#toString}. Most 29 * JSONObject object = ... 47 * output. To encode indented output, use {@link JSONObject#toString(int)} or 105 * JSONObject.quote() only. Not used for JSON encoding. 222 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean, 236 } else if (value instanceof JSONObject) { 237 ((JSONObject) value).writeTo(this); 245 || value == JSONObject.NULL) { 249 out.append(JSONObject.numberToString((Number) value)); 284 out.append(JSONObject.numberToString(value)) [all...] |
| /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
| Credential.java | 16 import org.json.JSONObject; 172 protected JSONObject toJson() { 174 final JSONObject json = new JSONObject(); 186 protected static Credential fromJson(final JSONObject json) {
|
| /frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
| BluetoothMapEventReport.java | 21 import org.json.JSONObject; 169 JSONObject json = new JSONObject();
|