/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 | 138 // add nomedia file and insert into database, file should no longer be in audio view 139 File nomedia = new File(mMediaFile.getParent() + "/.nomedia"); local 140 nomedia.createNewFile(); 142 values.put(MediaStore.MediaColumns.DATA, nomedia.getAbsolutePath()); 145 // clean up nomedia file 146 nomedia.delete(); 153 // with nomedia file removed, do media scan and check that entry is in audio table again
|
/frameworks/av/media/libmedia/include/media/ |
mediascanner.h | 95 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia); 97 char *path, int pathRemaining, MediaScannerClient &client, bool noMedia, 118 long long fileSize, bool isDirectory, bool noMedia) = 0;
|
/frameworks/base/media/java/android/media/ |
MediaScannerClient.java | 25 boolean isDirectory, boolean noMedia);
|
MediaScanner.java | 501 long fileSize, boolean isDirectory, boolean noMedia) { 508 if (!noMedia && isNoMediaFile(path)) { 509 noMedia = true; 511 mNoMedia = noMedia; 577 boolean isDirectory, boolean noMedia) { 580 doScanFile(path, null, lastModified, fileSize, isDirectory, false, noMedia); 584 long fileSize, boolean isDirectory, boolean scanAlways, boolean noMedia) { 589 fileSize, isDirectory, noMedia); 624 if (noMedia) { [all...] |
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
WriteExternalStorageTest.java | 247 * Verify that .nomedia is created correctly. 255 // Require that .nomedia was created somewhere above each dir 265 final File test = new File(path, ".nomedia"); 274 fail("Missing .nomedia file above package-specific directory " + start
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBotPei/ |
PeiAtapi.c | 496 BOOLEAN NoMedia;
498 NoMedia = FALSE;
511 NoMedia = TRUE;
526 return NoMedia;
|
/system/core/sdcard/ |
fuse.cpp | 779 /* When creating /Android/data and /Android/obb, mark them as .nomedia */ 781 char nomedia[PATH_MAX]; local 782 snprintf(nomedia, PATH_MAX, "%s/.nomedia", child_path); 783 if (touch(nomedia, 0664) != 0) { 784 PLOG(ERROR) << "touch(" << nomedia << ") failed"; 789 char nomedia[PATH_MAX]; local 790 snprintf(nomedia, PATH_MAX, "%s/.nomedia", fuse->global->obb_path); 791 if (touch(nomedia, 0664) != 0) [all...] |
/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 | 149 long long fileSize, bool isDirectory, bool noMedia) 161 fileSize, isDirectory, noMedia);
|
/frameworks/base/media/java/android/mtp/ |
MtpDatabase.java | 822 // check if nomedia status changed 834 // for files, check if renamed from .nomedia to something else 835 if (oldFile.getName().toLowerCase(Locale.US).equals(".nomedia" [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
ContentFragment.java | 309 final File noMediaFile = new File(externalCacheDir, ".nomedia");
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaProvider.java | 2757 final File nomedia = new File(path); local 2779 File nomedia = new File(path); local [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/ |
UsbMassBoot.c | 719 // MediaPresent may change in RequestSense for NoMedia
[all...] |
/frameworks/base/core/java/android/provider/ |
MediaStore.java | 78 * removing nomedia files [all...] |
/external/robolectric/v1/lib/main/ |
android.jar | |
/prebuilts/sdk/18/ |
android.jar | |
/prebuilts/sdk/21/ |
android.jar | |