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.java389 assertEquals("short.txt", FileUtils.trimFilename("short.txt", 16)); in testTrimFilename()
390 assertEquals("extrem...eme.txt", FileUtils.trimFilename("extremelylongfilename.txt", 16)); in testTrimFilename()
393 assertEquals("a\u03C0\u03C0\u03C0\u03C0z", FileUtils.trimFilename(unicode, 10)); in testTrimFilename()
394 assertEquals("a\u03C0...\u03C0z", FileUtils.trimFilename(unicode, 9)); in testTrimFilename()
395 assertEquals("a...\u03C0z", FileUtils.trimFilename(unicode, 8)); in testTrimFilename()
396 assertEquals("a...\u03C0z", FileUtils.trimFilename(unicode, 7)); in testTrimFilename()
397 assertEquals("a...z", FileUtils.trimFilename(unicode, 6)); in testTrimFilename()
/frameworks/base/core/java/android/os/
DFileUtils.java964 trimFilename(res, 255); in buildValidExtFilename()
1019 trimFilename(res, 255); in buildValidFatFilename()
1025 public static String trimFilename(String str, int maxBytes) { in trimFilename() method in FileUtils
1027 trimFilename(res, maxBytes); in trimFilename()
1032 private static void trimFilename(StringBuilder res, int maxBytes) { in trimFilename() method in FileUtils