Searched defs:dir (Results 26 - 50 of 58) sorted by relevance

123

/frameworks/base/services/java/com/android/server/
H A DDropBoxManagerService.java479 * @param dir to store file in
486 public EntryFile(File temp, File dir, String tag,long timestampMillis, argument
493 this.file = new File(dir, Uri.encode(tag) + "@" + timestampMillis +
505 * @param dir to store file in
510 public EntryFile(File dir, String tag, long timestampMillis) throws IOException { argument
514 this.file = new File(dir, Uri.encode(tag) + "@" + timestampMillis + ".lost");
H A DThrottleService.java305 public long getByteCount(String iface, int dir, int period, int ago) { argument
308 if (dir == ThrottleManager.DIRECTION_TX) return mRecorder.getPeriodTx(ago);
309 if (dir == ThrottleManager.DIRECTION_RX) return mRecorder.getPeriodRx(ago);
951 private void checkAndDeleteLRUDataFile(File dir) { argument
952 File[] files = dir.listFiles();
966 files = dir.listFiles();
970 private File useMRUFile(File dir) { argument
972 File[] files = dir.listFiles();
982 newest = new File(dir, "temp");
/frameworks/base/services/java/com/android/server/updates/
H A DConfigUpdateInstallReceiver.java226 private void writeUpdate(File dir, File file, String content) throws IOException { argument
231 tmp = File.createTempFile("journal", "", dir);
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestView.java146 boolean isItalic, boolean isBold, int dir, int textSize) {
166 float textWidthHB = paint.getTextRunAdvances(text, 0, length, 0, length, dir, advances, 0);
167 setPaintDir(paint, dir);
168 float textWidthICU = paint.getTextRunAdvances(text, 0, length, 0, length, dir, advances, 0,
181 private void setPaintDir(Paint paint, int dir) { argument
182 Log.v(TAG, "Setting Paint dir=" + dir);
183 paint.setBidiFlags(dir);
145 testString(Canvas canvas, String text, int x, int y, boolean isItalic, boolean isBold, int dir, int textSize) argument
/frameworks/base/tools/aapt/
H A DPackage.cpp37 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptDir>& dir,
244 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptDir>& dir, argument
249 const size_t ND = dir->getDirs().size();
252 const sp<AaptDir>& subDir = dir->getDirs().valueAt(i);
271 const size_t NF = dir->getFiles().size();
273 sp<AaptGroup> gp = dir->getFiles().valueAt(i);
/frameworks/compile/libbcc/lib/Support/
H A Dsha1.c92 #include <dir.h>
432 char dir[MAXDIR]; local
484 fnsplit(argv[i], drive, dir, name, ext);
489 sprintf(path, "%s%s%s", drive, dir, f.ff_name);
/frameworks/native/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/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 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/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/text/
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;
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
/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/services/jni/
H A Dcom_android_server_BatteryService.cpp236 DIR* dir = opendir(POWER_SUPPLY_PATH); local
237 if (dir == NULL) {
240 while ((entry = readdir(dir))) {
311 closedir(dir);
/frameworks/base/tools/aidl/
H A Dgenerate_java_binder.cpp436 int dir = convert_direction(arg->direction.data); local
437 if (dir == OUT_PARAMETER && arg->type.dimension != 0) {
447 else if (dir & IN_PARAMETER) {
/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/base/core/java/android/view/
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
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp167 static void addRect__RectFI(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, SkPath::Direction dir) { argument
170 obj->addRect(rect_, dir);
173 static void addRect__FFFFI(JNIEnv* env, jobject clazz, SkPath* obj, jfloat left, jfloat top, jfloat right, jfloat bottom, SkPath::Direction dir) { argument
178 obj->addRect(left_, top_, right_, bottom_, dir);
181 static void addOval(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, SkPath::Direction dir) { argument
184 obj->addOval(oval_, dir);
187 static void addCircle(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y, jfloat radius, SkPath::Direction dir) { argument
191 obj->addCircle(x_, y_, radius_, dir);
203 jfloat rx, jfloat ry, SkPath::Direction dir) {
208 obj->addRoundRect(rect_, rx_, ry_, dir);
202 addRoundRectXY(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, jfloat rx, jfloat ry, SkPath::Direction dir) argument
211 addRoundRect8(JNIEnv* env, jobject, SkPath* obj, jobject rect, jfloatArray array, SkPath::Direction dir) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DUsageStatsService.java244 UsageStatsService(String dir) { argument
249 mDir = new File(dir);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java314 /*package*/ static void native_addRect(int nPath, RectF rect, int dir) { argument
320 pathDelegate.addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
325 float left, float top, float right, float bottom, int dir) {
331 pathDelegate.addRect(left, top, right, bottom, dir);
335 /*package*/ static void native_addOval(int nPath, RectF oval, int dir) { argument
346 /*package*/ static void native_addCircle(int nPath, float x, float y, float radius, int dir) { argument
373 int nPath, RectF rect, float rx, float ry, int dir) {
385 /*package*/ static void native_addRoundRect(int nPath, RectF rect, float[] radii, int dir) { argument
388 native_addRoundRect(nPath, rect, radii[0], radii[1], dir);
739 * @param dir Th
324 native_addRect(int nPath, float left, float top, float right, float bottom, int dir) argument
372 native_addRoundRect( int nPath, RectF rect, float rx, float ry, int dir) argument
741 addRect(float left, float top, float right, float bottom, int dir) argument
[all...]
/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/core/jni/
H A DAndroidRuntime.cpp359 static int hasDir(const char* dir) argument
362 int res = stat(dir, &s);
H A Dandroid_util_AssetManager.cpp289 AssetDir* dir = am->openDir(fileName8.c_str()); local
291 if (dir == NULL) {
299 delete dir;
303 size_t N = dir->getFileCount();
305 jobjectArray array = env->NewObjectArray(dir->getFileCount(),
308 delete dir;
313 const String8& name = dir->getFileName(i);
316 delete dir;
323 delete dir;
/frameworks/base/graphics/java/android/graphics/
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...]
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...]

Completed in 5557 milliseconds

123