Lines Matching defs:id

79                     long id = intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID);
80 Log.i(LOG_TAG, "Received Notification for download: " + id);
81 if (!downloadIds.contains(id)) {
85 downloadIds.add(id);
90 Cursor cursor = dm.query(new Query().setFilterById(id));
103 Log.i(LOG_TAG, "Notification for id: " + id + " has already been made.");
290 * @param id The download id to query on (wait for)
292 protected void waitForDownloadOrTimeout_skipNotification(long id) throws TimeoutException,
294 doWaitForDownloadsOrTimeout(new Query().setFilterById(id),
303 * @param id The download id to query on (wait for)
305 protected void waitForDownloadOrTimeout(long id) throws TimeoutException,
307 waitForDownloadOrTimeout(id, WAIT_FOR_DOWNLOAD_POLL_TIME, MAX_WAIT_FOR_DOWNLOAD_TIME);
315 * @param id The download id to query on (wait for)
319 protected void waitForDownloadOrTimeout(long id, long poll, long timeoutMillis)
321 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis);
343 * @param id The id of the download to query against
348 private boolean waitForDownloadOrTimeoutNoThrow(long id, long poll, long timeoutMillis) {
350 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis);
439 * @param dlRequest the download request id used by Download Manager to track the download.
554 * @param id The id of the download in DL Manager; pass -1 to query all downloads
557 protected Cursor getCursor(long id) throws Exception {
559 if (id != -1) {
560 query.setFilterById(id);