/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 | 133 // add nomedia file and insert into database, file should no longer be in audio view 134 File nomedia = new File(mMediaFile.getParent() + "/.nomedia"); local 135 nomedia.createNewFile(); 137 values.put(MediaStore.MediaColumns.DATA, nomedia.getAbsolutePath()); 140 // clean up nomedia file 141 nomedia.delete(); 148 // with nomedia file removed, do media scan and check that entry is in audio table again
|
/frameworks/av/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 | 476 long fileSize, boolean isDirectory, boolean noMedia) { 483 if (!noMedia && isNoMediaFile(path)) { 484 noMedia = true; 486 mNoMedia = noMedia; 551 boolean isDirectory, boolean noMedia) { 554 doScanFile(path, null, lastModified, fileSize, isDirectory, false, noMedia); 558 long fileSize, boolean isDirectory, boolean scanAlways, boolean noMedia) { 563 fileSize, isDirectory, noMedia); 590 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
|
/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);
|
/system/core/sdcard/ |
sdcard.c | 981 /* When creating /Android/data and /Android/obb, mark them as .nomedia */ 983 char nomedia[PATH_MAX]; local 984 snprintf(nomedia, PATH_MAX, "%s/.nomedia", child_path); 985 if (touch(nomedia, 0664) != 0) { 986 ERROR("Failed to touch(%s): %s\n", nomedia, strerror(errno)); 991 char nomedia[PATH_MAX]; local 992 snprintf(nomedia, PATH_MAX, "%s/.nomedia", fuse->global->obb_path); 993 if (touch(nomedia, 0664) != 0) [all...] |
/frameworks/base/media/java/android/mtp/ |
MtpDatabase.java | 810 // check if nomedia status changed 822 // for files, check if renamed from .nomedia to something else 823 if (oldFile.getName().toLowerCase(Locale.US).equals(".nomedia") 824 && !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");
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaProvider.java | 3689 final File nomedia = new File(path); local 3711 File nomedia = new File(path); local [all...] |
/frameworks/base/docs/html/guide/topics/data/ |
data-storage.jd | 320 <p>Include an empty file named {@code .nomedia} in your external files directory (note the dot
|
/frameworks/native/cmds/installd/ |
utils.cpp | 738 // like ".nomedia" to remain in the directory until the entire [all...] |
/frameworks/base/core/java/android/provider/ |
MediaStore.java | 70 * removing nomedia files [all...] |
/external/robolectric/v1/lib/main/ |
android.jar | |
/prebuilts/sdk/18/ |
android.jar | |
/prebuilts/sdk/21/ |
android.jar | |