/frameworks/base/services/core/jni/BroadcastRadio/ |
H A D | JavaRef.cpp | 23 JavaRef<jstring> make_javastr(JNIEnv *env, const std::string &str) { argument 24 return make_javaref(env, env->NewStringUTF(str.c_str()));
|
/frameworks/base/tools/aapt/tests/ |
H A D | TestHelper.h | 27 inline std::ostream& operator<<(std::ostream& stream, const String8& str) { argument 28 return stream << str.string();
|
/frameworks/av/services/audioflinger/ |
H A D | FastCaptureState.cpp | 33 const char *str = FastThreadState::commandToString(command); local 34 if (str != NULL) { 35 return str;
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlPullParser_test.cpp | 35 std::string str = local 38 StringInputStream input(str);
|
/frameworks/base/cmds/statsd/src/ |
H A D | hash.h | 40 inline uint64_t Hash64(const std::string& str) { argument 41 return Hash64(str.data(), str.size());
|
/frameworks/base/core/java/android/util/ |
H A D | PrefixPrinter.java | 47 public void println(String str) { argument 48 mPrinter.println(mPrefix + str);
|
H A D | ByteStringUtils.java | 55 * Returns the decoded byte array representation of str. 56 * @param str Hex encoded string to decode. 57 * @return Decoded byte array representation of str. 59 public static byte[] fromHexToByteArray(String str) { argument 60 if (str == null || str.length() == 0 || str.length() % 2 != 0) { 64 final char[] chars = str.toCharArray();
|
/frameworks/base/libs/androidfw/tests/ |
H A D | CommonHelpers.h | 43 static inline ::std::ostream& operator<<(::std::ostream& out, const String8& str) { argument 44 return out << str.string(); 47 static inline ::std::ostream& operator<<(::std::ostream& out, const String16& str) { argument 48 return out << String8(str).string();
|
H A D | CommonHelpers.cpp | 61 String8 str = pool->string8ObjectAt(idx); local 62 return std::string(str.string(), str.length());
|
/frameworks/base/tools/aapt/ |
H A D | AaptUtil.cpp | 24 Vector<String8> split(const String8& str, const char sep) { argument 26 const char* p = str.string(); 42 Vector<String8> splitAndLowerCase(const String8& str, const char sep) { argument 44 const char* p = str.string();
|
/frameworks/base/tools/aapt2/link/ |
H A D | ManifestFixer_test.cpp | 59 .AddSymbol("android:string/str", ResourceId(0x01060000)) 64 std::unique_ptr<xml::XmlResource> Verify(const StringPiece& str) { argument 65 return VerifyWithOptions(str, {}); 69 const StringPiece& str, const ManifestFixerOptions& options) { 70 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(str); 93 EXPECT_THAT(Verify("<manifest package=\"@string/str\" />"), IsNull()); 68 VerifyWithOptions( const StringPiece& str, const ManifestFixerOptions& options) argument
|
/frameworks/compile/libbcc/lib/ |
H A D | Properties.h | 43 static inline uint32_t getProperty(const char *str) { argument 46 property_get(str, buf, "0");
|
/frameworks/minikin/libs/minikin/ |
H A D | LineBreakerUtil.cpp | 28 std::vector<HyphenationType> hyphenate(const U16StringPiece& str, const Hyphenator& hyphenator) { argument 30 const size_t len = str.size(); 37 if (i == len || str[i] == CHAR_NBSP) { 40 const U16StringPiece word = str.substr(Range(wordStart, i));
|
/frameworks/support/compat/src/main/java/androidx/core/os/ |
H A D | LocaleHelper.java | 34 static Locale forLanguageTag(String str) { argument 35 if (str.contains("-")) { 36 String[] args = str.split("-", -1); 44 } else if (str.contains("_")) { 45 String[] args = str.split("_", -1); 54 return new Locale(str); 57 throw new IllegalArgumentException("Can not parse language tag: [" + str + "]");
|
/frameworks/av/media/libmedia/ |
H A D | MediaResource.cpp | 52 String8 str; local 53 str.appendFormat("%s/%s:%llu", asString(mType), asString(mSubType), (unsigned long long)mValue); 54 return str;
|
H A D | MediaResourcePolicy.cpp | 44 String8 str; local 45 str.appendFormat("%s:%s", mType.string(), mValue.string()); 46 return str;
|
H A D | StringArray.cpp | 45 bool StringArray::push_back(const char* str) { argument 63 int len = strlen(str); 65 memcpy(mArray[mCurrent], str, len+1); 103 void StringArray::setEntry(int idx, const char* str) { argument 107 int len = strlen(str); 109 memcpy(mArray[idx], str, len+1);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | AStringUtils.cpp | 30 const char *glob, size_t globLen, const char *str, size_t strLen, bool ignoreCase) { 38 if (strLen < globIx || Compare(str, glob, globIx /* len */, ignoreCase)) { 58 const char *tail = str + strLen - len; 62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) { 29 MatchesGlob( const char *glob, size_t globLen, const char *str, size_t strLen, bool ignoreCase) argument
|
/frameworks/base/cmds/statsd/src/config/ |
H A D | ConfigKey.cpp | 42 int64_t StrToInt64(const string& str) { argument 45 value = strtoll(str.c_str(), &endp, 0); 46 if (endp == str.c_str() || *endp != '\0') {
|
/frameworks/base/core/java/android/os/ |
H A D | PooledStringWriter.java | 58 public void writeString(String str) { argument 59 final Integer cur = mPool.get(str); 63 mPool.put(str, mNext); 65 mOut.writeString(str);
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | FastXmlSerializerTest.java | 64 private boolean checkPreserved(String description, String str) { argument 73 out.attribute(null, ATTR, str); 74 out.text(str); 101 if (!str.equals(read)) { 103 + " input=\"" + str + "\", but read=\"" + read + "\""); 110 if (!str.equals(parser.getText())) { 112 + " input=\"" + str + "\", but read=\"" + read + "\""); 124 private boolean check(String description, String str) throws Exception { argument 126 ok |= checkPreserved(description, str); 127 ok |= checkPreserved(description + " wrapped with spaces" ," " + str [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceUtils.cpp | 21 bool ExtractResourceName(const StringPiece& str, StringPiece* out_package, StringPiece* out_type, argument 27 const char* start = str.data(); 28 const char* end = start + str.size();
|
/frameworks/base/tools/aapt2/ |
H A D | Resource.cpp | 44 return str_stream.str(); 134 const ResourceType* ParseResourceType(const StringPiece& str) { argument 135 auto iter = sResourceTypeMap.find(str);
|
H A D | ResourceParser_test.cpp | 65 ::testing::AssertionResult TestParse(const StringPiece& str) { argument 66 return TestParse(str, ConfigDescription{}); 69 ::testing::AssertionResult TestParse(const StringPiece& str, const ConfigDescription& config) { argument 76 input.append(str.data(), str.size()); 94 String* str = test::GetValue<String>(&table_, "string/foo"); local 95 ASSERT_THAT(str, NotNull()); 96 EXPECT_THAT(*str, StrValueEq(" hey there ")); 97 EXPECT_THAT(str->untranslatable_sections, IsEmpty()); 100 str [all...] |
/frameworks/base/tools/aapt2/text/ |
H A D | Printer.cpp | 29 Printer& Printer::Println(const StringPiece& str) { argument 30 Print(str); 38 Printer& Printer::Print(const StringPiece& str) { argument 43 auto remaining_str_begin = str.begin(); 44 const auto remaining_str_end = str.end(); 50 const StringPiece str_to_copy = str.substr(remaining_str_begin, new_line_iter);
|