Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/native/cmds/installd/
Dutils.c22 const dir_rec_t* dir, in create_pkg_path_in_dir() argument
37 if ((pkgname_len + dir->len + postfix_len) >= PKG_PATH_MAX) { in create_pkg_path_in_dir()
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0 in create_pkg_path_in_dir()
94 dir_rec_t dir; in create_pkg_path() local
95 dir.path = prefix; in create_pkg_path()
96 dir.len = prefix_len; in create_pkg_path()
98 return create_pkg_path_in_dir(path, &dir, pkgname, postfix); in create_pkg_path()
425 int lookup_media_dir(char basepath[PATH_MAX], const char *dir) in lookup_media_dir() argument
437 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath)); in lookup_media_dir()
440 if ((dirpos-basepath+strlen(dir)) >= (PATH_MAX-1)) { in lookup_media_dir()
[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.java499 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
501 mLastDirection = dir; in detectSimplePath()
503 if (mLastDirection != dir) { in detectSimplePath()
517 public void addRect(RectF rect, Direction dir) { in addRect() argument
518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
530 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument
531 detectSimplePath(left, top, right, bottom, dir); in addRect()
532 native_addRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
541 public void addOval(RectF oval, Direction dir) { in addOval() argument
542 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 …]
DLayout.java238 int dir = getParagraphDirection(i); in drawText() local
292 if (dir == DIR_RIGHT_TO_LEFT) { in drawText()
293 margin.drawLeadingMargin(canvas, paint, right, dir, ltop, in drawText()
298 margin.drawLeadingMargin(canvas, paint, left, dir, ltop, in drawText()
321 align = (dir == DIR_LEFT_TO_RIGHT) ? in drawText()
324 align = (dir == DIR_LEFT_TO_RIGHT) ? in drawText()
330 if (dir == DIR_LEFT_TO_RIGHT) { in drawText()
338 if (dir == DIR_LEFT_TO_RIGHT) { in drawText()
354 tl.set(paint, buf, start, end, dir, directions, hasTabOrEmoji, tabStops); in drawText()
478 int dir = getParagraphDirection(line); in getLineStartPos() local
[all …]
/frameworks/compile/mclinker/lib/MC/
DSearchDirs.cpp43 iterator dir, dirEnd = end(); in ~SearchDirs() local
44 for (dir = begin(); dir!=dirEnd; ++dir) { in ~SearchDirs()
45 delete (*dir); in ~SearchDirs()
51 MCLDDirectory* dir = new MCLDDirectory(pPath); in insert() local
52 if (dir->isInSysroot()) in insert()
53 dir->setSysroot(m_SysRoot); in insert()
55 if (exists(dir->path()) && is_directory(dir->path())) { in insert()
56 m_DirList.push_back(dir); in insert()
60 delete dir; in insert()
/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.cpp423 AaptGroupEntry::initFromDirName(const char* dir, String8* resType) in initFromDirName() argument
425 const char* q = strchr(dir, '-'); in initFromDirName()
428 typeLen = q - dir; in initFromDirName()
430 typeLen = strlen(dir); in initFromDirName()
433 String8 type(dir, typeLen); in initFromDirName()
628 status_t AaptDir::addDir(const String8& name, const sp<AaptDir>& dir) in addDir() argument
633 mDirs.add(name, dir); in addDir()
651 sp<AaptDir> dir = new AaptDir(name, subdir->mPath.appendPathCopy(name)); in makeDir() local
652 subdir->mDirs.add(name, dir); in makeDir()
653 return dir; in makeDir()
[all …]
DBundle.h136 void addAssetSourceDir(const char* dir) { mAssetSourceDirs.insertAt(dir,0); } in addAssetSourceDir() argument
138 void setCrunchedOutputDir(const char* dir) { mCrunchedOutputDir = dir; } in setCrunchedOutputDir() argument
142 void addResourceSourceDir(const char* dir) { mResourceSourceDirs.insertAt(dir,0); } in addResourceSourceDir() argument
148 void setRClassDir(const char* dir) { mRClassDir = dir; } in setRClassDir() argument
156 void setResourceIntermediatesDir(const char* dir) { mResourceIntermediatesDir = dir; } in setResourceIntermediatesDir() argument
/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/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/base/tests/FeatureSplit/feature2/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
27 featureOfApk := $(call intermediates-dir-for,APPS,$(featureOf))/package.apk
28 featureAfterApk := $(call intermediates-dir-for,APPS,$(featureAfter))/package.apk
29 localRStamp := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,COMMON)/src/R.stamp
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java110 File dir = getEmptyDir("testAddFile");
113 File f0 = new File(dir, "f0.txt");
114 File f1 = new File(dir, "f1.txt.gz");
115 File f2 = new File(dir, "f2.dat");
116 File f3 = new File(dir, "f2.dat.gz");
177 File dir = getEmptyDir("testAddEntriesInTheFuture"); in testAddEntriesInTheFuture() local
181 FileWriter w0 = new FileWriter(new File(dir, "DropBoxTest@" + (before + 5000) + ".txt")); in testAddEntriesInTheFuture()
186 FileWriter w1 = new FileWriter(new File(dir, "DropBoxTest@" + (before + 100000) + ".txt")); in testAddEntriesInTheFuture()
191 File f2 = new File(dir, "DropBoxTest@" + (before + 100001) + ".txt.gz"); in testAddEntriesInTheFuture()
197 new FileOutputStream(new File(dir, "DropBoxTest@" + (before + 100002) + ".lost")).close(); in testAddEntriesInTheFuture()
[all …]
/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/tools/layoutlib/
DAndroid.mk16 LOCAL_PATH := $(my-dir)
38 built_ext_data := $(call intermediates-dir-for, \
41 built_layoutlib_create_jar := $(call intermediates-dir-for, \
61 $(hide) mkdir -p $(dir $@)
/frameworks/base/tests/FeatureSplit/feature1/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
25 featureOfApk := $(call intermediates-dir-for,APPS,$(featureOf))/package.apk
26 localRStamp := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,COMMON)/src/R.stamp
/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/multidex/library/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
30 ASMD_VERSION_INTERMEDIATE = $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),,COMMON)/$(…
32 $(hide) mkdir -p $(dir $@)
/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 $@)
/frameworks/base/packages/InputDevices/
DAndroid.mk15 LOCAL_PATH:= $(call my-dir)
34 intermediates := $(call intermediates-dir-for,ETC,$(LOCAL_MODULE),,COMMON)
42 $(hide) mkdir -p $(dir $@) && touch $@
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DTexture2D.java44 public Texture2D(String dir, String file) { in Texture2D() argument
46 setFileDir(dir); in Texture2D()
55 public void setFileDir(String dir) { in setFileDir() argument
56 mFileDir = dir; in setFileDir()
DTextureCube.java45 public TextureCube(String dir, String file) { in TextureCube() argument
47 setFileDir(dir); in TextureCube()
56 public void setFileDir(String dir) { in setFileDir() argument
57 mFileDir = dir; in setFileDir()

12345678910>>...31