Lines Matching refs:json
24 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()
257 int trackNumber = json.getInt(JSON_TRACK_NUMBER); in buildFromJSON()
258 int totalTrackCount = json.getInt(JSON_TOTAL_TRACK_COUNT); in buildFromJSON()
259 int duration = json.getInt(JSON_DURATION) * 1000; // ms in buildFromJSON()
261 LogHelper.d(TAG, "Found music track: ", json); in buildFromJSON()