Home | History | Annotate | Download | only in runtime

Lines Matching defs:string

26 #include <string>
127 // This is the java.lang.String hashcode for convenience, not interoperability.
140 "Ljava/lang/String;",
146 "[Ljava/lang/String;",
240 // Setup the char[] class to be used for String.
245 // Setup String.
247 mirror::String::SetClass(java_lang_String.get());
248 java_lang_String->SetObjectSize(sizeof(mirror::String));
307 // Set up array classes for string, field, method
324 // DexCache instances. Needs to be after String, Field, Method arrays since AllocDexCache uses
339 // Object, String and DexCache need to be rerun through FindSystemClass to finish init
345 mirror::Class* String_class = FindSystemClass("Ljava/lang/String;");
347 CHECK_EQ(java_lang_String->GetObjectSize(), sizeof(mirror::String));
543 bool ClassLinker::GenerateOatFile(const std::string& dex_filename,
545 const std::string& oat_cache_filename) {
546 std::string dex2oat_string(GetAndroidRoot());
553 std::string boot_image_option_string("--boot-image=");
557 std::string dex_file_option_string("--dex-file=");
561 std::string oat_fd_option_string("--oat-fd=");
565 std::string oat_location_option_string("--oat-location=");
569 std::string oat_compiler_filter_string("-compiler-filter:");
677 const OatFile* ClassLinker::FindOpenedOatFileFromDexLocation(const std::string& dex_location,
692 const DexFile* ClassLinker::FindDexFileInOatLocation(const std::string& dex_location,
694 const std::string& oat_location) {
737 const DexFile* ClassLinker::FindOrCreateOatFileForDexLocation(const std::string& dex_location,
739 const std::string& oat_location) {
748 bool Init(const std::string& filename) {
798 const DexFile* ClassLinker::FindOrCreateOatFileForDexLocationLocked(const std::string& dex_location,
800 const std::string& oat_location) {
849 const std::string& dex_location,
878 std::string image_file(image_header.GetImageRoot(
896 const std::string& dex_location,
907 const DexFile* ClassLinker::FindDexFileInOatFileFromDexLocation(const std::string& dex_location,
919 std::string odex_filename(OatFile::DexFilenameToOdexFilename(dex_location));
940 std::string cache_location(GetDalvikCacheFilenameOrDie(dex_location));
961 std::string oat_cache_filename(GetDalvikCacheFilenameOrDie(dex_location));
965 const OatFile* ClassLinker::FindOpenedOatFileFromOatLocation(const std::string& oat_location) {
976 const OatFile* ClassLinker::FindOatFileFromOatLocation(const std::string& oat_location) {
981 const OatFile* ClassLinker::FindOatFileFromOatLocationLocked(const std::string& oat_location) {
1034 // Special case of setting up the String class early so that we can test arbitrary objects
1036 mirror::String::SetClass(GetClassRoot(kJavaLangString));
1043 const std::string& dex_file_location(dex_cache->GetLocation()->ToModifiedUtf8());
1075 // String class root was set above
1160 mirror::String::ResetClass();
1186 SirtRef<mirror::String>
1191 SirtRef<mirror::ObjectArray<mirror::String> >
1301 DCHECK_NE(*descriptor, '\0') << "descriptor is empty string";
1350 std::string class_name_string(DescriptorToDot(descriptor));
1395 } else if (strcmp(descriptor, "Ljava/lang/String;") == 0) {
1621 if (std::string::npos != PrettyMethod(method).find("fibonacci")) {
1985 std::string location(dex_file.GetLocation());
2032 // "[Ljava/lang/String;".
2056 // java/lang/String -- so we need to look for it there. (The
2188 std::string printable_type(PrintableChar(type));
2197 std::string source;
2361 // Now try binary searching the string/type index.
2435 std::string error_msg(StringPrintf("Rejecting class %s that attempts to sub-class erroneous class %s",
2466 std::string error_msg;
2644 mirror::Class* ClassLinker::CreateProxyClass(mirror::String* name,
2761 std::string interfaces_field_name(StringPrintf("java.lang.Class[] %s.interfaces",
2765 std::string throws_field_name(StringPrintf("java.lang.Class[][] %s.throws",
2774 std::string descriptor(GetDescriptorForProxy(klass.get()));
2780 std::string ClassLinker::GetDescriptorForProxy(const mirror::Class* proxy_class) {
2782 mirror::String* name = proxy_class->GetName();
2838 CHECK_EQ(mh.GetSignature(), std::string("(Ljava/lang/reflect/InvocationHandler;)V"));
3742 // same basic group? then sort by string.
3957 mirror::String* ClassLinker::ResolveString(const DexFile& dex_file,
3960 mirror::String* resolved = dex_cache->GetResolvedString(string_idx);
3967 mirror::String* string = intern_table_->InternStrong(utf16_length, utf8_data);
3968 dex_cache->SetResolvedString(string_idx, string);
3969 return string;
4023 // Scan using method_idx, this saves string compares but will only hit for matching dex
4044 std::string signature(dex_file.CreateMethodSignature(method_id.proto_idx_, NULL));
4074 std::string signature(dex_file.CreateMethodSignature(method_id.proto_idx_, NULL));