Searched refs:MediaScanner (Results 1 – 6 of 6) sorted by relevance
27 public class LegacyMediaScanner implements MediaScanner {45 try (android.media.MediaScanner scanner = in scanDirectory()46 new android.media.MediaScanner(mContext, volumeName)) { in scanDirectory()59 try (android.media.MediaScanner scanner = in scanFile()60 new android.media.MediaScanner(mContext, volumeName)) { in scanFile()
26 public interface MediaScanner { interface32 public static MediaScanner instance(Context context) { in instance()
116 public class ModernMediaScanner implements MediaScanner {
100 private MediaScanner mLegacy;101 private MediaScanner mModern;180 private void testSpeed(MediaScanner scanner) throws IOException { in testSpeed()193 private static void scanDirectory(MediaScanner scanner, File dir, String tag) { in scanDirectory()
44 import com.android.providers.media.scan.MediaScanner;150 MediaScanner.instance(context).scanDirectory(dir); in onScanVolume()164 return MediaScanner.instance(context).scanFile(file); in onScanFile()
141 import com.android.providers.media.scan.MediaScanner;2664 !android.media.MediaScanner.isNoMediaPath(path)) { in insertFile()3275 MediaScanner.instance(getContext()).scanFile(new File(path).getParentFile()); in insertInternal()3927 android.media.MediaScanner.SCANNED_BUILD_PREFS_NAME, in deleteInternal()3930 editor.putString(android.media.MediaScanner.LAST_INTERNAL_SCAN_FINGERPRINT, in deleteInternal()4181 MediaScanner.instance(getContext()).scanFile(file)); in call()4837 MediaScanner.instance(getContext()).scanFile(new File(newPath)); in updateInternal()4842 MediaScanner.instance(getContext()).scanFile(new File(newPath).getParentFile()); in updateInternal()5040 MediaScanner.instance(getContext()).scanFile(new File(c.getString(0))); in updateInternal()5411 MediaScanner.instance(getContext()).scanFile(file); in openFileAndEnforcePathPermissionsHelper()[all …]