Searched defs:dir (Results 1 - 25 of 58) sorted by path

123

/frameworks/av/media/libmedia/
H A DMediaScanner.cpp154 DIR* dir = opendir(path); local
155 if (!dir) {
161 while ((entry = readdir(dir))) {
168 closedir(dir);
/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/av/media/libstagefright/id3/
H A Dtestid3.cpp119 DIR *dir = opendir(path); local
121 if (dir == NULL) {
125 rewinddir(dir);
128 while ((ent = readdir(dir)) != NULL) {
150 closedir(dir);
151 dir = NULL;
/frameworks/av/media/mtp/
H A DMtpServer.cpp996 DIR* dir = opendir(path); local
997 if (!dir) {
1003 while ((entry = readdir(dir))) {
1026 closedir(dir);
/frameworks/base/cmds/installd/
H A Dinstalld.c411 DIR *dir; local
415 dir = opendir(user_data_dir);
416 if (dir != NULL) {
417 while ((dirent = readdir(dir))) {
434 closedir(dir);
H A Dinstalld.h113 cache_dir_t* dir; member in struct:__anon950
134 const dir_rec_t* dir,
163 int lookup_media_dir(char basepath[PATH_MAX], const char *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
93 dir_rec_t dir; local
94 dir.path = prefix;
95 dir.len = prefix_len;
97 return create_pkg_path_in_dir(path, &dir, pkgname, postfix);
312 int lookup_media_dir(char basepath[PATH_MAX], const char *dir) argument
324 CACHE_NOISY(ALOGI("Looking up %s in %s\n", dir, basepath));
327 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
445 cache_dir_t* dir = (cache_dir_t*)_cache_malloc(cache, sizeof(cache_dir_t)+nameLen+1); local
475 _add_cache_file_t(cache_t* cache, cache_dir_t* dir, time_t modTime, const char *name) argument
507 _add_cache_files(cache_t *cache, cache_dir_t *parentDir, const char *dirName, DIR* dir, char *pathBase, char *pathPos, size_t pathAvailLen) argument
671 create_dir_path(char path[PATH_MAX], cache_dir_t* dir) argument
688 delete_cache_dir(char path[PATH_MAX], cache_dir_t* dir) argument
741 cache_dir_t* dir = cache->dirs[i-1]; local
[all...]
/frameworks/base/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/base/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/base/core/java/android/net/
H A DSSLSessionCache.java45 * @param dir to store session files in (created if necessary)
48 public SSLSessionCache(File dir) throws IOException { argument
49 mSessionCache = FileClientSessionCache.usingDirectory(dir);
59 File dir = context.getDir("sslcache", Context.MODE_PRIVATE);
62 cache = FileClientSessionCache.usingDirectory(dir);
64 Log.w(TAG, "Unable to create SSL session cache in " + dir, e);
/frameworks/base/core/java/android/text/
H A DAndroidBidi.java27 public static int bidi(int dir, char[] chs, byte[] chInfo, int n, boolean haveInfo) { argument
36 switch(dir) {
37 case Layout.DIR_REQUEST_LTR: dir = 0; break;
38 case Layout.DIR_REQUEST_RTL: dir = 1; break;
39 case Layout.DIR_REQUEST_DEFAULT_LTR: dir = -2; break;
40 case Layout.DIR_REQUEST_DEFAULT_RTL: dir = -1; break;
41 default: dir = 0; break;
44 int result = runBidi(dir, chs, chInfo, n, haveInfo);
52 * @param dir base line direction, either Layout.DIR_LEFT_TO_RIGHT or
61 public static Directions directions(int dir, byt argument
176 runBidi(int dir, char[] chs, byte[] chInfo, int n, boolean haveInfo) argument
[all...]
H A DSelection.java398 private static int findEdge(Spannable text, Layout layout, int dir) { argument
403 if (dir * pdir < 0) {
H A DStaticLayout.java243 int dir = measured.mDir;
413 needMultiply, chdirs, dir, easy, bufEnd, includepad, trackpad,
461 needMultiply, chdirs, dir, easy, bufEnd,
588 boolean needMultiply, byte[] chdirs, int dir,
677 lines[off + DIR] |= dir << DIR_SHIFT;
685 mLineDirections[j] = AndroidBidi.directions(dir, chdirs, start - widthStart, chs,
583 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
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;
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java306 public void onTakeFocus(TextView view, Spannable text, int dir) { argument
307 if ((dir & (View.FOCUS_FORWARD | View.FOCUS_DOWN)) != 0) {
H A DLinkMovementMethod.java235 public void onTakeFocus(TextView view, Spannable text, int dir) { argument
238 if ((dir & View.FOCUS_BACKWARD) != 0) {
H A DScrollingMovementMethod.java94 public void onTakeFocus(TextView widget, Spannable text, int dir) { argument
97 if (layout != null && (dir & View.FOCUS_FORWARD) != 0) {
101 if (layout != null && (dir & View.FOCUS_BACKWARD) != 0) {
/frameworks/base/core/java/android/text/style/
H A DBulletSpan.java80 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
103 c.translate(x + dir * BULLET_RADIUS, (top + bottom) / 2.0f);
107 c.drawCircle(x + dir * BULLET_RADIUS, (top + bottom) / 2.0f, BULLET_RADIUS, p);
H A DDrawableMarginSpan.java42 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
H A DIconMarginSpan.java42 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
49 if (dir < 0)
H A DLeadingMarginSpan.java53 * @param dir the base direction of the paragraph; if negative, the margin
65 int x, int dir,
138 int x, int dir,
64 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
137 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
H A DQuoteSpan.java66 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
76 c.drawRect(x, top, x + dir * STRIPE_WIDTH, bottom, p);
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java1265 float x, float y, int dir, Paint paint) {
1269 if (dir != DIRECTION_LTR && dir != DIRECTION_RTL) {
1270 throw new IllegalArgumentException("Unknown direction: " + dir);
1275 nDrawTextRun(mRenderer, text, index, count, contextIndex, contextCount, x, y, dir,
1283 int contextIndex, int contextCount, float x, float y, int dir, int nativePaint);
1287 float x, float y, int dir, Paint paint) {
1294 int flags = dir == 0 ? 0 : 1;
1264 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
1282 nDrawTextRun(int renderer, char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, int nativePaint) argument
1286 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument
H A DGLES20RecordingCanvas.java283 float x, float y, int dir, Paint paint) {
284 super.drawTextRun(text, index, count, contextIndex, contextCount, x, y, dir, paint);
290 int contextEnd, float x, float y, int dir, Paint paint) {
291 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, dir, paint);
282 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
289 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument
H A DViewRootImpl.java3320 + x.step + " dir=" + x.dir + " acc=" + x.acceleration
3323 + y.step + " dir=" + y.dir + " acc=" + y.acceleration
5006 int dir; field in class:ViewRootImpl.TrackballAxis
5014 dir = 0;
5031 if (dir < 0) {
5038 dir = 1;
5041 if (dir > 0) {
5048 dir
[all...]

Completed in 3222 milliseconds

123