Home
last modified time | relevance | path

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

12345678910>>...29

/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/cmds/idmap2/tests/
DRawPrintVisitorTests.cpp38 #define ASSERT_CONTAINS_REGEX(pattern, str) \ argument
40 ASSERT_TRUE(std::regex_search(str, std::regex(pattern))) \
42 << (str) << "--------"; \
66 ASSERT_CONTAINS_REGEX(ADDRESS "504d4449 magic\n", stream.str()); in TEST()
67 ASSERT_CONTAINS_REGEX(ADDRESS "00000008 version\n", stream.str()); in TEST()
70 stream.str()); in TEST()
73 stream.str()); in TEST()
74 ASSERT_CONTAINS_REGEX(ADDRESS "00000001 fulfilled policies: public\n", stream.str()); in TEST()
75 ASSERT_CONTAINS_REGEX(ADDRESS "00000001 enforce overlayable\n", stream.str()); in TEST()
76 ASSERT_CONTAINS_REGEX(ADDRESS "00000004 target entry count", stream.str()); in TEST()
[all …]
/frameworks/av/media/libmediahelper/include/media/
DTypeConverter.h74 static void collectionFromString(const std::string &str, typename Traits::Collection &collection,
77 char *literal = strdup(str.c_str());
91 static bool toString(const typename Traits::Type &value, std::string &str);
93 static bool fromString(const std::string &str, typename Traits::Type &result);
95 static void collectionFromString(const std::string &str,
100 const std::string &str, const char *del = AudioParameter::valueListSeparator);
103 typename Traits::Type mask, std::string &str,
110 static bool toStringImpl(const typename Traits::Type &value, std::string &str);
111 static bool fromStringImpl(const std::string &str, typename Traits::Type &result);
123 const typename Traits::Type &value, std::string &str) { in toStringImpl() argument
[all …]
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/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/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/base/tools/aapt2/util/
DUtil.cpp47 const StringPiece& str, char sep, const std::function<char(char)>& f) { in SplitAndTransform() argument
49 const StringPiece::const_iterator end = std::end(str); in SplitAndTransform()
50 StringPiece::const_iterator start = std::begin(str); in SplitAndTransform()
54 parts.emplace_back(str.substr(start, current).to_string()); in SplitAndTransform()
64 std::vector<std::string> Split(const StringPiece& str, char sep) { in Split() argument
65 return SplitAndTransform(str, sep, nullptr); in Split()
68 std::vector<std::string> SplitAndLowercase(const StringPiece& str, char sep) { in SplitAndLowercase() argument
69 return SplitAndTransform(str, sep, ::tolower); in SplitAndLowercase()
72 bool StartsWith(const StringPiece& str, const StringPiece& prefix) { in StartsWith() argument
73 if (str.size() < prefix.size()) { in StartsWith()
[all …]
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedIntentInfoUtils.java168 String str = sa.getNonConfigurationString( in parseData() local
170 if (str != null) { in parseData()
172 intentInfo.addDataType(str); in parseData()
178 str = sa.getNonConfigurationString( in parseData()
180 if (str != null) { in parseData()
181 intentInfo.addMimeGroup(str); in parseData()
184 str = sa.getNonConfigurationString( in parseData()
186 if (str != null) { in parseData()
187 intentInfo.addDataScheme(str); in parseData()
190 str = sa.getNonConfigurationString( in parseData()
[all …]
/frameworks/base/startop/scripts/iorap/lib/
Diorapd_utils.py31 def _iorapd_path_to_data_file(package: str, activity: str, suffix: str) -> str: argument
41 def compile_perfetto_trace_on_device(package: str, activity: str, argument
42 inodes: str) -> bool: argument
49 def get_iorapd_compiler_trace(package: str, activity: str, dest: str) -> str: argument
57 def iorapd_compiler_install_trace_file(package: str, activity: str, argument
58 input_file: str) -> bool: argument
82 def wait_for_iorapd_finish(package: str, argument
83 activity: str, argument
86 logcat_timestamp: str)->bool: argument
102 str(timeout)])
/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/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/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DQuickStepContract.java141 StringJoiner str = new StringJoiner("|"); in getSystemUiStateString() local
142 str.add((flags & SYSUI_STATE_SCREEN_PINNING) != 0 ? "screen_pinned" : ""); in getSystemUiStateString()
143 str.add((flags & SYSUI_STATE_OVERVIEW_DISABLED) != 0 ? "overview_disabled" : ""); in getSystemUiStateString()
144 str.add((flags & SYSUI_STATE_HOME_DISABLED) != 0 ? "home_disabled" : ""); in getSystemUiStateString()
145 str.add((flags & SYSUI_STATE_SEARCH_DISABLED) != 0 ? "search_disabled" : ""); in getSystemUiStateString()
146 str.add((flags & SYSUI_STATE_NAV_BAR_HIDDEN) != 0 ? "navbar_hidden" : ""); in getSystemUiStateString()
147 str.add((flags & SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED) != 0 ? "notif_visible" : ""); in getSystemUiStateString()
148 str.add((flags & SYSUI_STATE_QUICK_SETTINGS_EXPANDED) != 0 ? "qs_visible" : ""); in getSystemUiStateString()
149 str.add((flags & SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING) != 0 ? "keygrd_visible" : ""); in getSystemUiStateString()
150 str.add((flags & SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING_OCCLUDED) != 0 in getSystemUiStateString()
[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/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.cpp68 ::testing::AssertionResult TestParse(const StringPiece& str) { in TestParse() argument
69 return TestParse(str, ConfigDescription{}); in TestParse()
72 ::testing::AssertionResult TestParse(const StringPiece& str, const ConfigDescription& config) { in TestParse() argument
79 input.append(str.data(), str.size()); in TestParse()
97 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local
98 ASSERT_THAT(str, NotNull()); in TEST_F()
99 EXPECT_THAT(*str, StrValueEq(" hey there ")); in TEST_F()
100 EXPECT_THAT(str->untranslatable_sections, IsEmpty()); in TEST_F()
103 str = test::GetValue<String>(&table_, "string/bar"); in TEST_F()
104 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/startop/scripts/app_startup/lib/
Dapp_runner.py35 def postprocess(self, pre_launch_timestamp: str) -> None: argument
43 def metrics_selector(self, am_start_output: str, argument
44 pre_launch_timestamp: str) -> None: argument
68 package: str, argument
69 activity: Optional[str], argument
70 compiler_filter: Optional[str], argument
95 def get_activity(package: str) -> str: argument
154 def run(self) -> Optional[List[Tuple[str]]]:
184 def launch_app(self, pre_launch_timestamp: str) -> Optional[List[Tuple[str]]]: argument
206 pre_launch_timestamp: str, argument
[all …]
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/util/
DIndentingStringBuilder.java62 public IndentingStringBuilder append(@NonNull String str) { in append() argument
63 applyIndentToString(str); in append()
97 private void applyIndentToString(@NonNull String str) { in applyIndentToString() argument
98 int index = str.indexOf("\n"); in applyIndentToString()
103 if (str.length() > 1) { in applyIndentToString()
104 applyIndentToString(str.substring(index + 1)); in applyIndentToString()
109 String beforeIndentString = str.substring(0, index); in applyIndentToString()
113 if (str.length() > index + 1) { in applyIndentToString()
114 String afterIndentString = str.substring(index + 1); in applyIndentToString()
123 mStringBuilder.append(str); in applyIndentToString()
/frameworks/native/cmds/lshal/
Dtest.cpp135 err.str(""); in SetUp()
136 out.str(""); in SetUp()
173 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\nfoo\nbar")); in TEST_F()
174 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
181 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\nbaz\nquux")); in TEST_F()
182 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
189 EXPECT_THAT(err.str(), HasSubstr("does not exist")); in TEST_F()
196 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\ncalling parent")); in TEST_F()
197 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
204 EXPECT_THAT(out.str(), IsEmpty()); in TEST_F()
[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/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/opt/localepicker/src/com/android/localepicker/
DLocaleHelper.java68 static String toSentenceCase(String str, Locale locale) { in toSentenceCase() argument
69 if (str.isEmpty()) { in toSentenceCase()
70 return str; in toSentenceCase()
72 final int firstCodePointLen = str.offsetByCodePoints(0, 1); in toSentenceCase()
73 return str.substring(0, firstCodePointLen).toUpperCase(locale) in toSentenceCase()
74 + str.substring(firstCodePointLen); in toSentenceCase()
88 static String normalizeForSearch(String str, Locale locale) { in normalizeForSearch() argument
93 return str != null ? str.toUpperCase() : null; in normalizeForSearch()
203 private String removePrefixForCompare(Locale locale, String str) { in removePrefixForCompare() argument
204 if ("ar".equals(locale.getLanguage()) && str.startsWith(PREFIX_ARABIC)) { in removePrefixForCompare()
[all …]

12345678910>>...29