/frameworks/av/media/libmedia/ |
MediaScanner.cpp | 132 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia) { 142 // Treat all files as non-media in directories that contain a ".nomedia" file 143 if (pathRemaining >= 8 /* strlen(".nomedia") */ ) { 144 strcpy(fileSpot, ".nomedia"); 146 ALOGV("found .nomedia, setting noMedia flag"); 147 noMedia = true; 162 if (doProcessDirectoryEntry(path, pathRemaining, client, noMedia, entry, fileSpot) 173 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia, 206 bool childNoMedia = noMedia; [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaScannerNotificationTest.java | 63 // add .nomedia file and scan again 64 File noMedia = new File(tmpPath, ".nomedia"); 66 noMedia.createNewFile(); 68 fail("couldn't create .nomedia file"); 77 assertTrue(noMedia.delete());
|
MediaScannerTest.java | 128 // add nomedia file and insert into database, file should no longer be in audio view 129 File nomedia = new File(mMediaFile.getParent() + "/.nomedia"); local 130 nomedia.createNewFile(); 132 values.put(MediaStore.MediaColumns.DATA, nomedia.getAbsolutePath()); 135 // clean up nomedia file 136 nomedia.delete(); 143 // with nomedia file removed, do media scan and check that entry is in audio table again
|
/frameworks/av/include/media/ |
mediascanner.h | 69 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia); 71 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia, 92 long long fileSize, bool isDirectory, bool noMedia) = 0;
|
/frameworks/base/media/java/android/media/ |
MediaScannerClient.java | 25 boolean isDirectory, boolean noMedia);
|
MediaScanner.java | 443 long fileSize, boolean isDirectory, boolean noMedia) { 450 if (!noMedia && isNoMediaFile(path)) { 451 noMedia = true; 453 mNoMedia = noMedia; 518 boolean isDirectory, boolean noMedia) { 521 doScanFile(path, null, lastModified, fileSize, isDirectory, false, noMedia); 525 long fileSize, boolean isDirectory, boolean scanAlways, boolean noMedia) { 530 fileSize, isDirectory, noMedia); 540 if (noMedia) { [all...] |
/frameworks/base/media/java/android/media/videoeditor/ |
VideoEditorFactory.java | 59 if (!new File(dir, ".nomedia").createNewFile()) { 60 throw new FileNotFoundException("Cannot create file .nomedia");
|
/packages/apps/Camera2/src/com/android/camera/crop/ |
SaveImage.java | 297 // Make sure there is a .nomedia file in the auxiliary directory, such 299 File noMedia = new File(auxDiretory, ".nomedia"); 300 if (!noMedia.exists()) { 302 noMedia.createNewFile(); 304 Log.e(LOGTAG, "Can't create the nomedia");
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
WriteExternalStorageTest.java | 231 * Verify that .nomedia is created correctly. 238 // Require that .nomedia was created somewhere above each dir 248 final File test = new File(path, ".nomedia"); 257 fail("Missing .nomedia file above package-specific directory " + start
|
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
FileUtils.java | 64 if (!new File(dir, ".nomedia").createNewFile()) { 65 throw new FileNotFoundException("Cannot create file .nomedia");
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
SaveImage.java | 484 // Make sure there is a .nomedia file in the auxiliary directory, such 486 File noMedia = new File(auxDiretory, ".nomedia"); 487 if (!noMedia.exists()) { 489 noMedia.createNewFile(); 491 Log.e(LOGTAG, "Can't create the nomedia");
|
/frameworks/base/media/jni/ |
android_media_MediaScanner.cpp | 148 long long fileSize, bool isDirectory, bool noMedia) 160 fileSize, isDirectory, noMedia);
|
/system/core/sdcard/ |
sdcard.c | 1001 /* When creating /Android/data and /Android/obb, mark them as .nomedia */ 1003 char nomedia[PATH_MAX]; local 1004 snprintf(nomedia, PATH_MAX, "%s/.nomedia", child_path); 1005 if (touch(nomedia, 0664) != 0) { 1006 ERROR("Failed to touch(%s): %s\n", nomedia, strerror(errno)); 1011 char nomedia[PATH_MAX]; local 1012 snprintf(nomedia, PATH_MAX, "%s/.nomedia", fuse->obbpath); 1013 if (touch(nomedia, 0664) != 0) [all...] |
/frameworks/base/media/java/android/mtp/ |
MtpDatabase.java | 762 // check if nomedia status changed 774 // for files, check if renamed from .nomedia to something else 775 if (oldFile.getName().toLowerCase(Locale.US).equals(".nomedia") 776 && !newPath.toLowerCase(Locale.US).equals(".nomedia")) { [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
ContentFragment.java | 309 final File noMediaFile = new File(externalCacheDir, ".nomedia");
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
StorageNotification.java | 224 * Storage has been removed. Show nomedia media notification,
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaProvider.java | 3619 final File nomedia = new File(path); local 3639 File nomedia = new File(path); local [all...] |
/frameworks/base/services/java/com/android/server/ |
MountService.java | 132 public static final int NoMedia = 0; 549 notifyVolumeStateChange(null, path, VolumeState.NoMedia, 741 if (st == VolumeState.NoMedia) { [all...] |
/frameworks/base/docs/html/guide/topics/data/ |
data-storage.jd | 311 <p>Include an empty file named {@code .nomedia} in your external files directory (note the dot
|
/frameworks/base/core/java/android/provider/ |
MediaStore.java | 67 * removing nomedia files [all...] |
/frameworks/native/cmds/installd/ |
utils.c | 577 // like ".nomedia" to remain in the directory until the entire
|
/prebuilts/sdk/18/ |
android.jar | |