Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 629) sorted by relevance

12345678910>>...26

/frameworks/base/tools/split-select/
DRule.cpp25 inline static void indentStr(String8& str, int indent) { in indentStr() argument
27 str.append(" "); in indentStr()
43 String8 str; in toJson() local
44 indentStr(str, indent); in toJson()
45 str.append("{\n"); in toJson()
47 indentStr(str, indent); in toJson()
48 str.append("\"op\": \""); in toJson()
51 str.append("ALWAYS_TRUE"); in toJson()
54 str.append("GREATER_THAN"); in toJson()
57 str.append("LESS_THAN"); in toJson()
[all …]
/frameworks/base/tools/streaming_proto/
Dstring_utils.cpp11 to_camel_case(const string& str) in to_camel_case() argument
14 const int N = str.size(); in to_camel_case()
18 char c = str[i]; in to_camel_case()
40 make_constant_name(const string& str) in make_constant_name() argument
43 const int N = str.size(); in make_constant_name()
46 char c = str[i]; in make_constant_name()
64 file_base_name(const string& str) in file_base_name() argument
66 size_t start = str.rfind('/'); in file_base_name()
72 size_t end = str.find('.', start); in file_base_name()
74 end = str.size(); in file_base_name()
[all …]
/frameworks/base/tools/aapt2/util/
DUtil.cpp42 const StringPiece& str, char sep, const std::function<char(char)>& f) { in SplitAndTransform() argument
44 const StringPiece::const_iterator end = std::end(str); in SplitAndTransform()
45 StringPiece::const_iterator start = std::begin(str); in SplitAndTransform()
49 parts.emplace_back(str.substr(start, current).to_string()); in SplitAndTransform()
59 std::vector<std::string> Split(const StringPiece& str, char sep) { in Split() argument
60 return SplitAndTransform(str, sep, nullptr); in Split()
63 std::vector<std::string> SplitAndLowercase(const StringPiece& str, char sep) { in SplitAndLowercase() argument
64 return SplitAndTransform(str, sep, ::tolower); in SplitAndLowercase()
67 bool StartsWith(const StringPiece& str, const StringPiece& prefix) { in StartsWith() argument
68 if (str.size() < prefix.size()) { in StartsWith()
[all …]
/frameworks/base/tools/aapt/
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, android::ResTable_config* out = NULL);
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/asm/
Dpvmp3_mdct_18_gcc.s83 str r9,[r0],#4
87 str lr,[r1],#-4
99 str r0,[r5,#0x40]
102 str r0,[r5,#0x38]
105 str r1,[r5,#0x30]
108 str r12,[r5,#0x28]
110 str r12,[r5,#0x20]
112 str r12,[r5,#0x18]
114 str r12,[r5,#0x10]
116 str r12,[r5,#8]
[all …]
Dpvmp3_dct_16_gcc.s56 str r2,[sp,#0x14]
65 str r3,[sp]
87 str r4,[sp,#4]
95 str lr,[sp,#0x10]
112 str r9,[sp,#0xc]
115 str r9,[sp,#0x18]
120 str r9,[sp,#8]
140 str r8,[r0]
143 str r8,[r0,#0x20]
148 str r3,[r0,#0x10]
[all …]
/frameworks/base/core/java/android/text/
DBidiFormatter.java307 public String markAfter(CharSequence str, TextDirectionHeuristic heuristic) { in markAfter() argument
308 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter()
310 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter()
313 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter()
336 public String markBefore(CharSequence str, TextDirectionHeuristic heuristic) { in markBefore() argument
337 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore()
339 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore()
342 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore()
355 public boolean isRtl(String str) { in isRtl() argument
356 return isRtl((CharSequence) str); in isRtl()
[all …]
/frameworks/av/media/libmediahelper/include/media/
Dconvert.h108 static inline bool fromString(const std::string &str, T &result)
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)
156 str = oss.str();
167 static inline bool run(const std::string &str, dstType &result)
169 return fromString<dstType>(str, result);
177 static inline bool run(const srcType &str, std::string &result)
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DStringPiece.h54 BasicStringPiece(const BasicStringPiece<TChar>& str);
55 BasicStringPiece(const std::basic_string<TChar>& str); // NOLINT(google-explicit-constructor)
56 BasicStringPiece(const TChar* str); // NOLINT(google-explicit-constructor)
57 BasicStringPiece(const TChar* str, size_t len);
60 BasicStringPiece<TChar>& assign(const TChar* str, size_t len);
101 inline BasicStringPiece<TChar>::BasicStringPiece(const BasicStringPiece<TChar>& str) in BasicStringPiece() argument
102 : data_(str.data_), length_(str.length_) {} in BasicStringPiece()
105 inline BasicStringPiece<TChar>::BasicStringPiece(const std::basic_string<TChar>& str) in BasicStringPiece() argument
106 : data_(str.data()), length_(str.length()) {} in BasicStringPiece()
109 inline BasicStringPiece<char>::BasicStringPiece(const char* str) in BasicStringPiece() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DAnswerToResetTest.java44 String str = "3B02145"; in testAnswerToRestOddLength() local
45 AnswerToReset atr = AnswerToReset.parseAtr(str); in testAnswerToRestOddLength()
52 String str = "3B"; in testAnswerToRestTooShortLength() local
53 AnswerToReset atr = AnswerToReset.parseAtr(str); in testAnswerToRestTooShortLength()
60 String str = "3B00"; in testAnswerToRestNoInterfaceByteNoHistoricalByte() local
61 AnswerToReset atr = AnswerToReset.parseAtr(str); in testAnswerToRestNoInterfaceByteNoHistoricalByte()
73 String str = "3F909580B1FE001F4297"; in testAnswerToRestNoHistoricalByte() local
74 AnswerToReset atr = AnswerToReset.parseAtr(str); in testAnswerToRestNoHistoricalByte()
100 String str = "3F078031A073BE211797"; in testAnswerToRestNoInterfaceByte() local
101 AnswerToReset atr = AnswerToReset.parseAtr(str); in testAnswerToRestNoInterfaceByte()
[all …]
/frameworks/base/tools/bit/
Dutil.cpp148 escape_quotes(const char* str) in escape_quotes() argument
151 while (*str) { in escape_quotes()
152 if (*str == '"') { in escape_quotes()
156 result += *str; in escape_quotes()
163 escape_for_commandline(const char* str) in escape_for_commandline() argument
165 if (strchr(str, '"') != NULL || strchr(str, ' ') != NULL in escape_for_commandline()
166 || strchr(str, '\t') != NULL) { in escape_for_commandline()
167 return escape_quotes(str); in escape_for_commandline()
169 return str; in escape_for_commandline()
180 trim(const string& str) in trim() argument
[all …]
/frameworks/base/core/java/android/net/
DDhcpInfo.java53 StringBuffer str = new StringBuffer(); in toString() local
55 str.append("ipaddr "); putAddress(str, ipAddress); in toString()
56 str.append(" gateway "); putAddress(str, gateway); in toString()
57 str.append(" netmask "); putAddress(str, netmask); in toString()
58 str.append(" dns1 "); putAddress(str, dns1); in toString()
59 str.append(" dns2 "); putAddress(str, dns2); in toString()
60 str.append(" DHCP server "); putAddress(str, serverAddress); in toString()
61 str.append(" lease ").append(leaseDuration).append(" seconds"); in toString()
63 return str.toString(); in toString()
/frameworks/base/tools/aapt2/
DResourceUtils.h42 bool ParseResourceName(const android::StringPiece& str, ResourceNameRef* out_resource,
53 bool ParseReference(const android::StringPiece& str, ResourceNameRef* out_reference,
60 bool IsReference(const android::StringPiece& str);
67 bool ParseAttributeReference(const android::StringPiece& str, ResourceNameRef* out_reference);
73 bool IsAttributeReference(const android::StringPiece& str);
91 Maybe<bool> ParseBool(const android::StringPiece& str);
96 Maybe<uint32_t> ParseInt(const android::StringPiece& str);
101 Maybe<ResourceId> ParseResourceId(const android::StringPiece& str);
106 Maybe<int> ParseSdkVersion(const android::StringPiece& str);
119 Maybe<Reference> ParseStyleParentReference(const android::StringPiece& str, std::string* out_error);
[all …]
DResourceParser_test.cpp66 ::testing::AssertionResult TestParse(const StringPiece& str) { in TestParse() argument
67 return TestParse(str, ConfigDescription{}); in TestParse()
70 ::testing::AssertionResult TestParse(const StringPiece& str, const ConfigDescription& config) { in TestParse() argument
77 input.append(str.data(), str.size()); in TestParse()
95 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local
96 ASSERT_THAT(str, NotNull()); in TEST_F()
97 EXPECT_THAT(*str, StrValueEq(" hey there ")); in TEST_F()
98 EXPECT_THAT(str->untranslatable_sections, IsEmpty()); in TEST_F()
101 str = test::GetValue<String>(&table_, "string/bar"); in TEST_F()
102 ASSERT_THAT(str, NotNull()); in TEST_F()
[all …]
/frameworks/base/core/jni/
Dandroid_os_Trace.cpp27 inline static void sanitizeString(char* str) { in sanitizeString() argument
28 while (*str) { in sanitizeString()
29 char c = *str; in sanitizeString()
31 *str = ' '; in sanitizeString()
33 str++; in sanitizeString()
55 withString(env, nameStr, [tag, value](char* str) { in android_os_Trace_nativeTraceCounter() argument
56 atrace_int64(tag, str, value); in android_os_Trace_nativeTraceCounter()
62 withString(env, nameStr, [tag](char* str) { in android_os_Trace_nativeTraceBegin() argument
63 atrace_begin(tag, str); in android_os_Trace_nativeTraceBegin()
73 withString(env, nameStr, [tag, cookie](char* str) { in android_os_Trace_nativeAsyncTraceBegin() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DQuickStepContract.java109 StringJoiner str = new StringJoiner("|"); in getSystemUiStateString() local
110 str.add((flags & SYSUI_STATE_SCREEN_PINNING) != 0 ? "screen_pinned" : ""); in getSystemUiStateString()
111 str.add((flags & SYSUI_STATE_OVERVIEW_DISABLED) != 0 ? "overview_disabled" : ""); in getSystemUiStateString()
112 str.add((flags & SYSUI_STATE_HOME_DISABLED) != 0 ? "home_disabled" : ""); in getSystemUiStateString()
113 str.add((flags & SYSUI_STATE_SEARCH_DISABLED) != 0 ? "search_disabled" : ""); in getSystemUiStateString()
114 str.add((flags & SYSUI_STATE_NAV_BAR_HIDDEN) != 0 ? "navbar_hidden" : ""); in getSystemUiStateString()
115 str.add((flags & SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED) != 0 ? "notif_visible" : ""); in getSystemUiStateString()
116 str.add((flags & SYSUI_STATE_QUICK_SETTINGS_EXPANDED) != 0 ? "qs_visible" : ""); in getSystemUiStateString()
117 str.add((flags & SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING) != 0 ? "keygrd_visible" : ""); in getSystemUiStateString()
118 str.add((flags & SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING_OCCLUDED) != 0 in getSystemUiStateString()
[all …]
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DAttributionKey.java92 final StringBuilder str = new StringBuilder("AttributionKey("); in toString() local
94 str.append(" uid="); in toString()
95 str.append(mUid); in toString()
98 str.append(" packages=["); in toString()
100 str.append(' '); in toString()
101 str.append(pkg); in toString()
103 str.append(" ]"); in toString()
106 str.append(" specialApp="); in toString()
107 str.append(mSpecialApp.name()); in toString()
109 str.append(" )"); in toString()
[all …]
/frameworks/native/cmds/lshal/
Dtest.cpp137 err.str(""); in SetUp()
138 out.str(""); in SetUp()
175 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\nfoo\nbar")); in TEST_F()
176 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
183 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\nbaz\nquux")); in TEST_F()
184 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
191 EXPECT_THAT(err.str(), HasSubstr("does not exist")); in TEST_F()
198 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\ncalling parent")); in TEST_F()
199 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
206 EXPECT_THAT(out.str(), IsEmpty()); in TEST_F()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java141 StringBuffer str = new StringBuffer ("States: "); in validateNetworkDisconnection() local
142 str.append(printStates()); in validateNetworkDisconnection()
144 str.append(String.format(" Initial state should be CONNECTED, but it is %s.", in validateNetworkDisconnection()
146 mReason = str.toString(); in validateNetworkDisconnection()
151 str.append(String.format(" Last state should be DISCONNECTED, but it is %s", in validateNetworkDisconnection()
153 mReason = str.toString(); in validateNetworkDisconnection()
167 str.append(String.format(" Transition state from %s to %s is not valid", in validateNetworkDisconnection()
169 mReason = str.toString(); in validateNetworkDisconnection()
173 mReason = str.toString(); in validateNetworkDisconnection()
182 StringBuffer str = new StringBuffer("States "); in validateNetworkConnection() local
[all …]
/frameworks/base/startop/scripts/app_startup/
Dquery_compiler_filter.py46 def parse_options(argv: List[str] = None): argument
63 def remote_dumpsys_package(package: str, simulate: bool) -> str: argument
83 ParseTree = NamedTuple('ParseTree', [('label', str), ('children', List['ParseTree'])])
85 ParseResult = NamedTuple('ParseResult', [('remainder', List[str]), ('tree', ParseTree)])
87 def find_parse_subtree(parse_tree: ParseTree, match_regex: str) -> ParseTree: argument
98 def find_parse_children(parse_tree: ParseTree, match_regex: str) -> Iterable[ParseTree]: argument
103 def parse_tab_subtree(label: str, str_lines: List[str], separator=' ', indent=-1) -> ParseResult: argument
143 def parse_tab_tree(str_tree: str, separator=' ', indentation_level=-1) -> ParseTree: argument
159 …f find_first_compiler_filter(dexopt_state: DexoptState, package: str, instruction_set: str) -> str: argument
173 …ilerFilterInfo = NamedTuple('CompilerFilterInfo', [('isa', str), ('status', str), ('reason', str)])
[all …]
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp156 const char* str = str8.string(); in computeScaledStringWidth() local
157 return computeScaledStringWidth(str, strlen(str)); in computeScaledStringWidth()
169 float TextRenderer::computeScaledStringWidth(const char* str, in computeScaledStringWidth() argument
173 size_t chi = glyphIndex(str[i]); in computeScaledStringWidth()
189 const char* str = str8.string(); in drawString() local
190 size_t len = strlen(str); // again, unsure about String8 handling in drawString()
200 size_t chi = glyphIndex(str[i]); in drawString()
254 float xpos, float ypos, const String8& str) { in drawWrappedString() argument
255 ALOGV("drawWrappedString %.3f,%.3f '%s'", xpos, ypos, str.string()); in drawWrappedString()
278 float stringWidth = computeScaledStringWidth(str); in drawWrappedString()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java53 public static ArrayList<Byte> stringToByteArrayList(String str) { in stringToByteArrayList() argument
54 if (str == null) { in stringToByteArrayList()
60 ByteBuffer encoded = encoder.encode(CharBuffer.wrap(str)); in stringToByteArrayList()
94 public static byte[] stringToByteArray(String str) { in stringToByteArray() argument
95 if (str == null) { in stringToByteArray()
98 return str.getBytes(StandardCharsets.UTF_8); in stringToByteArray()
213 public static String addEnclosingQuotes(String str) { in addEnclosingQuotes() argument
214 return "\"" + str + "\""; in addEnclosingQuotes()
226 public static ArrayList<Byte> hexOrQuotedStringToBytes(String str) { in hexOrQuotedStringToBytes() argument
227 if (str == null) { in hexOrQuotedStringToBytes()
[all …]
/frameworks/base/core/java/android/util/
DSpline.java216 StringBuilder str = new StringBuilder(); in toString() local
218 str.append("MonotoneCubicSpline{["); in toString()
221 str.append(", "); in toString()
223 str.append("(").append(mX[i]); in toString()
224 str.append(", ").append(mY[i]); in toString()
225 str.append(": ").append(mM[i]).append(")"); in toString()
227 str.append("]}"); in toString()
228 return str.toString(); in toString()
279 StringBuilder str = new StringBuilder(); in toString() local
281 str.append("LinearSpline{["); in toString()
[all …]
/frameworks/av/media/libmediahelper/
DAudioParameter.cpp59 char *str = new char[keyValuePairs.length()+1]; in AudioParameter() local
63 strcpy(str, keyValuePairs.string()); in AudioParameter()
64 char *pair = strtok_r(str, ";", &last); in AudioParameter()
86 delete[] str; in AudioParameter()
96 String8 str = String8(""); in toStringImpl() local
100 str += mParameters.keyAt(i); in toStringImpl()
102 str += "="; in toStringImpl()
103 str += mParameters.valueAt(i); in toStringImpl()
105 if (i < (size - 1)) str += ";"; in toStringImpl()
107 return str; in toStringImpl()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DTestData.java429 String str = INSECURE_CERT_XML_HEADER; in getInsecureCertXmlBytesWithEndpoint1() local
430 str += serial; in getInsecureCertXmlBytesWithEndpoint1()
431 str += INSECURE_CERT_XML_BODY; in getInsecureCertXmlBytesWithEndpoint1()
432 str += INSECURE_CERT_XML_ENDPOINT1_CERT; in getInsecureCertXmlBytesWithEndpoint1()
433 str += INSECURE_CERT_XML_FOOTER; in getInsecureCertXmlBytesWithEndpoint1()
434 return str.getBytes(StandardCharsets.UTF_8); in getInsecureCertXmlBytesWithEndpoint1()
438 String str = INSECURE_CERT_XML_HEADER; in getInsecureCertXmlBytesWithEndpoint2() local
439 str += serial; in getInsecureCertXmlBytesWithEndpoint2()
440 str += INSECURE_CERT_XML_BODY; in getInsecureCertXmlBytesWithEndpoint2()
441 str += INSECURE_CERT_XML_ENDPOINT2_CERT; in getInsecureCertXmlBytesWithEndpoint2()
[all …]

12345678910>>...26