/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 331 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 D | Selection.java | 407 private static int findEdge(Spannable text, Layout layout, int dir) { argument 412 if (dir * pdir < 0) {
|
H A D | TextLine.java | 129 * @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;
|
H A D | StaticLayout.java | 242 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 D | SpannableStringBuilder.java | 1246 * @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;
|
/frameworks/base/native/android/ |
H A D | asset_manager.cpp | 42 AAssetDir(AssetDir* dir) : mAssetDir(dir), mCurFileIndex(0) { } argument
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | DropBoxManagerService.java | 490 * @param dir to store file in 497 public EntryFile(File temp, File dir, String tag,long timestampMillis, argument 504 this.file = new File(dir, Uri.encode(tag) + "@" + timestampMillis + 516 * @param dir to store file in 521 public EntryFile(File dir, String tag, long timestampMillis) throws IOException { argument 525 this.file = new File(dir, Uri.encode(tag) + "@" + timestampMillis + ".lost");
|
/frameworks/base/services/core/java/com/android/server/updates/ |
H A D | ConfigUpdateInstallReceiver.java | 229 protected void writeUpdate(File dir, File file, byte[] content) throws IOException { argument 241 tmp = File.createTempFile("journal", "", dir);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsDatabase.java | 51 public UsageStatsDatabase(File dir) { argument 53 new File(dir, "daily"), 54 new File(dir, "weekly"), 55 new File(dir, "monthly"), 56 new File(dir, "yearly"), 58 mVersionFile = new File(dir, "version"); 171 public boolean accept(File dir, String name) { 456 private static void pruneFilesOlderThan(File dir, long expiryTime) { argument 457 File[] files = dir.listFiles();
|
/frameworks/base/tools/split-select/ |
H A D | Main.cpp | 224 AssetDir* dir = assetManager.openNonAssetDir(cookie, "lib"); local 225 if (dir != NULL) { 226 const size_t fileCount = dir->getFileCount(); 229 Vector<String8> parts = AaptUtil::splitAndLowerCase(dir->getFileName(i), '-'); 231 fprintf(stderr, "Malformed library %s\n", dir->getFileName(i).string()); 235 delete dir;
|
/frameworks/compile/libbcc/lib/Support/ |
H A D | sha1.c | 92 #include <dir.h> 431 char dir[MAXDIR]; local 483 fnsplit(argv[i], drive, dir, name, ext); 488 sprintf(path, "%s%s%s", drive, dir, f.ff_name);
|
/frameworks/multidex/library/src/android/support/multidex/ |
H A D | MultiDexExtractor.java | 273 Log.w(TAG, "Failed to list secondary dex dir content (" + dexDir.getPath() + ")."); 287 private static void mkdirChecked(File dir) throws IOException { argument 288 dir.mkdir(); 289 if (!dir.isDirectory()) { 290 File parent = dir.getParentFile(); 292 Log.e(TAG, "Failed to create dir " + dir.getPath() + ". Parent file is null."); 294 Log.e(TAG, "Failed to create dir " + dir.getPath() + 295 ". parent file is a dir " [all...] |
/frameworks/native/cmds/installd/ |
H A D | installd.h | 115 cache_dir_t* dir; member in struct:__anon1170 136 const dir_rec_t* dir, 170 int lookup_media_dir(char basepath[PATH_MAX], const char *dir);
|
H A D | installd.c | 451 DIR *dir; local 455 dir = opendir(user_data_dir); 456 if (dir != NULL) { 457 while ((dirent = readdir(dir))) { 474 closedir(dir); 529 DIR *dir; local 531 dir = opendir(user_data_dir); 532 if (dir != NULL) { 533 while ((dirent = readdir(dir))) { 568 closedir(dir); [all...] |
/frameworks/native/cmds/installd/tests/ |
H A D | installd_utils_test.cpp | 375 dir_rec_t dir; local 376 dir.path = "/data/app-private/"; 377 dir.len = strlen(dir.path); 379 EXPECT_EQ(0, create_pkg_path_in_dir(path, &dir, "com.example.package", ".apk"))
|
/frameworks/native/libs/binder/ |
H A D | Debug.cpp | 225 const ssize_t dir = -1; local 228 const ssize_t dir = 1; 239 const unsigned char val = *(pos+startIndex+(index*dir)); 256 const unsigned char val = *(pos+startIndex+(index*dir));
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
H A D | WebViewChromiumFactoryProvider.java | 162 private static void deleteContents(File dir) { argument 163 File[] files = dir.listFiles();
|
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 444 // 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();
|
/frameworks/base/tools/aidl/ |
H A D | generate_java_binder.cpp | 436 int dir = convert_direction(arg->direction.data); local 437 if (dir == OUT_PARAMETER && arg->type.dimension != 0) { 447 else if (dir & IN_PARAMETER) {
|
/frameworks/native/cmds/rawbu/ |
H A D | backup.cpp | 67 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/av/media/libstagefright/codecs/avc/common/src/ |
H A D | deblock.cpp | 60 //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/mtp/ |
H A D | MtpServer.cpp | 1072 DIR* dir = opendir(path); local 1073 if (!dir) { 1079 while ((entry = readdir(dir))) { 1102 closedir(dir);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 171 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local 172 obj->addRect(left, top, right, bottom, dir); 178 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local 180 obj->addOval(oval, dir); 185 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local 186 obj->addCircle(x, y, radius, dir); 200 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local 201 obj->addRoundRect(rect, rx, ry, dir); 208 SkPath::Direction dir = static_cast<SkPath::Direction>(dirHandle); local 215 obj->addRoundRect(rect, src, dir); [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 499 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument 501 mLastDirection = dir; 503 if (mLastDirection != dir) { 515 * @param dir The direction to wind the rectangle's contour 517 public void addRect(RectF rect, Direction dir) { argument 518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); 528 * @param dir The direction to wind the rectangle's contour 530 public void addRect(float left, float top, float right, float bottom, Direction dir) { argument 531 detectSimplePath(left, top, right, bottom, dir); 532 native_addRect(mNativePath, left, top, right, bottom, dir 541 addOval(RectF oval, Direction dir) argument 550 addOval(float left, float top, float right, float bottom, Direction dir) argument 563 addCircle(float x, float y, float radius, Direction dir) argument 599 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument 610 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument 625 addRoundRect(RectF rect, float[] radii, Direction dir) argument 640 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument 808 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument 810 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument 812 native_addCircle(long nPath, float x, float y, float radius, int dir) argument 816 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument 819 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 323 float left, float top, float right, float bottom, int dir) { 329 pathDelegate.addRect(left, top, right, bottom, dir); 334 float bottom, int dir) { 345 /*package*/ static void native_addCircle(long nPath, float x, float y, float radius, int dir) { argument 372 float bottom, float rx, float ry, int dir) { 385 float bottom, float[] radii, int dir) { 388 native_addRoundRect(nPath, left, top, right, bottom, radii[0], radii[1], dir); 758 * @param dir The direction to wind the rectangle's contour 761 int dir) { 764 Direction direction = getDirection(dir); 322 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument 333 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument 371 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument 384 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument 760 addRect(float left, float top, float right, float bottom, int dir) argument [all...] |