Searched refs:getFilenameExtension (Results 1 – 4 of 4) sorted by relevance
114 assertNull(AttachmentUtilities.getFilenameExtension(null)); in testGetFilenameExtension()115 assertNull(AttachmentUtilities.getFilenameExtension("")); in testGetFilenameExtension()116 assertNull(AttachmentUtilities.getFilenameExtension(FILE_NO_EXTENSION)); in testGetFilenameExtension()118 assertEquals("pdf", AttachmentUtilities.getFilenameExtension(FILE_EXTENSION)); in testGetFilenameExtension()119 assertEquals("abc", AttachmentUtilities.getFilenameExtension(FILE_TWO_EXTENSIONS)); in testGetFilenameExtension()123 AttachmentUtilities.getFilenameExtension("filename."); in testGetFilenameExtension()124 AttachmentUtilities.getFilenameExtension(".extension"); in testGetFilenameExtension()
107 private static String getFilenameExtension(String fileName) { in getFilenameExtension() method in MimeType129 final String extension = getFilenameExtension(name); in inferMimeType()
134 String extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo()151 extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo()
218 String fileExtension = getFilenameExtension(fileName); in inferMimeType()253 public static String getFilenameExtension(String fileName) { in getFilenameExtension() method in AttachmentUtilities