/frameworks/base/core/tests/coretests/src/android/os/ |
D | EnvironmentTest.java | 44 private File dir; field in EnvironmentTest 75 dir = getContext().getDir("testing", Context.MODE_PRIVATE); in setUp() 76 FileUtils.deleteContents(dir); in setUp() 81 FileUtils.deleteContents(dir); in tearDown() 86 assertEquals(0, classifyExternalStorageDirectory(dir)); in testClassify_empty() 91 Environment.buildPath(dir, "DCIM").mkdirs(); in testClassify_emptyDirs() 92 Environment.buildPath(dir, "DCIM", "January").mkdirs(); in testClassify_emptyDirs() 93 Environment.buildPath(dir, "Downloads").mkdirs(); in testClassify_emptyDirs() 94 Environment.buildPath(dir, "LOST.DIR").mkdirs(); in testClassify_emptyDirs() 95 assertEquals(0, classifyExternalStorageDirectory(dir)); in testClassify_emptyDirs() [all …]
|
/frameworks/minikin/include/minikin/ |
D | LayoutPieces.h | 32 Key(const Range& range, HyphenEdit hyphenEdit, bool dir, uint32_t paintId) in Key() 33 : range(range), hyphenEdit(hyphenEdit), dir(dir), paintId(paintId) {} in Key() 37 bool dir; member 45 .update(dir) in hash() 51 return range == o.range && hyphenEdit == o.hyphenEdit && dir == o.dir && 75 void insert(const Range& range, HyphenEdit edit, const LayoutPiece& layout, bool dir, in insert() 83 std::forward_as_tuple(range, edit, dir, paintId), in insert() 89 const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, in getOrCreate() 92 auto it = offsetMap.find(Key(range, edit, dir, paintId)); in getOrCreate() 95 range - context.getStart(), paint, dir, in getOrCreate()
|
/frameworks/multidex/library/src/androidx/multidex/ |
D | ZipUtil.java | 57 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/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 82 final File dir = getContext().getExternalFilesDir(null); in testWithBitmap() local 83 L("writing temp bitmaps to %s...", dir); in testWithBitmap() 86 new FileOutputStream(new File(dir, "bitmap1-original.png"))); in testWithBitmap() 88 new FileOutputStream(new File(dir, "bitmap1-test.png"))); in testWithBitmap() 91 fail("bitmap1 differs, check " + dir); in testWithBitmap() 95 new FileOutputStream(new File(dir, "bitmap2-original.png"))); in testWithBitmap() 97 new FileOutputStream(new File(dir, "bitmap2-test.png"))); in testWithBitmap() 100 fail("bitmap2 differs, check " + dir); in testWithBitmap() 104 new FileOutputStream(new File(dir, "bitmap3-original.png"))); in testWithBitmap() 106 new FileOutputStream(new File(dir, "bitmap3-test.png"))); in testWithBitmap() [all …]
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 78 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/graphics/java/android/graphics/ |
D | Path.java | 538 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument 540 mLastDirection = dir; in detectSimplePath() 542 if (mLastDirection != dir) { in detectSimplePath() 556 public void addRect(@NonNull RectF rect, @NonNull Direction dir) { in addRect() argument 557 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 569 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument 570 detectSimplePath(left, top, right, bottom, dir); in addRect() 571 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() 580 public void addOval(@NonNull RectF oval, @NonNull Direction dir) { in addOval() argument 581 addOval(oval.left, oval.top, oval.right, oval.bottom, dir); in addOval() [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | SearchDirs.cpp | 41 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/cmds/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 …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/ |
D | VolumeLoader.java | 37 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/tools/aapt/ |
D | DirectoryWalker.h | 59 dir = NULL; in openDir() 60 dir = opendir(mBasePath.string() ); in openDir() 62 if (dir == NULL) in openDir() 74 struct dirent* entryPtr = readdir(dir); in nextEntry() 89 closedir(dir); in closeDir() 95 DIR* dir;
|
D | AaptAssets.cpp | 400 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, subdir->mPath.appendPathCopy(name)); in makeDir() local 629 subdir->mDirs.add(name, dir); in makeDir() 630 return dir; in makeDir() [all …]
|
/frameworks/multidex/library/test/src/androidx/multidex/ |
D | ZipUtilTest.java | 69 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/ |
D | SSLSessionCache.java | 88 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/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/ |
D | Android.mk | 15 LOCAL_PATH:= $(call my-dir) 33 …$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.li… 42 $(hide) mkdir -p $(dir $@) 64 …$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.li… 73 $(hide) mkdir -p $(dir $@)
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | MediaStoreSaver.java | 42 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/libstagefright/id3/ |
D | testid3.cpp | 121 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/ |
D | MtpUtils.cpp | 125 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/base/cmds/idmap2/libidmap2/ |
D | FileUtils.cpp | 42 DIR* dir = opendir(root.c_str()); in FindFiles() local 43 if (dir == nullptr) { in FindFiles() 48 while ((dirent = readdir(dir)) != nullptr) { in FindFiles() 57 closedir(dir); in FindFiles() 63 closedir(dir); in FindFiles()
|
/frameworks/base/data/keyboards/ |
D | Android.mk | 17 LOCAL_PATH := $(call my-dir) 25 intermediates := $(call intermediates-dir-for,ETC,$(LOCAL_MODULE),,COMMON) 32 $(hide) mkdir -p $(dir $@) && touch $@
|
/frameworks/base/core/java/android/os/ |
D | FileUtils.java | 804 public static boolean deleteOlderFiles(File dir, int minCount, long minAgeMs) { in deleteOlderFiles() argument 809 final File[] files = dir.listFiles(); in deleteOlderFiles() 848 for (File dir : dirs) { in contains() 849 if (contains(dir, file)) { in contains() 858 for (File dir : dirs) { in contains() 859 if (contains(dir, file)) { in contains() 877 public static boolean contains(File dir, File file) { in contains() argument 878 if (dir == null || file == null) return false; in contains() 879 return contains(dir.getAbsolutePath(), file.getAbsolutePath()); in contains() 903 public static boolean deleteContentsAndDir(File dir) { in deleteContentsAndDir() argument [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 60 File dir = new File(base, UUID.randomUUID().toString()); in createTempDir() local 61 assertThat(dir.mkdirs()).isTrue(); in createTempDir() 62 return dir; in createTempDir() 65 private void writeToFile(File dir, String filename, String content) throws IOException { in writeToFile() argument 66 OutputStream os = new FileOutputStream(new File(dir, filename)); in writeToFile() 358 File dir = createTempDir(); in testReadConfig() local 359 writeToFile(dir, "platform_compat_config.xml", configXml); in testReadConfig() 361 compatConfig.initConfigFromLib(dir); in testReadConfig() 383 File dir = createTempDir(); in testReadConfigMultipleFiles() local 384 writeToFile(dir, "libcore_platform_compat_config.xml", configXml1); in testReadConfigMultipleFiles() [all …]
|
/frameworks/base/tools/bit/ |
D | command.cpp | 199 char* dir = pathEnv; in exec_with_path_search() local 200 while (dir) { in exec_with_path_search() 201 char* next = strchr(dir, ':'); in exec_with_path_search() 206 if (dir[0] == '/') { in exec_with_path_search() 208 string executable = string(dir) + "/" + prog; in exec_with_path_search() 213 dir = next; in exec_with_path_search()
|
/frameworks/base/cmds/incidentd/src/ |
D | report_directory.cpp | 42 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/core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v1/ |
D | Android.mk | 15 LOCAL_PATH:= $(call my-dir) 32 …$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.li… 39 $(hide) mkdir -p $(dir $@)
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v2/ |
D | Android.mk | 15 LOCAL_PATH:= $(call my-dir) 32 …$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.li… 39 $(hide) mkdir -p $(dir $@)
|