verify(provider).update(URI, VALUES, SELECTION, SELECTION_ARGS); client.delete(URI, SELECTION, SELECTION_ARGS); verify(provider).delete(URI, SELECTION, SELECTION_ARGS);
private void postscan(String[] directories) throws RemoteException { Iterator<FileCacheEntry> iterator = mFileCache.values().iterator(); while (iterator.hasNext()) { FileCacheEntry entry = iterator.next(); String path = entry.mPath; if (!entry.mSeenInFileSystem) { if (inScanDirectory(path, directories) && !new File(path).exists()) { mProvider.delete(ContentUris.withAppendedId(entry.mTableUri, entry.mRowId), null, null); iterator.remove(); } } } mFileCache.clear(); mFileCache = null; mProvider.release(); mProvider = null; }
File tempFile = new File(path); if (!TextUtils.isEmpty(filePath) && !tempFile.exists()) { mProvider.delete(Video.Media.CONTENT_URI, where, selectionArgs); return;
public int deleteAll(Uri uri) { try { return contentClient.delete(uri, null, null); } catch (RemoteException e) { Log.e(TAG, "Error deleting entities with uri: " + uri, e); } return -1; }
public int delete() { try { return contentClient.delete(baseUri, selection.toString(), getSelectionArgs()); } catch (RemoteException e) { Log.e(TAG, "Error deleting " + baseUri, e); throw new RuntimeException(e); } }
private void postscan(String[] directories) throws RemoteException { Iterator<FileCacheEntry> iterator = mFileCache.values().iterator(); while (iterator.hasNext()) { FileCacheEntry entry = iterator.next(); String path = entry.mPath; if (!entry.mSeenInFileSystem) { if (inScanDirectory(path, directories) && !new File(path).exists()) { mProvider.delete(ContentUris.withAppendedId(entry.mTableUri, entry.mRowId), null, null); iterator.remove(); } } } mFileCache.clear(); mFileCache = null; mProvider.release(); mProvider = null; }
private void postscan(String[] directories) throws RemoteException { Iterator<FileCacheEntry> iterator = mFileCache.values().iterator(); while (iterator.hasNext()) { FileCacheEntry entry = iterator.next(); String path = entry.mPath; if (!entry.mSeenInFileSystem) { if (inScanDirectory(path, directories) && !new File(path).exists()) { mProvider.delete(ContentUris.withAppendedId(entry.mTableUri, entry.mRowId), null, null); iterator.remove(); } } } mFileCache.clear(); mFileCache = null; mProvider.release(); mProvider = null; }
private void postscan(String[] directories) throws RemoteException { Iterator<FileCacheEntry> iterator = mFileCache.values().iterator(); while (iterator.hasNext()) { FileCacheEntry entry = iterator.next(); String path = entry.mPath; if (!entry.mSeenInFileSystem) { if (inScanDirectory(path, directories) && !new File(path).exists()) { mProvider.delete(ContentUris.withAppendedId(entry.mTableUri, entry.mRowId), null, null); iterator.remove(); } } } mFileCache.clear(); mFileCache = null; mProvider.release(); mProvider = null; }
private void postscan(String[] directories) throws RemoteException { Iterator<FileCacheEntry> iterator = mFileCache.values().iterator(); while (iterator.hasNext()) { FileCacheEntry entry = iterator.next(); String path = entry.mPath; if (!entry.mSeenInFileSystem) { if (inScanDirectory(path, directories) && !new File(path).exists()) { mProvider.delete(ContentUris.withAppendedId(entry.mTableUri, entry.mRowId), null, null); iterator.remove(); } } } mFileCache.clear(); mFileCache = null; mProvider.release(); mProvider = null; }
private void postscan(String[] directories) throws RemoteException { Iterator<FileCacheEntry> iterator = mFileCache.values().iterator(); while (iterator.hasNext()) { FileCacheEntry entry = iterator.next(); String path = entry.mPath; if (!entry.mSeenInFileSystem) { if (inScanDirectory(path, directories) && !new File(path).exists()) { mProvider.delete(ContentUris.withAppendedId(entry.mTableUri, entry.mRowId), null, null); iterator.remove(); } } } mFileCache.clear(); mFileCache = null; mProvider.release(); mProvider = null; }
File tempFile = new File(path); if (!TextUtils.isEmpty(filePath) && !tempFile.exists()) { mProvider.delete(Video.Media.CONTENT_URI, where, selectionArgs); return;
File tempFile = new File(path); if (!TextUtils.isEmpty(filePath) && !tempFile.exists()) { mProvider.delete(Video.Media.CONTENT_URI, where, selectionArgs); return;
File tempFile = new File(path); if (!TextUtils.isEmpty(filePath) && !tempFile.exists()) { mProvider.delete(Video.Media.CONTENT_URI, where, selectionArgs); return;
File tempFile = new File(path); if (!TextUtils.isEmpty(filePath) && !tempFile.exists()) { mProvider.delete(Video.Media.CONTENT_URI, where, selectionArgs); return;
File tempFile = new File(path); if (!TextUtils.isEmpty(filePath) && !tempFile.exists()) { mProvider.delete(Video.Media.CONTENT_URI, where, selectionArgs); return;
@Test(expected = UnsupportedOperationException.class) public void delete_unsupported() throws Exception { provider.delete(TorrentSitesProvider.CONTENT_URI, null, null); }
@Test(expected = UnsupportedOperationException.class) public void delete_unsupported() throws Exception { provider.delete(TorrentSearchProvider.CONTENT_URI, null, null); }
client.delete(LauncherSettings.Favorites.getContentUri(id, false), null, null); } catch (RemoteException e) {