Home
last modified time | relevance | path

Searched refs:directory (Results 1 – 25 of 131) sorted by relevance

123456

/frameworks/base/services/robotests/backup/src/android/app/backup/
DBackupUtilsTest.java61 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasItsDirectory()
84 BackupUtils.isFileSpecifiedInPathList(directory("a"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenDirectoryAndPathListHasIt()
91 boolean isSpecified = BackupUtils.isFileSpecifiedInPathList(directory("a"), paths()); in testIsFileSpecifiedInPathList_whenDirectoryAndPathListEmpty()
99 BackupUtils.isFileSpecifiedInPathList(directory("a/b"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenDirectoryAndPathListHasParent()
108 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("c"))); in testIsFileSpecifiedInPathList_whenFileAndPathListDoesntContainDirectory()
117 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a/b"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix()
127 file("name/subname.txt"), paths(directory("nam"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix2()
138 file("a/b.txt"), paths(directory("b"), directory("a"))); in testIsFileSpecifiedInPathList_whenFileAndPathListContainsFirstNotRelatedAndSecondContainingDirectory()
149 directory("a/b"), paths(directory("b"), directory("a/b"))); in testIsFileSpecifiedInPathList_whenDirectoryAndPathListContainsFirstNotRelatedAndSecondSameDirectory()
160 file("a/b.txt"), paths(directory("b"), file("a/b.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListContainsFirstNotRelatedFileAndSecondSameFile()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutDumpFiles.java47 final File directory = mService.getDumpPath(); in save() local
48 directory.mkdirs(); in save()
49 if (!directory.exists()) { in save()
50 Slog.e(TAG, "Failed to create directory: " + directory); in save()
54 final File path = new File(directory, filename); in save()
78 final File directory = mService.getDumpPath(); in dumpAll() local
79 final File[] files = directory.listFiles(f -> f.isFile()); in dumpAll()
80 if (!directory.exists() || ArrayUtils.isEmpty(files)) { in dumpAll()
/frameworks/av/services/audioflinger/
DNBAIO_Tee.cpp85 AudioFileHandler(const std::string &prefix, const std::string &directory, size_t pool) in AudioFileHandler() argument
89 (void)setDirectory(directory); in AudioFileHandler()
105 status_t setDirectory(const std::string &directory);
119 static bool isDirectoryValid(const std::string &directory) { in isDirectoryValid() argument
120 return directory.size() > 0 && directory[0] == '/'; in isDirectoryValid()
271 status_t AudioFileHandler::setDirectory(const std::string &directory) in setDirectory() argument
273 if (!isDirectoryValid(directory)) return BAD_VALUE; in setDirectory()
276 DIR *dir = opendir(directory.c_str()); in setDirectory()
279 ALOGW("%s: cannot open directory %s", __func__, directory.c_str()); in setDirectory()
317 mDirectory = directory; in setDirectory()
[all …]
/frameworks/base/cmds/incidentd/src/
Dreport_directory.cpp41 void clean_directory(const char* directory, off_t maxSize, size_t maxCount) { in clean_directory() argument
48 if ((dir = opendir(directory)) == NULL) { in clean_directory()
49 ALOGE("Couldn't open incident directory: %s", directory); in clean_directory()
53 String8 dirbase(directory); in clean_directory()
54 if (directory[dirbase.size() - 1] != '/') dirbase += "/"; in clean_directory()
Dreport_directory.h28 android::status_t create_directory(const char* directory);
29 void clean_directory(const char* directory, off_t maxSize, size_t maxCount);
/frameworks/base/tools/obbtool/
Dmkobb.sh169 -d) directory=$2; shift 2;;
180 if [ "${directory}x" = "x" -o ! -d "${directory}" ]; then \
214 block_count=`du -s --apparent-size --block-size=512 ${directory} | awk '{ print $1; }'`
216 echo "ERROR: Couldn't read size of input directory ${directory}"
256 ${RSYNCBIN} -av --no-owner --no-group ${directory}/ ${temp_mount}/
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/res/
D.README1 The res directory is needed for Eclipse to correctly build the project, but it
2 is not possible to check in a directory into git. This file guarantees the res
3 directory exists.
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DProtoStore.java81 private static File ensureDirectoryExistsOrThrow(File directory) throws IOException { in ensureDirectoryExistsOrThrow() argument
82 if (directory.exists() && !directory.isDirectory()) { in ensureDirectoryExistsOrThrow()
86 if (!directory.exists() && !directory.mkdir()) { in ensureDirectoryExistsOrThrow()
90 return directory; in ensureDirectoryExistsOrThrow()
/frameworks/compile/slang/
DRSCCOptions.td38 def I : JoinedOrSeparate<["-"], "I">, MetaVarName<"<directory>">,
39 HelpText<"Add directory to include search path">;
40 def _I : Separate<["-", "--"], "include-path">, MetaVarName<"<directory>">, Alias<I>;
46 def o : Separate<["-"], "o">, MetaVarName<"<directory>">,
47 HelpText<"Specify output directory">;
76 MetaVarName<"<directory>">,
77 HelpText<"Base directory for output reflected Java files">;
111 def output_dep_dir : Separate<["-"], "output-dep-dir">, MetaVarName<"<directory>">,
112 HelpText<"Specify output directory for dependencies output">;
/frameworks/compile/libbcc/tests/debuginfo/
DREADME4 This directory contains integration tests for debug information in libbcc.
35 In addition, you need a build of gdbserver available in the prebuilt directory.
40 output directory. If you wish to use different versions of these tools,
52 To execute all the tests from this directory, use the llvm-lit tool:
56 The tool can be run from any directory.
62 To add new tests, just add a .c, .cpp, or .rs file to a test directory with
/frameworks/rs/script_api/
DGenerateDocumentation.cpp431 static bool generateOverview(const string& directory) { in generateOverview() argument
433 if (!file.start(directory, OVERVIEW_HTML_FILE_NAME)) { in generateOverview()
454 static bool generateAlphabeticalIndex(const string& directory) { in generateAlphabeticalIndex() argument
456 if (!file.start(directory, INDEX_HTML_FILE_NAME)) { in generateAlphabeticalIndex()
617 static bool writeDetailedDocumentationFile(const string& directory, in writeDetailedDocumentationFile() argument
627 if (!file.start(directory, fileName)) { in writeDetailedDocumentationFile()
696 static bool generateAndroidTableOfContentSnippet(const string& directory) { in generateAndroidTableOfContentSnippet() argument
698 if (!file.start(directory, "guide_toc.cs")) { in generateAndroidTableOfContentSnippet()
727 bool generateDocumentation(const string& directory) { in generateDocumentation() argument
728 bool success = generateOverview(directory) && in generateDocumentation()
[all …]
DGenerator.h21 bool generateHeaderFiles(const std::string& directory);
24 bool generateTestFiles(const std::string& directory, unsigned int versionOfTestFiles);
DGenerateTestFiles.cpp1013 static bool startJavaFile(GeneratedFile* file, const string& directory, in startJavaFile() argument
1017 if (!file->start(directory, fileName)) { in startJavaFile()
1076 static bool startRsFile(GeneratedFile* file, const string& directory, in startRsFile() argument
1079 if (!file->start(directory, fileName)) { in startRsFile()
1090 static bool writeRelaxedRsFile(const string& directory, const string& testName, in writeRelaxedRsFile() argument
1095 if (!file.start(directory, name)) { in writeRelaxedRsFile()
1109 static bool writeTestFilesForFunction(const Function& function, const string& directory, in writeTestFilesForFunction() argument
1119 if (!writeRelaxedRsFile(directory, testName, relaxedTestName)) { in writeTestFilesForFunction()
1125 if (!startRsFile(&rsFile, directory, testName)) { in writeTestFilesForFunction()
1129 if (!startJavaFile(&javaFile, directory, testName, relaxedTestName)) { in writeTestFilesForFunction()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/
DREADME.md15 Tests can be added by adding classes to the src directory. JUnit4 style test cases can
25 in this directory. It will rebuild parts of your tree with coverage enabled and then run the tests,
27 `ANDROID_SERIAL` environment variable before running the script. You must supply an output directory
29 the following from the root out your source tree to generate results in the wifi_coverage directory
/frameworks/compile/slang/lit-tests/
DREADME4 This directory contains tests for Slang that use the 'llvm-lit' testing tool.
31 To execute all the tests from this directory, use the Android llvm-lit tool
35 The tool can be run from any directory.
41 To add new tests, just add .rs files to a test directory with similar
/frameworks/base/core/java/com/android/internal/os/
DAtomicDirectory.java280 private static boolean deleteDirectory(@NonNull File directory) { in deleteDirectory() argument
281 return FileUtils.deleteContentsAndDir(directory); in deleteDirectory()
290 private static void syncDirectory(@NonNull File directory) { in syncDirectory() argument
291 String path = directory.getAbsolutePath(); in syncDirectory()
/frameworks/compile/libbcc/tests/debuginfo/target-tests/
Dlit.cfg22 # android_sdk - Path to the android SDK directory
26 # If the user is running an individual tests directory, we have to load
48 # Output directory in the android source tree
61 lit.fatal("Android SDK directory " + config.sdk_dir + " does " \
83 lit.note('using GDB plugin directory: %r' % config.gdb_plugin_directory)
/frameworks/base/docs/downloads/
DREADME1 Files in this directory are not hosted on developer.android.com.
3 This directory serves as a "master" repository for various
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java181 public static synchronized HttpResponseCache install(File directory, long maxSize) in install() argument
188 if (cacheHolder.isEquivalent(directory, maxSize)) { in install()
196 CacheHolder cacheHolder = CacheHolder.create(directory, maxSize); in install()
/frameworks/layoutlib/bridge/resources/bars/
DREADME1 The directory contains the resources for StatusBar and Navigation Bar.
5 resource directory is used as a backup for all earlier API levels.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DWfaCertBuilder.java43 public static Set<X509Certificate> loadCertsFromDisk(String directory) { in loadCertsFromDisk() argument
46 File certDir = new File(directory); in loadCertsFromDisk()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/io/
DFakeBasicFileAttributes.java102 public FakeBasicFileAttributes setDirectory(boolean directory) { in setDirectory() argument
103 mIsDirectory = directory; in setDirectory()
/frameworks/base/data/sounds/
DREADME.txt4 which installs the appropriate assets into the destination directory.
9 in directory SOUND_EFFECTS_PATH.
/frameworks/base/mime/
DAndroid.bp52 // - the "cp" command will flatten any directory paths that occur in $(in),
53 // but here they happen to already be in the root directory. If we needed
55 // unzip them below the new parent directory.
68 // The same as mimemap-res.jar except that the resources are placed in a different directory.
/frameworks/native/cmds/installd/
DCacheItem.cpp35 directory = S_ISDIR(p->fts_statp->st_mode); in CacheItem()
72 if (directory) { in purge()

123456