Home
last modified time | relevance | path

Searched refs:json (Results 1 – 19 of 19) sorted by relevance

/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DRawContact.java21 import org.json.JSONObject;
22 import org.json.JSONException;
141 JSONObject json = new JSONObject(); in toJSONObject() local
145 json.put("f", mFirstName); in toJSONObject()
148 json.put("l", mLastName); in toJSONObject()
151 json.put("m", mCellPhone); in toJSONObject()
154 json.put("o", mOfficePhone); in toJSONObject()
157 json.put("h", mHomePhone); in toJSONObject()
160 json.put("e", mEmail); in toJSONObject()
163 json.put("i", mServerContactId); in toJSONObject()
[all …]
DNetworkUtilities.java34 import org.json.JSONArray;
35 import org.json.JSONException;
36 import org.json.JSONObject;
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipe.java24 import org.json.JSONArray;
25 import org.json.JSONException;
26 import org.json.JSONObject;
63 public static Recipe fromJson(Context context, JSONObject json) { in fromJson() argument
66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE); in fromJson()
67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY); in fromJson()
68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) { in fromJson()
69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE); in fromJson()
71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS); in fromJson()
78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS); in fromJson()
DRecipeListAdapter.java30 import org.json.JSONArray;
31 import org.json.JSONException;
32 import org.json.JSONObject;
64 private List<Item> parseJson(JSONObject json) { in parseJson() argument
67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST); in parseJson()
DAssetUtils.java24 import org.json.JSONException;
25 import org.json.JSONObject;
DRecipeActivity.java35 import org.json.JSONObject;
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/
DMusicProvider.java24 import org.json.JSONArray;
25 import org.json.JSONException;
26 import org.json.JSONObject;
250 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { in buildFromJSON() argument
251 String title = json.getString(JSON_TITLE); in buildFromJSON()
252 String album = json.getString(JSON_ALBUM); in buildFromJSON()
253 String artist = json.getString(JSON_ARTIST); in buildFromJSON()
254 String genre = json.getString(JSON_GENRE); in buildFromJSON()
255 String source = json.getString(JSON_SOURCE); in buildFromJSON()
256 String iconUrl = json.getString(JSON_IMAGE); in buildFromJSON()
[all …]
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DJsonUtils.java21 import org.json.JSONException;
22 import org.json.JSONObject;
DMainActivity.java66 import org.json.JSONArray;
67 import org.json.JSONException;
68 import org.json.JSONObject;
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DSimpleWikiHelper.java25 import org.json.JSONArray;
26 import org.json.JSONException;
27 import org.json.JSONObject;
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DSimpleWikiHelper.java25 import org.json.JSONArray;
26 import org.json.JSONException;
27 import org.json.JSONObject;
DExtendedWikiHelper.java19 import org.json.JSONArray;
20 import org.json.JSONException;
21 import org.json.JSONObject;
/development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/client/
DUserTest.java22 import org.json.JSONObject;
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarm.java23 import org.json.JSONException;
24 import org.json.JSONObject;
/development/samples/Vault/src/com/example/android/vault/
DEncryptedDocument.java25 import org.json.JSONException;
26 import org.json.JSONObject;
DVaultProvider.java42 import org.json.JSONArray;
43 import org.json.JSONException;
44 import org.json.JSONObject;
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
DSyncAdapter.java25 import org.json.JSONException;
/development/samples/Vault/tests/src/com/example/android/vault/
DEncryptedDocumentTest.java24 import org.json.JSONObject;
/development/build/
Dsdk.atree167 …nt/build/optional.json platforms/${P…