Home
last modified time | relevance | path

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

12345678910>>...38

/frameworks/native/cmds/installd/
Dutils.cpp101 DIR* dir = opendir(user_path.c_str()); in create_data_user_ce_package_path() local
102 if (dir == nullptr) { in create_data_user_ce_package_path()
108 while ((ent = readdir(dir))) { in create_data_user_ce_package_path()
117 closedir(dir); in create_data_user_ce_package_path()
122 closedir(dir); in create_data_user_ce_package_path()
226 DIR* dir = opendir(path.c_str()); in get_known_users() local
227 if (dir == NULL) { in get_known_users()
234 while ((ent = readdir(dir))) { in get_known_users()
246 closedir(dir); in get_known_users()
612 cache_dir_t* dir = (cache_dir_t*)_cache_malloc(cache, sizeof(cache_dir_t)+nameLen+1); in _add_cache_dir_t() local
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DAndroidBidi_Delegate.java35 /*package*/ static int runBidi(int dir, char[] chars, byte[] charInfo, int count, in runBidi() argument
38 switch (dir) { in runBidi()
40 dir = Bidi.LTR; in runBidi()
43 dir = Bidi.RTL; in runBidi()
46 dir = Bidi.LEVEL_DEFAULT_RTL; in runBidi()
49 dir = Bidi.LEVEL_DEFAULT_LTR; in runBidi()
54 dir = Bidi.LEVEL_DEFAULT_LTR; in runBidi()
56 Bidi bidi = new Bidi(chars, 0, null, 0, count, dir); in runBidi()
/frameworks/multidex/library/src/android/support/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/base/graphics/java/android/graphics/
DPath.java514 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
516 mLastDirection = dir; in detectSimplePath()
518 if (mLastDirection != dir) { in detectSimplePath()
532 public void addRect(RectF rect, Direction dir) { in addRect() argument
533 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
545 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument
546 detectSimplePath(left, top, right, bottom, dir); in addRect()
547 native_addRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
556 public void addOval(RectF oval, Direction dir) { in addOval() argument
557 addOval(oval.left, oval.top, oval.right, oval.bottom, dir); in addOval()
[all …]
/frameworks/base/core/jni/
Dandroid_text_AndroidCharacter.cpp77 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/base/core/java/android/text/
DAndroidBidi.java27 public static int bidi(int dir, char[] chs, byte[] chInfo, int n, boolean haveInfo) { in bidi() argument
36 switch(dir) { in bidi()
37 case Layout.DIR_REQUEST_LTR: dir = 0; break; in bidi()
38 case Layout.DIR_REQUEST_RTL: dir = 1; break; in bidi()
39 case Layout.DIR_REQUEST_DEFAULT_LTR: dir = -2; break; in bidi()
40 case Layout.DIR_REQUEST_DEFAULT_RTL: dir = -1; break; in bidi()
41 default: dir = 0; break; in bidi()
44 int result = runBidi(dir, chs, chInfo, n, haveInfo); in bidi()
61 public static Directions directions(int dir, byte[] levels, int lstart, in directions() argument
67 int baseLevel = dir == Layout.DIR_LEFT_TO_RIGHT ? 0 : 1; in directions()
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
DIconTest.java79 final File dir = getContext().getExternalFilesDir(null); in testWithBitmap() local
80 L("writing temp bitmaps to %s...", dir); in testWithBitmap()
83 new FileOutputStream(new File(dir, "bitmap1-original.png"))); in testWithBitmap()
85 new FileOutputStream(new File(dir, "bitmap1-test.png"))); in testWithBitmap()
88 fail("bitmap1 differs, check " + dir); in testWithBitmap()
92 new FileOutputStream(new File(dir, "bitmap2-original.png"))); in testWithBitmap()
94 new FileOutputStream(new File(dir, "bitmap2-test.png"))); in testWithBitmap()
97 fail("bitmap2 differs, check " + dir); in testWithBitmap()
101 new FileOutputStream(new File(dir, "bitmap3-original.png"))); in testWithBitmap()
103 new FileOutputStream(new File(dir, "bitmap3-test.png"))); in testWithBitmap()
[all …]
/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/rs/java/tests/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/tools/aapt/
DDirectoryWalker.h59 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;
DAaptAssets.cpp399 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/android/support/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/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java55 File dir = getEmptyDir("testAddText"); in testAddText() local
56 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir); in testAddText()
91 File dir = getEmptyDir("testAddData");
92 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
114 File dir = getEmptyDir("testAddFile");
117 File f0 = new File(dir, "f0.txt");
118 File f1 = new File(dir, "f1.txt.gz");
119 File f2 = new File(dir, "f2.dat");
120 File f3 = new File(dir, "f2.dat.gz");
137 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
[all …]
/frameworks/rs/java/tests/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()
48 int n = dir.listFiles().length; in savePNG()
49 File file = new File(dir, imageName + n + ".png"); in savePNG()
/frameworks/base/core/java/android/os/
DFileUtils.java371 public static boolean deleteOlderFiles(File dir, int minCount, long minAge) { in deleteOlderFiles() argument
376 final File[] files = dir.listFiles(); in deleteOlderFiles()
413 for (File dir : dirs) { in contains()
414 if (contains(dir, file)) { in contains()
429 public static boolean contains(File dir, File file) { in contains() argument
430 if (dir == null || file == null) return false; in contains()
432 String dirPath = dir.getAbsolutePath(); in contains()
445 public static boolean deleteContentsAndDir(File dir) { in deleteContentsAndDir() argument
446 if (deleteContents(dir)) { in deleteContentsAndDir()
447 return dir.delete(); in deleteContentsAndDir()
[all …]
/frameworks/base/core/java/android/net/
DSSLSessionCache.java86 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/compile/libbcc/
Dlibbcc.sha1.mk15 $(call intermediates-dir-for,SHARED_LIBRARIES,libclcore.bc,,,$(my_2nd_arch_prefix))/libclcore.bc \
16 …$(call intermediates-dir-for,SHARED_LIBRARIES,libclcore_debug.bc,,,$(my_2nd_arch_prefix))/libclcor…
21 …$(call intermediates-dir-for,SHARED_LIBRARIES,libclcore_neon.bc,,,$(my_2nd_arch_prefix))/libclcore…
26 intermediates := $(call local-intermediates-dir,,$(my_2nd_arch_prefix))
33 $(hide) mkdir -p $(dir $@)
/frameworks/av/media/libstagefright/id3/
Dtestid3.cpp119 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/base/tests/FeatureSplit/feature2/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
29 featureOfApk := $(call intermediates-dir-for,APPS,$(featureOf))/package.apk
30 featureAfterApk := $(call intermediates-dir-for,APPS,$(featureAfter))/package.apk
31 localRStamp := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,COMMON)/src/R.stamp
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/
DAndroid.mk15 LOCAL_PATH:= $(call my-dir)
33 …$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.li…
51 $(hide) mkdir -p $(dir $@)
74 …$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.li…
92 $(hide) mkdir -p $(dir $@)
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DFilesActivity.java232 DirectoryFragment dir = getDirectoryFragment(); in onOptionsItemSelected() local
233 if (dir != null) { in onOptionsItemSelected()
234 dir.pasteFromClipboard(); in onOptionsItemSelected()
361 DirectoryFragment dir; in onKeyShortcut() local
366 dir = getDirectoryFragment(); in onKeyShortcut()
367 if (dir != null) { in onKeyShortcut()
368 dir.selectAllFiles(); in onKeyShortcut()
372 dir = getDirectoryFragment(); in onKeyShortcut()
373 if (dir != null) { in onKeyShortcut()
374 dir.copySelectedToClipboard(); in onKeyShortcut()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/
Dcoverage.sh54 --report-dir $OUTPUT_DIR \
58 --source-dir $ANDROID_BUILD_TOP/frameworks/opt/net/wifi/tests/wifitests/src \
59 --source-dir $ANDROID_BUILD_TOP/frameworks/opt/net/wifi/service/java \
60 --source-dir $ANDROID_BUILD_TOP/frameworks/base/wifi/java
/frameworks/base/data/keyboards/
DAndroid.mk17 LOCAL_PATH := $(call my-dir)
25 intermediates := $(call intermediates-dir-for,ETC,$(LOCAL_MODULE),,COMMON)
32 $(hide) mkdir -p $(dir $@) && touch $@
/frameworks/base/tests/FeatureSplit/feature1/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
27 featureOfApk := $(call intermediates-dir-for,APPS,$(featureOf))/package.apk
28 localRStamp := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,COMMON)/src/R.stamp
/frameworks/multidex/instrumentation/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
32 ASMDI_VERSION_INTERMEDIATE = $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),,COMMON)/$…
34 $(hide) mkdir -p $(dir $@)

12345678910>>...38