/frameworks/base/core/tests/coretests/src/android/os/ |
D | EnvironmentTest.java | 40 private File dir; field in EnvironmentTest 48 dir = getContext().getDir("testing", Context.MODE_PRIVATE); in setUp() 49 FileUtils.deleteContents(dir); in setUp() 54 FileUtils.deleteContents(dir); in tearDown() 59 assertEquals(0, classifyExternalStorageDirectory(dir)); in testClassify_empty() 64 Environment.buildPath(dir, "DCIM").mkdirs(); in testClassify_emptyDirs() 65 Environment.buildPath(dir, "DCIM", "January").mkdirs(); in testClassify_emptyDirs() 66 Environment.buildPath(dir, "Downloads").mkdirs(); in testClassify_emptyDirs() 67 Environment.buildPath(dir, "LOST.DIR").mkdirs(); in testClassify_emptyDirs() 68 assertEquals(0, classifyExternalStorageDirectory(dir)); in testClassify_emptyDirs() [all …]
|
/frameworks/base/cmds/statsd/src/storage/ |
D | StorageManager.cpp | 104 unique_ptr<DIR, decltype(&closedir)> dir(opendir(path), closedir); in deleteAllFiles() local 105 if (dir == NULL) { in deleteAllFiles() 111 while ((de = readdir(dir.get()))) { in deleteAllFiles() 119 unique_ptr<DIR, decltype(&closedir)> dir(opendir(path), closedir); in deleteSuffixedFiles() local 120 if (dir == NULL) { in deleteSuffixedFiles() 126 while ((de = readdir(dir.get()))) { in deleteSuffixedFiles() 141 unique_ptr<DIR, decltype(&closedir)> dir(opendir(path), closedir); in sendBroadcast() local 142 if (dir == NULL) { in sendBroadcast() 148 while ((de = readdir(dir.get()))) { in sendBroadcast() 164 unique_ptr<DIR, decltype(&closedir)> dir(opendir(STATS_DATA_DIR), closedir); in hasConfigMetricsReport() local [all …]
|
/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 | 81 final File dir = getContext().getExternalFilesDir(null); in testWithBitmap() local 82 L("writing temp bitmaps to %s...", dir); in testWithBitmap() 85 new FileOutputStream(new File(dir, "bitmap1-original.png"))); in testWithBitmap() 87 new FileOutputStream(new File(dir, "bitmap1-test.png"))); in testWithBitmap() 90 fail("bitmap1 differs, check " + dir); in testWithBitmap() 94 new FileOutputStream(new File(dir, "bitmap2-original.png"))); in testWithBitmap() 96 new FileOutputStream(new File(dir, "bitmap2-test.png"))); in testWithBitmap() 99 fail("bitmap2 differs, check " + dir); in testWithBitmap() 103 new FileOutputStream(new File(dir, "bitmap3-original.png"))); in testWithBitmap() 105 new FileOutputStream(new File(dir, "bitmap3-test.png"))); in testWithBitmap() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Path.java | 527 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument 529 mLastDirection = dir; in detectSimplePath() 531 if (mLastDirection != dir) { in detectSimplePath() 545 public void addRect(RectF rect, Direction dir) { in addRect() argument 546 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 558 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument 559 detectSimplePath(left, top, right, bottom, dir); in addRect() 560 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() 569 public void addOval(RectF oval, Direction dir) { in addOval() argument 570 addOval(oval.left, oval.top, oval.right, oval.bottom, dir); in addOval() [all …]
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 77 int dir = u_charDirection(c); in getDirectionalities() local 78 if (dir < 0 || dir >= U_CHAR_DIRECTION_COUNT) in getDirectionalities() 79 dir = PROPERTY_UNDEFINED; in getDirectionalities() 81 dir = directionality_map[dir]; in getDirectionalities() 83 dest[i++] = dir; in getDirectionalities() 84 dest[i] = dir; in getDirectionalities() 87 int dir = u_charDirection(c); in getDirectionalities() local 88 if (dir < 0 || dir >= U_CHAR_DIRECTION_COUNT) in getDirectionalities() 91 dest[i] = directionality_map[dir]; in getDirectionalities()
|
/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/incidentd/src/ |
D | report_directory.cpp | 39 char* dir = strdup(directory); in create_directory() local 42 char* d = dir + 1; in create_directory() 53 if (stat(dir, &st) == 0) { in create_directory() 59 ALOGE("No such directory %s, something wrong.", dir); in create_directory() 89 free(dir); in create_directory() 99 DIR* dir; in clean_directory() local 105 if ((dir = opendir(directory)) == NULL) { in clean_directory() 117 while ((entry = readdir(dir)) != NULL) { in clean_directory() 135 closedir(dir); in clean_directory()
|
/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 | 399 AaptGroupEntry::initFromDirName(const char* dir, String8* resType) in initFromDirName() argument 401 const char* q = strchr(dir, '-'); in initFromDirName() 404 typeLen = q - dir; in initFromDirName() 406 typeLen = strlen(dir); in initFromDirName() 409 String8 type(dir, typeLen); in initFromDirName() 604 status_t AaptDir::addDir(const String8& name, const sp<AaptDir>& dir) in addDir() argument 609 mDirs.add(name, dir); in addDir() 627 sp<AaptDir> dir = new AaptDir(name, subdir->mPath.appendPathCopy(name)); in makeDir() local 628 subdir->mDirs.add(name, dir); in makeDir() 629 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/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/base/core/java/android/net/ |
D | SSLSessionCache.java | 86 public SSLSessionCache(File dir) throws IOException { in SSLSessionCache() argument 87 mSessionCache = FileClientSessionCache.usingDirectory(dir); in SSLSessionCache() 97 File dir = context.getDir("sslcache", Context.MODE_PRIVATE); in SSLSessionCache() local 100 cache = FileClientSessionCache.usingDirectory(dir); in SSLSessionCache() 102 Log.w(TAG, "Unable to create SSL session cache in " + dir, e); in SSLSessionCache()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | DropBoxTest.java | 82 File dir = getEmptyDir("testAddText"); in testAddText() local 83 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir, in testAddText() 119 File dir = getEmptyDir("testAddData"); 120 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir, 146 File dir = getEmptyDir("testAddFile"); 171 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir, 216 File dir = getEmptyDir("testAddEntriesInTheFuture"); in testAddEntriesInTheFuture() local 220 FileWriter w0 = new FileWriter(new File(dir, "DropBoxTest@" + (before + 5000) + ".txt")); in testAddEntriesInTheFuture() 225 FileWriter w1 = new FileWriter(new File(dir, "DropBoxTest@" + (before + 100000) + ".txt")); in testAddEntriesInTheFuture() 230 File f2 = new File(dir, "DropBoxTest@" + (before + 100001) + ".txt.gz"); in testAddEntriesInTheFuture() [all …]
|
/frameworks/minikin/include/minikin/ |
D | LayoutPieces.h | 43 bool dir, StartHyphenEdit startEdit, EndHyphenEdit endEdit, const Layout& layout) { in insert() 46 std::forward_as_tuple(textBuf, range, paint, dir, startEdit, endEdit), in insert() 55 bool dir, StartHyphenEdit startEdit, EndHyphenEdit endEdit, F& f) const { in getOrCreate() 56 auto it = offsetMap.find(LayoutCacheKey(textBuf, range, paint, dir, startEdit, endEdit)); in getOrCreate() 58 LayoutCache::getInstance().getOrCreate(textBuf, range, paint, dir, startEdit, endEdit, in getOrCreate()
|
/frameworks/av/media/libstagefright/id3/ |
D | testid3.cpp | 119 DIR *dir = opendir(path); in scan() local 121 if (dir == NULL) { in scan() 125 rewinddir(dir); in scan() 128 while ((ent = readdir(dir)) != NULL) { in scan() 150 closedir(dir); in scan() 151 dir = NULL; in scan()
|
/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/base/core/java/android/os/ |
D | FileUtils.java | 636 public static boolean deleteOlderFiles(File dir, int minCount, long minAgeMs) { in deleteOlderFiles() argument 641 final File[] files = dir.listFiles(); in deleteOlderFiles() 678 for (File dir : dirs) { in contains() 679 if (contains(dir, file)) { in contains() 694 public static boolean contains(File dir, File file) { in contains() argument 695 if (dir == null || file == null) return false; in contains() 696 return contains(dir.getAbsolutePath(), file.getAbsolutePath()); in contains() 709 public static boolean deleteContentsAndDir(File dir) { in deleteContentsAndDir() argument 710 if (deleteContents(dir)) { in deleteContentsAndDir() 711 return dir.delete(); in deleteContentsAndDir() [all …]
|
/frameworks/native/cmds/installd/ |
D | utils.cpp | 115 DIR* dir = opendir(user_path.c_str()); in create_data_user_ce_package_path() local 116 if (dir == nullptr) { in create_data_user_ce_package_path() 122 while ((ent = readdir(dir))) { in create_data_user_ce_package_path() 131 closedir(dir); in create_data_user_ce_package_path() 136 closedir(dir); in create_data_user_ce_package_path() 312 DIR* dir = opendir(path.c_str()); in get_known_users() local 313 if (dir == NULL) { in get_known_users() 320 while ((ent = readdir(dir))) { in get_known_users() 332 closedir(dir); in get_known_users() 726 DIR* dir = opendir(parent.c_str()); in read_path_inode() local [all …]
|
/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() 202 DIR* dir = opendir(path); in deleteRecursive() local 203 if (!dir) { in deleteRecursive() 209 while ((entry = readdir(dir))) { in deleteRecursive() 228 closedir(dir); in deleteRecursive()
|
/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/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/multidex/instrumentation/ |
D | Android.mk | 15 LOCAL_PATH := $(call my-dir) 26 ASMDI_VERSION_INTERMEDIATE = $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),,COMMON)/$… 28 $(hide) mkdir -p $(dir $@)
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v3/ |
D | Android.mk | 15 LOCAL_PATH:= $(call my-dir) 30 …$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.li… 39 $(hide) mkdir -p $(dir $@)
|