Home
last modified time | relevance | path

Searched refs:lastDot (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/media/java/android/media/
DMediaFile.java275 int lastDot = path.lastIndexOf('.'); in getFileType() local
276 if (lastDot < 0) in getFileType()
278 return sFileTypeMap.get(path.substring(lastDot + 1).toUpperCase(Locale.ROOT)); in getFileType()
298 int lastDot = path.lastIndexOf('.'); in getFileTitle() local
299 if (lastDot > 0) { in getFileTitle()
300 path = path.substring(0, lastDot); in getFileTitle()
322 int lastDot = fileName.lastIndexOf('.'); in getFormatCode() local
323 if (lastDot > 0) { in getFormatCode()
324 String extension = fileName.substring(lastDot + 1).toUpperCase(Locale.ROOT); in getFormatCode()
DMediaScanner.java1805 int lastDot = path.lastIndexOf('.');
1806 name = (lastDot < 0 ? path.substring(lastSlash + 1)
1807 : path.substring(lastSlash + 1, lastDot));
/frameworks/support/v4/java/android/support/v4/provider/
DRawDocumentFile.java146 final int lastDot = name.lastIndexOf('.'); in getTypeForName() local
147 if (lastDot >= 0) { in getTypeForName()
148 final String extension = name.substring(lastDot + 1).toLowerCase(); in getTypeForName()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java468 final int lastDot = name.lastIndexOf('.');
469 if (lastDot >= 0) {
470 final String extension = name.substring(lastDot + 1).toLowerCase();
485 final int lastDot = name.lastIndexOf('.');
486 if (lastDot >= 0) {
487 final String extension = name.substring(lastDot + 1).toLowerCase();
490 return name.substring(0, lastDot);
/frameworks/support/v4/java/android/support/v4/content/
DFileProvider.java453 final int lastDot = file.getName().lastIndexOf('.'); in getType() local
454 if (lastDot >= 0) { in getType()
455 final String extension = file.getName().substring(lastDot + 1); in getType()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java9958 final int lastDot = name.lastIndexOf('.'); in deriveCodePathName() local
9959 return name.substring(0, lastDot); in deriveCodePathName()