Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java170 for (File dir : mPreinstalledFontDirs) { in setUp()
171 dir.mkdir(); in setUp()
212 UpdatableFontDir dir = new UpdatableFontDir( in construct() local
215 dir.loadFontFileMap(); in construct()
216 assertThat(dir.getPostScriptMap()).containsKey("foo"); in construct()
217 assertThat(mParser.getRevision(dir.getPostScriptMap().get("foo"))).isEqualTo(3); in construct()
218 assertThat(dir.getPostScriptMap()).containsKey("bar"); in construct()
219 assertThat(mParser.getRevision(dir.getPostScriptMap().get("bar"))).isEqualTo(4); in construct()
222 assertNamedFamilyExists(dir.getSystemFontConfig(), "foobar"); in construct()
223 assertThat(dir.getFontFamilyMap()).containsKey("foobar"); in construct()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DEnvironmentTest.java54 private File dir; field in EnvironmentTest
62 dir = getContext().getDir("testing", Context.MODE_PRIVATE); in setUp()
63 FileUtils.deleteContents(dir); in setUp()
68 FileUtils.deleteContents(dir); in tearDown()
73 assertEquals(0, classifyExternalStorageDirectory(dir)); in testClassify_empty()
78 Environment.buildPath(dir, "DCIM").mkdirs(); in testClassify_emptyDirs()
79 Environment.buildPath(dir, "DCIM", "January").mkdirs(); in testClassify_emptyDirs()
80 Environment.buildPath(dir, "Downloads").mkdirs(); in testClassify_emptyDirs()
81 Environment.buildPath(dir, "LOST.DIR").mkdirs(); in testClassify_emptyDirs()
82 assertEquals(0, classifyExternalStorageDirectory(dir)); in testClassify_emptyDirs()
[all …]
/frameworks/base/ravenwood/runtime-common-src/com/android/ravenwood/common/
DRavenwoodCommonUtils.java109 for (var dir : path.split(":")) { in loadJniLibraryInternal()
110 var file = new File(dir + "/" + filename); in loadJniLibraryInternal()
129 for (var dir : path.split(":")) { in dumpFiles()
130 listFiles(out, new File(dir), ""); in dumpFiles()
132 var gparent = new File((new File(dir)).getAbsolutePath() + "../../..") in dumpFiles()
149 private static void listFiles(PrintStream out, File dir, String prefix) { in listFiles() argument
150 if (!dir.isDirectory()) { in listFiles()
151 out.println(prefix + dir.getAbsolutePath() + " is not a directory!"); in listFiles()
154 out.println(prefix + ":" + dir.getAbsolutePath() + "/"); in listFiles()
156 for (var file : Arrays.stream(dir.listFiles()).sorted().toList()) { in listFiles()
[all …]
/frameworks/multidex/library/src/androidx/multidex/
DZipUtil.java57 CentralDirectory dir = findCentralDirectory(raf); in getZipCrc() local
59 return computeCrcOfCentralDir(raf, dir); in getZipCrc()
99 CentralDirectory dir = new CentralDirectory(); in findCentralDirectory() local
100 dir.size = Integer.reverseBytes(raf.readInt()) & 0xFFFFFFFFL; in findCentralDirectory()
101 dir.offset = Integer.reverseBytes(raf.readInt()) & 0xFFFFFFFFL; in findCentralDirectory()
102 return dir; in findCentralDirectory()
106 static long computeCrcOfCentralDir(RandomAccessFile raf, CentralDirectory dir) in computeCrcOfCentralDir() argument
109 long stillToRead = dir.size; in computeCrcOfCentralDir()
110 raf.seek(dir.offset); in computeCrcOfCentralDir()
/frameworks/minikin/include/minikin/
DLayoutPieces.h32 Key(const Range& range, HyphenEdit hyphenEdit, bool dir, uint32_t paintId) in Key()
35 dir(dir), in Key()
41 bool dir; member
50 .update(dir) in calcHash()
56 return range == o.range && hyphenEdit == o.hyphenEdit && dir == o.dir &&
80 void insert(const Range& range, HyphenEdit edit, const LayoutPiece& layout, bool dir, in insert()
88 std::forward_as_tuple(range, edit, dir, paintId), in insert()
94 const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, in getOrCreate()
97 auto it = offsetMap.find(Key(range, edit, dir, paintId)); in getOrCreate()
110 paint, dir, startEdit, endEdit, boundsCalculation, in getOrCreate()
/frameworks/base/core/jni/
Dandroid_text_AndroidCharacter.cpp78 int dir = u_charDirection(c); in getDirectionalities() local
79 if (dir < 0 || dir > JAVA_LANG_CHARACTER_MAX_DIRECTIONALITY in getDirectionalities()
81 dir = PROPERTY_UNDEFINED; in getDirectionalities()
83 dir = directionality_map[dir]; in getDirectionalities()
85 dest[i++] = dir; in getDirectionalities()
86 dest[i] = dir; in getDirectionalities()
89 int dir = u_charDirection(c); in getDirectionalities() local
90 if (dir < 0 || dir > JAVA_LANG_CHARACTER_MAX_DIRECTIONALITY in getDirectionalities()
94 dest[i] = directionality_map[dir]; in getDirectionalities()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
DFullRestoreEngineTest.java52 TestFile.dir("root"), in shouldSkipReadOnlyDir_skipsAllReadonlyDirsAndTheirChildren()
54 TestFile.dir("root/media"), in shouldSkipReadOnlyDir_skipsAllReadonlyDirsAndTheirChildren()
57 TestFile.dir("root/read-only-dir-1").markReadOnly().expectSkipped(), in shouldSkipReadOnlyDir_skipsAllReadonlyDirsAndTheirChildren()
58 TestFile.dir("root/read-only-dir-1/writable-subdir").expectSkipped(), in shouldSkipReadOnlyDir_skipsAllReadonlyDirsAndTheirChildren()
60 TestFile.dir("root/read-only-dir-1/writable-subdir/read-only-subdir-2") in shouldSkipReadOnlyDir_skipsAllReadonlyDirsAndTheirChildren()
64 TestFile.dir("root/database"), in shouldSkipReadOnlyDir_skipsAllReadonlyDirsAndTheirChildren()
66 TestFile.dir("root/read-only-dir-2").markReadOnly().expectSkipped(), in shouldSkipReadOnlyDir_skipsAllReadonlyDirsAndTheirChildren()
77 TestFile.dir("read-only-dir").markReadOnly().expectSkipped(), in shouldSkipReadOnlyDir_onlySkipsChildrenUnderTheSamePackage()
89 TestFile.dir("read-only-dir").markReadOnly().expectSkipped(), in shouldSkipReadOnlyDir_onlySkipsChildrenUnderTheSameDomain()
112 static TestFile dir(String path) { in dir() method in FullRestoreEngineTest.TestFile
/frameworks/compile/mclinker/lib/MC/
DSearchDirs.cpp41 iterator dir, dirEnd = end(); in ~SearchDirs() local
42 for (dir = begin(); dir != dirEnd; ++dir) { in ~SearchDirs()
43 delete (*dir); in ~SearchDirs()
48 MCLDDirectory* dir = new MCLDDirectory(pPath); in insert() local
49 if (dir->isInSysroot()) in insert()
50 dir->setSysroot(m_SysRoot); in insert()
52 if (exists(dir->path()) && is_directory(dir->path())) { in insert()
53 m_DirList.push_back(dir); in insert()
56 delete dir; in insert()
/frameworks/base/tools/aapt/
DDirectoryWalker.h60 dir = NULL; in openDir()
61 dir = opendir(mBasePath.c_str() ); in openDir()
63 if (dir == NULL) in openDir()
75 struct dirent* entryPtr = readdir(dir); in nextEntry()
90 closedir(dir); in closeDir()
96 DIR* dir;
DAaptAssets.cpp400 AaptGroupEntry::initFromDirName(const char* dir, String8* resType) in initFromDirName() argument
402 const char* q = strchr(dir, '-'); in initFromDirName()
405 typeLen = q - dir; in initFromDirName()
407 typeLen = strlen(dir); in initFromDirName()
410 String8 type(dir, typeLen); in initFromDirName()
605 status_t AaptDir::addDir(const String8& name, const sp<AaptDir>& dir) in addDir() argument
610 mDirs.add(name, dir); in addDir()
628 sp<AaptDir> dir = new AaptDir(name, appendPathCopy(subdir->mPath, name)); in makeDir() local
629 subdir->mDirs.add(name, dir); in makeDir()
630 return dir; in makeDir()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DVolumeLoader.java37 public VolumeLoader(String dir) { in VolumeLoader() argument
40 baseDir = new File(dir); in VolumeLoader()
42 Log.e(LOGTAG, "Directory: \""+dir+"\" does not exist "); in VolumeLoader()
70 String dir = p.getProperty("dir"); in getVolume() local
71 Log.v(LOGTAG,"dir ="+dir); in getVolume()
75 Volume v = LoaderDicom.buildRSVolume(rs, new File(baseDir, dir), mListener); in getVolume()
85 Volume v = LoaderRaw.buildRSVolume(rs, new File(baseDir, dir), p, mListener); in getVolume()
98 static Properties[] getPropertyFiles(File dir) { in getPropertyFiles() argument
100 File[] f = dir.listFiles(new FilenameFilter() { in getPropertyFiles()
103 public boolean accept(File dir, String name) { in getPropertyFiles()
/frameworks/base/graphics/java/android/graphics/
DPath.java568 public void addRect(@NonNull RectF rect, @NonNull Direction dir) { in addRect() argument
569 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
581 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument
582 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
591 public void addOval(@NonNull RectF oval, @NonNull Direction dir) { in addOval() argument
592 addOval(oval.left, oval.top, oval.right, oval.bottom, dir); in addOval()
600 public void addOval(float left, float top, float right, float bottom, @NonNull Direction dir) { in addOval() argument
601 nAddOval(mNativePath, left, top, right, bottom, dir.nativeInt); in addOval()
612 public void addCircle(float x, float y, float radius, @NonNull Direction dir) { in addCircle() argument
613 nAddCircle(mNativePath, x, y, radius, dir.nativeInt); in addCircle()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java114 final File dir = getContext().getExternalFilesDir(null); in testWithBitmap() local
115 L("writing temp bitmaps to %s...", dir); in testWithBitmap()
118 new FileOutputStream(new File(dir, "bitmap1-original.png"))); in testWithBitmap()
120 new FileOutputStream(new File(dir, "bitmap1-test.png"))); in testWithBitmap()
123 fail("bitmap1 differs, check " + dir); in testWithBitmap()
127 new FileOutputStream(new File(dir, "bitmap2-original.png"))); in testWithBitmap()
129 new FileOutputStream(new File(dir, "bitmap2-test.png"))); in testWithBitmap()
132 fail("bitmap2 differs, check " + dir); in testWithBitmap()
136 new FileOutputStream(new File(dir, "bitmap3-original.png"))); in testWithBitmap()
138 new FileOutputStream(new File(dir, "bitmap3-test.png"))); in testWithBitmap()
[all …]
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java69 CentralDirectory dir = ZipUtil.findCentralDirectory(raf); in testCrcRange() local
70 byte[] dirData = new byte[(int) dir.size]; in testCrcRange()
73 raf.seek(dir.offset); in testCrcRange()
130 CentralDirectory dir = new CentralDirectory(); in testCrcValue() local
131 dir.offset = 0; in testCrcValue()
132 dir.size = raf.length(); in testCrcValue()
133 long crc = ZipUtil.computeCrcOfCentralDir(raf, dir); in testCrcValue()
160 CentralDirectory dir = new CentralDirectory(); in testInvalidCrcValue() local
161 dir.offset = 0; in testInvalidCrcValue()
162 dir.size = raf.length() - 1; in testInvalidCrcValue()
[all …]
/frameworks/base/core/java/android/net/
DSSLSessionCache.java88 public SSLSessionCache(File dir) throws IOException { in SSLSessionCache() argument
89 mSessionCache = FileClientSessionCache.usingDirectory(dir); in SSLSessionCache()
99 File dir = context.getDir("sslcache", Context.MODE_PRIVATE); in SSLSessionCache() local
102 cache = FileClientSessionCache.usingDirectory(dir); in SSLSessionCache()
104 Log.w(TAG, "Unable to create SSL session cache in " + dir, e); in SSLSessionCache()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java90 File dir = getEmptyDir("testAddText"); in testAddText() local
91 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir, in testAddText()
127 File dir = getEmptyDir("testAddData");
128 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir,
154 File dir = getEmptyDir("testAddFile");
179 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir,
224 File dir = getEmptyDir("testAddEntry"); in testAddEntry_Success() local
227 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir, in testAddEntry_Success()
256 File dir = getEmptyDir("testAddEntry"); in testAddEntry_Failure() local
259 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir, in testAddEntry_Failure()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DUserFileManagerImpl.kt69 fun createLegacyFile(context: Context, dir: String, fileName: String, userId: Int): File? { in <lambda>()
77 dir, in <lambda>()
159 private fun deleteParentDirsIfEmpty(dir: File?) { in <lambda>()
160 if (dir != null && dir.listFiles().size == 0) { in <lambda>()
161 val priorParent = dir.parentFile in <lambda>()
162 val isRoot = dir.name == ROOT_DIR in <lambda>()
163 dir.delete() in <lambda>()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java42 File dir = new File(file_path); in savePNG() local
44 if (!dir.exists()) { in savePNG()
45 System.out.println("make directory: " + dir.getAbsolutePath()); in savePNG()
46 dir.mkdirs(); in savePNG()
50 File file = new File(dir, imageName + ".png"); in savePNG()
/frameworks/av/media/module/id3/
Dtestid3.cpp121 DIR *dir = opendir(path); in scan() local
123 if (dir == NULL) { in scan()
127 rewinddir(dir); in scan()
130 while ((ent = readdir(dir)) != NULL) { in scan()
152 closedir(dir); in scan()
153 dir = NULL; in scan()
/frameworks/av/media/mtp/
DMtpUtils.cpp125 DIR* dir = opendir(fromPath); in copyRecursive() local
126 if (!dir) { in copyRecursive()
136 while ((entry = readdir(dir))) { in copyRecursive()
153 closedir(dir); in copyRecursive()
203 DIR* dir = opendir(path); in deleteRecursive() local
204 if (!dir) { in deleteRecursive()
210 while ((entry = readdir(dir))) { in deleteRecursive()
229 closedir(dir); in deleteRecursive()
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dfile_test.cc473 explicit TempDir(const char* dir) { in TempDir() argument
475 size_t max_len = strlen(dir) + strlen(kDirTemplate) + 1; in TempDir()
477 snprintf(name_, max_len, "%s%s", dir, kDirTemplate); in TempDir()
518 TempDir dir; in TEST() local
519 ASSERT_NE(dir.GetDirName(), nullptr); in TEST()
520 TempDir dir1(dir.GetDirName()); in TEST()
522 TempDir dir2(dir.GetDirName()); in TEST()
524 DIR* pdir = opendir(dir.GetDirName()); in TEST()
549 TempDir dir; in TEST() local
550 ASSERT_NE(dir.GetDirName(), nullptr); in TEST()
[all …]
/frameworks/native/cmds/installd/
Dutils.cpp89 DIR* dir = opendir(root_path.c_str()); in resolve_ce_path_by_inode_or_fallback() local
90 if (dir == nullptr) { in resolve_ce_path_by_inode_or_fallback()
96 while ((ent = readdir(dir))) { in resolve_ce_path_by_inode_or_fallback()
103 closedir(dir); in resolve_ce_path_by_inode_or_fallback()
108 closedir(dir); in resolve_ce_path_by_inode_or_fallback()
403 DIR* dir = opendir(path.c_str()); in get_known_users() local
404 if (dir == nullptr) { in get_known_users()
411 while ((ent = readdir(dir))) { in get_known_users()
423 closedir(dir); in get_known_users()
732 static auto open_dir(const char* dir) { in open_dir() argument
[all …]
/frameworks/base/cmds/incidentd/src/
Dreport_directory.cpp42 DIR* dir; in clean_directory() local
48 if ((dir = opendir(directory)) == NULL) { in clean_directory()
60 while ((entry = readdir(dir)) != NULL) { in clean_directory()
78 closedir(dir); in clean_directory()
/frameworks/base/tools/bit/
Dcommand.cpp200 char* dir = pathEnv; in exec_with_path_search() local
201 while (dir) { in exec_with_path_search()
202 char* next = strchr(dir, ':'); in exec_with_path_search()
207 if (dir[0] == '/') { in exec_with_path_search()
209 string executable = string(dir) + "/" + prog; in exec_with_path_search()
214 dir = next; in exec_with_path_search()
/frameworks/base/tools/aapt2/tools/
Dfix_resources.py34 for dir in values_directories:
35 files = os.listdir(dir)
36 files = map(lambda f: os.path.join(dir, f), files)
51 with tempfile.NamedTemporaryFile(prefix=basename, dir=dirname, delete=False) as temp:

12345678910>>...12