/packages/providers/MediaProvider/ |
D | sqlite3.sh | 8 dir=$(pwd) 10 dir=$1 14 rm $dir/external.db 15 rm $dir/external.db-wal 17 adb pull /data/user/0/$package/databases/external.db $dir/external.db 18 adb pull /data/user/0/$package/databases/external.db-wal "$dir/external.db-wal" 20 sqlite3 $dir/external.db "drop trigger files_insert" 21 sqlite3 $dir/external.db "drop trigger files_update" 22 sqlite3 $dir/external.db "drop trigger files_delete" 24 rlwrap sqlite3 $dir/external.db [all …]
|
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/util/ |
D | CommonUtilsTest.java | 46 File dir = new File(RuntimeEnvironment.application.getExternalFilesDir(null), "dir"); in deleteDirOrFile_Dir() local 47 assertThat(dir.mkdirs()).isTrue(); in deleteDirOrFile_Dir() 48 assertThat(new File(dir, "file").createNewFile()).isTrue(); in deleteDirOrFile_Dir() 49 assertThat(CommonUtils.deleteDirOrFile(dir)).isTrue(); in deleteDirOrFile_Dir() 50 assertThat(dir.exists()).isFalse(); in deleteDirOrFile_Dir() 55 File dir = new File(RuntimeEnvironment.application.getExternalFilesDir(null), "dir"); in deleteDirOrFile_unreadableDir() local 56 assertThat(dir.mkdirs()).isTrue(); in deleteDirOrFile_unreadableDir() 57 assertThat(new File(dir, "file").createNewFile()).isTrue(); in deleteDirOrFile_unreadableDir() 58 dir.setReadable(false); in deleteDirOrFile_unreadableDir() 61 assertThat(CommonUtils.deleteDirOrFile(dir)).isFalse(); in deleteDirOrFile_unreadableDir() [all …]
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 79 unique_ptr<DIR, decltype(&closedir)> dir(opendir(TRAIN_INFO_DIR), closedir); in findTrainInfoFileNameLocked() local 80 if (dir == NULL) { in findTrainInfoFileNameLocked() 85 while ((de = readdir(dir.get()))) { in findTrainInfoFileNameLocked() 392 unique_ptr<DIR, decltype(&closedir)> dir(opendir(TRAIN_INFO_DIR), closedir); in readAllTrainInfo() local 393 if (dir == NULL) { in readAllTrainInfo() 399 while ((de = readdir(dir.get()))) { in readAllTrainInfo() 424 unique_ptr<DIR, decltype(&closedir)> dir(opendir(path), closedir); in deleteAllFiles() local 425 if (dir == NULL) { in deleteAllFiles() 431 while ((de = readdir(dir.get()))) { in deleteAllFiles() 439 unique_ptr<DIR, decltype(&closedir)> dir(opendir(path), closedir); in deleteSuffixedFiles() local [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | MediaScannerTest.java | 163 final File dir = Environment.getExternalStorageDirectory(); in testCorrectness() local 164 stage(R.raw.test_audio, new File(dir, "test.mp3")); in testCorrectness() 165 stage(R.raw.test_video, new File(dir, "test.mp4")); in testCorrectness() 166 stage(R.raw.test_image, new File(dir, "test.jpg")); in testCorrectness() 169 scanDirectory(mLegacy, dir, "legacy"); in testCorrectness() 170 scanDirectory(mModern, dir, "modern"); in testCorrectness() 227 final File dir = new File(Environment.getExternalStorageDirectory(), in testSpeed() local 230 stage(dir, 4, 3); in testSpeed() 234 FileUtils.deleteContents(dir); in testSpeed() 235 dir.delete(); in testSpeed() [all …]
|
/packages/apps/Car/tests/tools/rro/ |
D | resource_utils.py | 63 for dir in fileDirs: 64 type = dir.split('-')[0] 65 for file in os.listdir(os.path.join(resDir, dir)): 66 filePath = os.path.abspath(os.path.join(resDir, dir, file)) 70 ResourceLocation(os.path.join(resDir, dir, file)))) 71 if dir.startswith("layout"): 72 for resource in get_ids_from_layout_file(os.path.join(resDir, dir, file)): 74 for dir in valuesDirs: 75 for file in os.listdir(os.path.join(resDir, dir)): 76 filePath = os.path.abspath(os.path.join(resDir, dir, file)) [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaDocumentsProviderTest.java | 108 for (String dir : new String[] { in testSimple() 113 assertProbe(resolver, "document", dir, "children"); in testSimple() 250 final File dir = new File(context.getExternalMediaDirs()[0], "test_" + System.nanoTime()); in stageTestMedia() local 251 dir.mkdirs(); in stageTestMedia() 252 FileUtils.deleteContents(dir); in stageTestMedia() 254 stage(R.raw.test_audio, new File(dir, "audio.mp3")); in stageTestMedia() 255 stage(R.raw.test_video, new File(dir, "video.mp4")); in stageTestMedia() 256 stage(R.raw.test_image, new File(dir, "image.jpg")); in stageTestMedia() 257 stage(R.raw.test_m3u, new File(dir, "playlist.m3u")); in stageTestMedia() 258 stage(R.raw.test_srt, new File(dir, "subtitle.srt")); in stageTestMedia() [all …]
|
D | IdleServiceTest.java | 98 final File dir = Environment.getExternalStorageDirectory(); in testPruneThumbnails() local 111 final File a = touch(buildPath(dir, DIRECTORY_PICTURES, ".thumbnails", "1234567.jpg")); in testPruneThumbnails() 112 final File b = touch(buildPath(dir, DIRECTORY_MOVIES, ".thumbnails", "7654321.jpg")); in testPruneThumbnails() 113 final File c = touch(buildPath(dir, DIRECTORY_PICTURES, ".thumbnails", id + ".jpg")); in testPruneThumbnails() 114 final File d = touch(buildPath(dir, DIRECTORY_PICTURES, ".thumbnails", "random.bin")); in testPruneThumbnails() 125 final File uuidFile = buildPath(dir, Environment.DIRECTORY_PICTURES, in testPruneThumbnails()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | FileUtils.java | 161 public static boolean deleteOlderFiles(File dir, int minCount, long minAgeMs) { in deleteOlderFiles() argument 166 final File[] files = dir.listFiles(); in deleteOlderFiles() 335 for (File dir : dirs) { in contains() 336 if (contains(dir, file)) { in contains() 345 for (File dir : dirs) { in contains() 346 if (contains(dir, file)) { in contains() 363 public static boolean contains(File dir, File file) { in contains() argument 364 if (dir == null || file == null) return false; in contains() 365 return contains(dir.getAbsolutePath(), file.getAbsolutePath()); in contains() 440 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) { in walkFileTreeContents() [all …]
|
/packages/apps/Car/libs/car-ui-lib/tests/tools/ |
D | quick_rro.py | 58 for root, dirs, files in os.walk(args.dir): 90 def get_android_dir_priority(dir): argument 95 if len(dir) == 0: 97 if 'stable' in dir: 101 return int(dir.split('-')[1]) 124 for dir in os.listdir(sdk_dir): 125 if os.path.isdir(os.path.join(sdk_dir, dir)): 126 if get_android_dir_priority(dir) > get_android_dir_priority(best_dir): 127 best_dir = dir 169 resource_folder = args.dir or os.path.join(root_folder, 'res') [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/util/ |
D | FileUtils.java | 57 public static boolean makeDirectory(File dir) { in makeDirectory() argument 59 Log.d(TAG, "Testing file " + dir + " exists=" + dir.exists() in makeDirectory() 60 + " isDirectory=" + dir.isDirectory()); in makeDirectory() 62 if (dir.exists()) { in makeDirectory() 63 return dir.isDirectory(); in makeDirectory() 65 return dir.mkdir(); in makeDirectory()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | file_utils.cpp | 46 DIR *const dir = opendir(dirPath); in existsDir() local 47 if (dir == NULL) { in existsDir() 50 closedir(dir); in existsDir() 61 DIR *const dir = opendir(dirPath); in removeDirAndFiles() local 62 if (dir == NULL) { in removeDirAndFiles() 67 while ((dirent = readdir(dir)) != NULL) { in removeDirAndFiles() 79 closedir(dir); in removeDirAndFiles() 83 closedir(dir); in removeDirAndFiles()
|
/packages/apps/Car/libs/car-ui-lib/tests/apitest/ |
D | resource_utils.py | 71 for dir in fileDirs: 72 type = dir.split('-')[0] 73 for file in os.listdir(os.path.join(resDir, dir)): 77 ResourceLocation(os.path.join(resDir, dir, file)))) 78 if dir.startswith("layout"): 79 for resource in get_ids_from_layout_file(os.path.join(resDir, dir, file)): 82 for dir in valuesDirs: 83 for file in os.listdir(os.path.join(resDir, dir)): 85 for resource in get_resources_from_single_file(os.path.join(resDir, dir, file)):
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | DownloadProviderTest.java | 105 for (String dir: otherPackageDirsOnSameVolume) { in createOtherPackageExternalFilesDir() 106 otherPackageDirs.add(new File(dir)); in createOtherPackageExternalFilesDir() 107 final String otherPackageExternalFilesDir = dir + "/files"; in createOtherPackageExternalFilesDir() 128 for (File dir: otherPackageDirs) { in deleteOtherPackageExternalFiles() 129 executeShellCommand("rm -r " + dir.getAbsolutePath()); in deleteOtherPackageExternalFiles() 152 private static void pollForDirectoryToBeCreated(File dir) throws Exception { in pollForDirectoryToBeCreated() argument 154 () -> dir.exists(), in pollForDirectoryToBeCreated() 155 "Timed out while waiting for dir " + dir + " to be created"); in pollForDirectoryToBeCreated() local
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 296 public void onDirectoryDirty(File dir) { in onDirectoryDirty() argument 298 mPendingCleanDirectories.remove(dir.getPath()); in onDirectoryDirty() 299 FileUtils.setDirectoryDirty(dir, /*isDirty*/ true); in onDirectoryDirty() 489 for (String dir : mExcludeDirs) { in buildSqlSelectionArgs() 490 addEscapedAndExpandedPath(dir, escapedPaths); in buildSqlSelectionArgs() 606 private void acquireDirectoryLock(@NonNull Path dir) { in acquireDirectoryLock() argument 610 lock = mDirectoryLocks.get(dir); in acquireDirectoryLock() 613 mDirectoryLocks.put(dir, lock); in acquireDirectoryLock() 618 mAcquiredDirectoryLocks.add(dir); in acquireDirectoryLock() 627 private void releaseDirectoryLock(@NonNull Path dir) { in releaseDirectoryLock() argument [all …]
|
/packages/modules/common/tools/ |
D | finalize_sdk.py | 52 for dir in os.listdir('prebuilts/module_sdk/'): 53 if module.lower() in dir.lower(): 55 fail('Multiple target dirs matched "%s": %s' % (module, (target_dir, dir))) 56 target_dir = dir 90 dir = dir_for_sdk(f, args.finalize_sdk) variable 91 target_dir = os.path.join(repo, dir) 99 created_dirs[repo].append(dir)
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | FileUtils.java | 49 File dir = new File(context.getDataDir(), PENDING_DIR); in getPendingDir() local 50 dir.mkdirs(); in getPendingDir() 51 return dir; in getPendingDir() 59 File dir = getTempDir(context, timestamp); in createTempDir() local 60 dir.mkdirs(); in createTempDir() 61 return dir; in createTempDir()
|
/packages/modules/GeoTZ/common/host/main/java/com/android/timezone/location/common/ |
D | LicenseSupport.java | 68 public void checkLicensePresentInDir(File dir) throws IOException { in checkLicensePresentInDir() argument 69 checkIsDir(dir); in checkLicensePresentInDir() 70 File licenseFile = new File(dir, LICENSE_FILE_NAME); in checkLicensePresentInDir() 133 private static void checkIsDir(File dir) { in checkIsDir() argument 134 if (!dir.isDirectory()) { in checkIsDir() 135 throw new IllegalArgumentException(dir + " is not a directory."); in checkIsDir()
|
/packages/services/Car/car_product/sepolicy/private/ |
D | carservice_app.te | 54 allow carservice_app system_app_data_file:dir create_dir_perms; 57 allow carservice_app system_car_data_file:dir create_dir_perms; 73 allow carservice_app sysfs:dir { open read search }; 74 allow carservice_app sysfs_fs_ext4_features:dir { open read search}; 75 allow carservice_app sysfs_fs_f2fs:dir { open read search }; 103 allow carservice_app gpu_device:dir r_dir_perms;
|
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/test/ |
D | AndroidTestCase.java | 32 final File dir = Test.TEST_TMP_DIR; in getCacheDir() local 33 if (!dir.isDirectory()) { in getCacheDir() 34 dir.mkdirs(); in getCacheDir() 36 return dir; in getCacheDir()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/ |
D | utilityclass.dot | 21 edge [arrowtail=onormal, dir=back] 35 edge [arrowtail=onormal, dir=back] 53 edge [arrowtail=onormal, dir=back] 58 edge [arrowtail=odiamond, arrowhead=vee, dir=both]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | DebugUtils.java | 229 final File dir = DebugUtils.getDebugFilesDir(); in doInBackgroundTimed() local 230 return dir.list(new FilenameFilter() { in doInBackgroundTimed() 232 public boolean accept(final File dir, final String filename) { in doInBackgroundTimed() 331 final File dir = getDebugFilesDir(); 332 final File file = new File(dir, fileName); 340 final File dir = Environment.getExternalStorageDirectory(); 341 return dir;
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | FetchDownloadsLoader.java | 63 static DownloadsResult collectFiles(File dir) { in collectFiles() argument 64 return collectFiles(dir, new DownloadsResult()); in collectFiles() 67 private static DownloadsResult collectFiles(File dir, DownloadsResult result) { in collectFiles() argument 71 File downloadFiles[] = dir.listFiles(); in collectFiles()
|
/packages/services/Car/service/src/com/android/car/storagemonitoring/ |
D | SysfsLifetimeWriteInfoProvider.java | 62 private LifetimeWriteInfo tryParse(File dir) { in tryParse() argument 63 File writefile = new File(dir, FILENAME); in tryParse() 88 dir.getName(), in tryParse() 89 dir.getParentFile().getName(), in tryParse()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Storage.java | 115 File dir = new File(DIRECTORY); in getAvailableSpace() local 116 dir.mkdirs(); in getAvailableSpace() 117 if (!dir.isDirectory() || !dir.canWrite()) { in getAvailableSpace()
|
/packages/modules/SdkExtensions/derive_sdk/ |
D | derive_sdk_test.cpp | 37 const std::string dir() { return std::string(dir_.path); } in dir() function in DeriveSdkTest 40 return dir() + "/" + apex + "/etc"; in EtcDir() 55 android::derivesdk::SetSdkLevels(dir()); in AddExtensionVersion() 63 android::derivesdk::SetSdkLevels(dir()); in SetApexVersion()
|