Searched defs:str (Results 1 - 25 of 235) sorted by relevance

12345678910

/frameworks/base/tools/aapt/tests/
H A DTestHelper.h27 inline std::ostream& operator<<(std::ostream& stream, const String8& str) { argument
28 return stream << str.string();
/frameworks/av/services/audioflinger/
H A DFastCaptureState.cpp33 const char *str = FastThreadState::commandToString(command); local
34 if (str != NULL) {
35 return str;
/frameworks/base/tools/aapt2/xml/
H A DXmlPullParser_test.cpp30 std::stringstream str; local
31 str << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
33 xml::XmlPullParser parser(str);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_container.h60 char str[H264DEC_TRACE_STR_LEN]; member in struct:__anon734
/frameworks/base/core/java/android/util/
H A DByteStringUtils.java54 * Returns the decoded byte array representation of str.
55 * @param str Hex encoded string to decode.
56 * @return Decoded byte array representation of str.
58 public static byte[] fromHexToByteArray(String str) { argument
59 if (str == null || str.length() == 0 || str.length() % 2 != 0) {
63 final char[] chars = str.toCharArray();
H A DPrefixPrinter.java47 public void println(String str) { argument
48 mPrinter.println(mPrefix + str);
H A DKeyValueListParser.java46 * @param str the string to parse.
49 public void setString(String str) throws IllegalArgumentException { argument
51 if (str != null) {
52 mSplitter.setString(str);
58 "'" + pair + "' in '" + str + "' is not a valid key-value pair");
/frameworks/base/libs/androidfw/tests/
H A DTestHelpers.h29 static inline ::std::ostream& operator<<(::std::ostream& out, const android::String8& str) { argument
30 return out << str.string();
33 static inline ::std::ostream& operator<<(::std::ostream& out, const android::String16& str) { argument
34 return out << android::String8(str).string();
/frameworks/base/tools/aapt/
H A DAaptUtil.cpp24 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/
H A DResource.cpp110 const ResourceType* ParseResourceType(const StringPiece& str) { argument
111 auto iter = sResourceTypeMap.find(str);
/frameworks/base/tools/aapt2/link/
H A DManifestFixer_test.cpp53 .AddSymbol("android:string/str", ResourceId(0x01060000))
58 std::unique_ptr<xml::XmlResource> Verify(const StringPiece& str) { argument
59 return VerifyWithOptions(str, {});
63 const StringPiece& str, const ManifestFixerOptions& options) {
64 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDom(str);
89 EXPECT_EQ(nullptr, Verify("<manifest package=\"@string/str\" />"));
62 VerifyWithOptions( const StringPiece& str, const ManifestFixerOptions& options) argument
/frameworks/compile/libbcc/lib/
H A DProperties.h43 static inline uint32_t getProperty(const char *str) { argument
46 property_get(str, buf, "0");
/frameworks/support/compat/java/android/support/v4/os/
H A DLocaleHelper.java34 static Locale forLanguageTag(String str) { argument
35 if (str.contains("-")) {
36 String[] args = str.split("-");
44 } else if (str.contains("_")) {
45 String[] args = str.split("_");
54 return new Locale(str);
57 throw new IllegalArgumentException("Can not parse language tag: [" + str + "]");
/frameworks/av/media/libmedia/
H A DMediaResource.cpp52 String8 str; local
53 str.appendFormat("%s/%s:%llu", asString(mType), asString(mSubType), (unsigned long long)mValue);
54 return str;
H A DMediaResourcePolicy.cpp44 String8 str; local
45 str.appendFormat("%s:%s", mType.string(), mValue.string());
46 return str;
H A DStringArray.cpp45 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 DAStringUtils.cpp30 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/core/java/android/os/
H A DPooledStringWriter.java58 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 DFastXmlSerializerTest.java64 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 DResourceUtils.cpp21 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/split-select/
H A DRule.cpp25 inline static void indentStr(String8& str, int indent) { argument
27 str.append(" ");
43 String8 str; local
44 indentStr(str, indent);
45 str.append("{\n");
47 indentStr(str, indent);
48 str.append("\"op\": \"");
51 str.append("ALWAYS_TRUE");
54 str.append("GREATER_THAN");
57 str
[all...]
H A DSplitSelector_test.cpp29 static ::testing::AssertionResult addSplit(Vector<SplitDescription>& splits, const char* str) { argument
31 if (!SplitDescription::parse(String8(str), &split)) {
32 return ::testing::AssertionFailure() << str << " is not a valid configuration.";
/frameworks/base/tools/streaming_proto/
H A Dstring_utils.cpp11 to_camel_case(const string& str) argument
14 const int N = str.size();
18 char c = str[i];
40 make_constant_name(const string& str) argument
43 const int N = str.size();
46 char c = str[i];
64 file_base_name(const string& str) argument
66 size_t start = str.rfind('/');
72 size_t end = str.find('.', start);
74 end = str
80 replace_string(const string& str, const char replace, const char with) argument
[all...]
/frameworks/compile/slang/
H A Dslang_diagnostic_buffer.h50 inline const std::string &str() const { function in class:slang::DiagnosticBuffer
/frameworks/native/libs/gui/view/
H A DSurface.cpp88 const char16_t* str = parcel->readString16Inplace(&len); local
89 if (str != nullptr) {
90 return String16(str, len);

Completed in 375 milliseconds

12345678910