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

12

/art/test/ImageLayoutB/
H A DImageLayoutB.java20 public static String string = "ASDF_UNIQUE_STRING"; field in class:MyClass
/art/test/utils/python/testgen/
H A Dutils.py23 import string namespace
34 map(lambda n: itertools.product(string.ascii_lowercase, repeat=n),
46 Takes a string returns the same string sans empty lines
/art/tools/
H A Danalyze-init-failures.py23 import string namespace
H A Dgenerate_operator_out.py22 import string namespace
/art/runtime/gc/
H A Dheap_test.cc34 std::string error_msg;
75 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); local
77 array->Set<false>(j, string);
/art/cmdline/
H A Dtoken_range.h23 #include <string>
38 // Short-hand for a vector of strings. A single string and a token is synonymous.
39 using TokenList = std::vector<std::string>;
113 // Create a token range by splitting a string. Each separator gets their own token.
116 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { argument
119 std::string tok;
120 for (auto&& c : string) {
130 new_token_list.push_back(std::string() + sep);
166 const std::string
[all...]
H A Dcmdline_types.h30 #include <string>
46 // The default specialization will always fail parsing the type from a string.
59 Result Parse(const std::string& args) {
73 Result Parse(const std::string& option) {
89 return Result::Failure(std::string("not a valid jdwp provider: ") + option);
99 Result Parse(const std::string& arg) {
105 return Result::Failure(std::string("not a valid memory value, or not divisible by ")
112 // Parse a string of the form /[0-9]+[kKmMgG]?/, which is used to specify
116 // "s" should point just past the "-Xm?" part of the string.
128 // so make sure our string start
[all...]
/art/compiler/optimizing/
H A Dssa_builder.h88 void AddUninitializedString(HNewInstance* string) { argument
94 if (!ContainsElement(uninitialized_strings_, string)) {
95 uninitialized_strings_.push_back(string);
H A Dsharpening.cc31 #include "mirror/string.h"
259 ObjPtr<mirror::String> string = nullptr; local
262 // Compiling boot image. Resolve the string and allocate it if needed, to ensure
263 // the string will be added to the boot image.
265 string = class_linker->ResolveString(string_index, dex_cache);
266 CHECK(string != nullptr);
276 string = class_linker->LookupString(string_index, dex_cache.Get());
277 if (string != nullptr) {
278 if (runtime->GetHeap()->ObjectIsInBootImageSpace(string)) {
287 // AOT app compilation. Try to lookup the string withou
[all...]
/art/tools/ahat/src/main/com/android/ahat/
H A DDoc.java33 void menu(DocString string); argument
43 void println(DocString string); argument
48 void big(DocString string); argument
H A DHtmlDoc.java56 public void menu(DocString string) { argument
57 ps.format("<div class=\"menu\">%s</div>", string.html());
68 public void println(DocString string) { argument
69 ps.print(string.html());
/art/runtime/native/
H A Djava_lang_String.cc25 #include "mirror/string-inl.h"
26 #include "mirror/string.h"
54 ThrowNullPointerException("string arg == null");
101 Handle<mirror::String> string = hs.NewHandle(soa.Decode<mirror::String>(java_this)); local
102 ObjPtr<mirror::String> result = mirror::String::DoReplace(soa.Self(), string, old_c, new_c);
/art/test/100-reflect2/src/
H A DMain.java178 // Sort the return values by their string values since the order is undefined by the spec.
273 private static void ZBCDLFIJSV(boolean z, byte b, char c, double d, String string, float f, int i, long l, short s) { argument
274 System.out.println(z + " " + b + " " + c + " " + d + " " + " " + string + " " + f + " " + i + " " + l + " " + s);
/art/test/961-default-iface-resolution-gen/util-src/
H A Dgenerate_java.py38 import string namespace
/art/test/964-default-iface-init-gen/util-src/
H A Dgenerate_java.py38 import string namespace
/art/tools/dexfuzz/src/dexfuzz/program/
H A DIdCreator.java117 Log.errorAndQuit("Did not create necessary descriptor string before finding "
131 private int findStringDataInsertionPoint(String string) { argument
134 if (stringData.getSize() > 0 && stringData.getString().compareTo(string) >= 0) {
182 // Search for (or create) the string representing the method name.
261 // Search for (or create) the string representing the class descriptor.
321 private int createString(String string) { argument
329 int newStringIdx = findStringDataInsertionPoint(string);
333 newStringData.setSize(string.length());
334 newStringData.setString(string);
369 string, newStringId
379 findString(String string) argument
396 findOrCreateString(String string) argument
[all...]
/art/compiler/driver/
H A Dcompiler_driver_test.cc118 const mirror::String* string = dex_cache->GetResolvedString(dex::StringIndex(i)); local
119 EXPECT_TRUE(string != nullptr) << "string_idx=" << i;
189 std::unordered_set<std::string>* GetCompiledMethods() OVERRIDE {
190 return new std::unordered_set<std::string>({
223 std::unique_ptr<std::unordered_set<std::string>> expected(GetCompiledMethods());
227 std::string name = m.PrettyMethod(true);
261 std::unordered_set<std::string> GetExpectedMethodsForClass(const std::string& clazz) {
263 return std::unordered_set<std::string>({
267 return std::unordered_set<std::string>({
[all...]
/art/runtime/mirror/
H A Dstring-inl.h19 #include "string.h"
51 // Sets string count in the allocation code path to ensure it is guarded by a CAS.
60 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); local
61 string->SetCount(count_);
62 DCHECK(!string->IsCompressed() || kUseStringCompression);
69 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS.
80 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); local
81 string->SetCount(count_);
82 DCHECK(!string->IsCompressed() || kUseStringCompression);
85 if (string
116 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); local
147 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); local
268 String* string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); local
287 AllocFromString(Thread* self, int32_t string_length, Handle<String> string, int32_t offset, gc::AllocatorType allocator_type) argument
[all...]
H A Dobject_test.cc42 #include "string-inl.h"
63 Handle<String> string(
65 ASSERT_EQ(expected_utf16_length, string->GetLength());
66 ASSERT_EQ(string->IsValueNull(), false);
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)) ||
72 EXPECT_EQ(utf16_expected[i], string->CharAt(i));
74 EXPECT_EQ(expected_hash, string->GetHashCode());
390 // Test the empty string
576 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); local
[all...]
/art/test/968-default-partial-compile-gen/util-src/
H A Dgenerate_smali.py39 import string namespace
171 const-string v5, "Unexpected error occurred which creating {farg} instance"
183 const-string v5, "{tree} calls %s\\n"
193 const-string v5, "{tree} threw AbstractMethodError"
197 const-string v5, "{tree} threw NoSuchMethodError"
201 const-string v5, "{tree} threw IncompatibleClassChangeError"
400 const-string v0, "{tree}"
/art/test/970-iface-super-resolution-gen/util-src/
H A Dgenerate_smali.py38 import string namespace
159 const-string v3, "Testing {tree}"
164 const-string v3, "Success: testing {tree}"
173 const-string v4, "Failure: testing {tree}"
240 const-string v0, "Should not be called"
252 const-string v1, "Test failures"
314 const-string v1, "{class_name} -> {iface}.super.getCalledInterface(): "
329 const-string v1, "{class_name} -> {iface}.super.getCalledInterface(): NoSuchMethodError"
333 const-string v1, "{class_name} -> {iface}.super.getCalledInterface(): IncompatibleClassChangeError"
338 const-string v
[all...]
/art/test/971-iface-super/util-src/
H A Dgenerate_smali.py39 import string namespace
165 const-string v5, "Unexpected error occurred which creating {farg} instance"
250 const-string v1, "{class_name}.call(v) should never get called!"
284 const-string v1, "Calling {iface_name}.super.call() on {tree}"
287 const-string v1, "No exception thrown for {iface_name}.super.call() on {tree}"
296 const-string v1, "AbstractMethodError thrown for {iface_name}.super.call() on {tree}"
300 const-string v1, "NoSuchMethodError thrown for {iface_name}.super.call() on {tree}"
304 const-string v1, "IncompatibleClassChangeError thrown for {iface_name}.super.call() on {tree}"
309 const-string v1, "Unknown error thrown for {iface_name}.super.call() on {tree}"
/art/runtime/entrypoints/
H A Dentrypoint_utils-inl.h752 ObjPtr<mirror::String> string = referrer->GetDexCache()->GetResolvedString(string_idx); local
753 if (UNLIKELY(string == nullptr)) {
756 string = class_linker->ResolveString(string_idx, dex_cache);
758 return string;
764 ObjPtr<mirror::String> string = referrer->GetDexCache()->GetResolvedString(string_idx); local
765 if (UNLIKELY(string == nullptr)) {
769 string = class_linker->ResolveString(string_idx, dex_cache);
771 return string;
/art/runtime/
H A Dintern_table.cc30 #include "mirror/string-inl.h"
105 Utf8String string(utf16_length,
109 return strong_interns_.Find(string);
351 // The string compression occurs on regular ASCII with same exact range,
376 for (GcRoot<mirror::String>& string : set) {
377 CHECK(Find(string.Read()) == nullptr) << "Already found " << string.Read()->ToModifiedUtf8();
394 for (GcRoot<mirror::String>& string : table) {
395 combined.Insert(string);
412 LOG(FATAL) << "Attempting to remove non-interned string " <<
426 Find(const Utf8String& string) argument
[all...]
/art/runtime/interpreter/mterp/
H A Dgen_mterp.py22 import sys, string, re, time namespace
23 from string import Template

Completed in 740 milliseconds

12