Searched defs:dir (Results 51 - 75 of 95) sorted by relevance

1234

/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/java/com/android/internal/backup/
H A DLocalTransport.java479 // skip packages where we have a data dir but no actual contents
534 if (blobs == null) { // nextRestorePackage() ensures the dir exists, so this is an error
582 private ArrayList<DecodedFilename> contentsByKey(File dir) { argument
583 File[] allFiles = dir.listFiles();
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbPortManager.java653 private static String readFile(File dir, String filename) { argument
654 final File file = new File(dir, filename);
682 private static boolean writeFile(File dir, String filename, String contents) { argument
/frameworks/av/media/mtp/
H A DMtpServer.cpp1081 DIR* dir = opendir(path); local
1082 if (!dir) {
1088 while ((entry = readdir(dir))) {
1110 closedir(dir);
/frameworks/base/core/java/android/os/
H A DEnvironment.java549 public static boolean isStandardDirectory(String dir) { argument
551 if (valid.equals(dir)) {
/frameworks/base/core/java/android/text/
H A DSpannableStringBuilder.java1493 * @param dir either DIRECTION_RTL or DIRECTION_LTR
1503 public int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, argument
1511 dir, offset, cursorOpt);
1514 dir, offset + mGapLength, cursorOpt) - mGapLength;
1519 dir, offset - contextStart, cursorOpt) + contextStart;
H A DStaticLayout.java659 int dir = measured.mDir;
822 needMultiply, chdirs, dir, easy, bufEnd, includepad, trackpad,
875 boolean needMultiply, byte[] chdirs, int dir,
972 lines[off + DIR] |= dir << DIR_SHIFT;
980 mLineDirections[j] = AndroidBidi.directions(dir, chdirs, start - widthStart, chs,
870 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, int flags, 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/core/jni/android/graphics/
H A DPath.cpp169 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local
170 obj->addRect(left, top, right, bottom, dir);
176 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local
178 obj->addOval(oval, dir);
183 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local
184 obj->addCircle(x, y, radius, dir);
198 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local
199 obj->addRoundRect(rect, rx, ry, dir);
206 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local
213 obj->addRoundRect(rect, src, dir);
[all...]
H A DPaint.cpp543 jint contextStart, jint contextCount, jint dir, jint offset, jint cursorOpt) {
546 jint result = doTextRunCursor(env, paint, textArray, contextStart, contextCount, dir,
553 jint contextStart, jint contextEnd, jint dir, jint offset, jint cursorOpt) {
557 contextEnd - contextStart, dir, offset, cursorOpt);
542 getTextRunCursor___C(JNIEnv* env, jobject clazz, jlong paintHandle, jcharArray text, jint contextStart, jint contextCount, jint dir, jint offset, jint cursorOpt) argument
552 getTextRunCursor__String(JNIEnv* env, jobject clazz, jlong paintHandle, jstring text, jint contextStart, jint contextEnd, jint dir, jint offset, jint cursorOpt) argument
/frameworks/base/graphics/java/android/graphics/
H A DPath.java514 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument
516 mLastDirection = dir;
518 if (mLastDirection != dir) {
530 * @param dir The direction to wind the rectangle's contour
532 public void addRect(RectF rect, Direction dir) { argument
533 addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
543 * @param dir The direction to wind the rectangle's contour
545 public void addRect(float left, float top, float right, float bottom, Direction dir) { argument
546 detectSimplePath(left, top, right, bottom, dir);
547 native_addRect(mNativePath, left, top, right, bottom, dir
556 addOval(RectF oval, Direction dir) argument
565 addOval(float left, float top, float right, float bottom, Direction dir) argument
578 addCircle(float x, float y, float radius, Direction dir) argument
614 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument
625 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument
640 addRoundRect(RectF rect, float[] radii, Direction dir) argument
655 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument
832 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument
834 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument
836 native_addCircle(long nPath, float x, float y, float radius, int dir) argument
840 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument
843 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument
[all...]
H A DPaint.java2270 * @param dir either {@link #DIRECTION_RTL} or {@link #DIRECTION_LTR}
2279 int dir, int offset, int cursorOpt) {
2289 contextStart, contextLength, dir, offset, cursorOpt);
2310 * @param dir either {@link #DIRECTION_RTL} or {@link #DIRECTION_LTR}
2319 int contextEnd, int dir, int offset, int cursorOpt) {
2324 dir, offset, cursorOpt);
2328 contextStart, contextEnd, dir, offset, cursorOpt, this);
2334 int relPos = getTextRunCursor(buf, 0, contextLen, dir, offset - contextStart, cursorOpt);
2357 * @param dir either {@link #DIRECTION_RTL} or {@link #DIRECTION_LTR}
2366 int dir, in
2278 getTextRunCursor(char[] text, int contextStart, int contextLength, int dir, int offset, int cursorOpt) argument
2318 getTextRunCursor(CharSequence text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument
2365 getTextRunCursor(String text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument
2687 nGetTextRunCursor(long paintPtr, char[] text, int contextStart, int contextLength, int dir, int offset, int cursorOpt) argument
2689 nGetTextRunCursor(long paintPtr, String text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DOSUManager.java217 private static Set<X509Certificate> readCertsFromDisk(String dir) throws CertificateException { argument
220 File caDir = new File(dir);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java328 float left, float top, float right, float bottom, int dir) {
334 pathDelegate.addRect(left, top, right, bottom, dir);
339 float bottom, int dir) {
350 /*package*/ static void native_addCircle(long nPath, float x, float y, float radius, int dir) { argument
377 float bottom, float rx, float ry, int dir) {
390 float bottom, float[] radii, int dir) {
824 * @param dir The direction to wind the rectangle's contour
827 int dir) {
830 Direction direction = getDirection(dir);
327 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument
338 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument
376 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument
389 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument
826 addRect(float left, float top, float right, float bottom, int dir) argument
/frameworks/native/cmds/installd/
H A Dinstalld.cpp599 DIR *dir; local
601 dir = opendir("/data/user");
602 if (dir != NULL) {
603 while ((dirent = readdir(dir))) {
638 closedir(dir);
H A Dutils.cpp98 DIR* dir = opendir(user_path.c_str()); local
99 if (dir == nullptr) {
105 while ((ent = readdir(dir))) {
112 closedir(dir);
117 closedir(dir);
221 DIR* dir = opendir(path.c_str()); local
222 if (dir == NULL) {
229 while ((ent = readdir(dir))) {
241 closedir(dir);
442 ALOGE("_copy_dir_files failed to copy dir permission
607 cache_dir_t* dir = (cache_dir_t*)_cache_malloc(cache, sizeof(cache_dir_t)+nameLen+1); local
637 _add_cache_file_t(cache_t* cache, cache_dir_t* dir, time_t modTime, const char *name) argument
669 _add_cache_files(cache_t *cache, cache_dir_t *parentDir, const char *dirName, DIR* dir, char *pathBase, char *pathPos, size_t pathAvailLen) argument
832 create_dir_path(char path[PATH_MAX], cache_dir_t* dir) argument
849 delete_cache_dir(char path[PATH_MAX], cache_dir_t* dir) argument
902 cache_dir_t* dir = cache->dirs[i-1]; local
961 validate_path(const dir_rec_t* dir, const char* path, int maxSubdirs) argument
1092 const dir_rec_t* dir = NULL; local
[all...]
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp356 static int hasDir(const char* dir) argument
359 int res = stat(dir, &s);
H A Dandroid_util_AssetManager.cpp398 AssetDir* dir = am->openDir(fileName8.c_str()); local
400 if (dir == NULL) {
405 size_t N = dir->getFileCount();
407 jobjectArray array = env->NewObjectArray(dir->getFileCount(),
410 delete dir;
415 const String8& name = dir->getFileName(i);
418 delete dir;
425 delete dir;
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp203 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string());
1185 * Pass in "" for the root dir.
1223 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string());
1248 * Pass in "" for the root dir.
1277 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string());
1327 //printf("+++ not found in cache: dir '%s'\n", (const char*) path);
1342 * Pick out the stuff in the current dir by examining the pathname.
1360 /* no longer in the dir or its subdirs */
1435 DIR* dir; local
1439 ALOGV("Scanning dir '
[all...]
/frameworks/base/tools/aapt/
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",
399 AaptGroupEntry::initFromDirName(const char* dir, String8* resType) argument
401 const char* q = strchr(dir, '-');
404 typeLen = q - dir;
406 typeLen = strlen(dir);
409 String8 type(dir, typeLen);
604 status_t AaptDir::addDir(const String8& name, const sp<AaptDir>& dir) argument
627 sp<AaptDir> dir = new AaptDir(name, subdir->mPath.appendPathCopy(name)); local
662 DIR* dir = NULL; local
907 sp<AaptDir> dir = this; local
1135 DIR* dir = opendir(srcDir.string()); local
1183 sp<AaptDir> dir = makeDir(resType); local
1244 sp<AaptDir> dir = dirName == "" ? this : makeDir(dirName); local
1347 const sp<AaptDir>& dir = resdirs.itemAt(i); local
[all...]
H A DBundle.h144 void addAssetSourceDir(const char* dir) { mAssetSourceDirs.insertAt(dir,0); } argument
146 void setCrunchedOutputDir(const char* dir) { mCrunchedOutputDir = dir; } argument
152 void addResourceSourceDir(const char* dir) { mResourceSourceDirs.insertAt(dir,0); } argument
158 void setRClassDir(const char* dir) { mRClassDir = dir; } argument
166 void setResourceIntermediatesDir(const char* dir) { mResourceIntermediatesDir = dir; } argument
[all...]
/frameworks/minikin/libs/minikin/
H A DLayout.cpp113 const uint16_t* chars, size_t start, size_t count, size_t nchars, bool dir)
118 mPaintFlags(paint.paintFlags), mHyphenEdit(paint.hyphenEdit), mIsRtl(dir),
112 LayoutCacheKey(const FontCollection* collection, const MinikinPaint& paint, FontStyle style, const uint16_t* chars, size_t start, size_t count, size_t nchars, bool dir) argument
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp589 void add_dir(const char *dir, bool recursive) { argument
591 MYLOGD("Not adding dir %s because zip_writer is not set\n", dir);
594 MYLOGD("Adding dir %s (recursive: %d)\n", dir, recursive);
595 DurationReporter duration_reporter(dir, NULL);
596 dump_files(NULL, dir, recursive ? skip_none : is_dir, _add_file_from_fd);
1184 MYLOGD("Bugreport dir: %s\n"
H A Dutils.cpp509 int dump_files(const char *title, const char *dir, argument
520 printf("------ %s (%s) ------\n", title, dir);
524 if (dir[strlen(dir) - 1] == '/') {
527 dirp = opendir(dir);
530 MYLOGE("%s: %s\n", dir, strerror(errno));
543 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name,
966 MYLOGE("Unable to change ownership of dir %s: %s\n", path, strerror(errno));
/frameworks/native/services/inputflinger/
H A DEventHub.cpp1039 ALOGE("scan dir failed for %s\n", DEVICE_PATH);
1646 DIR *dir; local
1648 dir = opendir(dirname);
1649 if(dir == NULL)
1654 while((de = readdir(dir))) {
1662 closedir(dir);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp2998 DIR *dir = opendir(teePath); local
3000 if (dir != NULL) {
3008 int rc = readdir_r(dir, &de, &result);
3028 (void) closedir(dir);

Completed in 440 milliseconds

1234