Searched defs:substring (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/util/
H A DSearchUtil.java42 * substring.
45 * @param substring The substring to search for.
46 * @return A MatchedLine object containing the matching line and the startIndex of the substring
49 public static MatchedLine findMatchingLine(String contents, String substring) { argument
53 // Locate the lines of the content that contain the substring.
54 final int index = SearchUtil.contains(contents, substring);
71 matched.line = contents.substring(start + 1, end);
83 * 2) Returns the starting index where the substring is found.
86 * @param substring Th
91 contains(String value, String substring) argument
[all...]
/packages/apps/Dialer/java/com/android/contacts/common/util/
H A DSearchUtil.java25 * Given a string with lines delimited with '\n', finds the matching line to the given substring.
28 * @param substring The substring to search for.
29 * @return A MatchedLine object containing the matching line and the startIndex of the substring
32 public static MatchedLine findMatchingLine(String contents, String substring) { argument
36 // Locate the lines of the content that contain the substring.
37 final int index = SearchUtil.contains(contents, substring);
54 matched.line = contents.substring(start + 1, end);
66 * <p>2) Returns the starting index where the substring is found.
69 * @param substring Th
74 contains(String value, String substring) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
H A DContactDropdownLayouter.java72 final int position, AdapterType type, final String substring,
81 return super.bindView(convertView, parent, entry, position, type, substring,
98 getStyledResults(substring, displayName, destination);
71 bindView(final View convertView, final ViewGroup parent, final RecipientEntry entry, final int position, AdapterType type, final String substring, final StateListDrawable deleteDrawable) argument
/packages/services/BuiltInPrintService/jni/ipphelper/
H A Dipphelper.c636 static char *substring(const char *string, int position, int length) { function
678 um = substring(mediaSize, strlen(tempMediaSize) - 1, 2);
702 char *tempStr = substring(upper, 1, strlen(upper) - 2);
706 tempStr = substring(upper, 1, strlen(upper) - 2);
1139 // substring match because different devices implemented spec differently
1151 // substring match because different devices implemented spec differently

Completed in 1493 milliseconds