Searched defs:dir (Results 1 - 25 of 36) sorted by relevance

12

/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DFsUtils.java20 String dir) throws IOException {
21 Log.v(LOGTAG, "Searching tests under " + dir);
23 File d = new File(dir);
25 throw new AssertionError("A directory expected, but got " + dir);
30 String s = dir + "/" + files[i];
19 findLayoutTestsRecursively(BufferedOutputStream bos, String dir) argument
/frameworks/base/core/java/android/text/
H A DStyled.java34 int dir, boolean reverse,
94 if (dir == Layout.DIR_RIGHT_TO_LEFT)
103 if (dir == Layout.DIR_RIGHT_TO_LEFT) {
132 if (dir == Layout.DIR_RIGHT_TO_LEFT)
141 if (dir == Layout.DIR_RIGHT_TO_LEFT)
199 int dir, boolean reverse,
230 return ret * dir; //Layout.DIR_RIGHT_TO_LEFT == -1
249 x += each(canvas, sp, i, next, dir, reverse,
32 each(Canvas canvas, Spanned text, int start, int end, int dir, boolean reverse, float x, int top, int y, int bottom, Paint.FontMetricsInt fmi, TextPaint paint, TextPaint workPaint, boolean needwid) argument
197 foreach(Canvas canvas, CharSequence text, int start, int end, int dir, boolean reverse, float x, int top, int y, int bottom, Paint.FontMetricsInt fmi, TextPaint paint, TextPaint workPaint, boolean needWidth) argument
H A DSelection.java360 private static int findEdge(Spannable text, Layout layout, int dir) { argument
365 if (dir * pdir < 0) {
H A DStaticLayout.java222 int dir = DEFAULT_DIR; // XXX
242 dir = DIR_LEFT_TO_RIGHT;
246 dir = DIR_RIGHT_TO_LEFT;
259 final byte SOR = dir == DIR_LEFT_TO_RIGHT ?
660 needMultiply, start, chdirs, dir, easy,
696 needMultiply, start, chdirs, dir, easy,
712 needMultiply, start, chdirs, dir, easy,
732 needMultiply, start, chdirs, dir, easy,
776 needMultiply, start, chdirs, dir, easy,
939 int dir, boolea
933 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 tab, boolean needMultiply, int pstart, byte[] chdirs, int dir, boolean easy, boolean last, boolean includepad, boolean trackpad, float[] widths, int widstart, int widoff, TextUtils.TruncateAt ellipsize, float ellipsiswidth, float textwidth, TextPaint paint) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java283 public void onTakeFocus(TextView view, Spannable text, int dir) { argument
284 if ((dir & (View.FOCUS_FORWARD | View.FOCUS_DOWN)) != 0) {
H A DLinkMovementMethod.java237 public void onTakeFocus(TextView view, Spannable text, int dir) { argument
240 if ((dir & View.FOCUS_BACKWARD) != 0) {
H A DScrollingMovementMethod.java214 public void onTakeFocus(TextView widget, Spannable text, int dir) { argument
217 if (layout != null && (dir & View.FOCUS_FORWARD) != 0) {
221 if (layout != null && (dir & View.FOCUS_BACKWARD) != 0) {
/frameworks/base/core/java/android/text/style/
H A DDrawableMarginSpan.java42 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
53 if (dir < 0)
H A DIconMarginSpan.java42 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
49 if (dir < 0)
H A DBulletSpan.java77 public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, argument
92 c.drawCircle(x + dir * BULLET_RADIUS, (top + bottom) / 2.0f,
H A DLeadingMarginSpan.java31 int x, int dir,
71 int x, int dir,
30 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
70 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/jni/
H A Dandroid_text_AndroidCharacter.cpp56 int dir = android::Unicode::getDirectionality(c); local
58 dest[i++] = dir;
59 dest[i] = dir;
62 int dir = android::Unicode::getDirectionality(c); local
64 dest[i] = dir;
/frameworks/base/cmds/dumpstate/
H A Dutils.c61 DIR* dir; local
65 dir = opendir(path);
66 if (!dir) {
71 while ((entry = readdir(dir))) {
79 closedir(dir);
/frameworks/base/cmds/keystore/
H A Dkeymgmt.c309 LOGE("cannot open keystore dir or namespace is null\n");
392 LOGE("cannot open keystore dir\n");
408 int init_keystore(const char *dir) argument
412 if (dir) mkdir(dir, 0770);
413 if (!dir || chdir(dir)) {
415 dir ? dir : "(null)");
/frameworks/base/cmds/runtime/
H A Dmain_runtime.cpp242 static int hasDir(const char* dir) argument
245 int res = stat(dir, &s);
442 // Change to asset dir. This is only necessary if we've changed to
445 // Expecting assets to live in the current dir is not a great idea,
449 LOGW("WARNING: could not change dir to '%s': %s\n",
/frameworks/base/libs/utils/
H A DDebug.cpp239 const ssize_t dir = -1; local
242 const ssize_t dir = 1;
253 const unsigned char val = *(pos+startIndex+(index*dir));
270 const unsigned char val = *(pos+startIndex+(index*dir));
/frameworks/base/tools/aapt/
H A DPackage.cpp35 const sp<AaptDir>& dir, const AaptGroupEntry& ge);
219 const sp<AaptDir>& dir, const AaptGroupEntry& ge)
223 const size_t ND = dir->getDirs().size();
226 ssize_t res = processAssets(bundle, zip, dir->getDirs().valueAt(i), ge);
233 const size_t NF = dir->getFiles().size();
235 sp<AaptGroup> gp = dir->getFiles().valueAt(i);
218 processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptDir>& dir, const AaptGroupEntry& ge) argument
H A DBundle.h87 void setAssetSourceDir(const char* dir) { mAssetSourceDir = dir; } argument
89 void addResourceSourceDir(const char* dir) { mResourceSourceDirs.insertAt(dir,0); } argument
95 void setRClassDir(const char* dir) { mRClassDir = dir; } argument
99 void setResourceIntermediatesDir(const char* dir) { mResourceIntermediatesDir = dir; } argument
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_file.c136 DIR *dir = NULL; local
153 dir = opendir(path);
154 if (dir == NULL)
159 while ((ent = readdir(dir)) != NULL )
202 closedir(dir);
235 DIR *dir; local
257 dir = opendir(tmpPathBuf1);
259 if (dir == NULL)
265 Trace("DRM_file_listOpen: dir %s, filter %s", tmpPathBuf1, sep+1);
266 *session = (int32_t)dir;
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp160 static void addRect__RectFI(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, SkPath::Direction dir) { argument
163 obj->addRect(rect_, dir);
166 static void addRect__FFFFI(JNIEnv* env, jobject clazz, SkPath* obj, jfloat left, jfloat top, jfloat right, jfloat bottom, SkPath::Direction dir) { argument
171 obj->addRect(left_, top_, right_, bottom_, dir);
174 static void addOval(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, SkPath::Direction dir) { argument
177 obj->addOval(oval_, dir);
180 static void addCircle(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y, jfloat radius, SkPath::Direction dir) { argument
184 obj->addCircle(x_, y_, radius_, dir);
196 jfloat rx, jfloat ry, SkPath::Direction dir) {
201 obj->addRoundRect(rect_, rx_, ry_, dir);
195 addRoundRectXY(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, jfloat rx, jfloat ry, SkPath::Direction dir) argument
204 addRoundRect8(JNIEnv* env, jobject, SkPath* obj, jobject rect, jfloatArray array, SkPath::Direction dir) argument
[all...]
/frameworks/base/libs/ui/
H A DEventHub.cpp401 LOGE("scan dir failed for %s\n", device_path);
774 DIR *dir; local
776 dir = opendir(dirname);
777 if(dir == NULL)
782 while((de = readdir(dir))) {
790 closedir(dir);
/frameworks/base/services/java/com/android/server/am/
H A DUsageStatsService.java216 UsageStatsService(String dir) { argument
220 mDir = new File(dir);
/frameworks/base/tools/aidl/
H A Dgenerate_java.cpp498 int dir = convert_direction(arg->direction.data); local
499 if (dir == OUT_PARAMETER && arg->type.dimension != 0) {
509 else if (dir & IN_PARAMETER) {
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath.java397 * @param dir The direction to wind the rectangle's contour
399 public void addRect(RectF rect, Direction dir) { argument
404 addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
414 * @param dir The direction to wind the rectangle's contour
417 Direction dir) {
420 switch (dir) {
440 * @param dir The direction to wind the oval's contour
442 public void addOval(RectF oval, Direction dir) { argument
459 * @param dir The direction to wind the circle's contour
461 public void addCircle(float x, float y, float radius, Direction dir) { argument
416 addRect(float left, float top, float right, float bottom, Direction dir) argument
489 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument
506 addRoundRect(RectF rect, float[] radii, Direction dir) argument
[all...]

Completed in 600 milliseconds

12