Home
last modified time | relevance | path

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

123

/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()
/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_;
370 const std::string_view& descriptor,
383 const std::string_view& descriptor, in ConflictType()
406 const std::string_view& descriptor,
419 const std::string_view& descriptor, in UndefinedType()
431 const std::string_view& descriptor,
440 const std::string_view& descriptor,
449 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.h89 const RegType* InsertClass(const std::string_view& descriptor,
177 bool MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise)
188 std::string_view AddString(const std::string_view& str);
Dreg_type_cache.cc144 bool RegTypeCache::MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise) { in MatchDescriptor()
178 std::string_view RegTypeCache::AddString(const std::string_view& str) { in AddString()
181 return std::string_view(ptr, str.length()); in AddString()
187 std::string_view sv_descriptor(descriptor); in From()
262 const RegType* RegTypeCache::InsertClass(const std::string_view& descriptor, in InsertClass()
280 reg_type = InsertClass(AddString(std::string_view(descriptor)), klass, precise); in FromClass()
502 const std::string_view& descriptor(type.GetDescriptor()); in Uninitialized()
539 const std::string_view& descriptor(uninit_type.GetDescriptor()); in FromUninitialized()
589 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.h35 inline std::string_view StringViewFromUtf16Length(const char* utf8_data, size_t utf16_length) { in StringViewFromUtf16Length()
39 return std::string_view(utf8_data, utf8_length); in StringViewFromUtf16Length()
75 inline std::string_view DexFile::StringViewByIdx(dex::StringIndex idx) const { in StringViewByIdx()
78 return data != nullptr ? StringViewFromUtf16Length(data, unicode_length) : std::string_view(""); in StringViewByIdx()
/art/test/ti-agent/
Djvmti_helper.h91 void* GetExtensionFunctionVoid(JNIEnv* env, jvmtiEnv* jvmti, const std::string_view& name);
93 template<typename T> T GetExtensionFunction(JNIEnv* env, jvmtiEnv* jvmti, const std::string_view& n… in GetExtensionFunction()
97 jint GetExtensionEventId(jvmtiEnv* jvmti, const std::string_view& name);
Djvmti_helper.cc241 jint GetExtensionEventId(jvmtiEnv* jvmti, const std::string_view& name) { in GetExtensionEventId()
261 void* GetExtensionFunctionVoid(JNIEnv* env, jvmtiEnv* jvmti, const std::string_view& name) { in GetExtensionFunctionVoid()
/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/gc/space/
Dimage_space.h234 static bool VerifyBootClassPathChecksums(std::string_view oat_checksums,
235 std::string_view oat_boot_class_path,
246 std::string_view oat_checksums,
247 std::string_view oat_boot_class_path,
/art/runtime/mirror/
Dclass.cc76 std::unordered_set<std::string_view> mirror_types = { in IsMirrored()
513 bool Class::IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2) { in IsInSamePackage()
519 if (descriptor1.find('/', i) != std::string_view::npos || in IsInSamePackage()
520 descriptor2.find('/', i) != std::string_view::npos) { in IsInSamePackage()
559 std::string_view name, in FindInterfaceMethodWithSignature()
602 ArtMethod* Class::FindInterfaceMethod(std::string_view name, in FindInterfaceMethod()
603 std::string_view signature, in FindInterfaceMethod()
608 ArtMethod* Class::FindInterfaceMethod(std::string_view name, in FindInterfaceMethod()
620 std::string_view name = dex_file.StringViewByIdx(method_id.name_idx_); in FindInterfaceMethod()
661 std::string_view name, in FindClassMethodWithSignature()
[all …]
Dclass.h604 static bool IsInSamePackage(std::string_view descriptor1, std::string_view descriptor2);
911 ArtMethod* FindInterfaceMethod(std::string_view name,
912 std::string_view signature,
916 ArtMethod* FindInterfaceMethod(std::string_view name,
950 ArtMethod* FindClassMethod(std::string_view name,
951 std::string_view signature,
955 ArtMethod* FindClassMethod(std::string_view name,
965 ArtMethod* FindConstructor(std::string_view signature, PointerSize pointer_size)
968 ArtMethod* FindDeclaredVirtualMethodByName(std::string_view name, PointerSize pointer_size)
971 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.cc477 std::string_view key(oat_dex_file->GetDexFileLocation()); in Setup()
480 std::string_view canonical_key(oat_dex_file->GetCanonicalDexFileLocation()); in Setup()
571 std::string_view primary_location; in Setup()
572 std::string_view primary_location_replacement; in Setup()
602 std::string_view oat_dex_file_location(dex_file_location_data, dex_file_location_size); in Setup()
914 std::string_view key = oat_dex_file_location; // References oat file data. in Setup()
915 std::string_view canonical_key(oat_dex_file->GetCanonicalDexFileLocation()); in Setup()
1794 std::string_view key(dex_location); in GetOatDexFile()
1813 std::string_view canonical_key(dex_canonical_location); in GetOatDexFile()
1822 std::string_view key_copy(string_cache_.back()); in GetOatDexFile()
/art/compiler/driver/
Dcompiler_options.cc148 return image_classes_.find(std::string_view(descriptor)) != image_classes_.end(); in IsImageClass()
188 std::string_view filename(boot_image_filename); in IsCoreImageFilename()
190 if (colon_pos != std::string_view::npos) { in IsCoreImageFilename()
/art/libdexfile/external/include/art_api/
Ddex_file_support.h55 explicit DexString(std::string_view str) in DexString()
77 operator std::string_view() const { in string_view() function
80 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()
/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_;

123