Searched defs:dir (Results 26 - 50 of 58) sorted by last modified time

123

/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java1401 * left-to-right run, as indicated by dir. Alignment of the text is as
1414 * @param dir the run direction, either {@link #DIRECTION_LTR} or
1420 float x, float y, int dir, Paint paint) {
1431 if (dir != DIRECTION_LTR && dir != DIRECTION_RTL) {
1432 throw new IllegalArgumentException("unknown dir: " + dir);
1436 contextIndex, contextCount, x, y, dir, paint.mNativePaint);
1442 * left-to-right run, as indicated by dir. Alignment of the text is as
1452 * @param dir th
1419 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
1456 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument
[all...]
H A DPath.java388 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument
391 mLastDirection = dir;
393 if (mLastDirection != dir) {
406 * @param dir The direction to wind the rectangle's contour
408 public void addRect(RectF rect, Direction dir) { argument
412 detectSimplePath(rect.left, rect.top, rect.right, rect.bottom, dir);
413 native_addRect(mNativePath, rect, dir.nativeInt);
423 * @param dir The direction to wind the rectangle's contour
425 public void addRect(float left, float top, float right, float bottom, Direction dir) { argument
426 detectSimplePath(left, top, right, bottom, dir);
436 addOval(RectF oval, Direction dir) argument
452 addCircle(float x, float y, float radius, Direction dir) argument
480 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument
497 addRoundRect(RectF rect, float[] radii, Direction dir) argument
643 native_addRect(int nPath, RectF rect, int dir) argument
644 native_addRect(int nPath, float left, float top, float right, float bottom, int dir) argument
646 native_addOval(int nPath, RectF oval, int dir) argument
647 native_addCircle(int nPath, float x, float y, float radius, int dir) argument
651 native_addRoundRect(int nPath, RectF rect, float rx, float ry, int dir) argument
653 native_addRoundRect(int nPath, RectF r, float[] radii, int dir) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutBidiTest.java87 private void expectNativeBidi(int dir, String text, argument
93 int resultDir = AndroidBidi.bidi(dir, chs, chInfo, n, false);
/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...]
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp359 static int hasDir(const char* dir) argument
362 int res = stat(dir, &s);

Completed in 233 milliseconds

123