HomeSort by relevance Sort by last modified time
    Searched defs:jsonObject (Results 1 - 25 of 73) sorted by null

1 2 3

  /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;
RecipeActivity.java 35 import org.json.JSONObject;
87 JSONObject jsonObject = AssetUtils.loadJSONAsset(this, mRecipeName);
88 if (jsonObject != null) {
89 mRecipe = Recipe.fromJson(this, jsonObject);
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/
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;
RecipeActivity.java 35 import org.json.JSONObject;
87 JSONObject jsonObject = AssetUtils.loadJSONAsset(this, mRecipeName);
88 if (jsonObject != null) {
89 mRecipe = Recipe.fromJson(this, jsonObject);
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/
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;
RecipeActivity.java 35 import org.json.JSONObject;
87 JSONObject jsonObject = AssetUtils.loadJSONAsset(this, mRecipeName);
88 if (jsonObject != null) {
89 mRecipe = Recipe.fromJson(this, jsonObject);
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/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
Alarm.java 20 import org.json.JSONObject;
60 JSONObject jsonObject = new JSONObject();
62 jsonObject.put("id", id);
63 jsonObject.put("month", month);
64 jsonObject.put("date", date);
65 jsonObject.put("hour", hour);
66 jsonObject.put("minute", minute);
70 return jsonObject.toString()
    [all...]
  /developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
Alarm.java 20 import org.json.JSONObject;
60 JSONObject jsonObject = new JSONObject();
62 jsonObject.put("id", id);
63 jsonObject.put("month", month);
64 jsonObject.put("date", date);
65 jsonObject.put("hour", hour);
66 jsonObject.put("minute", minute);
70 return jsonObject.toString()
    [all...]
  /development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
Alarm.java 20 import org.json.JSONObject;
60 JSONObject jsonObject = new JSONObject();
62 jsonObject.put("id", id);
63 jsonObject.put("month", month);
64 jsonObject.put("date", date);
65 jsonObject.put("hour", hour);
66 jsonObject.put("minute", minute);
70 return jsonObject.toString()
    [all...]
  /external/v8/src/inspector/
v8-value-copier.cc 130 std::unique_ptr<protocol::DictionaryValue> jsonObject =
157 jsonObject->setValue(toProtocolString(propertyName),
160 *result = std::move(jsonObject);
  /external/vogar/src/vogar/monitor/
HostMonitor.java 19 import com.google.gson.JsonObject;
122 } else if (o instanceof JsonObject) {
123 JsonObject jsonObject = (JsonObject) o;
124 if (jsonObject.get("outcome") != null) {
125 currentOutcome = jsonObject.get("outcome").getAsString();
128 } else if (jsonObject.get("result") != null) {
129 Result currentResult = Result.valueOf(jsonObject.get("result").getAsString());
133 } else if (jsonObject.get("completedNormally") != null)
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/
SettingsDumpServiceTest.java 37 import org.json.JSONObject;
97 final JSONObject jsonObject = mTestService.dumpAnomalyDetection();
99 assertThat(jsonObject.getInt(AnomalyConfigJobService.KEY_ANOMALY_CONFIG_VERSION)).isEqualTo(
110 JSONObject object = (JSONObject) printWriter.getPrintObject();
  /packages/services/Car/service/src/com/android/car/storagemonitoring/
WearHistory.java 34 import org.json.JSONObject;
49 WearHistory(@NonNull JSONObject jsonObject) throws JSONException {
50 final JSONArray wearHistory = jsonObject.getJSONArray("wearHistory");
52 JSONObject wearRecordJson = wearHistory.getJSONObject(i);
65 JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath())));
66 return new WearHistory(jsonObject);
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Attachment.java 46 import org.json.JSONObject;
226 public Attachment(JSONObject srcJson) {
373 public JSONObject toJSON() throws JSONException {
374 final JSONObject result = new JSONObject();
398 final JSONObject jsonObject = toJSON();
400 jsonObject.put("partId", partId);
404 jsonObject.put(AttachmentColumns.PROVIDER_DATA, new JSONObject(providerData))
    [all...]
  /developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
SecurityHelper.java 27 import org.json.JSONObject;
90 JSONObject jsonObject = new JSONObject(response);
91 boolean valid = jsonObject.optBoolean("linked", false);
  /cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DeviceReportTest.java 29 import org.json.JSONObject;
136 JSONObject jsonObject = new JSONObject(metrics);
138 jsonObject.getJSONObject(STREAM_NAME_1).getDouble(TEST_MESSAGE_1) == TEST_VALUE_1);
140 jsonObject.getJSONObject(STREAM_NAME_2).getDouble(TEST_MESSAGE_2) == TEST_VALUE_2);
148 jsonObject = new JSONObject(metrics);
150 jsonObject.getJSONObject(STREAM_NAME_3).getDouble(TEST_MESSAGE_3) == TEST_VALUE_3);
152 jsonObject.getJSONObject(STREAM_NAME_4).getDouble(TEST_MESSAGE_4) == TEST_VALUE_4)
    [all...]
  /test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
VtsMultiDeviceTest.java 46 import org.json.JSONObject;
574 private JSONObject generateJsonDeviceItem(ITestDevice device) throws JSONException {
575 JSONObject deviceItemObject = new JSONObject();
651 * Populate a jsonObject with default fields.
656 * @param jsonObject the target json object to populate
661 private void populateDefaultJsonFields(JSONObject jsonObject, String testCaseDataDir)
665 JSONObject defaultJsonObject = new JSONObject(content)
    [all...]
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.3.0-beta1/
google-services-1.3.0-beta1.jar 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.3.0-beta2/
google-services-1.3.0-beta2.jar 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.3.0-beta3/
google-services-1.3.0-beta3.jar 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.3.0-beta4/
google-services-1.3.0-beta4.jar 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.3.1/
google-services-1.3.1.jar 

Completed in 537 milliseconds

1 2 3