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

12

/art/build/
H A DAndroid.common_utils.mk21 # Convert a string into an uppercase string.
23 # $(1): a string which should be made uppercase
24 art-string-to-uppercase = $(shell echo $(1) | tr '[:lower:]' '[:upper:]')
/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/runtime/gc/
H A Dheap_test.cc56 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); local
58 array->Set<false>(j, string);
/art/tools/
H A Danalyze-init-failures.py23 import string namespace
H A Dgenerate-operator-out.py22 import string namespace
/art/compiler/optimizing/
H A Dssa_builder.h83 void AddUninitializedString(HNewInstance* string) { argument
89 if (!ContainsElement(uninitialized_strings_, string)) {
90 uninitialized_strings_.push_back(string);
H A Dsharpening.cc29 #include "mirror/string.h"
176 // Compiling boot image. Resolve the string and allocate it if needed.
178 mirror::String* string = class_linker->ResolveString(dex_file, string_index, dex_cache); local
179 CHECK(string != nullptr);
193 mirror::String* string = dex_cache->GetResolvedString(string_index); local
194 is_in_dex_cache = (string != nullptr);
195 if (string != nullptr && runtime->GetHeap()->ObjectIsInBootImageSpace(string)) {
197 address = reinterpret_cast64<uint64_t>(string);
199 // Note: If the string i
209 mirror::String* string = class_linker->LookupString(dex_file, string_index, dex_cache); local
[all...]
/art/runtime/native/
H A Djava_lang_DexCache.cc75 jobject string) {
79 dex_cache->SetResolvedString(string_index, soa.Decode<mirror::String*>(string));
74 DexCache_setResolvedString(JNIEnv* env, jobject javaDexCache, jint string_index, jobject string) argument
/art/cmdline/
H A Dtoken_range.h22 #include <string>
36 // Short-hand for a vector of strings. A single string and a token is synonymous.
37 using TokenList = std::vector<std::string>;
111 // Create a token range by splitting a string. Each separator gets their own token.
114 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { argument
117 std::string tok;
118 for (auto&& c : string) {
128 new_token_list.push_back(std::string() + sep);
164 const std::string
[all...]
H A Dcmdline_types.h26 #include <string>
38 // The default specialization will always fail parsing the type from a string.
51 Result Parse(const std::string& args) {
78 Result Parse(const std::string& options) {
87 const std::string s;
89 std::vector<std::string> pairs;
94 for (const std::string& jdwp_option : pairs) {
95 std::string::size_type equals_pos = jdwp_option.find('=');
96 if (equals_pos == std::string::npos) {
120 Result ParseJdwpOption(const std::string
[all...]
/art/tools/ahat/src/
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/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-generated/util-src/
H A Dgenerate_java.py38 import string namespace
/art/test/964-default-iface-init-generated/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.cc112 const mirror::String* string = dex_cache->GetResolvedString(i); local
113 EXPECT_TRUE(string != nullptr) << "string_idx=" << i;
180 std::unordered_set<std::string>* GetCompiledMethods() OVERRIDE {
181 return new std::unordered_set<std::string>({
215 std::unique_ptr<std::unordered_set<std::string>> expected(GetCompiledMethods());
219 std::string name = PrettyMethod(&m, true);
240 std::string key = ProfileCompilationInfo::GetProfileDexFileKey(dex_file->GetLocation());
247 std::unordered_set<std::string> GetExpectedMethodsForClass(const std::string& clazz) {
249 return std::unordered_set<std::string>({
[all...]
/art/runtime/mirror/
H A Dstring-inl.h27 #include "string.h"
40 // Sets string count in the allocation code path to ensure it is guarded by a CAS.
49 String* string = down_cast<String*>(obj); local
50 string->SetCount(count_);
57 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS.
68 String* string = down_cast<String*>(obj); local
69 string->SetCount(count_);
70 uint16_t* value = string->GetValue();
84 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS.
95 String* string local
118 String* string = down_cast<String*>(obj); local
195 String* string = Alloc<kIsInstrumented>(self, byte_length, allocator_type, visitor); local
211 AllocFromString(Thread* self, int32_t string_length, Handle<String> string, int32_t offset, gc::AllocatorType allocator_type) argument
[all...]
H A Dobject_test.cc40 #include "string-inl.h"
61 Handle<String> string(
63 ASSERT_EQ(expected_utf16_length, string->GetLength());
64 ASSERT_TRUE(string->GetValue() != nullptr);
65 // strlen is necessary because the 1-character string "\x00\x00" is interpreted as ""
66 ASSERT_TRUE(string->Equals(utf8_in) || (expected_utf16_length == 1 && strlen(utf8_in) == 0));
67 ASSERT_TRUE(string->Equals(StringPiece(utf8_in)) ||
70 EXPECT_EQ(utf16_expected[i], string->CharAt(i));
72 EXPECT_EQ(expected_hash, string->GetHashCode());
398 // Test the empty string
584 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); local
[all...]
H A Dstring.cc17 #include "string-inl.h"
27 #include "string-inl.h"
82 String* String::AllocFromStrings(Thread* self, Handle<String> string, Handle<String> string2) { argument
83 int32_t length = string->GetLength();
92 memcpy(new_value, string->GetValue(), length * sizeof(uint16_t));
101 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); local
102 if (UNLIKELY(string == nullptr)) {
105 uint16_t* array = string->GetValue();
107 return string;
125 String* string local
[all...]
/art/test/968-default-partial-compile-generated/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-generated/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/interpreter/mterp/
H A Dgen_mterp.py22 import sys, string, re, time namespace
23 from string import Template
/art/runtime/verifier/
H A Dreg_type_test.cc432 std::string expected = "Unresolved Reference: java.lang.DoesNotExist";
489 const RegType& string = cache_new.JavaLangString(); local
491 EXPECT_TRUE(string.Merge(Object, &cache_new).IsJavaLangObject());

Completed in 534 milliseconds

12