Searched refs:trimFilename (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 237 assertEquals("short.txt", FileUtils.trimFilename("short.txt", 16)); in testTrimFilename() 238 assertEquals("extrem...eme.txt", FileUtils.trimFilename("extremelylongfilename.txt", 16)); in testTrimFilename() 241 assertEquals("a\u03C0\u03C0\u03C0\u03C0z", FileUtils.trimFilename(unicode, 10)); in testTrimFilename() 242 assertEquals("a\u03C0...\u03C0z", FileUtils.trimFilename(unicode, 9)); in testTrimFilename() 243 assertEquals("a...\u03C0z", FileUtils.trimFilename(unicode, 8)); in testTrimFilename() 244 assertEquals("a...\u03C0z", FileUtils.trimFilename(unicode, 7)); in testTrimFilename() 245 assertEquals("a...z", FileUtils.trimFilename(unicode, 6)); in testTrimFilename()
|
/frameworks/base/core/java/android/os/ |
D | FileUtils.java | 507 trimFilename(res, 255); in buildValidExtFilename() 558 trimFilename(res, 255); in buildValidFatFilename() 563 public static String trimFilename(String str, int maxBytes) { in trimFilename() method in FileUtils 565 trimFilename(res, maxBytes); in trimFilename() 569 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() method in FileUtils
|