Searched defs:str (Results 76 - 100 of 260) sorted by relevance

1234567891011

/frameworks/base/cmds/statsd/tests/e2e/
H A DPartialBucket_e2e_test.cpp36 string str; local
37 config.SerializeToString(&str);
38 std::vector<uint8_t> configAsVec(str.begin(), str.end());
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DQueryController.java511 private String formatLog(String str) { argument
516 l.append(String.format(". . [%d]: %s", mPatternCounter, str));
518 l.append(String.format(". . [%d]: %s", mPatternCounter, str));
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DPaintTest.java184 private void assertGetTextRunAdvances(String str, int start, int end, argument
191 final float advance = p.getTextRunAdvances(str, start, end, contextStart, contextEnd,
194 char chars[] = str.toCharArray();
200 final float firstPartAdvance = p.getTextRunAdvances(str, start, start + c,
202 final float secondPartAdvance = p.getTextRunAdvances(str, start + c, end,
224 assertEquals(advance, p.measureText(str, start, end), 1.0f);
226 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f);
229 p.getTextWidths(str, start, end, widths);
/frameworks/base/packages/services/PacProcessor/jni/
H A Dcom_android_pacprocessor_PacNative.cpp36 String8 str(message);
37 ALOGD("Alert: %s", str.string());
40 String8 str(message);
41 ALOGE("Error: %s", str.string());
50 const jchar* str = env->GetStringCritical(jstr, 0); local
51 String16 str16(reinterpret_cast<const char16_t*>(str),
53 env->ReleaseStringCritical(jstr, str);
58 const char16_t* str = string.string(); local
61 return env->NewString(reinterpret_cast<const jchar*>(str), len);
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
H A DCertUtils.java217 * @param str the base64-encoded string
221 public static byte[] decodeBase64(String str) throws CertParsingException { argument
223 return Base64.getDecoder().decode(str);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DSecureBoxTest.java355 private static byte[] getBytes(String str) { argument
356 return str.getBytes(StandardCharsets.UTF_8);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
H A DTestData.java284 private static X509Certificate decodeBase64Cert(String str) { argument
286 byte[] bytes = Base64.getDecoder().decode(str);
/frameworks/base/telecomm/java/android/telecom/
H A DCallAudioState.java285 private static void listAppend(StringBuffer buffer, String str) { argument
289 buffer.append(str);
/frameworks/base/tools/aapt/
H A DStringPool.cpp76 String8 str = pool->string8ObjectAt(s); local
77 printf("String #" ZD ": %s\n", (ZD_TYPE) s, str.string());
387 #define ENCODE_LENGTH(str, chrsz, strSize) \
392 *(str)++ = maxMask | (((strSize)>>((chrsz)*8))&maxSize); \
394 *(str)++ = strSize; \
/frameworks/base/tools/aapt2/
H A DLocale.cpp68 static inline bool is_alpha(const std::string& str) { argument
69 return std::all_of(std::begin(str), std::end(str), ::isalpha);
72 static inline bool is_number(const std::string& str) { argument
73 return std::all_of(std::begin(str), std::end(str), ::isdigit);
76 bool LocaleValue::InitFromFilterString(const StringPiece& str) { argument
79 std::vector<std::string> parts = util::SplitAndLowercase(str, '_');
H A DStringPool.h42 std::string str; member in struct:aapt::StyleString
165 Ref MakeRef(const android::StringPiece& str);
169 Ref MakeRef(const android::StringPiece& str, const Context& context);
175 StyleRef MakeRef(const StyleString& str);
179 StyleRef MakeRef(const StyleString& str, const Context& context);
213 Ref MakeRefImpl(const android::StringPiece& str, const Context& context, bool unique);
/frameworks/base/tools/aapt2/test/
H A DCommon.h42 inline ResourceName ParseNameOrDie(const android::StringPiece& str) { argument
44 CHECK(ResourceUtils::ParseResourceName(str, &ref)) << "invalid resource name: " << str;
48 inline ConfigDescription ParseConfigOrDie(const android::StringPiece& str) { argument
50 CHECK(ConfigDescription::Parse(str, &config)) << "invalid configuration: " << str;
/frameworks/base/tools/split-select/
H A DRuleGenerator.cpp106 char str[RESTABLE_MAX_LOCALE_LEN]; local
107 group[index].config.getBcp47Locale(str);
108 locale->stringArgs.add(String8(str));
/frameworks/compile/libbcc/lib/
H A DRSEmbedInfo.cpp69 std::string str; local
70 llvm::raw_string_ostream s(str);
183 module->getModuleIdentifier().c_str(), slangVersion.str().c_str(),
189 return str;
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
H A DLocation.java198 public static Location fromUserReadableString(String str) { argument
199 int glue = str.indexOf('-');
203 String start = str.substring(0, glue);
204 String end = str.substring(glue + 1);
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/
H A DMultiArgTestAdapter.java36 for(String str : strings) {
37 sb.append(str == null ? "??" : str);
61 public static void setClassStr(TextView view, String str) { argument
62 view.setText(str);
/frameworks/minikin/libs/minikin/
H A DStringPiece.h31 StringPiece(const std::string& str) : mData(str.data()), mLength(str.size()) {} argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipConnectionBase.java144 public void proceedAfterWildChar(String str) { argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneSwitcherTest.java45 static void failAndStack(String str) { argument
46 fail(str + "\n" + SubscriptionMonitorTest.stack());
98 private void failAndStack(String str) { argument
99 SubscriptionMonitorTest.failAndStack(str);
150 private void log(String str) { argument
151 Rlog.d(LOG_TAG + " " + mTestName, str);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DTelephonyNetworkFactoryTest.java54 private void log(String str) { argument
55 Rlog.d(LOG_TAG + " " + mTestName, str);
/frameworks/support/compat/src/androidTest/java/androidx/core/os/
H A DLocaleListCompatTest.java399 private Locale forLanguageTag(String str) { argument
401 return Locale.forLanguageTag(str);
403 return LocaleHelper.forLanguageTag(str);
/frameworks/av/drm/mediacas/plugins/mock/
H A DMockCasPlugin.cpp173 status_t MockCasPlugin::provision(const String8 &str) { argument
174 ALOGV("provision: provisionString=%s", str.string());
/frameworks/av/include/media/
H A DTypeConverter.h106 static void collectionFromString(const std::string &str, typename Traits::Collection &collection, argument
109 char *literal = strdup(str.c_str());
123 static bool toString(const typename Traits::Type &value, std::string &str);
125 static bool fromString(const std::string &str, typename Traits::Type &result);
127 static void collectionFromString(const std::string &str,
132 const std::string &str, const char *del = AudioParameter::valueListSeparator);
135 uint32_t mask, std::string &str, const char *del = AudioParameter::valueListSeparator);
147 inline bool TypeConverter<Traits>::toString(const typename Traits::Type &value, std::string &str) argument
151 str = mTable[i].literal;
157 str
162 fromString(const std::string &str, typename Traits::Type &result) argument
175 collectionFromString(const std::string &str, typename Traits::Collection &collection, const char *del) argument
191 maskFromString(const std::string &str, const char *del) argument
206 maskToString(uint32_t mask, std::string &str, const char *del) argument
[all...]
/frameworks/av/media/libeffects/config/src/
H A DEffectsConfig.cpp59 bool stringToUuid(const char *str, effect_uuid_t *uuid) argument
63 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
/frameworks/av/media/libeffects/factory/
H A DEffectsConfigLoader.c110 char *str; local
121 str = strstr(lib_path_out, "/lib/soundfx/");
122 if (str == NULL) {
127 len = str - lib_path_out;

Completed in 601 milliseconds

1234567891011