Home
last modified time | relevance | path

Searched refs:delimiterIndex (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java67 int delimiterIndex = prefix.indexOf(PACKAGE_DELIMITER); in getPackageName() local
68 if (delimiterIndex == -1) { in getPackageName()
73 return prefix.substring(0, delimiterIndex); in getPackageName()
111 int delimiterIndex = prefixedString.indexOf(DATABASE_DELIMITER); in removePrefix() local
112 if (delimiterIndex == -1) { in removePrefix()
121 return prefixedString.substring(delimiterIndex + 1); in removePrefix()
133 int delimiterIndex = prefixedString.indexOf(DATABASE_DELIMITER); in getPrefix() local
134 if (delimiterIndex == -1) { in getPrefix()
143 return prefixedString.substring(0, delimiterIndex + 1); in getPrefix()
/packages/apps/Contacts/src/com/android/contacts/util/
DPhoneNumberHelper.java88 int delimiterIndex = number.indexOf('@'); in getUsernameFromUriNumber() local
89 if (delimiterIndex < 0) { in getUsernameFromUriNumber()
90 delimiterIndex = number.indexOf("%40"); in getUsernameFromUriNumber()
92 if (delimiterIndex < 0) { in getUsernameFromUriNumber()
97 return number.substring(0, delimiterIndex); in getUsernameFromUriNumber()
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java331 int delimiterIndex = number.indexOf('@'); in getUsernameFromUriNumber() local
332 if (delimiterIndex < 0) { in getUsernameFromUriNumber()
333 delimiterIndex = number.indexOf("%40"); in getUsernameFromUriNumber()
335 if (delimiterIndex < 0) { in getUsernameFromUriNumber()
342 return number.substring(0, delimiterIndex); in getUsernameFromUriNumber()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DReadableArchive.java120 int delimiterIndex; in ReadableArchive() local
130 delimiterIndex = entryPath.lastIndexOf('/', entry.isDirectory() in ReadableArchive()
132 parentPath = entryPath.substring(0, delimiterIndex) + "/"; in ReadableArchive()