Home | History | Annotate | Download | only in contacts

Lines Matching defs:directories

124      * Scans through existing directories to see if the cached resource IDs still
125 * match their original resource names. If not - plays it safe by refreshing all directories.
136 + " FROM " + Tables.DIRECTORIES, null);
240 // then we need to rescan directories.
245 Log.i(TAG, "Discovered " + count + " contact directories in " + (end - start) + "ms");
251 // We schedule a rescan if update(DIRECTORIES) is called while we're scanning all packages.
305 // directories.
336 List<DirectoryInfo> directories = updateDirectoriesForPackage(packageInfo, true);
337 if (directories != null && !directories.isEmpty()) {
338 count += directories.size();
340 // We shouldn't delete rows for existing directories.
341 for (DirectoryInfo info : directories) {
355 int deletedRows = db.delete(Tables.DIRECTORIES, deleteWhereBuilder.toString(),
376 db.replace(Tables.DIRECTORIES, null, values);
390 db.replace(Tables.DIRECTORIES, null, values);
394 * Scans the specified package for content directories. The package may have
419 * Scans the specified package for content directories and updates the {@link Directory}
429 ArrayList<DirectoryInfo> directories = Lists.newArrayList();
435 queryDirectoriesForAuthority(directories, provider);
440 if (directories.size() == 0 && initialScan) {
447 updateDirectories(db, directories);
448 // Clear out directories that are no longer present
450 if (!directories.isEmpty()) {
452 for (DirectoryInfo info: directories) {
458 final int numDeleted = db.delete(Tables.DIRECTORIES, sb.toString(),
469 return directories;
474 * provider and appends all discovered directories to the directoryInfo list.
479 .authority(provider.authority).appendPath("directories").build();
550 * Updates the directories tables in the database to match the info received
554 // Insert or replace existing directories.
573 Cursor cursor = db.query(Tables.DIRECTORIES, new String[] { Directory._ID },
583 db.update(Tables.DIRECTORIES, values, Directory._ID + "=?",
586 id = db.insert(Tables.DIRECTORIES, null, values);