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

123456789

/frameworks/compile/libbcc/include/bcc/Support/
H A DProperties.h27 static inline uint32_t getProperty(const char *str) { argument
30 property_get(str, buf, "0");
/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.cpp26 std::stringstream str; local
27 str << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
29 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:__anon636
/frameworks/base/core/java/android/util/
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.h11 static inline ::std::ostream& operator<<(::std::ostream& out, const android::String8& str) { argument
12 return out << str.string();
15 static inline ::std::ostream& operator<<(::std::ostream& out, const android::String16& str) { argument
16 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();
H A DResourceFilter.cpp12 WeakResourceFilter::parse(const String8& str) argument
14 Vector<String8> configStrs = AaptUtil::split(str, ',');
97 StrongResourceFilter::parse(const String8& str) { argument
98 Vector<String8> configStrs = AaptUtil::split(str, ',');
/frameworks/base/tools/aapt2/
H A DResource.cpp80 const ResourceType* parseResourceType(const StringPiece16& str) { argument
81 auto iter = sResourceTypeMap.find(str);
/frameworks/base/tools/aapt2/link/
H A DManifestFixer_test.cpp48 .addSymbol(u"@android:string/str", ResourceId(0x01060000))
53 std::unique_ptr<xml::XmlResource> verify(const StringPiece& str) { argument
54 return verifyWithOptions(str, {});
57 std::unique_ptr<xml::XmlResource> verifyWithOptions(const StringPiece& str, argument
59 std::unique_ptr<xml::XmlResource> doc = test::buildXmlDom(str);
82 EXPECT_EQ(nullptr, verify("<manifest package=\"@string/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/av/services/audiopolicy/common/managerdefinitions/src/
H A DTypeConverter.cpp235 bool TypeConverter<Traits>::toString(const typename Traits::Type &value, std::string &str) argument
239 str = mTable[i].literal;
247 bool TypeConverter<Traits>::fromString(const std::string &str, typename Traits::Type &result) argument
250 if (strcmp(mTable[i].literal, str.c_str()) == 0) {
260 void TypeConverter<Traits>::collectionFromString(const std::string &str, argument
264 char *literal = strdup(str.c_str());
276 uint32_t TypeConverter<Traits>::maskFromString(const std::string &str, const char *del) argument
278 char *literal = strdup(str.c_str());
/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/graphics/tests/graphicstests/src/android/graphics/
H A DPaintTest.java41 private void assertGetTextRunAdvances(String str, int start, int end, argument
48 final float advance = p.getTextRunAdvances(str, start, end, contextStart, contextEnd,
51 char chars[] = str.toCharArray();
57 final float firstPartAdvance = p.getTextRunAdvances(str, start, start + c,
59 final float secondPartAdvance = p.getTextRunAdvances(str, start + c, end,
81 assertEquals(advance, p.measureText(str, start, end), 1.0f);
83 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f);
86 p.getTextWidths(str, start, end, widths);
/frameworks/base/libs/hwui/utils/
H A DStringUtils.h29 bool has(const char* str) { argument
30 return find(std::string(str)) != end();
/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/compile/slang/
H A Dslang_diagnostic_buffer.h50 inline const std::string &str() const { function in class:slang::DiagnosticBuffer
/frameworks/native/services/surfaceflinger/
H A DDdmConnection.cpp88 jstring str = env->NewStringUTF(name); local
89 env->CallStaticVoidMethod(startClass, startMeth, str, getuid());
90 env->DeleteLocalRef(str);

Completed in 1039 milliseconds

123456789