/frameworks/base/tools/aapt/ |
D | AaptUtil.cpp | 25 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()
|
D | AaptConfig.cpp | 35 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, '-'); in parse() local 41 const ssize_t N = parts.size(); in parse() 42 const char* part = parts[index].c_str(); in parse() 53 part = parts[index].c_str(); in parse() 61 part = parts[index].c_str(); in parse() 66 localeIndex = locale.initFromDirName(parts, index); in parse() 75 part = parts[index].c_str(); in parse() 83 part = parts[index].c_str(); in parse() 91 part = parts[index].c_str(); in parse() 99 part = parts[index].c_str(); in parse() [all …]
|
D | ZipEntry.cpp | 325 struct tm parts; in getModWhen() local 327 parts.tm_sec = (mCDE.mLastModFileTime & 0x001f) << 1; in getModWhen() 328 parts.tm_min = (mCDE.mLastModFileTime & 0x07e0) >> 5; in getModWhen() 329 parts.tm_hour = (mCDE.mLastModFileTime & 0xf800) >> 11; in getModWhen() 330 parts.tm_mday = (mCDE.mLastModFileDate & 0x001f); in getModWhen() 331 parts.tm_mon = ((mCDE.mLastModFileDate & 0x01e0) >> 5) -1; in getModWhen() 332 parts.tm_year = ((mCDE.mLastModFileDate & 0xfe00) >> 9) + 80; in getModWhen() 333 parts.tm_wday = parts.tm_yday = 0; in getModWhen() 334 parts.tm_isdst = -1; // DST info "not available" in getModWhen() 336 return mktime(&parts); in getModWhen()
|
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
D | EvemuParser.java | 172 final String[] parts = expectParts(line, 4); in getNextEvent() local 173 final String[] timeParts = parts[0].split("\\."); in getNextEvent() 176 "Invalid timestamp '" + parts[0] + "' (should contain a single '.')", mReader); in getNextEvent() 183 final int eventType = parseInt(parts[1], 16); in getNextEvent() 184 final int eventCode = parseInt(parts[2], 16); in getNextEvent() 185 final int value = parseInt(parts[3], 10); in getNextEvent() 255 String[] parts = line.strip().split(" "); in parseProperties() local 256 propBitmapParts.ensureCapacity(propBitmapParts.size() + parts.length); in parseProperties() 257 for (String part : parts) { in parseProperties() 269 final String[] parts = line.strip().split(" "); in parseAxisBitmaps() local [all …]
|
/frameworks/base/tools/split-select/ |
D | SplitDescription.cpp | 85 ssize_t parseAbi(const Vector<String8>& parts, const ssize_t index, in parseAbi() argument 87 const ssize_t N = parts.size(); in parseAbi() 90 if (parts[endIndex] == "arm64") { in parseAbi() 93 if (parts[endIndex] == "v8a") { in parseAbi() 98 } else if (parts[endIndex] == "armeabi") { in parseAbi() 102 if (parts[endIndex] == "v7a") { in parseAbi() 107 } else if (parts[endIndex] == "x86") { in parseAbi() 110 } else if (parts[endIndex] == "x86_64") { in parseAbi() 113 } else if (parts[endIndex] == "mips") { in parseAbi() 116 } else if (parts[endIndex] == "mips64") { in parseAbi() [all …]
|
/frameworks/base/tools/preload/ |
D | Record.java | 126 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/packages/EasterEgg/src/com/android/egg/landroid/ |
D | Namer.kt | 78 val parts = StringBuilder() in nameSystem() constant 79 parts.append(constellationsTable.roll(rng).pull(rng)) in nameSystem() 81 parts.append(delimiterTable.roll(rng)) in nameSystem() 82 parts.append(suffixesTable.roll(rng).pull(rng)) in nameSystem() 83 if (rng.nextFloat() <= RARE_PROB) parts.append(' ').append(suffixesRare.pull(rng)) in nameSystem() 86 parts.append(delimiterTable.roll(rng)) in nameSystem() 87 parts.append('A' + rng.nextInt(0, 26)) in nameSystem() 88 if (rng.nextFloat() <= RARE_PROB) parts.append(delimiterTable.roll(rng)) in nameSystem() 91 parts.append(delimiterTable.roll(rng)) in nameSystem() 92 parts.append(rng.nextInt(2, 5039)) in nameSystem() [all …]
|
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/ |
D | TTSListValidator.java | 38 String[] parts = item.split(":"); in isItemValid() local 40 return ((parts.length == 2) in isItemValid() 41 && (parts[0].length() > 0) in isItemValid() 42 && ANY_STRING_VALIDATOR.validate(parts[0]) in isItemValid() 43 && LOCALE_VALIDATOR.validate(parts[1].replace('-', '_'))); in isItemValid()
|
/frameworks/base/tools/localedata/ |
D | extract_icu_data.py | 30 parts = locale.split('_') 31 if len(parts) == 1: 32 return (parts[0], None, None) 33 elif len(parts) == 2: 34 if len(parts[1]) == 4: # parts[1] is a script 35 return (parts[0], parts[1], None) 37 return (parts[0], None, parts[1]) 39 assert len(parts) == 3 40 return tuple(parts)
|
/frameworks/base/libs/androidfw/tests/ |
D | Locale_test.cpp | 28 std::vector<std::string> parts = util::SplitAndLowercase(input, '-'); in TestLanguage() local 30 ssize_t count = lv.InitFromParts(std::begin(parts), std::end(parts)); in TestLanguage() 55 std::vector<std::string> parts = util::SplitAndLowercase(input, '-'); in TestLanguageRegion() local 57 ssize_t count = lv.InitFromParts(std::begin(parts), std::end(parts)); in TestLanguageRegion()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 2523 ArrayList<String> parts = new ArrayList<String>(); in resourceQualifierString() local 2526 parts.add("mcc" + config.mcc); in resourceQualifierString() 2528 parts.add("mnc" + config.mnc); in resourceQualifierString() 2535 parts.add(resourceQualifier); in resourceQualifierString() 2541 parts.add("neuter"); in resourceQualifierString() 2544 parts.add("feminine"); in resourceQualifierString() 2547 parts.add("masculine"); in resourceQualifierString() 2555 parts.add("ldltr"); in resourceQualifierString() 2558 parts.add("ldrtl"); in resourceQualifierString() 2565 parts.add("sw" + config.smallestScreenWidthDp + "dp"); in resourceQualifierString() [all …]
|
/frameworks/base/core/java/android/content/om/ |
D | OverlayIdentifier.java | 95 final String[] parts = text.split(":", 2); in fromString() local 96 if (parts.length == 2) { in fromString() 97 return new OverlayIdentifier(parts[0], parts[1]); in fromString() 99 return new OverlayIdentifier(parts[0]); in fromString()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/ |
D | MultipartTest.java | 45 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/ |
D | SimpleSessionDescription.java | 92 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmSmsDispatcherTest.java | 298 ArrayList<String> parts = new ArrayList<>(); in testSendMultipartTextWithInvalidText() local 299 parts.add("valid segment1"); in testSendMultipartTextWithInvalidText() 300 parts.add("too long segment2 12345678912345678912345678912345678912345678912345678912345678" in testSendMultipartTextWithInvalidText() 312 mGsmSmsDispatcher.sendMultipartText("+123" /*destAddr*/, "222" /*scAddr*/, parts, in testSendMultipartTextWithInvalidText() 438 ArrayList<String> parts = new ArrayList<>(); in sendMultipartTextSms() local 439 parts.add("segment1"); in sendMultipartTextSms() 440 parts.add("segment2"); in sendMultipartTextSms() 454 mGsmSmsDispatcher.sendMultipartText("6501002000" /*destAddr*/, "222" /*scAddr*/, parts, in sendMultipartTextSms() 538 ArrayList<String> parts = new ArrayList<>(); in testSendMultipartWithMessageRef() local 539 parts.add("segment1"); in testSendMultipartWithMessageRef() [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | Util.cpp | 48 std::vector<std::string> parts; in SplitAndTransform() local 54 parts.emplace_back(start, current); in SplitAndTransform() 56 std::string& part = parts.back(); in SplitAndTransform() 61 return parts; in SplitAndTransform() 239 std::vector<std::string> parts = util::Split(buildNumber, '.'); in GetToolFingerprint() local 242 if (parts.size() < 3 || parts[2].length() < 6 || in GetToolFingerprint() 243 !android::base::ParseInt(parts[2].substr(0, 4), &buildYear) || in GetToolFingerprint() 244 !android::base::ParseInt(parts[2].substr(4, 2), &buildMonth)) { in GetToolFingerprint()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsUserLifecycleTests.java | 139 final String[] parts = line.trim().split(","); in getNumberOfUidsInBatteryStats() local 140 if (parts.length < 5 || in getNumberOfUidsInBatteryStats() 141 (!parts[3].equals(CPU_DATA_TAG) && !parts[3].equals(CPU_FREQ_DATA_TAG))) { in getNumberOfUidsInBatteryStats() 145 final int uid = Integer.parseInt(parts[1]); in getNumberOfUidsInBatteryStats()
|
/frameworks/base/libs/androidfw/ |
D | Locale.cpp | 72 std::vector<std::string> parts = util::SplitAndLowercase(str, '_'); in InitFromFilterString() local 74 const int num_tags = parts.size(); in InitFromFilterString() 77 const std::string& lang = parts[0]; in InitFromFilterString() 89 const std::string& part2 = parts[1]; in InitFromFilterString() 106 const std::string& part3 = parts[2]; in InitFromFilterString() 121 const std::string& part4 = parts[3]; in InitFromFilterString()
|
D | Util.cpp | 175 std::vector<std::string> parts; in SplitAndTransform() local 181 parts.emplace_back(StringPiece(start, current - start)); in SplitAndTransform() 182 std::string& part = parts.back(); in SplitAndTransform() 186 return parts; in SplitAndTransform()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Util.cpp | 69 std::vector<std::string> parts = util::Split(arg, sSeparator); in ParseSplitParameter() local 70 if (parts.size() != 2) { in ParseSplitParameter() 77 *out_path = parts[0]; in ParseSplitParameter() 78 out_split->name = parts[1]; in ParseSplitParameter() 79 for (StringPiece config_str : util::Tokenize(parts[1], ',')) { in ParseSplitParameter() 123 std::vector<std::string> parts = util::Split(flag_and_value, '='); in ParseFeatureFlagsParameter() local 124 if (parts.empty()) { in ParseFeatureFlagsParameter() 128 if (parts.size() > 2) { in ParseFeatureFlagsParameter() 135 StringPiece flag_name = util::TrimWhitespace(parts[0]); in ParseFeatureFlagsParameter() 142 if (parts.size() == 2) { in ParseFeatureFlagsParameter() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsManager.java | 1068 String destinationAddress, String scAddress, ArrayList<String> parts, in sendMultipartTextMessage() argument 1070 sendMultipartTextMessageInternal(destinationAddress, scAddress, parts, sentIntents, in sendMultipartTextMessage() 1088 @NonNull List<String> parts, @Nullable List<PendingIntent> sentIntents, in sendMultipartTextMessage() argument 1090 sendMultipartTextMessageInternal(destinationAddress, scAddress, parts, sentIntents, in sendMultipartTextMessage() 1118 @NonNull List<String> parts, @Nullable List<PendingIntent> sentIntents, in sendMultipartTextMessage() argument 1121 sendMultipartTextMessageInternal(destinationAddress, scAddress, parts, sentIntents, in sendMultipartTextMessage() 1127 String destinationAddress, String scAddress, List<String> parts, in sendMultipartTextMessageInternal() argument 1134 if (parts == null || parts.size() < 1) { in sendMultipartTextMessageInternal() 1138 if (parts.size() > 1) { in sendMultipartTextMessageInternal() 1156 destinationAddress, scAddress, parts, sentIntents, in sendMultipartTextMessageInternal() [all …]
|
/frameworks/base/tests/SystemMemoryTest/ |
D | README.txt | 6 - those parts of the test that run on device. 9 - those parts of the test that run on host.
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | IccSmsInterfaceManager.java | 722 String destAddr, String scAddr, List<String> parts, List<PendingIntent> sentIntents, in sendMultipartText() argument 725 sendMultipartTextWithOptions(callingPackage, callingAttributionTag, destAddr, scAddr, parts, in sendMultipartText() 782 String destAddr, String scAddr, List<String> parts, List<PendingIntent> sentIntents, in sendMultipartTextWithOptions() argument 792 for (String part : parts) { in sendMultipartTextWithOptions() 801 if (parts.size() > 1 && parts.size() < 10 && !SmsMessage.hasEmsSupport()) { in sendMultipartTextWithOptions() 802 for (int i = 0; i < parts.size(); i++) { in sendMultipartTextWithOptions() 805 String singlePart = parts.get(i); in sendMultipartTextWithOptions() 807 singlePart = String.valueOf(i + 1) + '/' + parts.size() + ' ' + singlePart; in sendMultipartTextWithOptions() 810 + parts.size()); in sendMultipartTextWithOptions() 833 (ArrayList<String>) parts, in sendMultipartTextWithOptions() [all …]
|
/frameworks/base/core/java/android/util/ |
D | KeyValueListParser.java | 170 String[] parts = value.split(":"); in getIntArray() local 171 if (parts.length > 0) { in getIntArray() 172 int[] ret = new int[parts.length]; in getIntArray() 173 for (int i = 0; i < parts.length; i++) { in getIntArray() 174 ret[i] = Integer.parseInt(parts[i]); in getIntArray()
|
/frameworks/base/core/java/android/service/carrier/ |
D | CarrierMessagingService.java | 288 public void onSendMultipartTextSms(@NonNull List<String> parts, in onSendMultipartTextSms() argument 309 public void onSendMultipartTextSms(@NonNull List<String> parts, in onSendMultipartTextSms() argument 313 onSendMultipartTextSms(parts, subId, destAddress, callback); in onSendMultipartTextSms() 538 public void sendMultipartTextSms(List<String> parts, int subId, String destAddress, in sendMultipartTextSms() argument 540 onSendMultipartTextSms(parts, subId, destAddress, sendSmsFlag, in sendMultipartTextSms()
|