Home
last modified time | relevance | path

Searched refs:dotIndex (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java123 int dotIndex = filename.lastIndexOf("."); in generateFileInfo() local
124 if (dotIndex < 0) { in generateFileInfo()
132 extension = filename.substring(dotIndex); in generateFileInfo()
133 filename = filename.substring(0, dotIndex); in generateFileInfo()
DBluetoothOppObexServerSession.java236 int dotIndex = name.lastIndexOf("."); in onPut() local
237 if (dotIndex < 0 && mimeType == null) { in onPut()
243 extension = name.substring(dotIndex + 1).toLowerCase(); in onPut()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java269 final int dotIndex = name.lastIndexOf('.'); in generateSaveFile() local
270 final boolean missingExtension = dotIndex < 0; in generateSaveFile()
277 prefix = name.substring(0, dotIndex); in generateSaveFile()
278 suffix = name.substring(dotIndex); in generateSaveFile()
287 prefix = name.substring(0, dotIndex); in generateSaveFile()
288 suffix = chooseExtensionFromFilename(mimeType, destination, name, dotIndex); in generateSaveFile()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamTransferManager.java519 int dotIndex = fileName.lastIndexOf("."); in generateUniqueDestination() local
522 if (dotIndex < 0) { in generateUniqueDestination()
526 extension = fileName.substring(dotIndex); in generateUniqueDestination()
527 fileNameWithoutExtension = fileName.substring(0, dotIndex); in generateUniqueDestination()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtonePickerActivity.kt481 val dotIndex = title.lastIndexOf(".") in <lambda>() constant
482 if (dotIndex > 0) { in <lambda>()
483 title = title.substring(0, dotIndex) in <lambda>()
DRingtonePickerActivity.java562 final int dotIndex = title.lastIndexOf("."); in doInBackground() local
563 if (dotIndex > 0) { in doInBackground()
564 title = title.substring(0, dotIndex); in doInBackground()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java1231 int dotIndex = name.indexOf("."); in pullPhonebook() local
1233 if (dotIndex >= 0 && dotIndex <= name.length()) { in pullPhonebook()
1234 if (!name.regionMatches(dotIndex + 1, vcf, 0, vcf.length())) { in pullPhonebook()