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

123

/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/tools/layoutlib/bridge/src/android/text/
H A DAndroidBidi_Delegate.java35 /*package*/ static int runBidi(int dir, char[] chars, byte[] charInfo, int count, argument
38 switch (dir) {
40 dir = Bidi.LTR;
43 dir = Bidi.RTL;
46 dir = Bidi.LEVEL_DEFAULT_RTL;
49 dir = Bidi.LEVEL_DEFAULT_LTR;
54 dir = Bidi.LEVEL_DEFAULT_LTR;
56 Bidi bidi = new Bidi(chars, 0, null, 0, count, dir);
/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
/frameworks/multidex/library/src/android/support/multidex/
H A DZipUtil.java57 CentralDirectory dir = findCentralDirectory(raf);
59 return computeCrcOfCentralDir(raf, dir);
99 CentralDirectory dir = new CentralDirectory();
100 dir.size = Integer.reverseBytes(raf.readInt()) & 0xFFFFFFFFL;
101 dir.offset = Integer.reverseBytes(raf.readInt()) & 0xFFFFFFFFL;
102 return dir;
106 static long computeCrcOfCentralDir(RandomAccessFile raf, CentralDirectory dir) argument
109 long stillToRead = dir.size;
110 raf.seek(dir.offset);
/frameworks/base/core/jni/
H A Dandroid_text_AndroidBidi.cpp28 static jint runBidi(JNIEnv* env, jobject obj, jint dir, jcharArray chsArray, argument
41 ubidi_setPara(bidi, chs, n, dir, NULL, &status);
H A Dandroid_text_AndroidCharacter.cpp77 int dir = u_charDirection(c); local
78 if (dir < 0 || dir >= U_CHAR_DIRECTION_COUNT)
79 dir = PROPERTY_UNDEFINED;
81 dir = directionality_map[dir];
83 dest[i++] = dir;
84 dest[i] = dir;
87 int dir = u_charDirection(c); local
88 if (dir <
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DTexture2D.java44 public Texture2D(String dir, String file) { argument
46 setFileDir(dir);
55 public void setFileDir(String dir) { argument
56 mFileDir = dir;
H A DTextureCube.java45 public TextureCube(String dir, String file) { argument
47 setFileDir(dir);
56 public void setFileDir(String dir) { argument
57 mFileDir = dir;
/frameworks/base/tools/aapt/
H A DDirectoryWalker.h59 dir = NULL;
60 dir = opendir(mBasePath.string() );
62 if (dir == NULL)
74 struct dirent* entryPtr = readdir(dir);
89 closedir(dir);
95 DIR* dir; member in class:SystemDirectoryWalker
/frameworks/compile/mclinker/lib/MC/
H A DSearchDirs.cpp43 iterator dir, dirEnd = end(); local
44 for (dir = begin(); dir!=dirEnd; ++dir) {
45 delete (*dir);
51 MCLDDirectory* dir = new MCLDDirectory(pPath); local
52 if (dir->isInSysroot())
53 dir->setSysroot(m_SysRoot);
55 if (exists(dir->path()) && is_directory(dir
[all...]
/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/base/core/java/android/text/method/
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) {
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) {
/frameworks/base/core/java/android/text/style/
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 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 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/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/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dsobeloperator.cpp85 unsigned char* dir = dirPtr; local
/frameworks/support/v4/java/android/support/v4/provider/
H A DRawDocumentFile.java158 private static boolean deleteContents(File dir) { argument
159 File[] files = dir.listFiles();
/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/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);

Completed in 793 milliseconds

123