/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 113 static char* strdupNew(const char* str) { argument 117 if (str == NULL) 120 len = strlen(str); 122 memcpy(newStr, str, len+1);
|
/frameworks/base/media/java/android/media/ |
H A D | ClosedCaptionRenderer.java | 559 StringBuilder str = new StringBuilder(); 560 str.append("{"); 561 str.append(mColorMap[mColor]); 563 str.append(", ITALICS"); 566 str.append(", UNDERLINE"); 568 str.append("}"); 570 return str.toString(); 664 CCLineBuilder(String str) { argument 665 mDisplayChars = new StringBuilder(str); 1090 String str [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDatabase.cpp | 452 const char* str = (stringValue ? env->GetStringUTFChars(stringValue, NULL) : NULL); local 454 packet.putString(str); 455 env->ReleaseStringUTFChars(stringValue, str); 623 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); local 624 packet.putString(str); 625 env->ReleaseCharArrayElements(mStringBuffer, str, 0); 864 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); local 865 MtpStringBuffer temp(str); 867 env->ReleaseCharArrayElements(mStringBuffer, str, 0); 1009 jchar* str local 1278 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); local [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
H A D | ApplicationsState.java | 627 public static String normalize(String str) { argument 628 String tmp = Normalizer.normalize(str, Form.NFD);
|
/frameworks/base/services/net/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 601 protected static void addTlv(ByteBuffer buf, byte type, String str) { argument 603 addTlv(buf, type, str.getBytes("US-ASCII")); 605 throw new IllegalArgumentException("String is not US-ASCII: " + str);
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberUtils.java | 3043 String str, boolean acceptThailandCase) { 3052 final int length = str.length(); 3054 char ch = str.charAt(i); 3136 private static int tryGetTrunkPrefixOmittedIndex(String str, int currentIndex) { argument 3137 int length = str.length(); 3139 final char ch = str.charAt(i); 3150 * Return true if the prefix of "str" is "ignorable". Here, "ignorable" means 3151 * that "str" has only one digit and separator characters. The one digit is 3154 private static boolean checkPrefixIsIgnorable(final String str, argument 3158 if (tryGetISODigit(str 3042 tryGetCountryCallingCodeAndNewIndex( String str, boolean acceptThailandCase) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.cpp | 212 bool AaptLocaleValue::initFromFilterString(const String8& str) { argument 215 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, '_');
|
H A D | Bundle.h | 179 void setFeatureOfPackage(const char* str) { mFeatureOfPackage = str; } argument 181 void setFeatureAfterPackage(const char* str) { mFeatureAfterPackage = str; } argument
|
H A D | Resource.cpp | 61 const char* str = leaf.string(); local 64 return String8(str, firstDot-str); 66 return String8(str); 311 const char16_t* str = baseName.string(); local 312 const char16_t* const end = str + baseName.size(); 313 while (str < end) { 314 if (!((*str >= 'a' && *str <= 'z') 315 || (*str > 484 const char16_t* str; local [all...] |
H A D | ResourceTable.cpp | 218 static uint32_t parse_flags(const char16_t* str, size_t len, argument 221 while (len > 0 && isspace(*str)) { 222 str++; 225 while (len > 0 && isspace(str[len-1])) { 229 const char16_t* const end = str + len; 232 while (str < end) { 233 const char16_t* div = str; 240 if (strzcmp16(cur->name, cur->nameLen, str, div-str) == 0) { 252 str 423 const char16_t* str = block.getAttributeStringValue(l10nIdx, &len); local 610 String16 str; local 707 String16 str; local 2306 stringToValue(Res_value* outValue, StringPool* pool, const String16& str, bool preserveSpaces, bool coerceType, uint32_t attrID, const Vector<StringPool::entry_style_span>* style, String16* outStr, void* accessorCookie, uint32_t attrType, const String8* configTypeName, const ConfigDescription* config) argument [all...] |
/frameworks/base/tools/aapt2/ |
H A D | ResourceParser.cpp | 78 static uint32_t ParseFormatAttribute(const StringPiece& str) { argument 80 for (StringPiece part : util::Tokenize(str, '|')) { 379 out_style_string->str = std::move(flattened_string.text); 764 table_->string_pool.MakeRef(style_string.str, StringPool::Context(config_)));
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/store/ |
H A D | SetterStore.java | 567 private static boolean isInArray(String str, String[] array) { argument 569 if (value.equals(str)) {
|
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 430 static void addFeatures(const std::string& str, std::vector<hb_feature_t>* features) { argument 431 SplitIterator it(str, ',');
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.cpp | 437 char str[16]; local 439 snprintf(str, sizeof(str), " %llu.%02u", 443 "%*s", (spc > offset) ? (int)(spc - offset) : 0, str); 448 char str[16]; local 450 snprintf(str, sizeof(str), " %u.%u%%", permille / 10, permille % 10); 453 "%*s", (spc > offset) ? (int)(spc - offset) : 0, str); 1152 char str[2]; member in struct:hex
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 199 return out.str(); 341 string str; local 354 str = optarg; 357 char endChar = (str.length() > 1) ? str[str.length() - 1] : 0; 359 str += " " + string(argv[optind++]); 362 istringstream in(str); 366 || (((unsigned int) in.tellg() != in.str().length()) 369 "dimension of: %s", str [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | Connection.java | 591 public abstract void proceedAfterWildChar(String str); argument 1107 StringBuilder str = new StringBuilder(128); 1109 str.append(" callId: " + getTelecomCallId()); 1110 str.append(" isExternal: " + (((mConnectionCapabilities & Capability.IS_EXTERNAL_CONNECTION) 1113 str.append("addr: " + getAddress()) 1120 str.append(" incoming: " + isIncoming()) 1123 return str.toString();
|
H A D | RadioResponse.java | 1641 private void responseString(RadioResponseInfo responseInfo, String str) { argument 1646 sendMessageResponse(rr.mResult, str); 1648 mRil.processResponseDone(rr, responseInfo, str); 1652 private void responseStrings(RadioResponseInfo responseInfo, String ...str) { argument 1654 for (int i = 0; i < str.length; i++) { 1655 strings.add(str[i]);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
H A D | ConnectivityServiceMock.java | 312 private void log(String str) { argument 313 Slog.d(TAG, str); 315 private void loge(String str) { argument 316 Slog.e(TAG, str);
|
/frameworks/rs/rsov/driver/ |
H A D | rsovScript.cpp | 141 void splitOffsets(const std::string &str, char delimiter, argument 143 std::stringstream ss(str);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 385 static bool isFlag(const jchar* str, size_t length) { argument 393 if (str[0] != RI_LEAD_SURROGATE || str[2] != RI_LEAD_SURROGATE) { 396 return RI_TRAIL_SURROGATE_MIN <= str[1] && str[1] <= RI_TRAIL_SURROGATE_MAX && 397 RI_TRAIL_SURROGATE_MIN <= str[3] && str[3] <= RI_TRAIL_SURROGATE_MAX; 428 ScopedStringChars str(env, string); 434 for (size_t i = 0; i < str.size(); i++) { 435 jchar cu = str[ [all...] |
/frameworks/base/tools/aapt2/cmd/ |
H A D | Link.cpp | 377 uint32_t GetCompressionFlags(const StringPiece& str); 437 uint32_t ResourceFileFlattener::GetCompressionFlags(const StringPiece& str) { argument 443 if (util::EndsWith(str, extension)) { 822 } else if (String* str = ValueCast<String>(attr->compiled_value.get())) { 823 compile_sdk_version = *str->value; 835 if (String* str = ValueCast<String>(attr->compiled_value.get())) { 836 compile_sdk_version_codename = *str->value;
|
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 630 const String16 str(readString16()); 631 if (str == interface) { 635 String8(interface).string(), String8(str).string()); 766 status_t Parcel::writeUtf8AsUtf16(const std::string& str) { argument 767 const uint8_t* strData = (uint8_t*)str.data(); 768 const size_t strLen= str.length(); 790 status_t Parcel::writeUtf8AsUtf16(const std::unique_ptr<std::string>& str) { argument 791 if (!str) { 794 return writeUtf8AsUtf16(*str); 1033 status_t Parcel::writeCString(const char* str) argument 1038 writeString8(const String8& str) argument 1050 writeString16(const std::unique_ptr<String16>& str) argument 1059 writeString16(const String16& str) argument 1064 writeString16(const char16_t* str, size_t len) argument 2018 const char* str = reinterpret_cast<const char*>(mData+mDataPos); local 2058 const char* str = (const char*)readInplace(size + 1); local 2069 const char16_t* str = readString16Inplace(&len); local 2101 const char16_t* str = readString16Inplace(&len); local 2117 const char16_t* str = (const char16_t*)readInplace((size+1)*sizeof(char16_t)); local [all...] |
/frameworks/rs/ |
H A D | rsHidlAdaptation.cpp | 62 static uint32_t getProp(const char *str) { argument 64 property_get(str, buf, "0");
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | BackupManagerService.java | 2290 private void writeToJournalLocked(String str) { argument 2293 mJournal.addPackage(str); 2295 Slog.e(TAG, "Can't write " + str + " to backup journal", e);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_location_GnssLocationProvider.cpp | 1004 char str[INET6_ADDRSTRLEN]; local 1005 inet_ntop(AF_INET6, agps_status.ipV6Addr.data(), str, INET6_ADDRSTRLEN); 1006 ALOGD("AGPS IP is v6: %s", str); 1036 char str[INET_ADDRSTRLEN]; local 1037 inet_ntop(AF_INET, &ipAddr, str, INET_ADDRSTRLEN); 1038 ALOGD("AGPS IP is v4: %s", str); 1719 result = env->NewStringUTF(internalState.str().c_str());
|