HomeSort by relevance Sort by last modified time
    Searched defs:jsonObject (Results 1 - 25 of 68) 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 24 import org.json.JSONObject;
82 JSONObject jsonObject = new JSONObject();
84 jsonObject.put("id", id);
85 jsonObject.put("month", month);
86 jsonObject.put("date", date);
87 jsonObject.put("hour", hour);
88 jsonObject.put("minute", minute);
92 return jsonObject.toString()
    [all...]
  /developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
Alarm.java 24 import org.json.JSONObject;
82 JSONObject jsonObject = new JSONObject();
84 jsonObject.put("id", id);
85 jsonObject.put("month", month);
86 jsonObject.put("date", date);
87 jsonObject.put("hour", hour);
88 jsonObject.put("minute", minute);
92 return jsonObject.toString()
    [all...]
  /development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
Alarm.java 24 import org.json.JSONObject;
82 JSONObject jsonObject = new JSONObject();
84 jsonObject.put("id", id);
85 jsonObject.put("month", month);
86 jsonObject.put("date", date);
87 jsonObject.put("hour", hour);
88 jsonObject.put("minute", minute);
92 return jsonObject.toString()
    [all...]
  /external/vogar/src/vogar/monitor/
HostMonitor.java 20 import com.google.gson.JsonObject;
123 } else if (o instanceof JsonObject) {
124 JsonObject jsonObject = (JsonObject) o;
125 if (jsonObject.get("outcome") != null) {
126 currentOutcome = jsonObject.get("outcome").getAsString();
128 JsonElement runner = jsonObject.get("runner");
131 } else if (jsonObject.get("result") != null) {
132 Result currentResult = Result.valueOf(jsonObject.get("result").getAsString())
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Attachment.java 46 import org.json.JSONObject;
216 public Attachment(JSONObject srcJson) {
353 public JSONObject toJSON() throws JSONException {
354 final JSONObject result = new JSONObject();
377 final JSONObject jsonObject = toJSON();
379 jsonObject.put("partId", partId);
383 jsonObject.put(AttachmentColumns.PROVIDER_DATA, new JSONObject(providerData))
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
HalMockUtils.java 26 import org.json.JSONObject;
89 JSONObject jsonObject = new JSONObject(jsonArgs);
90 Iterator<String> iter = jsonObject.keys();
93 JSONObject field = jsonObject.optJSONObject(key);
115 public static JSONObject convertBundleToJson(Bundle bundle) throws JSONException {
118 JSONObject json = new JSONObject();
    [all...]
  /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...]
  /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 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.4.0-alpha1/
google-services-1.4.0-alpha1.jar 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.4.0-beta3/
google-services-1.4.0-beta3.jar 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.4.0-beta5/
google-services-1.4.0-beta5.jar 
  /prebuilts/gradle-plugin/com/google/gms/google-services/1.4.0-beta6/
google-services-1.4.0-beta6.jar 

Completed in 333 milliseconds

1 2 3