Home
last modified time | relevance | path

Searched refs:parts (Results 1 – 25 of 105) sorted by relevance

12345

/frameworks/base/tools/aapt/
DAaptUtil.cpp25 Vector<String8> parts; in split() local
32 parts.add(String8(p, strlen(p))); in split()
33 return parts; in split()
36 parts.add(String8(p, q-p)); in split()
39 return parts; in split()
43 Vector<String8> parts; in splitAndLowerCase() local
52 parts.add(val); in splitAndLowerCase()
53 return parts; in splitAndLowerCase()
58 parts.add(val); in splitAndLowerCase()
61 return parts; in splitAndLowerCase()
DAaptConfig.cpp34 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, '-'); in parse() local
40 const ssize_t N = parts.size(); in parse()
41 const char* part = parts[index].string(); in parse()
52 part = parts[index].string(); in parse()
60 part = parts[index].string(); in parse()
65 localeIndex = locale.initFromDirName(parts, index); in parse()
74 part = parts[index].string(); in parse()
82 part = parts[index].string(); in parse()
90 part = parts[index].string(); in parse()
98 part = parts[index].string(); in parse()
[all …]
DZipEntry.cpp340 struct tm parts; in getModWhen() local
342 parts.tm_sec = (mCDE.mLastModFileTime & 0x001f) << 1; in getModWhen()
343 parts.tm_min = (mCDE.mLastModFileTime & 0x07e0) >> 5; in getModWhen()
344 parts.tm_hour = (mCDE.mLastModFileTime & 0xf800) >> 11; in getModWhen()
345 parts.tm_mday = (mCDE.mLastModFileDate & 0x001f); in getModWhen()
346 parts.tm_mon = ((mCDE.mLastModFileDate & 0x01e0) >> 5) -1; in getModWhen()
347 parts.tm_year = ((mCDE.mLastModFileDate & 0xfe00) >> 9) + 80; in getModWhen()
348 parts.tm_wday = parts.tm_yday = 0; in getModWhen()
349 parts.tm_isdst = -1; // DST info "not available" in getModWhen()
351 return mktime(&parts); in getModWhen()
DAaptAssets.cpp216 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, '_'); in initFromFilterString() local
218 const int numTags = parts.size(); in initFromFilterString()
221 const String8& lang = parts[0]; in initFromFilterString()
233 const String8& part2 = parts[1]; in initFromFilterString()
250 const String8& part3 = parts[2]; in initFromFilterString()
264 const String8& part4 = parts[3]; in initFromFilterString()
278 int AaptLocaleValue::initFromDirName(const Vector<String8>& parts, const int startIndex) { in initFromDirName() argument
279 const int size = parts.size(); in initFromDirName()
282 String8 part = parts[currentIndex]; in initFromDirName()
358 part = parts[currentIndex]; in initFromDirName()
/frameworks/base/core/java/com/android/internal/http/multipart/
DMultipartEntity.java118 protected Part[] parts; field in MultipartEntity
131 public MultipartEntity(Part[] parts, HttpParams params) { in MultipartEntity() argument
132 if (parts == null) { in MultipartEntity()
138 this.parts = parts; in MultipartEntity()
142 public MultipartEntity(Part[] parts) { in MultipartEntity() argument
144 if (parts == null) { in MultipartEntity()
147 this.parts = parts; in MultipartEntity()
179 for (int i = 0; i < parts.length; i++) { in isRepeatable()
180 if (!parts[i].isRepeatable()) { in isRepeatable()
190 Part.sendParts(out, parts, getMultipartBoundary()); in writeTo()
[all …]
DPart.java358 public static void sendParts(OutputStream out, final Part[] parts) in sendParts() argument
360 sendParts(out, parts, DEFAULT_BOUNDARY_BYTES); in sendParts()
374 public static void sendParts(OutputStream out, Part[] parts, byte[] partBoundary) in sendParts() argument
377 if (parts == null) { in sendParts()
383 for (int i = 0; i < parts.length; i++) { in sendParts()
385 parts[i].setPartBoundary(partBoundary); in sendParts()
386 parts[i].send(out); in sendParts()
402 public static long getLengthOfParts(Part[] parts) in getLengthOfParts() argument
404 return getLengthOfParts(parts, DEFAULT_BOUNDARY_BYTES); in getLengthOfParts()
418 public static long getLengthOfParts(Part[] parts, byte[] partBoundary) throws IOException { in getLengthOfParts() argument
[all …]
/frameworks/base/tools/preload/
DRecord.java126 String[] parts = line.split(":"); in Record() local
128 ppid = Integer.parseInt(parts[0]); in Record()
129 pid = Integer.parseInt(parts[1]); in Record()
130 tid = Integer.parseInt(parts[2]); in Record()
132 processName = decode(parts[3]).intern(); in Record()
134 classLoader = Integer.parseInt(parts[4]); in Record()
135 className = vmTypeToLanguage(decode(parts[5])).intern(); in Record()
137 time = Long.parseLong(parts[6]); in Record()
/frameworks/base/core/java/android/content/res/
DConfiguration.java1365 ArrayList<String> parts = new ArrayList<String>(); in resourceQualifierString() local
1368 parts.add(config.mcc + "mcc"); in resourceQualifierString()
1370 parts.add(config.mnc + "mnc"); in resourceQualifierString()
1375 parts.add(localeToResourceQualifier(config.locale)); in resourceQualifierString()
1380 parts.add("ldltr"); in resourceQualifierString()
1383 parts.add("ldrtl"); in resourceQualifierString()
1390 parts.add("sw" + config.smallestScreenWidthDp + "dp"); in resourceQualifierString()
1394 parts.add("w" + config.screenWidthDp + "dp"); in resourceQualifierString()
1398 parts.add("h" + config.screenHeightDp + "dp"); in resourceQualifierString()
1403 parts.add("small"); in resourceQualifierString()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsMessageBase.java342 String[] parts = mMessageBody.split("( /)|( )", 2); in extractEmailAddressFromMessageBody() local
343 if (parts.length < 2) return; in extractEmailAddressFromMessageBody()
344 mEmailFrom = parts[0]; in extractEmailAddressFromMessageBody()
345 mEmailBody = parts[1]; in extractEmailAddressFromMessageBody()
DIccSmsInterfaceManager.java469 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartText() argument
476 for (String part : parts) { in sendMultipartText()
486 if (parts.size() > 1 && parts.size() < 10 && !SmsMessage.hasEmsSupport()) { in sendMultipartText()
487 for (int i = 0; i < parts.size(); i++) { in sendMultipartText()
490 String singlePart = parts.get(i); in sendMultipartText()
492 singlePart = String.valueOf(i + 1) + '/' + parts.size() + ' ' + singlePart; in sendMultipartText()
494 … singlePart = singlePart.concat(' ' + String.valueOf(i + 1) + '/' + parts.size()); in sendMultipartText()
514 mDispatcher.sendMultipartText(destAddr, scAddr, (ArrayList<String>) parts, in sendMultipartText()
936 final ArrayList<String> parts = SmsManager.getDefault().divideMessage(textAndAddress[0]); in sendStoredMultipartText() local
937 if (parts == null || parts.size() < 1) { in sendStoredMultipartText()
[all …]
DUiccSmsController.java145 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartText() argument
148 scAddr, parts, sentIntents, deliveryIntents); in sendMultipartText() local
152 String scAddr, List<String> parts, List<PendingIntent> sentIntents, in sendMultipartTextForSubscriber() argument
157 iccSmsIntMgr.sendMultipartText(callingPackage, destAddr, scAddr, parts, sentIntents, in sendMultipartTextForSubscriber()
DSMSDispatcher.java599 ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, in sendMultipartText() argument
606 getMultipartMessageText(parts), in sendMultipartText()
614 int msgCount = parts.size(); in sendMultipartText()
619 TextEncodingDetails details = calculateLength(parts.get(i), false); in sendMultipartText()
663 sendNewSubmitPdu(destAddr, scAddr, parts.get(i), smsHeader, encoding, in sendMultipartText()
1001 ArrayList<String> parts; in sendMultipartSms() local
1010 parts = (ArrayList<String>) map.get("parts"); in sendMultipartSms()
1018 for (int i = 0, count = parts.size(); i < count; i++) { in sendMultipartSms()
1028 sendMultipartText(destinationAddress, scAddress, parts, sentIntents, deliveryIntents, in sendMultipartSms()
1462 private String getMultipartMessageText(ArrayList<String> parts) { in getMultipartMessageText() argument
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/
DMultipartTest.java45 Part[] parts = new Part[3]; in testParts() local
46 parts[0] = new StringPart("stringpart", "PART1!!"); in testParts()
47 parts[1] = new FilePart(upload.getName(), upload); in testParts()
48 parts[2] = new StringPart("stringpart", "PART2!!"); in testParts()
50 MultipartEntity me = new MultipartEntity(parts); in testParts()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSimpleSessionDescription.java92 String[] parts = line.substring(2).split(" ", 4); in SimpleSessionDescription() local
93 String[] ports = parts[1].split("/", 2); in SimpleSessionDescription()
94 Media media = newMedia(parts[0], Integer.parseInt(ports[0]), in SimpleSessionDescription()
96 parts[2]); in SimpleSessionDescription()
97 for (String format : parts[3].split(" ")) { in SimpleSessionDescription()
406 String[] parts = address.split(" "); in getAddress() local
407 if (parts.length != 3) { in getAddress()
410 int slash = parts[2].indexOf('/'); in getAddress()
411 return (slash < 0) ? parts[2] : parts[2].substring(0, slash); in getAddress()
/frameworks/base/core/java/android/app/
DDownloadManager.java856 List<String> parts = new ArrayList<String>(); in runQuery() local
858 parts.add(statusClause("=", Downloads.Impl.STATUS_PENDING)); in runQuery()
861 parts.add(statusClause("=", Downloads.Impl.STATUS_RUNNING)); in runQuery()
864 parts.add(statusClause("=", Downloads.Impl.STATUS_PAUSED_BY_APP)); in runQuery()
865 parts.add(statusClause("=", Downloads.Impl.STATUS_WAITING_TO_RETRY)); in runQuery()
866 parts.add(statusClause("=", Downloads.Impl.STATUS_WAITING_FOR_NETWORK)); in runQuery()
867 parts.add(statusClause("=", Downloads.Impl.STATUS_QUEUED_FOR_WIFI)); in runQuery()
870 parts.add(statusClause("=", Downloads.Impl.STATUS_SUCCESS)); in runQuery()
873 parts.add("(" + statusClause(">=", 400) in runQuery()
876 selectionParts.add(joinStrings(" OR ", parts)); in runQuery()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/gsm/
DSmsManager.java129 String destinationAddress, String scAddress, ArrayList<String> parts, in sendMultipartTextMessage() argument
131 mSmsMgrProxy.sendMultipartTextMessage(destinationAddress, scAddress, parts, in sendMultipartTextMessage()
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java72 private ArrayList<Part> parts; field in AbstractMessageParser
104 this.parts = new ArrayList<Part>(); in AbstractMessageParser()
119 public final int getPartCount() { return parts.size(); } in getPartCount()
122 public final Part getPart(int index) { return parts.get(index); } in getPart()
125 public final List<Part> getParts() { return parts; } in getParts()
236 if (token.isMedia() || (parts.size() == 0) || lastPart().isMedia()) { in buildParts()
237 parts.add(new Part()); in buildParts()
243 if (parts.size() > 0) { in buildParts()
244 parts.get(0).setMeText(meText); in buildParts()
249 private Part lastPart() { return parts.get(parts.size() - 1); } in lastPart()
[all …]
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java159 String[] parts = pair.split("\\^"); in parseArgs() local
160 if (parts.length != 2) { in parseArgs()
165 mNameToResultKey.put(parts[0], parts[1]); in parseArgs()
166 mNameToLaunchTime.put(parts[0], 0L); in parseArgs()
/frameworks/base/media/java/android/media/
DExifInterface.java393 String [] parts = rationalString.split(","); in convertRationalLatLonToFloat() local
396 pair = parts[0].split("/"); in convertRationalLatLonToFloat()
400 pair = parts[1].split("/"); in convertRationalLatLonToFloat()
404 pair = parts[2].split("/"); in convertRationalLatLonToFloat()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java122 String[] parts = pair.split("\\^"); in parseListToMap() local
123 if (parts.length != 2) { in parseListToMap()
127 map.put(parts[0], parts[1]); in parseListToMap()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DBandwidthTestUtil.java138 Part[] parts = { in postFileToServer() local
143 MultipartEntity reqEntity = new MultipartEntity(parts, postRequest.getParams()); in postFileToServer()
/frameworks/base/telephony/java/com/android/internal/telephony/
DISms.aidl260 in List<String> parts, in List<PendingIntent> sentIntents, in sendMultipartText() argument
288 in List<String> parts, in List<PendingIntent> sentIntents, in sendMultipartTextForSubscriber() argument
/frameworks/opt/telephony/src/java/android/telephony/
DSmsManager.java373 String destinationAddress, String scAddress, ArrayList<String> parts, in sendMultipartTextMessage() argument
378 if (parts == null || parts.size() < 1) { in sendMultipartTextMessage()
382 if (parts.size() > 1) { in sendMultipartTextMessage()
386 destinationAddress, scAddress, parts, in sendMultipartTextMessage() local
400 sendTextMessage(destinationAddress, scAddress, parts.get(0), in sendMultipartTextMessage()
/frameworks/base/libs/usb/tests/AccessoryChat/
DREADME.txt1 This is a test app for the USB accessory APIs. It consists of two parts:
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp504 animation.parts.add(part); in movie()
511 const size_t pcount = animation.parts.size(); in movie()
531 if (path == animation.parts[j].path) { in movie()
538 Animation::Part& part(animation.parts.editItemAt(j)); in movie()
585 const Animation::Part& part(animation.parts[i]); in movie()

12345