Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java147 CharSequence string, CharSequence chars, int fromIndex) { in indexOfChars() argument
159 for (int i = 0; i < chars.length(); i++) { in indexOfChars()
160 char c = chars.charAt(i); in indexOfChars()
683 public static int lastIndexNotOf(String str, String chars, int fromIndex) { in lastIndexNotOf() argument
687 if (chars.indexOf(str.charAt(pos)) < 0) { in lastIndexNotOf()
933 char chars[] = s.toCharArray(); in unescapeMySQLString() local
936 if (chars.length < 2 || chars[0] != chars[chars.length - 1] || in unescapeMySQLString()
937 (chars[0] != '\'' && chars[0] != '"')) { in unescapeMySQLString()
945 for (int i = 1; i < chars.length - 1; i++) { in unescapeMySQLString()
947 if (chars[i] == '\\') { in unescapeMySQLString()
[all …]
DCharMatcher.java458 final char[] chars = sequence.toString().toCharArray();
459 Arrays.sort(chars); // not worth collapsing duplicates
463 return Arrays.binarySearch(chars, c) >= 0;
466 for (char c : chars) {
848 char[] chars = string.toCharArray();
856 if (pos == chars.length) {
859 if (matches(chars[pos])) {
862 chars[pos - spread] = chars[pos];
867 return new String(chars, 0, pos - spread);
906 char[] chars = string.toCharArray();
[all …]
DUnicodeEscaper.java349 private void outputChars(char[] chars) throws IOException { in escape() argument
350 for (int n = 0; n < chars.length; n++) { in escape()
351 out.append(chars[n]); in escape()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
DNullReader.java186 public int read(char[] chars) throws IOException { in read() argument
187 return read(chars, 0, chars.length); in read()
203 public int read(char[] chars, int offset, int length) throws IOException { in read() argument
216 processChars(chars, offset, returnLength); in read()
293 protected void processChars(char[] chars, int offset, int length) { in processChars() argument
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java102 final char[] chars = seq.toCharArray(); in tokenize() local
107 while (pos < len && (chars[pos] == ' ' || chars[pos] == '\t')) { in tokenize()
111 while (pos < len && !(chars[pos] == ' ' || chars[pos] == '\t')) { in tokenize()
116 tokens[tokenCount++] = new Token(chars, start, end); in tokenize()
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DDiscourseLoggerTest.java28 private static byte[] b(String chars) { in b() argument
29 byte[] ret = new byte[chars.length()]; in b()
30 for (int i = 0; i < chars.length(); i++) { in b()
31 ret[i] = (byte) chars.charAt(i); in b()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAbstractHtmlTemplates.java73 int chars; in readTemplate() local
75 while ((chars=in.read(buf)) > 0) { in readTemplate()
76 out.append(buf, 0, chars); in readTemplate()
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java258 final int chars = (TextUtils.isEmpty(format) ? 0 : format.length());
259 dos.writeInt(chars);
260 if (chars > 0) {
294 final int chars = dis.readInt();
295 if (chars > 0) {
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadCharMappings.java197 String chars = keyToChars[keyIndex]; in getCharToKeyMap() local
199 for (int j = 0; j < chars.length(); j++) { in getCharToKeyMap()
200 char c = chars.charAt(j); in getCharToKeyMap()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java161 char[] chars = new char[BUFFER_SIZE]; in getResponseFrom() local
163 while ((bytes = reader.read(chars)) != -1) { in getResponseFrom()
164 string.append(chars, 0, bytes); in getResponseFrom()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManager.java339 char[] chars = new char[length * 2]; in bytesToString() local
343 chars[j * 2] = hexChars[byteValue >>> 4]; in bytesToString()
344 chars[j * 2 + 1] = hexChars[byteValue & 0x0F]; in bytesToString()
346 return new String(chars); in bytesToString()
DHostEmulationManager.java535 char[] chars = new char[length * 2]; in bytesToString() local
539 chars[j * 2] = hexChars[byteValue >>> 4]; in bytesToString()
540 chars[j * 2 + 1] = hexChars[byteValue & 0x0F]; in bytesToString()
542 return new String(chars); in bytesToString()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DBodyDescriptor.java167 char[] chars = rest.toCharArray(); in getHeaderParams() local
181 for (int i = 0; i < chars.length; i++) { in getHeaderParams()
182 char c = chars[i]; in getHeaderParams()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java102 public PtNode(final int[] chars, final ArrayList<WeightedString> bigrams, in PtNode() argument
105 mChars = chars; in PtNode()
114 public PtNode(final int[] chars, final ArrayList<WeightedString> bigrams, in PtNode() argument
117 mChars = chars; in PtNode()
DBinaryDictDecoderUtils.java161 static int getCharArraySize(final int[] chars, in getCharArraySize() argument
164 for (int character : chars) size += getCharSize(character, codePointToOneByteCodeMap); in getCharArraySize()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java279 char[] chars = allowedSymbols.toCharArray(); in generateRandomString() local
281 sb.append(chars[r.nextInt(chars.length)]); in generateRandomString()
/packages/apps/Terminal/jni/
Dcom_android_terminal_Terminal.cpp467 cells[col].chars[0] = 0; in onPopline()
503 cell->chars[0] = ' '; in getCellLocked()
619 uint32_t rawCell = cell.chars[0]; in com_android_terminal_Terminal_nativeGetCellRun()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java123 CharSequence chars = view.getText(); in isPortFieldValid() local
124 if (TextUtils.isEmpty(chars)) return false; in isPortFieldValid()
129 port = Integer.parseInt(chars.toString()); in isPortFieldValid()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DUtils.java28 string.chars().forEach(arrayList::add); in stringsToIntArray()
/packages/apps/Dialer/java/com/android/incallui/
DInCallPresenter.java1294 public void onPostDialCharWait(String callId, String chars) { in onPostDialCharWait() argument
1303 inCallActivity.showDialogForPostCharWait(callId, chars); in onPostDialCharWait()
1309 intent.putExtra(PostCharDialogActivity.EXTRA_POST_DIAL_STRING, chars); in onPostDialCharWait()
DInCallActivity.java971 public void showDialogForPostCharWait(String callId, String chars) { in showDialogForPostCharWait() argument
972 PostCharDialogFragment fragment = new PostCharDialogFragment(callId, chars); in showDialogForPostCharWait()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java2604 List<BluetoothGattCharacteristic> chars = svc.getCharacteristics(); in onServiceAdded() local
2605 chars.get(chars.size() - 1) in onServiceAdded()
/packages/inputmethods/LatinIME/dictionaries/
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz

12