Searched defs:dir (Results 1 - 25 of 69) 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.cpp1072 DIR* dir = opendir(path); local
1073 if (!dir) {
1079 while ((entry = readdir(dir))) {
1102 closedir(dir);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp2824 DIR *dir = opendir(teePath); local
2826 if (dir != NULL) {
2834 int rc = readdir_r(dir, &de, &result);
2854 (void) closedir(dir);
/frameworks/base/cmds/idmap/
H A Dscan.cpp201 DIR *dir = opendir(overlay_dir); local
202 if (dir == NULL) {
208 while ((dirent = readdir(dir)) != NULL) {
238 closedir(dir);
/frameworks/base/core/java/android/net/
H A DSSLSessionCache.java83 * @param dir to store session files in (created if necessary)
86 public SSLSessionCache(File dir) throws IOException { argument
87 mSessionCache = FileClientSessionCache.usingDirectory(dir);
97 File dir = context.getDir("sslcache", Context.MODE_PRIVATE);
100 cache = FileClientSessionCache.usingDirectory(dir);
102 Log.w(TAG, "Unable to create SSL session cache in " + dir, e);
/frameworks/base/core/java/android/os/
H A DFileUtils.java331 public static boolean deleteOlderFiles(File dir, int minCount, long minAge) { argument
336 final File[] files = dir.listFiles();
372 public static boolean contains(File dir, File file) { argument
375 String dirPath = dir.getAbsolutePath();
388 public static boolean deleteContents(File dir) { argument
389 File[] files = dir.listFiles();
/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
179 runBidi(int dir, char[] chs, byte[] chInfo, int n, boolean haveInfo) argument
[all...]
H A DGraphicsOperations.java64 int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, argument
H A DSelection.java407 private static int findEdge(Spannable text, Layout layout, int dir) { argument
412 if (dir * pdir < 0) {
H A DSpannableStringBuilder.java1246 * @param dir either DIRECTION_RTL or DIRECTION_LTR
1256 public int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, argument
1264 dir, offset, cursorOpt);
1267 dir, offset + mGapLength, cursorOpt) - mGapLength;
1272 dir, offset - contextStart, cursorOpt) + contextStart;
H A DStaticLayout.java242 int dir = measured.mDir;
426 needMultiply, chdirs, dir, easy, bufEnd, includepad, trackpad,
475 needMultiply, chdirs, dir, easy, bufEnd,
513 boolean needMultiply, byte[] chdirs, int dir,
608 lines[off + DIR] |= dir << DIR_SHIFT;
616 mLineDirections[j] = AndroidBidi.directions(dir, chdirs, start - widthStart, chs,
508 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.java129 * @param dir the paragraph direction of this line
134 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument
140 mDir = dir;
670 int dir = runIsRtl ? Paint.DIRECTION_RTL : Paint.DIRECTION_LTR;
674 dir, offset, cursorOpt);
677 mStart + spanLimit, dir, mStart + offset, cursorOpt) - mStart;
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java322 public void onTakeFocus(TextView view, Spannable text, int dir) { argument
323 if ((dir & (View.FOCUS_FORWARD | View.FOCUS_DOWN)) != 0) {
H A DLinkMovementMethod.java240 public void onTakeFocus(TextView view, Spannable text, int dir) { argument
243 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.java41 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
H A DIconMarginSpan.java41 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
48 if (dir < 0)
H A DLeadingMarginSpan.java56 * @param dir the base direction of the paragraph; if negative, the margin
68 int x, int dir,
145 int x, int dir,
67 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
144 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 DViewRootImpl.java4254 + mX.step + " dir=" + mX.dir + " acc=" + mX.acceleration
4257 + mY.step + " dir=" + mY.dir + " acc=" + mY.acceleration
4368 int dir; field in class:ViewRootImpl.TrackballAxis
4376 dir = 0;
4393 if (dir < 0) {
4400 dir = 1;
4403 if (dir > 0) {
4410 dir
[all...]
/frameworks/base/core/java/android/widget/
H A DTextView.java6901 int dir = layout.getParagraphDirection(line);
6910 a = dir == Layout.DIR_LEFT_TO_RIGHT ? Layout.Alignment.ALIGN_LEFT :
6913 a = dir == Layout.DIR_LEFT_TO_RIGHT ? Layout.Alignment.ALIGN_RIGHT :
6929 if (dir < 0) {
9290 public int getTextRunCursor(int contextStart, int contextEnd, int dir, argument
9294 contextCount, dir, offset + mStart, cursorOpt);
/frameworks/base/core/java/com/android/internal/backup/
H A DLocalTransport.java444 // skip packages where we have a data dir but no actual contents
488 if (blobs == null) { // nextRestorePackage() ensures the dir exists, so this is an error
536 private ArrayList<DecodedFilename> contentsByKey(File dir) { argument
537 File[] allFiles = dir.listFiles();

Completed in 4486 milliseconds

123