Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DMediaScannerTest.java118 final File dir = Environment.getExternalStorageDirectory(); in testCorrectness() local
119 stage(R.raw.test_audio, new File(dir, "test.mp3")); in testCorrectness()
120 stage(R.raw.test_video, new File(dir, "test.mp4")); in testCorrectness()
121 stage(R.raw.test_image, new File(dir, "test.jpg")); in testCorrectness()
124 scanDirectory(mLegacy, dir, "legacy"); in testCorrectness()
125 scanDirectory(mModern, dir, "modern"); in testCorrectness()
182 final File dir = new File(Environment.getExternalStorageDirectory(), in testSpeed() local
185 stage(dir, 4, 3); in testSpeed()
189 FileUtils.deleteContentsAndDir(dir); in testSpeed()
193 private static void scanDirectory(MediaScanner scanner, File dir, String tag) { in scanDirectory() argument
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DFileUtils.java57 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/
Dfile_utils.cpp46 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/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DFileUtils.java45 File dir = new File(context.getDataDir(), PENDING_DIR); in getPendingDir() local
46 dir.mkdirs(); in getPendingDir()
47 return dir; in getPendingDir()
55 File dir = getTempDir(context, timestamp); in createTempDir() local
56 dir.mkdirs(); in createTempDir()
57 return dir; in createTempDir()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DUserEventDispatcher.java150 event.action.dir = direction; in logTaskLaunchOrDismiss()
276 public void logActionOnContainer(int action, int dir, int containerType) { in logActionOnContainer() argument
277 logActionOnContainer(action, dir, containerType, 0); in logActionOnContainer()
280 public void logActionOnContainer(int action, int dir, int containerType, int pageIndex) { in logActionOnContainer() argument
283 event.action.dir = dir; in logActionOnContainer()
295 …public void logStateChangeAction(int action, int dir, int downX, int downY, int srcChildTargetType, in logStateChangeAction() argument
310 event.action.dir = dir; in logStateChangeAction()
319 public void logActionOnItem(int action, int dir, int itemType) { in logActionOnItem() argument
323 event.action.dir = dir; in logActionOnItem()
367 action.dir = isButton in logActionBack()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DIdleServiceTest.java60 final File dir = Environment.getExternalStorageDirectory(); in testPruneThumbnails() local
62 new File(dir, System.nanoTime() + ".jpg")); in testPruneThumbnails()
69 final File a = buildPath(dir, Environment.DIRECTORY_PICTURES, ".thumbnails", "1234567.jpg"); in testPruneThumbnails()
70 final File b = buildPath(dir, Environment.DIRECTORY_MOVIES, ".thumbnails", "7654321.jpg"); in testPruneThumbnails()
71 final File c = buildPath(dir, Environment.DIRECTORY_PICTURES, ".thumbnails", id + ".jpg"); in testPruneThumbnails()
72 final File d = buildPath(dir, Environment.DIRECTORY_PICTURES, ".thumbnails", "random.bin"); in testPruneThumbnails()
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/test/
DAndroidTestCase.java32 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/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java350 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) in preVisitDirectory() argument
355 if (isDirectoryHidden(dir.toFile())) { in preVisitDirectory()
361 return visitFile(dir, attrs); in preVisitDirectory()
425 public FileVisitResult postVisitDirectory(Path dir, IOException exc) in postVisitDirectory() argument
915 static boolean isDirectoryHiddenRecursive(File dir) { in isDirectoryHiddenRecursive() argument
918 while (dir != null) { in isDirectoryHiddenRecursive()
919 if (isDirectoryHidden(dir)) { in isDirectoryHiddenRecursive()
922 dir = dir.getParentFile(); in isDirectoryHiddenRecursive()
933 static boolean isDirectoryHidden(File dir) { in isDirectoryHidden() argument
934 final File nomedia = new File(dir, ".nomedia"); in isDirectoryHidden()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java229 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()
327 final File dir = getDebugFilesDir();
328 final File file = new File(dir, fileName);
336 final File dir = Environment.getExternalStorageDirectory();
337 return dir;
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dutilityclass.dot21 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/StorageManager/src/com/android/storagemanager/deletionhelper/
DFetchDownloadsLoader.java63 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/
DSysfsLifetimeWriteInfoProvider.java61 private LifetimeWriteInfo tryParse(File dir) { in tryParse() argument
62 File writefile = new File(dir, FILENAME); in tryParse()
87 dir.getName(), in tryParse()
88 dir.getParentFile().getName(), in tryParse()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java221 Integer dir = values.getAsInteger(BluetoothShare.DIRECTION); in insert() local
224 if (dir == null) { in insert()
225 dir = BluetoothShare.DIRECTION_OUTBOUND; in insert()
227 if (dir == BluetoothShare.DIRECTION_OUTBOUND && con == null) { in insert()
230 if (dir == BluetoothShare.DIRECTION_INBOUND && con == null) { in insert()
234 filteredValues.put(BluetoothShare.DIRECTION, dir); in insert()
DBluetoothOppTransferAdapter.java72 int dir = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); in bindView() local
76 if (dir == BluetoothShare.DIRECTION_OUTBOUND) { in bindView()
109 if (dir == BluetoothShare.DIRECTION_INBOUND) { in bindView()
/packages/services/Car/car-bugreportd/
Dmain.cpp419 status_t createTempDir(const char* dir) { in createTempDir() argument
421 if (TEMP_FAILURE_RETRY(stat(dir, &sb)) == 0) { in createTempDir()
422 if (!recursiveRemoveDir(dir)) { in createTempDir()
426 ALOGE("Failed to stat %s ", dir); in createTempDir()
429 if (TEMP_FAILURE_RETRY(mkdir(dir, 0700)) == -1) { in createTempDir()
430 ALOGE("Failed to mkdir %s", dir); in createTempDir()
/packages/apps/LegacyCamera/src/com/android/camera/
DStorage.java115 File dir = new File(DIRECTORY); in getAvailableSpace() local
116 dir.mkdirs(); in getAvailableSpace()
117 if (!dir.isDirectory() || !dir.canWrite()) { in getAvailableSpace()
/packages/services/Car/procfs-inspector/server/
Ddirectory.h59 void operator()(DIR* dir) { in operator()
60 if (dir) closedir(dir); in operator()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DFileUtils.java40 public static boolean deleteFilteredFiles(final File dir, final FilenameFilter fileNameFilter) { in deleteFilteredFiles() argument
41 if (!dir.isDirectory()) { in deleteFilteredFiles()
44 final File[] files = dir.listFiles(fileNameFilter); in deleteFilteredFiles()
/packages/services/Car/car-lib/
DAndroid.mk20 LOCAL_PATH:= $(call my-dir)
25 full_classes_jar := $(call intermediates-dir-for,JAVA_LIBRARIES,android.car,,COMMON)/classes.jar
33 $(hide) mkdir -p $(dir $@)
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
DDelegateFileFilter.java86 public boolean accept(File dir, String name) { in accept() argument
88 return filenameFilter.accept(dir, name); in accept()
90 return super.accept(dir, name); in accept()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java291 DirectoryFragment dir; in onOptionsItemSelected() local
370 DirectoryFragment dir; in onKeyShortcut() local
384 dir = getDirectoryFragment(); in onKeyShortcut()
385 if (dir != null) { in onKeyShortcut()
386 dir.pasteFromClipboard(); in onKeyShortcut()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStorageUtils.java49 final File dir = dirs.removeFirst(); in listFilesRecursive() local
50 if (Objects.equals(dir.getName(), exclude)) continue; in listFilesRecursive()
52 final File[] children = dir.listFiles(); in listFilesRecursive()
/packages/apps/Launcher3/
Dbuild.gradle154 implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'launcher_protos.jar')
157 …withQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/quickstep/libs", include: 's…
160 …withQuickstepIconRecentsImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/quickstep/libs", …
163 …withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'plugin_c…
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSwipeDetector.java248 public SwipeDetector(@NonNull Context context, @NonNull Listener l, @NonNull Direction dir) { in SwipeDetector() argument
249 this(ViewConfiguration.get(context), l, dir, Utilities.isRtl(context.getResources())); in SwipeDetector()
254 @NonNull Direction dir, boolean isRtl) { in SwipeDetector() argument
256 mDir = dir; in SwipeDetector()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DSaveVideoFileUtils.java75 final File[] dir = new File[1]; in getSaveDirectory() local
81 dir[0] = new File(cursor.getString(0)).getParentFile(); in getSaveDirectory()
84 return dir[0]; in getSaveDirectory()

12345678910>>...12