Home
last modified time | relevance | path

Searched refs:String (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/art/test/004-StackWalk/src/
DMain.java20 String shlemiel() { in shlemiel()
21 String s0 = new String("0"); in shlemiel()
22 String s1 = new String("1"); in shlemiel()
23 String s2 = new String("2"); in shlemiel()
24 String s3 = new String("3"); in shlemiel()
25 String s4 = new String("4"); in shlemiel()
26 String s5 = new String("5"); in shlemiel()
27 String s6 = new String("6"); in shlemiel()
28 String s7 = new String("7"); in shlemiel()
29 String s8 = new String("8"); in shlemiel()
[all …]
/art/test/100-reflect2/
Dexpected.txt34String(), java.lang.String(int,int,char[]), public java.lang.String(java.lang.String), public java…
35String.count, private int java.lang.String.hashCode, private final int java.lang.String.offset, pr…
36String._getChars(int,int,char[],int), public char java.lang.String.charAt(int), public int java.la…
57 [class [Ljava.lang.String;]
58 hello (class java.lang.String)
62 [boolean, byte, char, double, class java.lang.String, float, int, long, short]
67 (class java.lang.String)
68 yz (class java.lang.String)
/art/test/072-precise-gc/src/
DMain.java20 public static void main(String[] args) { in main()
37 String str0 = generateString("String", 0); in populate()
38 String str1 = generateString("String", 1); in populate()
39 String str2 = generateString("String", 2); in populate()
40 String str3 = generateString("String", 3); in populate()
41 String str4 = generateString("String", 4); in populate()
42 String str5 = generateString("String", 5); in populate()
43 String str6 = generateString("String", 6); in populate()
44 String str7 = generateString("String", 7); in populate()
45 String str8 = generateString("String", 8); in populate()
[all …]
/art/runtime/
Dintern_table.h39 class String; variable
58 mirror::String* InternStrong(int32_t utf16_length, const char* utf8_data)
62 mirror::String* InternStrong(const char* utf8_data)
66 mirror::String* InternStrong(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
69 mirror::String* InternWeak(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
74 bool ContainsWeak(mirror::String* s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
102 std::size_t operator()(const GcRoot<mirror::String>& root) const NO_THREAD_SAFETY_ANALYSIS;
103 bool operator()(const GcRoot<mirror::String>& a, const GcRoot<mirror::String>& b) const
108 void MakeEmpty(GcRoot<mirror::String>& item) const { in MakeEmpty()
109 item = GcRoot<mirror::String>(); in MakeEmpty()
[all …]
Dintern_table.cc62 mirror::String* old_ref = root.Read<kWithoutReadBarrier>(); in VisitRoots()
64 mirror::String* new_ref = root.Read<kWithoutReadBarrier>(); in VisitRoots()
85 mirror::String* InternTable::LookupStrong(mirror::String* s) { in LookupStrong()
89 mirror::String* InternTable::LookupWeak(mirror::String* s) { in LookupWeak()
99 mirror::String* InternTable::InsertStrong(mirror::String* s) { in InsertStrong()
105 new_strong_intern_roots_.push_back(GcRoot<mirror::String>(s)); in InsertStrong()
111 mirror::String* InternTable::InsertWeak(mirror::String* s) { in InsertWeak()
120 void InternTable::RemoveStrong(mirror::String* s) { in RemoveStrong()
124 void InternTable::RemoveWeak(mirror::String* s) { in RemoveWeak()
133 mirror::String* InternTable::InsertStrongFromTransaction(mirror::String* s) { in InsertStrongFromTransaction()
[all …]
Dintern_table_test.cc33 Handle<mirror::String> foo_1(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F()
34 Handle<mirror::String> foo_2(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F()
35 Handle<mirror::String> foo_3( in TEST_F()
36 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
37 Handle<mirror::String> bar(hs.NewHandle(intern_table.InternStrong(3, "bar"))); in TEST_F()
55 Handle<mirror::String> foo( in TEST_F()
56 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
78 void Expect(const mirror::String* s) { in Expect()
87 mutable std::vector<const mirror::String*> expected_;
103 Handle<mirror::String> hello( in TEST_F()
[all …]
/art/test/052-verifier-fun/src/
DMain.java23 static public void main(String[] args) { in main()
35 String[] arrayOne; in arrayCheck1()
38 arrayOne = new String[1]; in arrayCheck1()
49 String[] arrayOne; in arrayCheck1b()
53 arrayOne = new String[1]; in arrayCheck1b()
66 String[][] arrayOne; in arrayCheck2()
67 String[][] arrayTwo; in arrayCheck2()
70 arrayOne = new String[1][]; in arrayCheck2()
71 arrayTwo = new String[1][]; in arrayCheck2()
83 String[][] arrayTwo; in arrayCheck3()
[all …]
/art/runtime/mirror/
Dstring.cc34 GcRoot<Class> String::java_lang_String_;
36 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf()
54 void String::SetClass(Class* java_lang_String) { in SetClass()
60 void String::ResetClass() { in ResetClass()
65 int32_t String::ComputeHashCode() { in ComputeHashCode()
71 int32_t String::GetUtfLength() { in GetUtfLength()
75 String* String::AllocFromUtf16(Thread* self, in AllocFromUtf16()
80 String* string = Alloc(self, utf16_length); in AllocFromUtf16()
98 String* String::AllocFromModifiedUtf8(Thread* self, const char* utf) { in AllocFromModifiedUtf8()
104 String* String::AllocFromModifiedUtf8(Thread* self, int32_t utf16_length, in AllocFromModifiedUtf8()
[all …]
Dstack_trace_element.h34 String* GetDeclaringClass() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetDeclaringClass()
35 return GetFieldObject<String>(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_)); in GetDeclaringClass()
38 String* GetMethodName() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetMethodName()
39 return GetFieldObject<String>(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_)); in GetMethodName()
42 String* GetFileName() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetFileName()
43 return GetFieldObject<String>(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_)); in GetFileName()
50 static StackTraceElement* Alloc(Thread* self, Handle<String> declaring_class,
51 Handle<String> method_name, Handle<String> file_name,
66 HeapReference<String> declaring_class_;
67 HeapReference<String> file_name_;
[all …]
Dstring-inl.h31 inline uint32_t String::ClassSize() { in ClassSize()
36 inline CharArray* String::GetCharArray() { in GetCharArray()
40 inline int32_t String::GetLength() { in GetLength()
41 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); in GetLength()
46 inline void String::SetArray(CharArray* new_array) { in SetArray()
50 SetFieldObject<false, false>(OFFSET_OF_OBJECT_MEMBER(String, array_), new_array); in SetArray()
53 inline String* String::Intern() { in Intern()
57 inline uint16_t String::CharAt(int32_t index) { in CharAt()
71 inline int32_t String::GetHashCode() { in GetHashCode()
72 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); in GetHashCode()
Dstring.h35 class MANAGED String FINAL : public Object {
42 return sizeof(String); in InstanceSize()
46 return OFFSET_OF_OBJECT_MEMBER(String, count_); in CountOffset()
50 return OFFSET_OF_OBJECT_MEMBER(String, array_); in ValueOffset()
54 return OFFSET_OF_OBJECT_MEMBER(String, offset_); in OffsetOffset()
76 String* Intern() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
78 static String* AllocFromUtf16(Thread* self,
84 static String* AllocFromModifiedUtf8(Thread* self, const char* utf)
87 static String* AllocFromModifiedUtf8(Thread* self, int32_t utf16_length,
97 bool Equals(String* that) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
[all …]
/art/test/021-string2/src/junit/framework/
DAssert.java18 static public void assertTrue(String message, boolean condition) { in assertTrue()
33 static public void assertFalse(String message, boolean condition) { in assertFalse()
46 static public void fail(String message) { in fail()
59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals()
76 static public void assertEquals(String message, String expected, String actual) { in assertEquals()
86 static public void assertEquals(String expected, String actual) { in assertEquals()
94 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals()
115 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals()
135 static public void assertEquals(String message, long expected, long actual) { in assertEquals()
148 static public void assertEquals(String message, boolean expected, boolean actual) { in assertEquals()
[all …]
/art/test/082-inline-execute/src/junit/framework/
DAssert.java18 static public void assertTrue(String message, boolean condition) { in assertTrue()
33 static public void assertFalse(String message, boolean condition) { in assertFalse()
46 static public void fail(String message) { in fail()
59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals()
76 static public void assertEquals(String message, String expected, String actual) { in assertEquals()
86 static public void assertEquals(String expected, String actual) { in assertEquals()
94 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals()
115 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals()
135 static public void assertEquals(String message, long expected, long actual) { in assertEquals()
148 static public void assertEquals(String message, boolean expected, boolean actual) { in assertEquals()
[all …]
/art/test/003-omnibus-opcodes/src/
DClasses.java163 String strForm; in arrayInstance()
165 String[][][][] multi1 = new String[2][3][2][1]; in arrayInstance()
166 multi1[0] = new String[2][3][2]; in arrayInstance()
167 multi1[0][1] = new String[3][2]; in arrayInstance()
168 multi1[0][1][2] = new String[2]; in arrayInstance()
172 String[][][][][] multi2 = new String[5][2][3][2][1]; in arrayInstance()
173 multi2[0] = new String[5][2][3][2]; in arrayInstance()
174 multi2[0][1] = new String[5][2][3]; in arrayInstance()
175 multi2[0][1][2] = new String[5][2]; in arrayInstance()
176 multi2[0][1][2][1] = new String[5]; in arrayInstance()
[all …]
DInternedString.java20 public static final String CONST = "Class InternedString";
28 private static WeakReference<String> makeWeakString() { in makeWeakString()
29 String s = "blah"; in makeWeakString()
31 WeakReference<String> strRef = new WeakReference<String>(s.intern()); in makeWeakString()
36 WeakReference<String> strRef = makeWeakString(); in testDeadInternedString()
43 WeakReference strRef = new WeakReference<String>(CONST.intern()); in testImmortalInternedString()
51 String s = CONST; in testImmortalInternedString()
53 strRef = new WeakReference<String>(s.intern()); in testImmortalInternedString()
/art/test/071-dexfile/src/
DMain.java27 private static final String CLASS_PATH = System.getenv("DEX_LOCATION") + "/071-dexfile-ex.jar";
28 private static final String ODEX_DIR = System.getenv("DEX_LOCATION");
29 private static final String ODEX_ALT = "/tmp";
30 private static final String LIB_DIR = "/nowhere/nothing/";
32 private static final String getOdexDir() { in getOdexDir()
39 public static void main(String[] args) throws Exception { in main()
83 Constructor DexClassLoader_init = DexClassLoader.getConstructor(String.class, in getDexClassLoader()
84 String.class, in getDexClassLoader()
85 String.class, in getDexClassLoader()
95 String.class, in testDexFile()
[all …]
/art/test/074-gc-thrash/src/
DMain.java28 private static final String OUTPUT_FILE = "gc-thrash.hprof";
30 public static void main(String[] args) { in main()
37 String dumpFile = null; in main()
82 new Class[] { String.class }); in getDumpHprofDataMethod()
91 private static String getDumpFileName() { in getDumpFileName()
167 String strings[] = new String[ARRAY_SIZE]; in run()
185 private String makeString(int val) { in makeString()
186 return new String("Robin" + val); in makeString()
197 private static String strong[] = new String[MAX_DEPTH];
253 private String dive(int depth, int iteration) { in dive()
[all …]
/art/test/407-arrays/src/
DTestCase.java27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame()
34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame()
38 public static void assertEquals(String message, int expected, int actual) { in assertEquals()
50 public static void assertTrue(String message, boolean condition) { in assertTrue()
60 public static void assertFalse(String message, boolean condition) { in assertFalse()
72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
85 String msg = "Objects are the same: " + String.valueOf(expected); in assertNotEquals()
95 String message, Object expected, Object actual) { in assertEquals()
102 String message, long expected, long actual) { in assertEquals()
115 String message, boolean expected, boolean actual) { in assertEquals()
[all …]
/art/test/406-fields/src/
DTestCase.java27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame()
34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame()
38 public static void assertEquals(String message, int expected, int actual) { in assertEquals()
50 public static void assertTrue(String message, boolean condition) { in assertTrue()
60 public static void assertFalse(String message, boolean condition) { in assertFalse()
72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
85 String msg = "Objects are the same: " + String.valueOf(expected); in assertNotEquals()
95 String message, Object expected, Object actual) { in assertEquals()
102 String message, long expected, long actual) { in assertEquals()
115 String message, boolean expected, boolean actual) { in assertEquals()
[all …]
/art/runtime/native/
Djava_lang_String.cc33 return soa.Decode<mirror::String*>(javaThis)->CompareTo(soa.Decode<mirror::String*>(javaRhs)); in String_compareTo()
42 mirror::String* s = soa.Decode<mirror::String*>(java_this); in String_fastIndexOf()
48 mirror::String* s = soa.Decode<mirror::String*>(javaThis); in String_intern()
49 mirror::String* result = s->Intern(); in String_intern()
54 NATIVE_METHOD(String, compareTo, "!(Ljava/lang/String;)I"),
55 NATIVE_METHOD(String, fastIndexOf, "!(II)I"),
56 NATIVE_METHOD(String, intern, "!()Ljava/lang/String;"),
/art/test/094-pattern/src/
DMain.java22 public static final String GOOD_IRI_CHAR =
25 public static final String TOP_LEVEL_DOMAIN_STR_FOR_WEB_URL =
54 public static final String WEB_URL_STR =
74 public static final String testStr1 =
76 public static final String testStr2 = "http:///www.google.com/";
77 public static final String testStr3 =
80 public static void main(String[] args) { in main()
86 static String getStringAsHex(String text) { in getStringAsHex()
/art/test/096-array-copy-concurrent-gc/src/
DMain.java27 public static void main(String args[]) { in main()
55 array[i] = new String("Creating some garbage" + i); in stressArray()
66 new String("Creating some garbage" + Math.random()); in stressArray()
67 new String("Creating some garbage" + Math.random()); in stressArray()
68 new String("Creating some garbage" + Math.random()); in stressArray()
69 new String("Creating some garbage" + Math.random()); in stressArray()
76 new String("Creating some garbage" + Math.random()); in stressArray()
77 new String("Creating some garbage" + Math.random()); in stressArray()
78 new String("Creating some garbage" + Math.random()); in stressArray()
79 new String("Creating some garbage" + Math.random()); in stressArray()
/art/test/062-character-encodings/src/
DMain.java12 static public void main(String[] args) throws Exception { in main()
14 List<String> standardCharsets = Arrays.asList("US-ASCII", "ISO-8859-1", in main()
17 SortedMap<String, Charset> all = Charset.availableCharsets(); in main()
18 Set<String> needed = new HashSet<String>(standardCharsets); in main()
19 for (Map.Entry<String, Charset> e : all.entrySet()) { in main()
20 String canonicalName = e.getKey(); in main()
/art/test/021-string2/src/
DMain.java23 public static void main(String args[]) { in main()
24 String test = "0123456789"; in main()
25 String test1 = new String("0123456789"); // different object in main()
26 String test2 = new String("0123456780"); // different value in main()
27 String offset = new String("xxx0123456789yyy"); in main()
28 String sub = offset.substring(3, 13); in main()
81 String[] strings = test.split("/"); in main()
/art/test/201-built-in-exception-detail-messages/src/
DMain.java22 public static void main(String[] args) throws Exception { in main()
33 private static void assertEquals(String expected, String actual) { in assertEquals()
105 Object[] array = new String[10]; in arrayStore()
135 String[] src = new String[] { null, null, null, null, "hello", "goodbye" }; in arrayStore()
144 String[] src = new String[1]; in arrayStore()
168 String src = "hello"; in arrayStore()
197 String s = (String) o; in classCast()
205 Object o = (C) makeArray(String.class); in classCast()
384 Method m = A.class.getMethod("m", int.class, String.class); in reflection()
393 Method m = A.class.getMethod("m", int.class, String.class); in reflection()
[all …]

12345678910>>...12