Lines Matching refs:ids
294 * provides an array of download ids corresponding to the download notification that was
751 public Query setFilterById(long... ids) {
752 mIds = ids;
921 * @param ids the IDs of the downloads to be marked 'deleted'
925 public int markRowDeleted(long... ids) {
926 if (ids == null || ids.length == 0) {
928 throw new IllegalArgumentException("input param 'ids' can't be null");
934 if (ids.length == 1) {
935 return mResolver.update(ContentUris.withAppendedId(mBaseUri, ids[0]), values,
938 return mResolver.update(mBaseUri, values, getWhereClauseForIds(ids),
939 getWhereArgsForIds(ids));
947 * @param ids the IDs of the downloads to remove
950 public int remove(long... ids) {
951 return markRowDeleted(ids);
1066 * @param ids the IDs of the downloads
1069 public void restartDownload(long... ids) {
1070 Cursor cursor = query(new Query().setFilterById(ids));
1088 mResolver.update(mBaseUri, values, getWhereClauseForIds(ids), getWhereArgsForIds(ids));
1213 static String getWhereClauseForIds(long[] ids) {
1216 for (int i = 0; i < ids.length; i++) {
1230 static String[] getWhereArgsForIds(long[] ids) {
1231 String[] whereArgs = new String[ids.length];
1232 for (int i = 0; i < ids.length; i++) {
1233 whereArgs[i] = Long.toString(ids[i]);