Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 48) sorted by relevance

12

/art/libartbase/base/
Dhiddenapi_stubs.h35 static const std::string_view ToString(Kind api) { in ToString()
48 static bool IsStubsFlag(const std::string_view& api_flag_name) { in IsStubsFlag()
54 static constexpr std::string_view kPublicApiStr{"public-api"};
55 static constexpr std::string_view kSystemApiStr{"system-api"};
56 static constexpr std::string_view kTestApiStr{"test-api"};
57 static constexpr std::string_view kCorePlatformApiStr{"core-platform-api"};
Dstring_view_cpp20.h30 inline bool StartsWith(std::string_view sv, std::string_view prefix) { in StartsWith()
34 inline bool EndsWith(std::string_view sv, std::string_view suffix) { in EndsWith()
Dfile_utils.cc404 && (std::string_view(android_root) != std::string_view(runtime_root)); in RuntimeModuleRootDistinctFromAndroidRoot()
/art/runtime/verifier/
Dreg_type.h188 const std::string_view& GetDescriptor() const { in GetDescriptor()
322 const std::string_view& descriptor, in RegType()
339 const std::string_view descriptor_;
392 const std::string_view& descriptor,
405 const std::string_view& descriptor, in ConflictType()
428 const std::string_view& descriptor,
441 const std::string_view& descriptor, in UndefinedType()
453 const std::string_view& descriptor,
462 const std::string_view& descriptor,
471 const std::string_view& descriptor,
[all …]
Dreg_type.cc58 const std::string_view& descriptor, in PrimitiveType()
66 const std::string_view& descriptor, in Cat1Type()
72 const std::string_view& descriptor, in Cat2Type()
139 const std::string_view& descriptor, in CreateInstance()
154 const std::string_view& descriptor, in CreateInstance()
169 const std::string_view& descriptor, in CreateInstance()
177 const std::string_view& descriptor, in CreateInstance()
199 const std::string_view& descriptor, in CreateInstance()
214 const std::string_view& descriptor, in CreateInstance()
229 const std::string_view& descriptor, in CreateInstance()
[all …]
Dreg_type_cache.h83 const RegType* InsertClass(const std::string_view& descriptor,
167 bool MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise)
178 std::string_view AddString(const std::string_view& str);
Dreg_type_cache.cc138 bool RegTypeCache::MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise) { in MatchDescriptor()
173 std::string_view RegTypeCache::AddString(const std::string_view& str) { in AddString()
176 return std::string_view(ptr, str.length()); in AddString()
182 std::string_view sv_descriptor(descriptor); in From()
257 const RegType* RegTypeCache::InsertClass(const std::string_view& descriptor, in InsertClass()
275 reg_type = InsertClass(AddString(std::string_view(descriptor)), klass, precise); in FromClass()
491 const std::string_view& descriptor(type.GetDescriptor()); in Uninitialized()
528 const std::string_view& descriptor(uninit_type.GetDescriptor()); in FromUninitialized()
578 const std::string_view& descriptor(type.GetDescriptor()); in UninitializedThisArgument()
/art/libdexfile/dex/
Dsignature.cc60 bool Signature::operator==(std::string_view rhs) const { in operator ==()
64 std::string_view tail(rhs); in operator ==()
72 std::string_view param(dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_)); in operator ==()
Dsignature-inl.h39 std::string_view lhs_shorty(lhs_shorty_data, lhs_shorty_len);
45 std::string_view rhs_shorty(rhs_shorty_data, rhs_shorty_len);
59 if (lhs_shorty.find('L', 1) != std::string_view::npos) {
Dsignature.h52 bool operator==(std::string_view rhs) const;
Ddex_file-inl.h34 inline std::string_view StringViewFromUtf16Length(const char* utf8_data, size_t utf16_length) { in StringViewFromUtf16Length()
38 return std::string_view(utf8_data, utf8_length); in StringViewFromUtf16Length()
74 inline std::string_view DexFile::StringViewByIdx(dex::StringIndex idx) const { in StringViewByIdx()
77 return data != nullptr ? StringViewFromUtf16Length(data, unicode_length) : std::string_view(""); in StringViewByIdx()
/art/libdexfile/external/
Ddex_file_supp_test.cc54 EXPECT_EQ(std::string_view(s), "123"); in TEST()
59 EXPECT_TRUE(std::string_view(s).empty()); in TEST()
65 EXPECT_TRUE(std::string_view(s1).empty()); in TEST()
66 EXPECT_EQ(std::string_view(s2), "foo"); in TEST()
72 EXPECT_TRUE(std::string_view(s2).empty()); in TEST()
74 EXPECT_TRUE(std::string_view(s1).empty()); in TEST()
75 EXPECT_EQ(std::string_view(s2), "foo"); in TEST()
81 EXPECT_EQ(std::string_view(s), "bar"); in TEST()
/art/runtime/mirror/
Dclass.cc392 bool Class::IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2) { in IsInSamePackage()
398 if (descriptor1.find('/', i) != std::string_view::npos || in IsInSamePackage()
399 descriptor2.find('/', i) != std::string_view::npos) { in IsInSamePackage()
438 std::string_view name, in FindInterfaceMethodWithSignature()
481 ArtMethod* Class::FindInterfaceMethod(std::string_view name, in FindInterfaceMethod()
482 std::string_view signature, in FindInterfaceMethod()
487 ArtMethod* Class::FindInterfaceMethod(std::string_view name, in FindInterfaceMethod()
499 std::string_view name = dex_file.StringViewByIdx(method_id.name_idx_); in FindInterfaceMethod()
540 std::string_view name, in FindClassMethodWithSignature()
594 ArtMethod* Class::FindClassMethod(std::string_view name, in FindClassMethod()
[all …]
Dclass.h540 static bool IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2);
838 ArtMethod* FindInterfaceMethod(std::string_view name,
839 std::string_view signature,
843 ArtMethod* FindInterfaceMethod(std::string_view name,
877 ArtMethod* FindClassMethod(std::string_view name,
878 std::string_view signature,
882 ArtMethod* FindClassMethod(std::string_view name,
892 ArtMethod* FindConstructor(std::string_view signature, PointerSize pointer_size)
895 ArtMethod* FindDeclaredVirtualMethodByName(std::string_view name, PointerSize pointer_size)
898 ArtMethod* FindDeclaredDirectMethodByName(std::string_view name, PointerSize pointer_size)
[all …]
/art/runtime/
Dcommon_throws.h200 void ThrowNoSuchFieldError(std::string_view scope,
202 std::string_view type,
203 std::string_view name)
206 void ThrowNoSuchFieldException(ObjPtr<mirror::Class> c, std::string_view name)
213 std::string_view name,
Dcommon_throws.cc391 void ThrowNoSuchFieldError(std::string_view scope, in ThrowNoSuchFieldError()
393 std::string_view type, in ThrowNoSuchFieldError()
394 std::string_view name) { in ThrowNoSuchFieldError()
402 void ThrowNoSuchFieldException(ObjPtr<mirror::Class> c, std::string_view name) { in ThrowNoSuchFieldException()
413 std::string_view name, in ThrowNoSuchMethodError()
Doat_file.cc464 std::string_view key(oat_dex_file->GetDexFileLocation()); in Setup()
467 std::string_view canonical_key(oat_dex_file->GetCanonicalDexFileLocation()); in Setup()
842 std::string_view key(dex_file_location_data, dex_file_location_size); in Setup()
843 std::string_view canonical_key(oat_dex_file->GetCanonicalDexFileLocation()); in Setup()
1501 std::string_view abs_location(abs_dex_location); in IsLocationSuffix()
1804 std::string_view key(dex_location); in GetOatDexFile()
1823 std::string_view canonical_key(dex_canonical_location); in GetOatDexFile()
1832 std::string_view key_copy(string_cache_.back()); in GetOatDexFile()
/art/libdexfile/external/include/art_api/
Ddex_file_support.h49 explicit DexString(std::string_view str) in DexString()
71 operator std::string_view() const { in string_view() function
74 return std::string_view(chars, len); in string_view()
/art/tools/hiddenapi/
Dhiddenapi.cc118 std::string_view GetSuperclassDescriptor() const { in GetSuperclassDescriptor()
122 std::set<std::string_view> GetInterfaceDescriptors() const { in GetInterfaceDescriptors()
123 std::set<std::string_view> list; in GetInterfaceDescriptors()
149 static std::string JoinStringSet(const std::set<std::string_view>& s) { in JoinStringSet()
202 inline std::string_view GetName() const { in GetName()
501 HierarchyClass* FindClass(const std::string_view& descriptor) { in FindClass()
536 for (const std::string_view& iface_desc : dex_klass.GetInterfaceDescriptors()) { in BuildClassHierarchy()
545 std::map<std::string_view, HierarchyClass> classes_;
888 const std::string_view command(raw_command); in ParseArgs()
892 const std::string_view option(raw_option); in ParseArgs()
[all …]
/art/test/004-StackWalk/
Dstack_walk_jni.cc43 std::string_view m_name(m->GetName()); in VisitFrame()
/art/libartpalette/system/
Dpalette_fake.cc57 LOG(INFO) << std::string_view(stacks, stacks_len); in PaletteWriteCrashThreadStacks()
Dpalette_android.cc117 LOG(INFO) << std::string_view(stacks, stacks_len); in PaletteWriteCrashThreadStacks()
/art/libelffile/elf/
Delf_debug_reader.h75 section_map_[std::string_view(name)] = &section; in ElfDebugReader()
166 std::unordered_map<std::string_view, const Elf_Shdr*> section_map_;
/art/compiler/driver/
Dcompiler_options.cc149 return image_classes_.find(std::string_view(descriptor)) != image_classes_.end(); in IsImageClass()
/art/tools/art_verifier/
Dart_verifier.cc106 std::string_view option(raw_option, raw_option_length); in ParseCustom()

12