Home
last modified time | relevance | path

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

12

/development/vndk/tools/sourcedr/sourcedr/tests/
Dtest_server.py3 import json
46 ret = response.json['result']
56 deps = json.loads(response.json['deps'])
57 codes = json.loads(response.json['codes'])
59 cdata = json.load(f)
70 'deps': json.dumps(['this_is_a_test.so']),
71 'codes': json.dumps(['arr_0', 'arr_1'])
/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;
/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/vndk/tools/sourcedr/sourcedr/
Dserver.py5 import json
51 return jsonify(lst=json.dumps(lst),
52 done=json.dumps(done),
53 pattern_lst=json.dumps(pattern_lst),
70 return jsonify(deps=json.dumps(deps), codes=json.dumps(codes),
71 okays=json.dumps(check(codes, source_dir)))
90 deps = json.loads(request.args.get('deps'))
91 codes = json.loads(request.args.get('codes'))
153 return jsonify(result=json.dumps(result))
Dreview_db.py3 import json
89 json.dump(data, data_fp, sort_keys=True, indent=4)
94 return json.load(data_fp)
Dmap.py9 import json
61 return load_build_dep_graph(json.load(fp))
Dproject.py10 import json
49 config_json = json.load(config_fp)
66 json.dump(config, config_fp, indent=2)
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DJsonUtils.java21 import org.json.JSONException;
22 import org.json.JSONObject;
/development/vndk/tools/sourcedr/sourcedr/commands/
Dcollect.py5 import json
44 json.dump(res, f, sort_keys=True, indent=4)
/development/vndk/tools/
Dsystem_image_diff.py6 import json
52 module_info = json.load(module_info_json)
84 module_info = json.load(module_info_json)
/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/WiktionarySimple/src/com/example/android/simplewiktionary/
DSimpleWikiHelper.java25 import org.json.JSONArray;
26 import org.json.JSONException;
27 import org.json.JSONObject;
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarm.java19 import org.json.JSONException;
20 import org.json.JSONObject;
/development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/client/
DUserTest.java22 import org.json.JSONObject;
/development/scripts/
Dboardconfig_usage_analysis.py5 import json
77 module_info = json.load(module_info_json)
/development/vndk/tools/definition-tool/tools/
Dupdate_dataset.py9 import json
36 data = json.load(fp)
/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/tools/winscope/
Dyarn.lock90 json-stable-stringify "^1.0.1"
98 json-schema-traverse "^0.3.0"
99 json-stable-stringify "^1.0.1"
1186 parse-json "^2.2.0"
2344 json-loader@^0.5.4:
2346 …resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.7.tgz#dca14a70235ff82f0ac9a3a…
2348 json-schema-traverse@^0.3.0:
2350 …resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6…
2352 json-schema@0.2.3:
2354 …resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce72…
[all …]

12