/frameworks/base/cmds/installd/ |
D | utils.c | 22 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() 93 dir_rec_t dir; in create_pkg_path() local 94 dir.path = prefix; in create_pkg_path() 95 dir.len = prefix_len; in create_pkg_path() 97 return create_pkg_path_in_dir(path, &dir, pkgname, postfix); in create_pkg_path() 312 int lookup_media_dir(char basepath[PATH_MAX], const char *dir) in lookup_media_dir() argument 324 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath)); in lookup_media_dir() 327 if ((dirpos-basepath+strlen(dir)) >= (PATH_MAX-1)) { in lookup_media_dir() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Path.java | 388 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument 391 mLastDirection = dir; in detectSimplePath() 393 if (mLastDirection != dir) { in detectSimplePath() 408 public void addRect(RectF rect, Direction dir) { in addRect() argument 412 detectSimplePath(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 413 native_addRect(mNativePath, rect, dir.nativeInt); in addRect() 425 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument 426 detectSimplePath(left, top, right, bottom, dir); in addRect() 427 native_addRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() 436 public void addOval(RectF oval, Direction dir) { in addOval() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 76 int dir = u_charDirection(c); in getDirectionalities() local 77 if (dir < 0 || dir >= U_CHAR_DIRECTION_COUNT) in getDirectionalities() 78 dir = PROPERTY_UNDEFINED; in getDirectionalities() 80 dir = directionality_map[dir]; in getDirectionalities() 82 dest[i++] = dir; in getDirectionalities() 83 dest[i] = dir; in getDirectionalities() 86 int dir = u_charDirection(c); in getDirectionalities() local 87 if (dir < 0 || dir >= U_CHAR_DIRECTION_COUNT) in getDirectionalities() 90 dest[i] = directionality_map[dir]; in getDirectionalities()
|
/frameworks/base/core/java/android/text/ |
D | AndroidBidi.java | 27 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 64 int baseLevel = dir == Layout.DIR_LEFT_TO_RIGHT ? 0 : 1; in directions() [all …]
|
D | Layout.java | 237 int dir = getParagraphDirection(i); in drawText() local 285 if (dir == DIR_RIGHT_TO_LEFT) { in drawText() 286 margin.drawLeadingMargin(canvas, paint, right, dir, ltop, in drawText() 291 margin.drawLeadingMargin(canvas, paint, left, dir, ltop, in drawText() 314 align = (dir == DIR_LEFT_TO_RIGHT) ? in drawText() 317 align = (dir == DIR_LEFT_TO_RIGHT) ? in drawText() 323 if (dir == DIR_LEFT_TO_RIGHT) { in drawText() 331 if (dir == DIR_LEFT_TO_RIGHT) { in drawText() 347 tl.set(paint, buf, start, end, dir, directions, hasTabOrEmoji, tabStops); in drawText() 476 int dir = getParagraphDirection(line); in getLineStartPos() local [all …]
|
/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 | Bundle.h | 127 void setAssetSourceDir(const char* dir) { mAssetSourceDir = dir; } in setAssetSourceDir() argument 129 void setCrunchedOutputDir(const char* dir) { mCrunchedOutputDir = dir; } in setCrunchedOutputDir() argument 133 void addResourceSourceDir(const char* dir) { mResourceSourceDirs.insertAt(dir,0); } in addResourceSourceDir() argument 139 void setRClassDir(const char* dir) { mRClassDir = dir; } in setRClassDir() argument 145 void setResourceIntermediatesDir(const char* dir) { mResourceIntermediatesDir = dir; } in setResourceIntermediatesDir() argument
|
/frameworks/base/core/java/android/net/ |
D | SSLSessionCache.java | 48 public SSLSessionCache(File dir) throws IOException { in SSLSessionCache() argument 49 mSessionCache = FileClientSessionCache.usingDirectory(dir); in SSLSessionCache() 59 File dir = context.getDir("sslcache", Context.MODE_PRIVATE); in SSLSessionCache() local 62 cache = FileClientSessionCache.usingDirectory(dir); in SSLSessionCache() 64 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 | 110 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/base/media/java/android/media/videoeditor/ |
D | VideoEditorFactory.java | 49 final File dir = new File(projectPath); in create() local 50 if (!dir.exists()) { in create() 51 if (!dir.mkdirs()) { in create() 59 if (!new File(dir, ".nomedia").createNewFile()) { in create()
|
/frameworks/compile/mclinker/lib/MC/ |
D | SearchDirs.cpp | 34 iterator dir, dirEnd = end(); in ~SearchDirs() local 35 for (dir = begin(); dir!=dirEnd; ++dir) { in ~SearchDirs() 36 delete (*dir); in ~SearchDirs()
|
/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/compile/libbcc/runtime/ |
D | Makefile | 92 %/.dir: 146 $(Tmp.ObjPath)/libcompiler_rt.a: $(Tmp.Inputs) $(Tmp.ObjPath)/.dir 152 .PRECIOUS: $(Tmp.ObjPath)/.dir 185 $(Tmp.ObjPath)/libcompiler_rt.a: $(Tmp.Inputs) $(Tmp.ObjPath)/.dir 190 .PRECIOUS: $(Tmp.ObjPath)/.dir 215 $(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.s $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir 218 $(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.S $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir 221 $(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.c $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir 224 .PRECIOUS: $(Tmp.ObjPath)/.dir
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | Texture2D.java | 44 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()
|
D | TextureCube.java | 45 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()
|
/frameworks/base/tools/layoutlib/ |
D | Android.mk | 16 LOCAL_PATH := $(my-dir) 34 built_layoutlib_create_jar := $(call intermediates-dir-for, \ 52 $(hide) mkdir -p $(dir $@)
|
/frameworks/base/core/jni/android/graphics/ |
D | Path.cpp | 167 …oid addRect__RectFI(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, SkPath::Direction dir) { in addRect__RectFI() argument 170 obj->addRect(rect_, dir); in addRect__RectFI() 173 … clazz, SkPath* obj, jfloat left, jfloat top, jfloat right, jfloat bottom, SkPath::Direction dir) { in addRect__FFFFI() argument 178 obj->addRect(left_, top_, right_, bottom_, dir); in addRect__FFFFI() 181 …static void addOval(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, SkPath::Direction dir) { in addOval() argument 184 obj->addOval(oval_, dir); in addOval() 187 …NIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y, jfloat radius, SkPath::Direction dir) { in addCircle() argument 191 obj->addCircle(x_, y_, radius_, dir); in addCircle() 203 jfloat rx, jfloat ry, SkPath::Direction dir) { in addRoundRectXY() argument 208 obj->addRoundRect(rect_, rx_, ry_, dir); in addRoundRectXY() [all …]
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
D | drm_file.c | 136 DIR *dir = NULL; in calcDirSize() local 153 dir = opendir(path); in calcDirSize() 154 if (dir == NULL) in calcDirSize() 159 while ((ent = readdir(dir)) != NULL ) in calcDirSize() 202 closedir(dir); in calcDirSize() 235 DIR *dir; in DRM_file_listOpen() local 257 dir = opendir(tmpPathBuf1); in DRM_file_listOpen() 259 if (dir == NULL) in DRM_file_listOpen() 266 *session = (int32_t)dir; in DRM_file_listOpen()
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | FsUtils.java | 56 String dir, boolean ignoreResultsInDir) throws IOException { in writeLayoutTestListRecursively() argument 59 Log.v(LOGTAG, "Searching tests under " + dir); in writeLayoutTestListRecursively() 61 File d = new File(dir); in writeLayoutTestListRecursively() 63 throw new AssertionError("A directory expected, but got " + dir); in writeLayoutTestListRecursively() 65 ignoreResultsInDir |= FileFilter.ignoreResult(dir); in writeLayoutTestListRecursively() 69 String s = dir + "/" + files[i]; in writeLayoutTestListRecursively()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SamplingProfilerIntegration.java | 59 File dir = new File(SNAPSHOT_DIR); 60 dir.mkdirs(); in dir.mkdirs() 62 dir.setWritable(true, false); in dir.setWritable() 64 dir.setExecutable(true, false); in dir.setExecutable() 65 if (dir.isDirectory()) {
|
/frameworks/compile/libbcc/ |
D | libbcc-gen-build-info.mk | 36 $(call intermediates-dir-for, \ 39 $(call intermediates-dir-for, \ 45 GEN := $(local-intermediates-dir)/BuildInfo.cpp
|
/frameworks/native/opengl/tests/gl_yuvtex/ |
D | gl_yuvtex.cpp | 311 static int dir = -1; in main() local 319 dir = -dir; in main() 324 dir = -dir; in main() 328 w += dir; in main() 329 h += dir; in main()
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestView.java | 146 boolean isItalic, boolean isBold, int dir, int textSize) { in testString() argument 166 float textWidthHB = paint.getTextRunAdvances(text, 0, length, 0, length, dir, advances, 0); in testString() 167 setPaintDir(paint, dir); in testString() 168 float textWidthICU = paint.getTextRunAdvances(text, 0, length, 0, length, dir, advances, 0, in testString() 181 private void setPaintDir(Paint paint, int dir) { in setPaintDir() argument 182 Log.v(TAG, "Setting Paint dir=" + dir); in setPaintDir() 183 paint.setBidiFlags(dir); in setPaintDir()
|
/frameworks/base/cmds/rawbu/ |
D | backup.cpp | 67 DIR *dir; in wipe() local 72 dir = opendir(path); in wipe() 74 if (dir == NULL) { in wipe() 88 de = readdir(dir); in wipe() 138 closedir(dir); in wipe() 169 closedir(dir); in wipe() 258 DIR *dir; in backup_dir() local 265 dir = opendir(srcPath); in backup_dir() 267 if (dir == NULL) { in backup_dir() 274 de = readdir(dir); in backup_dir() [all …]
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/ |
D | build_bc_lib.mk | 50 @mkdir -p $(dir $@) 54 @mkdir -p $(dir $@) 64 @mkdir -p $(dir $@)
|