/aosp14/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 78 bool EndsWith(StringPiece str, StringPiece suffix) { in EndsWith() 85 StringPiece TrimLeadingWhitespace(StringPiece str) { in TrimLeadingWhitespace() 113 StringPiece TrimWhitespace(StringPiece str) { in TrimWhitespace() 132 static int IsJavaNameImpl(StringPiece str) { in IsJavaNameImpl() 143 bool IsJavaClassName(StringPiece str) { in IsJavaClassName() 147 bool IsJavaPackageName(StringPiece str) { in IsJavaPackageName() 151 static int IsAndroidNameImpl(StringPiece str) { in IsAndroidNameImpl() 175 bool IsAndroidPackageName(StringPiece str) { in IsAndroidPackageName() 190 bool IsAndroidSplitName(StringPiece str) { in IsAndroidSplitName() 251 bool VerifyJavaStringFormat(StringPiece str) { in VerifyJavaStringFormat() [all …]
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | BidiFormatter.java | 307 public String markAfter(CharSequence str, TextDirectionHeuristic heuristic) { in markAfter() 355 public boolean isRtl(String str) { in isRtl() 366 public boolean isRtl(CharSequence str) { in isRtl() 418 public @Nullable CharSequence unicodeWrap(@Nullable CharSequence str, in unicodeWrap() 450 public String unicodeWrap(String str, TextDirectionHeuristic heuristic) { in unicodeWrap() 477 public String unicodeWrap(String str, boolean isolate) { in unicodeWrap() 490 public CharSequence unicodeWrap(CharSequence str, boolean isolate) { in unicodeWrap() 501 public String unicodeWrap(String str) { in unicodeWrap() 512 public CharSequence unicodeWrap(CharSequence str) { in unicodeWrap() 551 private static int getExitDir(CharSequence str) { in getExitDir() [all …]
|
/aosp14/frameworks/base/tools/streaming_proto/ |
H A D | string_utils.cpp | 11 to_camel_case(const string& str) in to_camel_case() 40 make_constant_name(const string& str) in make_constant_name() 64 file_base_name(const string& str) in file_base_name() 80 replace_string(const string& str, const char replace, const char with) in replace_string() 93 split(const string& str, const char delimiter) in split() 112 stripPrefix(const string& str, const string& prefix) in stripPrefix()
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | ResourceUtils.cpp | 200 bool IsReference(StringPiece str) { in IsReference() 237 bool IsAttributeReference(StringPiece str) { in IsAttributeReference() 298 std::optional<Reference> ParseXmlAttributeName(StringPiece str) { in ParseXmlAttributeName() 345 std::unique_ptr<Item> TryParseNullOrEmpty(StringPiece str) { in TryParseNullOrEmpty() 483 std::optional<bool> ParseBool(StringPiece str) { in ParseBool() 494 std::optional<uint32_t> ParseInt(StringPiece str) { in ParseInt() 503 std::optional<ResourceId> ParseResourceId(StringPiece str) { in ParseResourceId() 519 std::optional<int> ParseSdkVersion(StringPiece str) { in ParseSdkVersion() 545 std::unique_ptr<BinaryPrimitive> TryParseBool(StringPiece str) { in TryParseBool() 558 std::unique_ptr<BinaryPrimitive> TryParseInt(StringPiece str) { in TryParseInt() [all …]
|
H A D | ResourceParser_test.cpp | 68 ::testing::AssertionResult TestParse(StringPiece str) { in TestParse() 97 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local 116 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local 139 StyledString* str = test::GetValue<StyledString>(&table_, "string/foo"); in TEST_F() local 158 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local 174 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local 225 String* str = test::GetValue<String>(&table_, "string/foo1"); in TEST_F() local 251 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local 270 String* str = test::GetValue<String>(&table_, "string/foo"); in TEST_F() local 788 String* str = ValueCast<String>(array->elements[0].get()); in TEST_F() local [all …]
|
/aosp14/frameworks/base/tools/bit/ |
H A D | util.cpp | 148 escape_quotes(const char* str) in escape_quotes() 163 escape_for_commandline(const char* str) in escape_for_commandline() 180 trim(const string& str) in trim() 195 starts_with(const string& str, const string& prefix) in starts_with() 201 ends_with(const string& str, const string& suffix) in ends_with() 211 split_lines(vector<string>* result, const string& str) in split_lines()
|
/aosp14/frameworks/base/tools/aapt2/test/ |
H A D | Builders.cpp | 56 ResourceTableBuilder& ResourceTableBuilder::AddString(StringPiece name, StringPiece str) { in AddString() 61 StringPiece str) { in AddString() 67 StringPiece str) { in AddString() 190 StyleBuilder& StyleBuilder::SetParent(StringPiece str) { in SetParent() 195 StyleBuilder& StyleBuilder::AddItem(StringPiece str, std::unique_ptr<Item> value) { in AddItem() 200 StyleBuilder& StyleBuilder::AddItem(StringPiece str, const ResourceId& id, in AddItem() 211 StyleableBuilder& StyleableBuilder::AddItem(StringPiece str, const std::optional<ResourceId>& id) { in AddItem() 221 std::unique_ptr<xml::XmlResource> BuildXmlDom(StringPiece str) { in BuildXmlDom() 232 StringPiece str) { in BuildXmlDomForPackageName()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | ResilientAtomicFile.java | 61 private void finalizeOutStream(FileOutputStream str) throws IOException { in finalizeOutStream() 118 public void finishWrite(FileOutputStream str) throws IOException { in finishWrite() 156 public void failWrite(FileOutputStream str) { in failWrite() 220 public void failRead(FileInputStream str, Exception e) { in failRead()
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_os_Trace.cpp | 29 inline static void sanitizeString(char* str) { in sanitizeString() 62 withString(env, nameStr, [tag, value](const char* str) { in android_os_Trace_nativeTraceCounter() 69 withString(env, nameStr, [tag](const char* str) { in android_os_Trace_nativeTraceBegin() 80 withString(env, nameStr, [tag, cookie](const char* str) { in android_os_Trace_nativeAsyncTraceBegin() 87 withString(env, nameStr, [tag, cookie](const char* str) { in android_os_Trace_nativeAsyncTraceEnd() 118 withString(env, nameStr, [tag](const char* str) { in android_os_Trace_nativeInstant()
|
/aosp14/system/core/libutils/ |
H A D | String16.cpp | 78 char16_t* str = (char16_t*)buf->data(); in allocFromUTF16() local 193 char16_t* str = (char16_t*)buf->data(); in setTo() local 221 char16_t* str = static_cast<char16_t*>(buf->data()); in append() local 249 char16_t* str = static_cast<char16_t*>(buf->data()); in insert() local 259 const char16_t* str = string(); in findFirst() local 273 const char16_t* str = string(); in findLast() local 369 const char16_t* str = string(); in replaceAll() local
|
H A D | String8.cpp | 49 char* str = static_cast<char*>(buf->data()); in getEmptyString() local 69 char* str = (char*)buf->data(); in allocFromUTF8() local 342 char* str = (char*)buf->data(); in real_append() local 355 char* str = (char*)buf->data(); in lockBuffer() local 376 char* str = (char*)buf->data(); in unlockBuffer() local 463 const char*const str = mString; in getPathDir() local 475 const char*const str = mString; in walkPath() local 505 const char* const str = mString; in find_extension() local 537 const char* const str = mString; in getBasePath() local
|
/aosp14/frameworks/base/tools/aapt2/text/ |
H A D | Printer.cpp | 29 Printer& Printer::Println(StringPiece str) { in Println() 38 Printer& Printer::Print(StringPiece str) { in Print()
|
/aosp14/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 3852 String str = get(KEY_AUTO_EXPOSURE_LOCK); in getAutoExposureLock() local 3924 String str = get(KEY_AUTO_WHITEBALANCE_LOCK); in getAutoWhiteBalanceLock() local 3975 String str = get(KEY_ZOOM_SUPPORTED); in isZoomSupported() local 4013 String str = get(KEY_SMOOTH_ZOOM_SUPPORTED); in isSmoothZoomSupported() local 4289 String str = get(KEY_VIDEO_STABILIZATION); in getVideoStabilization() local 4308 private ArrayList<String> split(String str) { in split() 4322 private ArrayList<Integer> splitInt(String str) { in splitInt() 4335 private void splitInt(String str, int[] output) { in splitInt() 4378 private ArrayList<Size> splitSize(String str) { in splitSize() 4394 private Size strToSize(String str) { in strToSize() [all …]
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | AaptUtil.cpp | 24 Vector<String8> split(const String8& str, const char sep) { in split() 42 Vector<String8> splitAndLowerCase(const String8& str, const char sep) { in splitAndLowerCase()
|
H A D | ResourceFilter.cpp | 12 WeakResourceFilter::parse(const String8& str) in parse() 145 StrongResourceFilter::parse(const String8& str) { in parse()
|
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/protolog/common/ |
H A D | LogDataTypeTest.java | 39 String str = "%b %d %x %f %s %%"; in parseFormatString() local 52 String str = "%q"; in parseFormatString_invalid() local
|
/aosp14/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
H A D | MainActivity.java | 92 String str = view.getText().toString(); in loadPropIntText() local 105 String str = view.getText().toString(); in loadFloatText() local 117 String str = view.getText().toString(); in loadIntText() local
|
/aosp14/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseStressTest.java | 66 String str = new String(ch); in testSingleThreadInsertDelete() local 88 String str = new String(ch); in testOutOfSpace() local
|
H A D | DatabaseStatementTest.java | 237 String str = c.getString(strCol); in testStatementMultipleBindings() local 239 assertEquals(Long.toHexString(i), str); in testStatementMultipleBindings() local 272 String str = c.getString(strCol); in run() local 274 assertEquals(Long.toHexString(i), str); in run() local
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 174 static std::vector<std::string> SplitAndTransform(StringPiece str, char sep, Func&& f) { in SplitAndTransform() 189 std::vector<std::string> SplitAndLowercase(StringPiece str, char sep) { in SplitAndLowercase() 204 if (auto str = pool.stringAt(idx); str.ok()) { in GetString16() local 211 if (auto str = pool.string8At(idx); str.ok()) { in GetString() local
|
H A D | Locale.cpp | 61 static inline bool is_alpha(const std::string& str) { in is_alpha() 65 static inline bool is_number(const std::string& str) { in is_number() 69 bool LocaleValue::InitFromFilterString(StringPiece str) { in InitFromFilterString()
|
/aosp14/frameworks/base/tools/aapt2/io/ |
H A D | StringStream.cpp | 24 StringInputStream::StringInputStream(StringPiece str) : str_(str), offset_(0u) { in StringInputStream() 54 StringOutputStream::StringOutputStream(std::string* str, size_t buffer_capacity) in StringOutputStream()
|
/aosp14/frameworks/base/tools/split-select/ |
H A D | Rule.cpp | 25 inline static void indentStr(String8& str, int indent) { in indentStr() 43 String8 str; in toJson() local
|
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | FastXmlSerializerTest.java | 64 private boolean checkPreserved(String description, String str) { in checkPreserved() 124 private boolean check(String description, String str) throws Exception { in check()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocaleHelper.java | 44 public static String toSentenceCase(String str, Locale locale) { in toSentenceCase() 61 public static String normalizeForSearch(String str, Locale locale) { in normalizeForSearch() 233 private String removePrefixForCompare(Locale locale, String str) { in removePrefixForCompare()
|