Searched defs:string (Results 1 - 16 of 16) sorted by relevance

/art/runtime/gc/
H A Dheap_test.cc55 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); local
57 array->Set<false>(j, string);
/art/tools/
H A Dgenerate-operator-out.py22 import string namespace
H A Dcpplint.py85 import string namespace
205 'runtime/string',
261 'string', 'strstream', 'strstream.h', 'tempbuf.h', 'tree.h', 'typeinfo',
410 """Matches the string with the pattern, caching the compiled regexp."""
420 """Searches the string for the pattern, caching the compiled regexp."""
507 The empty string if the header is in the right order, or an
560 self.errors_by_category = {} # string to int dict storing error counts
588 filters: A string of comma-separated filters (eg "+whitespace/indent").
668 filters: A string of comma-separated filters (eg "whitespace/indent").
873 category: A string use
[all...]
/art/test/100-reflect2/src/
H A DMain.java255 private static void ZBCDLFIJSV(boolean z, byte b, char c, double d, String string, float f, int i, long l, short s) { argument
256 System.out.println(z + " " + b + " " + c + " " + d + " " + " " + string + " " + f + " " + i + " " + l + " " + s);
/art/compiler/driver/
H A Dcompiler_driver_test.cc113 const mirror::String* string = dex_cache->GetResolvedString(i); local
114 EXPECT_TRUE(string != NULL) << "string_idx=" << i;
/art/compiler/
H A Delf_patcher.cc32 #include "mirror/string-inl.h"
40 const std::string& oat_location,
42 std::string* error_msg) {
61 std::string* error_msg) {
103 mirror::String* string = class_linker->ResolveString(patch->GetDexFile(), patch->GetStringIdx(), local
105 CHECK(string != nullptr) << patch->GetDexFile().GetLocation() << " " << patch->GetStringIdx();
106 return string;
H A Dimage_writer.cc52 #include "mirror/string-inl.h"
75 bool ImageWriter::Write(const std::string& image_filename,
77 const std::string& oat_filename,
78 const std::string& oat_location,
94 std::string error_msg;
422 std::string error_msg;
495 // Normal string < comparison through the chars_ array.
535 // Look up the string in the array.
545 // Characters of strings which are non equal prefix of another string (not the same string)
606 mirror::String* string = obj->AsString(); local
[all...]
/art/runtime/mirror/
H A Dstring.cc17 #include "string-inl.h"
80 String* string = Alloc(self, utf16_length); local
81 if (UNLIKELY(string == nullptr)) {
84 CharArray* array = const_cast<CharArray*>(string->GetCharArray());
91 string->SetHashCode(hash_code);
93 string->ComputeHashCode();
95 return string;
106 String* string = Alloc(self, utf16_length); local
107 if (UNLIKELY(string == nullptr)) {
111 const_cast<uint16_t*>(string
128 String* string = down_cast<String*>(GetJavaLangString()->AllocObject(self)); local
[all...]
H A Dobject_test.cc41 #include "string-inl.h"
62 Handle<String> string(
64 ASSERT_EQ(expected_utf16_length, string->GetLength());
65 ASSERT_TRUE(string->GetCharArray() != NULL);
66 ASSERT_TRUE(string->GetCharArray()->GetData() != NULL);
67 // strlen is necessary because the 1-character string "\x00\x00" is interpreted as ""
68 ASSERT_TRUE(string->Equals(utf8_in) || (expected_utf16_length == 1 && strlen(utf8_in) == 0));
69 ASSERT_TRUE(string->Equals(StringPiece(utf8_in)) || (expected_utf16_length == 1 && strlen(utf8_in) == 0));
71 EXPECT_EQ(utf16_expected[i], string->CharAt(i));
73 EXPECT_EQ(expected_hash, string
574 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); local
[all...]
/art/runtime/verifier/
H A Dreg_type_test.cc407 std::string expected = "Unresolved Reference: java.lang.DoesNotExist";
458 RegType& string = cache_new.JavaLangString(); local
460 EXPECT_TRUE(string.Merge(Object, &cache_new).IsJavaLangObject());
/art/runtime/native/
H A Ddalvik_system_VMRuntime.cc142 static const char* DefaultToDot(const std::string& class_path) {
216 typedef std::map<std::string, mirror::String*> StringTable;
222 mirror::String* string = const_cast<mirror::Object*>(*root)->AsString(); local
223 table[string->ToModifiedUtf8()] = string;
230 mirror::String* string = dex_cache->GetResolvedString(string_idx); local
231 if (string != NULL) {
236 string = strings[utf8];
237 if (string == NULL) {
240 // LOG(INFO) << "VMRuntime.preloadDexCaches resolved string
387 mirror::String* string = dex_cache->GetResolvedString(i); local
[all...]
/art/oatdump/
H A Doatdump.cc22 #include <string>
281 std::string error_msg;
310 std::string error_msg;
369 std::string error_msg;
1039 std::string image_filename = image_space_.GetImageFilename();
1040 std::string oat_location = ImageHeader::GetOatLocationFromImageLocation(image_filename);
1043 std::string error_msg;
1134 mirror::String* string = value->AsString(); local
1135 os << StringPrintf("%p String: %s\n", string,
1136 PrintableString(string
[all...]
/art/runtime/
H A Dcheck_jni.cc33 #include "mirror/string-inl.h"
71 std::string msg;
132 std::string class_name(method->GetDeclaringClassDescriptor());
133 if (!vm->trace.empty() && class_name.find(vm->trace) != std::string::npos) {
365 * The format string is a sequence of the following characters,
416 std::string msg;
537 std::string methodName(PrettyMethod(traceMethod, false));
809 std::string type(PrettyTypeOf(exception));
831 " string: '%s'", errorKind, utf8, bytes);
1485 static jsize GetStringLength(JNIEnv* env, jstring string) { argument
1504 ReleaseStringChars(JNIEnv* env, jstring string, const jchar* chars) argument
1520 GetStringUTFLength(JNIEnv* env, jstring string) argument
1525 GetStringUTFChars(JNIEnv* env, jstring string, jboolean* isCopy) argument
1537 ReleaseStringUTFChars(JNIEnv* env, jstring string, const char* utf) argument
1729 ReleaseStringCritical(JNIEnv* env, jstring string, const jchar* carray) argument
[all...]
H A Delf_file.cc133 std::string* error_msg, uint8_t* requested_base) {
151 ElfFile* ElfFile::Open(File* file, int prot, int flags, std::string* error_msg) {
160 bool ElfFile::Setup(int prot, int flags, std::string* error_msg) {
328 byte** target, std::string* error_msg) {
369 bool ElfFile::CheckSectionsExist(std::string* error_msg) const {
452 bool ElfFile::SetMap(MemMap* map, std::string* error_msg) {
770 const byte* ElfFile::FindDynamicSymbolAddress(const std::string& symbol_name) const {
786 const Elf32_Sym* ElfFile::FindDynamicSymbol(const std::string& symbol_name) const {
848 const std::string& symbol_name,
927 const std::string
949 byte* string = strings + i; local
[all...]
H A Dclass_linker.cc25 #include <string>
63 #include "mirror/string-inl.h"
104 std::string temp;
328 // Set up array classes for string, field, method
608 std::string* error_msg) {
610 std::string dex2oat(Runtime::Current()->GetCompilerExecutable());
613 std::string boot_image_option("--boot-image=");
623 std::string dex_file_option("--dex-file=");
626 std::string oat_fd_option("--oat-fd=");
629 std::string oat_location_optio
5626 mirror::String* string = intern_table_->InternStrong(utf16_length, utf8_data); local
[all...]
/art/runtime/hprof/
H A Dhprof.cc21 * heap, and some analysis tools require that the class and string data
31 #include <string.h>
444 // Write the string and class tables, and any stack traces, to the header.
488 std::string msg(StringPrintf("Couldn't dump heap; writing \"%s\" failed: %s",
544 // ID: class name string ID
557 for (std::pair<std::string, HprofStringId> p : strings_) {
558 const std::string& string = p.first; local
567 // ID: ID for this string
568 // U1*: UTF8 characters for string (NO
617 LookupStringId(const char* string) argument
621 LookupStringId(const std::string& string) argument
[all...]

Completed in 2533 milliseconds