Home
last modified time | relevance | path

Searched refs:trimFilename (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java236 assertEquals("short.txt", FileUtils.trimFilename("short.txt", 16)); in testTrimFilename()
237 assertEquals("extrem...eme.txt", FileUtils.trimFilename("extremelylongfilename.txt", 16)); in testTrimFilename()
240 assertEquals("a\u03C0\u03C0\u03C0\u03C0z", FileUtils.trimFilename(unicode, 10)); in testTrimFilename()
241 assertEquals("a\u03C0...\u03C0z", FileUtils.trimFilename(unicode, 9)); in testTrimFilename()
242 assertEquals("a...\u03C0z", FileUtils.trimFilename(unicode, 8)); in testTrimFilename()
243 assertEquals("a...\u03C0z", FileUtils.trimFilename(unicode, 7)); in testTrimFilename()
244 assertEquals("a...z", FileUtils.trimFilename(unicode, 6)); in testTrimFilename()
/frameworks/base/core/java/android/os/
DFileUtils.java465 trimFilename(res, 255); in buildValidExtFilename()
516 trimFilename(res, 255); in buildValidFatFilename()
521 public static String trimFilename(String str, int maxBytes) { in trimFilename() method in FileUtils
523 trimFilename(res, maxBytes); in trimFilename()
527 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() method in FileUtils