Home
last modified time | relevance | path

Searched refs:split (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSpannableStringUtilsTests.java122 final CharSequence[] charSequencesFromSpanned = SpannableStringUtils.split( in testSplitCharSequenceWithSpan()
124 final CharSequence[] charSequencesFromString = SpannableStringUtils.split( in testSplitCharSequenceWithSpan()
204 assertEquals(1, SpannableStringUtils.split("", " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
206 assertEquals(1, SpannableStringUtils.split(new SpannedString(""), " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
209 assertEquals(1, SpannableStringUtils.split("", " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
211 assertEquals(1, SpannableStringUtils.split(new SpannedString(""), " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
214 assertEquals(0, SpannableStringUtils.split(" ", " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
216 assertEquals(0, SpannableStringUtils.split(new SpannedString(" "), " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
219 assertEquals(2, SpannableStringUtils.split(" ", " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
221 assertEquals(2, SpannableStringUtils.split(new SpannedString(" "), " ", in testSplitCharSequencePreserveTrailingEmptySegmengs()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolder.java893 final String[] split = TextUtils.split(inString, SPLITTER_REGEX); in fromString() local
894 if (split.length < 20) { in fromString()
895 LogUtils.e(LOG_TAG, "split.length %d", split.length); in fromString()
900 f.folderUri = new FolderUri(Folder.getValidUri(split[index++])); in fromString()
901 f.name = split[index++]; in fromString()
902 f.hasChildren = Integer.parseInt(split[index++]) != 0; in fromString()
903 f.capabilities = Integer.parseInt(split[index++]); in fromString()
904 f.syncWindow = Integer.parseInt(split[index++]); in fromString()
905 f.conversationListUri = getValidUri(split[index++]); in fromString()
906 f.childFoldersListUri = getValidUri(split[index++]); in fromString()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java257 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard()
264 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard()
271 parts = line.split("[^\\\\]:"); // Split on "un-escaped" ':' in parseVcard()
273 String[] subParts = parts[1].split("[^\\\\];"); in parseVcard()
282 parts = line.split("[^\\\\]:"); // Split on "un-escaped" : in parseVcard()
284 String[] subParts = parts[1].split("[^\\\\];"); in parseVcard()
293 parts = line.split("[^\\\\]:"); // Split on "un-escaped" : in parseVcard()
295 String[] subParts = parts[1].split("[^\\\\];"); in parseVcard()
303 parts = line.split("[^\\\\]:"); // Split on "un-escaped" : in parseVcard()
305 String[] subParts = parts[1].split("[^\\\\];"); in parseVcard()
[all …]
DBluetoothMapbMessageMime.java552 String[] headers = hdrPart.split("\r\n"); in parseMimeHeaders()
572 String[] headerParts = header.split(":", 2); in parseMimeHeaders()
620 String[] contentTypeParts = headerValue.split(";"); in parseMimeHeaders()
625 mBoundary = contentTypeParts[j].split("boundary[\\s]*=", 2)[1].trim(); in parseMimeHeaders()
635 mCharset = contentTypeParts[j].split("charset[\\s]*=", 2)[1].trim(); in parseMimeHeaders()
650 String[] parts = partStr.split("\r\n\r\n", 2); // Split the header from the body in parseMimePart()
655 String[] headers = parts[0].split("\r\n"); in parseMimePart()
670 String[] headerParts = header.split(":", 2); in parseMimePart()
683 String[] contentTypeParts = headerValue.split(";"); in parseMimePart()
689 newPart.mCharsetName = value.split("charset[\\s]*=", 2)[1].trim(); in parseMimePart()
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/utils/
Dint_array_view_test.cpp155 EXPECT_TRUE(IntArrayView().split(0, 0).empty()); in TEST()
157 const auto intArrayViews = IntArrayView().split(0, 1); in TEST()
162 const auto intArrayViews = IntArrayView().split(0, 100); in TEST()
170 const auto intArrayViews = intArrayView.split(2); in TEST()
177 const auto intArrayViews = intArrayView.split(2, 2); in TEST()
183 const auto intArrayViews = intArrayView.split(2, 1); in TEST()
188 const auto intArrayViews = intArrayView.split(2, 0); in TEST()
192 const auto intArrayViews = intArrayView.split(3); in TEST()
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeMessageTest.java168 String[] split = rawHeader.split("\r\n"); in testSetSubjectPlain() local
169 assertEquals("64 shouldn't fold", 1, split.length); in testSetSubjectPlain()
174 split = rawHeader.split("\r\n"); in testSetSubjectPlain()
175 assertTrue("long subject should fold", split.length > 1); in testSetSubjectPlain()
176 for (String s : split) { in testSetSubjectPlain()
215 String[] split = rawHeader.split("\r\n"); in testSetLongSubject() local
216 assertTrue("long subject should fold", split.length > 1); in testSetLongSubject()
217 for (String s : split) { in testSetLongSubject()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java83 final String header[] = headerLine.split(","); in readDictionaryCombined()
86 final String keyValue[] = item.split("="); in readDictionaryCombined()
106 final String args[] = line.trim().split(","); in readDictionaryCombined()
119 final String params[] = param.split("=", 2); in readDictionaryCombined()
131 final String[] historicalInfoParams = params[1].split( in readDictionaryCombined()
154 final String params[] = param.split("=", 2); in readDictionaryCombined()
164 params[1].split(CombinedFormatUtils.HISTORICAL_INFO_SEPARATOR); in readDictionaryCombined()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/search/
DSearchData.java42 String[] split = searchDataString.trim().split(DELIM, -1); in from() local
44 if (split.length != 2) { in from()
49 .setTitle(split[0]) in from()
50 .setKey(split[1]) in from()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DCodesArrayParser.java50 final String[] strs = codesArraySpec.split(VERTICAL_BAR_REGEX, -1); in getLabelSpec()
60 for (final String codeInHex : labelSpec.split(COMMA_REGEX)) { in parseLabel()
68 final String[] strs = codesArraySpec.split(VERTICAL_BAR_REGEX, -1); in getCodeSpec()
76 final String[] strs = codesArraySpec.split(VERTICAL_BAR_REGEX, -1); in getMinSupportSdkVersion()
101 for (final String codeInHex : codeSpec.split(COMMA_REGEX)) { in parseOutputText()
/packages/services/Car/tools/emulator/
Dprop_event_simulator.py20 return map(int, val.split(','))
24 return map(long, val.split(','))
28 return map(float, val.split(','))
62 property in default VHAL. If the value is array, use comma to split values')
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardController.java109 final String[] split = card.getName().split("/"); in getSimpleCardName() local
110 return split[split.length - 1]; in getSimpleCardName()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DSliceContextualCardController.java109 final String[] split = card.getName().split("/"); in getSimpleCardName() local
110 return split[split.length - 1]; in getSimpleCardName()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java94 String [] parts = rationalString.split(","); in convertRationalLatLonToFloat()
97 pair = parts[0].split("/"); in convertRationalLatLonToFloat()
101 pair = parts[1].split("/"); in convertRationalLatLonToFloat()
105 pair = parts[2].split("/"); in convertRationalLatLonToFloat()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java574 String[] split = address.split(":"); in addressToReverseBytes() local
575 if (split.length < 6) { in addressToReverseBytes()
579 byte[] result = new byte[split.length]; in addressToReverseBytes()
581 for (int i = 0; i < split.length; i++) { in addressToReverseBytes()
583 result[split.length - 1 - i] = (byte)Integer.parseInt(split[i], 16); in addressToReverseBytes()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java86 String[] segments = split(); in toString()
102 String[] segments = split(s); in fromString()
111 public String[] split() { in split() method in Path
126 public static String[] split(String s) { in split() method in Path
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceBuilderUtils.java141 final String[] split = path.split("/", 3); in getPathData() local
146 if (split.length != 3) { in getPathData()
151 split[1]); in getPathData()
153 return new Pair<>(isIntent, split[2]); in getPathData()
413 final String[] keywordArray = keywordString.split(","); in buildSliceKeywords()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBuilderUtils.java141 final String[] split = path.split("/", 3); in getPathData() local
146 if (split.length != 3) { in getPathData()
151 split[1]); in getPathData()
153 return new Pair<>(isIntent, split[2]); in getPathData()
407 final String[] keywordArray = keywordString.split(","); in buildSliceKeywords()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DLocaleUtils.java113 final String[] referenceParams = referenceLocale.split("_", 3); in getMatchLevel()
114 final String[] testedParams = testedLocale.split("_", 3); in getMatchLevel()
177 final String[] elements = localeString.split("_", 3); in constructLocaleFromString()
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py145 lines = re.split(r'\r?\n', converted)
198 pids_raw = [pid.strip() for pid in re.split(r'\s+', ' '.join(lines))]
377 file_ext = info.filename.split('.')[-1]
389 ext = file.name.split('.')[-1]
417 lines = file.content.decode('ascii', 'ignore').split('\n')
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorSpringBoardActivity.java163 final SplitContactConfirmationDialogFragment split = in showDialog() local
167 if (split != null && split.isAdded()) { in showDialog()
168 fm.beginTransaction().show(split).commitAllowingStateLoss(); in showDialog()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DAtPhonebook.java173 String[] args = atString.split("="); in handleCscsCommand()
178 String characterSet = ((atString.split("="))[1]); in handleCscsCommand()
234 String[] args = atString.split("="); in handleCpbsCommand()
322 if ((atString.split("=")).length < 2) { in handleCpbrCommand()
327 String atCommand = (atString.split("="))[1]; in handleCpbrCommand()
328 String[] indices = atCommand.split(","); in handleCpbrCommand()
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceInfo.java111 String[] serviceParamTokens = rawServiceInfo.split("#"); in parse()
129 for (String keyValueStr : serviceParamTokens[1].split(",")) { in parse()
130 String[] pair = keyValueStr.split("="); in parse()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/logging/
DContextualCardLogUtils.java158 final String[] parts = clickLog.split("\\|"); in parseCardClickLog()
196 final String[] parts = dismissLog.split("\\|"); in parseCardDismissLog()
232 final String[] parts = listLog.split("\\|"); in parseCardListLog()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DEncodedStringValue.java227 public EncodedStringValue[] split(String pattern) { in split() method in EncodedStringValue
228 String[] temp = getString().split(pattern); in split()
246 String[] values = src.split(";"); in extract()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DEncodedStringValue.java212 public EncodedStringValue[] split(String pattern) { in split() method in EncodedStringValue
213 String[] temp = getString().split(pattern); in split()
231 String[] values = src.split(";"); in extract()

12345678910>>...12