Lines Matching refs:status
113 * Current status of the download, as one of the STATUS_* constants.
118 * Provides more detail on the status of the download. Its meaning depends on the value of
122 * occurred. If an HTTP error occurred, this will hold the HTTP status code as defined in RFC
132 * status codes</a>
792 * Include only downloads with status matching any the given status flags.
1035 int status = cursor.getInt(cursor.getColumnIndexOrThrow(COLUMN_STATUS));
1036 if (DownloadManager.STATUS_SUCCESSFUL == status) {
1062 // downloaded file not found or its status is not 'successfully completed'
1090 // downloaded file not found or its status is not 'successfully completed'
1104 int status = cursor.getInt(cursor.getColumnIndex(COLUMN_STATUS));
1105 if (status != STATUS_SUCCESSFUL && status != STATUS_FAILED) {
1335 private long getReason(int status) {
1336 switch (translateStatus(status)) {
1338 return getErrorCode(status);
1341 return getPausedReason(status);
1344 return 0; // arbitrary value when status is not an error
1348 private long getPausedReason(int status) {
1349 switch (status) {
1364 private long getErrorCode(int status) {
1365 if ((400 <= status && status < Downloads.Impl.MIN_ARTIFICIAL_ERROR_STATUS)
1366 || (500 <= status && status < 600)) {
1367 // HTTP status code
1368 return status;
1371 switch (status) {
1402 private int translateStatus(int status) {
1403 switch (status) {
1420 assert Downloads.Impl.isStatusError(status);