Searched refs:str (Results 1 - 25 of 413) sorted by relevance

1234567891011>>

/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...]
/frameworks/base/tools/aapt/
H A DAaptConfig.h37 bool parse(const android::String8& str, ConfigDescription* out = NULL);
45 bool parseCommaSeparatedList(const android::String8& str, std::set<ConfigDescription>* outSet);
55 bool parseMcc(const char* str, android::ResTable_config* out = NULL);
56 bool parseMnc(const char* str, android::ResTable_config* out = NULL);
57 bool parseLayoutDirection(const char* str, android::ResTable_config* out = NULL);
58 bool parseSmallestScreenWidthDp(const char* str, android::ResTable_config* out = NULL);
59 bool parseScreenWidthDp(const char* str, android::ResTable_config* out = NULL);
60 bool parseScreenHeightDp(const char* str, android::ResTable_config* out = NULL);
61 bool parseScreenLayoutSize(const char* str, android::ResTable_config* out = NULL);
62 bool parseScreenLayoutLong(const char* str, androi
[all...]
/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/base/tools/aapt2/
H A DResourceUtils.h40 bool extractResourceName(const StringPiece16& str, StringPiece16* outPackage,
48 bool parseResourceName(const StringPiece16& str, ResourceNameRef* outResource,
58 bool tryParseReference(const StringPiece16& str, ResourceNameRef* outReference,
64 bool isReference(const StringPiece16& str);
70 bool tryParseAttributeReference(const StringPiece16& str, ResourceNameRef* outReference);
75 bool isAttributeReference(const StringPiece16& str);
80 bool tryParseBool(const StringPiece16& str, bool* outValue);
83 * Returns a Reference, or None Maybe instance if the string `str` was parsed as a
91 Maybe<Reference> parseStyleParentReference(const StringPiece16& str, std::string* outError);
98 std::unique_ptr<Reference> tryParseReference(const StringPiece16& str, boo
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DStringUtilsTests.cpp43 EXPECT_EQ("500.00B", os.str());
44 os.str("");
46 EXPECT_EQ("45.00KiB", os.str());
47 os.str("");
49 EXPECT_EQ("5.51MiB", os.str());
50 os.str("");
52 EXPECT_EQ("2048.00MiB", os.str());
H A DOpDumperTests.cpp31 EXPECT_STREQ("RectOp [100 x 100]", stream.str().c_str());
33 stream.str("");
35 EXPECT_STREQ(" RectOp [100 x 100]", stream.str().c_str());
40 stream.str("");
42 EXPECT_STREQ(" RectOp [100 x 100] clip=[50 x 50] mode=0", stream.str().c_str());
/frameworks/av/services/audioflinger/
H A DFastCaptureState.cpp33 const char *str = FastThreadState::commandToString(command); local
34 if (str != NULL) {
35 return str;
/frameworks/base/core/java/android/os/
H A DPooledStringReader.java49 String str = mIn.readString();
50 mPool[idx] = str;
51 return str;
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/java/android/net/
H A DDhcpInfo.java53 StringBuffer str = new StringBuffer();
55 str.append("ipaddr "); putAddress(str, ipAddress);
56 str.append(" gateway "); putAddress(str, gateway);
57 str.append(" netmask "); putAddress(str, netmask);
58 str.append(" dns1 "); putAddress(str, dns1);
59 str
[all...]
/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/opt/calendar/tests/src/com/android/calendarcommon2/
H A DDurationTest.java26 private void verifyDuration(String str, argument
31 duration.parse(str);
33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign);
34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks);
35 assertEquals("Duration days is not equal for " + str, days, duration.days);
36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours);
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes);
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds);
/frameworks/wilhelm/src/
H A Dtrace.c49 const char *str = slesutResultToString(result); local
50 if (NULL != str) {
51 SL_LOGW("Leaving %s (%s)", function, str);
112 const char *str = slesutResultToString(result); local
114 if (NULL != str) {
116 &underscore[1], str);
122 if (NULL != str) {
123 SL_LOGW("Leaving %s (%s)", function, str);
/frameworks/compile/mclinker/lib/LD/
H A DDebugString.cpp52 const char* str = strings.data(); local
53 const char* str_end = str + pSection.size();
54 while (str < str_end) {
55 size_t len = string_length(str);
56 m_StringTable.insertString(llvm::StringRef(str, len));
57 str = str + len + 1;
79 const char* str = d_str.data() + offset; local
83 m_StringTable.getOutputOffset(llvm::StringRef(str, string_length(str))));
[all...]
/frameworks/av/media/libmedia/
H A DMediaResourcePolicy.cpp44 String8 str; local
45 str.appendFormat("%s:%s", mType.string(), mValue.string());
46 return str;
H A DAudioParameter.cpp38 char *str = new char[keyValuePairs.length()+1]; local
42 strcpy(str, keyValuePairs.string());
43 char *pair = strtok_r(str, ";", &last);
65 delete[] str;
75 String8 str = String8(""); local
79 str += mParameters.keyAt(i);
80 str += "=";
81 str += mParameters.valueAt(i);
82 if (i < (size - 1)) str += ";";
84 return str;
100 char str[12]; local
111 char str[23]; local
[all...]
/frameworks/base/core/java/android/util/
H A DAtomicFile.java100 FileOutputStream str = null;
102 str = new FileOutputStream(mBaseName);
113 str = new FileOutputStream(mBaseName);
118 return str;
127 public void finishWrite(FileOutputStream str) { argument
128 if (str != null) {
129 FileUtils.sync(str);
131 str.close();
144 public void failWrite(FileOutputStream str) { argument
145 if (str !
[all...]
H A DPrefixPrinter.java47 public void println(String str) { argument
48 mPrinter.println(mPrefix + str);
/frameworks/base/core/java/com/android/internal/os/
H A DAtomicFile.java68 FileOutputStream str = null;
70 str = new FileOutputStream(mBaseName);
81 str = new FileOutputStream(mBaseName);
86 return str;
89 public void finishWrite(FileOutputStream str) { argument
90 if (str != null) {
91 FileUtils.sync(str);
93 str.close();
101 public void failWrite(FileOutputStream str) { argument
102 if (str !
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DAtomicFile.java98 FileOutputStream str = null;
100 str = new FileOutputStream(mBaseName);
107 str = new FileOutputStream(mBaseName);
112 return str;
121 public void finishWrite(FileOutputStream str) { argument
122 if (str != null) {
123 sync(str);
125 str.close();
138 public void failWrite(FileOutputStream str) { argument
139 if (str !
[all...]
/frameworks/av/services/audiopolicy/utilities/convert/
H A Dconvert.h108 static inline bool fromString(const std::string &str, T &result) argument
115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) {
122 if (str.find("-") != std::string::npos
127 std::stringstream ss(str);
131 if (str.substr(0, 2) == "0x") {
146 static inline bool toString(const T &value, std::string &str) argument
156 str = oss.str();
167 static inline bool run(const std::string &str, dstType &result) argument
169 return fromString<dstType>(str, resul
177 run(const srcType &str, std::string &result) argument
234 convertTo(const std::string &str, int16_t &result) argument
266 convertTo(const std::string &str, float &result) argument
296 convertTo(const std::string &str, double &result) argument
328 convertTo(const std::string &str, bool &result) argument
375 convertTo(const std::string &str, std::string &result) argument
[all...]
/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/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/av/include/media/
H A DStringArray.h39 bool push_back(const char* str);
73 void setEntry(int idx, const char* str);
/frameworks/base/tools/aapt2/util/
H A DStringPiece.h42 BasicStringPiece(const BasicStringPiece<TChar>& str);
43 BasicStringPiece(const std::basic_string<TChar>& str);
44 BasicStringPiece(const TChar* str);
45 BasicStringPiece(const TChar* str, size_t len);
48 BasicStringPiece<TChar>& assign(const TChar* str, size_t len);
87 inline BasicStringPiece<TChar>::BasicStringPiece(const BasicStringPiece<TChar>& str) : argument
88 mData(str.mData), mLength(str.mLength) {
92 inline BasicStringPiece<TChar>::BasicStringPiece(const std::basic_string<TChar>& str) : argument
93 mData(str
97 BasicStringPiece(const char* str) argument
102 BasicStringPiece(const char16_t* str) argument
107 BasicStringPiece(const TChar* str, size_t len) argument
120 assign(const TChar* str, size_t len) argument
195 operator <<(::std::ostream& out, const BasicStringPiece<char16_t>& str) argument
249 operator <<(::std::ostream& out, const BasicStringPiece<char>& str) argument
255 operator <<(::std::ostream& out, const std::u16string& str) argument
[all...]

Completed in 691 milliseconds

1234567891011>>