Searched defs:dir (Results 26 - 50 of 55) sorted by relevance

123

/frameworks/base/services/java/com/android/server/updates/
H A DConfigUpdateInstallReceiver.java225 protected void writeUpdate(File dir, File file, byte[] content) throws IOException { argument
237 tmp = File.createTempFile("journal", "", dir);
/frameworks/base/tools/aapt/
H A DPackage.cpp40 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptDir>& dir,
247 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptDir>& dir, argument
252 const size_t ND = dir->getDirs().size();
255 const sp<AaptDir>& subDir = dir->getDirs().valueAt(i);
274 const size_t NF = dir->getFiles().size();
276 sp<AaptGroup> gp = dir->getFiles().valueAt(i);
H A DAaptAssets.cpp61 "!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~";
71 // - Entry can have the flag "<dir>" to match only directories
110 if (strncasecmp(token, "<dir>" , 5) == 0) {
139 type == kFileTypeDirectory ? "dir" : "file",
369 AaptGroupEntry::initFromDirName(const char* dir, String8* resType) argument
379 const char *p = dir;
946 * Does this directory name fit the pattern of a locale dir ("en-rUS" or
1704 status_t AaptDir::addDir(const String8& name, const sp<AaptDir>& dir) argument
1709 mDirs.add(name, dir);
1727 sp<AaptDir> dir local
1761 DIR* dir = NULL; local
2006 sp<AaptDir> dir = this; local
2229 DIR* dir = opendir(srcDir.string()); local
2277 sp<AaptDir> dir = makeDir(resType); local
2338 sp<AaptDir> dir = dirName == "" ? this : makeDir(dirName); local
2436 const sp<AaptDir>& dir = resdirs.itemAt(i); local
[all...]
H A DBundle.h127 void setAssetSourceDir(const char* dir) { mAssetSourceDir = dir; } argument
129 void setCrunchedOutputDir(const char* dir) { mCrunchedOutputDir = dir; } argument
133 void addResourceSourceDir(const char* dir) { mResourceSourceDirs.insertAt(dir,0); } argument
139 void setRClassDir(const char* dir) { mRClassDir = dir; } argument
145 void setResourceIntermediatesDir(const char* dir) { mResourceIntermediatesDir = dir; } argument
[all...]
H A DCommand.cpp1713 AssetDir* dir = assets.openNonAssetDir(assetsCookie, "lib"); local
1714 if (dir != NULL) {
1715 if (dir->getFileCount() > 0) {
1717 for (size_t i=0; i<dir->getFileCount(); i++) {
1718 printf(" '%s'", dir->getFileName(i).string());
1722 delete dir;
2076 fprintf(stdout, "source dir: %s\n", bundle->getResourceSourceDirs()[0]);
2077 fprintf(stdout, "To destination dir: %s\n", bundle->getCrunchedOutputDir());
/frameworks/compile/libbcc/lib/Support/
H A Dsha1.c92 #include <dir.h>
432 char dir[MAXDIR]; local
484 fnsplit(argv[i], drive, dir, name, ext);
489 sprintf(path, "%s%s%s", drive, dir, f.ff_name);
/frameworks/native/cmds/installd/
H A Dinstalld.h110 cache_dir_t* dir; member in struct:__anon1325
131 const dir_rec_t* dir,
160 int lookup_media_dir(char basepath[PATH_MAX], const char *dir);
H A Dinstalld.c405 DIR *dir; local
409 dir = opendir(user_data_dir);
410 if (dir != NULL) {
411 while ((dirent = readdir(dir))) {
428 closedir(dir);
H A Dutils.c22 const dir_rec_t* dir,
37 if ((pkgname_len + dir->len + postfix_len) >= PKG_PATH_MAX) {
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0
94 dir_rec_t dir; local
95 dir.path = prefix;
96 dir.len = prefix_len;
98 return create_pkg_path_in_dir(path, &dir, pkgname, postfix);
313 int lookup_media_dir(char basepath[PATH_MAX], const char *dir) argument
325 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath));
328 if ((dirpos-basepath+strlen(dir)) >
21 create_pkg_path_in_dir(char path[PKG_PATH_MAX], const dir_rec_t* dir, const char* pkgname, const char* postfix) argument
446 cache_dir_t* dir = (cache_dir_t*)_cache_malloc(cache, sizeof(cache_dir_t)+nameLen+1); local
476 _add_cache_file_t(cache_t* cache, cache_dir_t* dir, time_t modTime, const char *name) argument
508 _add_cache_files(cache_t *cache, cache_dir_t *parentDir, const char *dirName, DIR* dir, char *pathBase, char *pathPos, size_t pathAvailLen) argument
672 create_dir_path(char path[PATH_MAX], cache_dir_t* dir) argument
689 delete_cache_dir(char path[PATH_MAX], cache_dir_t* dir) argument
742 cache_dir_t* dir = cache->dirs[i-1]; local
[all...]
/frameworks/native/cmds/installd/tests/
H A Dinstalld_utils_test.cpp329 dir_rec_t dir; local
330 dir.path = "/data/app-private/";
331 dir.len = strlen(dir.path);
333 EXPECT_EQ(0, create_pkg_path_in_dir(path, &dir, "com.example.package", ".apk"))
/frameworks/native/libs/binder/
H A DDebug.cpp225 const ssize_t dir = -1; local
228 const ssize_t dir = 1;
239 const unsigned char val = *(pos+startIndex+(index*dir));
256 const unsigned char val = *(pos+startIndex+(index*dir));
/frameworks/base/core/java/android/text/
H A DTextLine.java126 * @param dir the paragraph direction of this line
131 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument
137 mDir = dir;
H A DStaticLayout.java243 int dir = measured.mDir;
413 needMultiply, chdirs, dir, easy, bufEnd, includepad, trackpad,
461 needMultiply, chdirs, dir, easy, bufEnd,
590 boolean needMultiply, byte[] chdirs, int dir,
679 lines[off + DIR] |= dir << DIR_SHIFT;
687 mLineDirections[j] = AndroidBidi.directions(dir, chdirs, start - widthStart, chs,
585 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, boolean hasTabOrEmoji, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean includePad, boolean trackPad, char[] chs, float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, float ellipsisWidth, float textWidth, TextPaint paint, boolean moreChars) argument
/frameworks/base/tools/aidl/
H A Dgenerate_java_binder.cpp436 int dir = convert_direction(arg->direction.data); local
437 if (dir == OUT_PARAMETER && arg->type.dimension != 0) {
447 else if (dir & IN_PARAMETER) {
/frameworks/native/cmds/rawbu/
H A Dbackup.cpp67 DIR *dir; local
72 dir = opendir(path);
74 if (dir == NULL) {
88 de = readdir(dir);
138 closedir(dir);
169 closedir(dir);
258 DIR *dir; local
265 dir = opendir(srcPath);
267 if (dir == NULL) {
274 de = readdir(dir);
[all...]
/frameworks/av/media/libstagefright/codecs/avc/common/src/
H A Ddeblock.cpp60 //static void GetStrength(AVCCommonObj *video, uint8 *Strength, AVCMacroblock* MbP, AVCMacroblock* MbQ, int dir, int edge);
61 static void GetStrength_Edge0(uint8 *Strength, AVCMacroblock* MbP, AVCMacroblock* MbQ, int dir);
531 void GetStrength_Edge0(uint8 *Strength, AVCMacroblock* MbP, AVCMacroblock* MbQ, int dir) argument
550 if (dir == 0) // Vertical Edge 0
728 } /* end of: else if(dir == 0) */
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp167 static void addRect__RectFI(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, SkPath::Direction dir) { argument
170 obj->addRect(rect_, dir);
173 static void addRect__FFFFI(JNIEnv* env, jobject clazz, SkPath* obj, jfloat left, jfloat top, jfloat right, jfloat bottom, SkPath::Direction dir) { argument
178 obj->addRect(left_, top_, right_, bottom_, dir);
181 static void addOval(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, SkPath::Direction dir) { argument
184 obj->addOval(oval_, dir);
187 static void addCircle(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y, jfloat radius, SkPath::Direction dir) { argument
191 obj->addCircle(x_, y_, radius_, dir);
203 jfloat rx, jfloat ry, SkPath::Direction dir) {
208 obj->addRoundRect(rect_, rx_, ry_, dir);
202 addRoundRectXY(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, jfloat rx, jfloat ry, SkPath::Direction dir) argument
211 addRoundRect8(JNIEnv* env, jobject, SkPath* obj, jobject rect, jfloatArray array, SkPath::Direction dir) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DUsageStatsService.java274 UsageStatsService(String dir) { argument
279 mDir = new File(dir);
/frameworks/av/media/mtp/
H A DMtpServer.cpp997 DIR* dir = opendir(path); local
998 if (!dir) {
1004 while ((entry = readdir(dir))) {
1027 closedir(dir);
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp364 static int hasDir(const char* dir) argument
367 int res = stat(dir, &s);
H A Dandroid_util_AssetManager.cpp289 AssetDir* dir = am->openDir(fileName8.c_str()); local
291 if (dir == NULL) {
296 size_t N = dir->getFileCount();
298 jobjectArray array = env->NewObjectArray(dir->getFileCount(),
301 delete dir;
306 const String8& name = dir->getFileName(i);
309 delete dir;
316 delete dir;
/frameworks/base/graphics/java/android/graphics/
H A DPath.java477 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument
480 mLastDirection = dir;
482 if (mLastDirection != dir) {
495 * @param dir The direction to wind the rectangle's contour
497 public void addRect(RectF rect, Direction dir) { argument
501 detectSimplePath(rect.left, rect.top, rect.right, rect.bottom, dir);
502 native_addRect(mNativePath, rect, dir.nativeInt);
512 * @param dir The direction to wind the rectangle's contour
514 public void addRect(float left, float top, float right, float bottom, Direction dir) { argument
515 detectSimplePath(left, top, right, bottom, dir);
525 addOval(RectF oval, Direction dir) argument
541 addCircle(float x, float y, float radius, Direction dir) argument
569 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument
586 addRoundRect(RectF rect, float[] radii, Direction dir) argument
732 native_addRect(int nPath, RectF rect, int dir) argument
733 native_addRect(int nPath, float left, float top, float right, float bottom, int dir) argument
735 native_addOval(int nPath, RectF oval, int dir) argument
736 native_addCircle(int nPath, float x, float y, float radius, int dir) argument
739 native_addRoundRect(int nPath, RectF rect, float rx, float ry, int dir) argument
741 native_addRoundRect(int nPath, RectF r, float[] radii, int dir) argument
[all...]
H A DCanvas.java1475 * left-to-right run, as indicated by dir. Alignment of the text is as
1488 * @param dir the run direction, either {@link #DIRECTION_LTR} or
1494 float x, float y, int dir, Paint paint) {
1505 if (dir != DIRECTION_LTR && dir != DIRECTION_RTL) {
1506 throw new IllegalArgumentException("unknown dir: " + dir);
1510 contextIndex, contextCount, x, y, dir, paint.mNativePaint);
1516 * left-to-right run, as indicated by dir. Alignment of the text is as
1526 * @param dir th
1493 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
1530 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java314 /*package*/ static void native_addRect(int nPath, RectF rect, int dir) { argument
320 pathDelegate.addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
325 float left, float top, float right, float bottom, int dir) {
331 pathDelegate.addRect(left, top, right, bottom, dir);
335 /*package*/ static void native_addOval(int nPath, RectF oval, int dir) { argument
346 /*package*/ static void native_addCircle(int nPath, float x, float y, float radius, int dir) { argument
373 int nPath, RectF rect, float rx, float ry, int dir) {
385 /*package*/ static void native_addRoundRect(int nPath, RectF rect, float[] radii, int dir) { argument
388 native_addRoundRect(nPath, rect, radii[0], radii[1], dir);
745 * @param dir Th
324 native_addRect(int nPath, float left, float top, float right, float bottom, int dir) argument
372 native_addRoundRect( int nPath, RectF rect, float rx, float ry, int dir) argument
747 addRect(float left, float top, float right, float bottom, int dir) argument
[all...]
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp202 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string());
1147 * Pass in "" for the root dir.
1185 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string());
1210 * Pass in "" for the root dir.
1239 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string());
1289 //printf("+++ not found in cache: dir '%s'\n", (const char*) path);
1304 * Pick out the stuff in the current dir by examining the pathname.
1322 /* no longer in the dir or its subdirs */
1397 DIR* dir; local
1401 ALOGV("Scanning dir '
[all...]

Completed in 602 milliseconds

123