/art/test/004-StackWalk/src/ |
D | Main.java | 20 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/ |
D | expected.txt | 34 …String(), java.lang.String(int,int,char[]), public java.lang.String(java.lang.String), public java… 35 …String.count, private int java.lang.String.hashCode, private static final char[] java.lang.String.… 36 …String.charAt(int), public int java.lang.String.codePointAt(int), public int java.lang.String.code… 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/020-string/src/ |
D | Main.java | 24 public static void main(String args[]) { in main() 31 String baseStr = "*** This is a very nice string!!!"; in basicTest() 32 String testStr; in basicTest() 43 String testStr2 = "This is a very nice strinG"; in basicTest() 50 …String s1 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\u00e9\u00e9\… in basicTest() 51 …String s2 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\uffff\uffff\… in basicTest() 63 String baseStr = "The quick brown fox jumps over the lazy dog!"; in indexTest() 64 String subStr; in indexTest() 92 String charsetName = "US-ASCII"; in constructorTest() 94 String string = "string"; in constructorTest() [all …]
|
/art/test/072-precise-gc/src/ |
D | Main.java | 20 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/tools/dexfuzz/src/dexfuzz/executors/ |
D | Device.java | 33 private String deviceName; 37 private String androidHostOut; 38 private String androidProductOut; 39 private String androidData; 55 public Device(String deviceName, boolean noBootImage) { in Device() 64 private String checkForEnvVar(Map<String, String> envVars, String key) { in checkForEnvVar() argument 71 private String getHostCoreImagePath() { in getHostCoreImagePath() 78 Map<String, String> envVars = System.getenv(); in setup() 127 public String getName() { in getName() 148 public String getExecutionShellPrefix() { in getExecutionShellPrefix() [all …]
|
/art/runtime/ |
D | intern_table.h | 39 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_); 117 std::size_t operator()(const GcRoot<mirror::String>& root) const NO_THREAD_SAFETY_ANALYSIS; 118 bool operator()(const GcRoot<mirror::String>& a, const GcRoot<mirror::String>& b) const 123 void MakeEmpty(GcRoot<mirror::String>& item) const { in MakeEmpty() 124 item = GcRoot<mirror::String>(); in MakeEmpty() [all …]
|
D | intern_table_test.cc | 33 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 …]
|
D | intern_table.cc | 63 mirror::String* old_ref = root.Read<kWithoutReadBarrier>(); in VisitRoots() 65 mirror::String* new_ref = root.Read<kWithoutReadBarrier>(); in VisitRoots() 86 mirror::String* InternTable::LookupStrong(mirror::String* s) { in LookupStrong() 90 mirror::String* InternTable::LookupWeak(mirror::String* s) { in LookupWeak() 100 mirror::String* InternTable::InsertStrong(mirror::String* s) { in InsertStrong() 106 new_strong_intern_roots_.push_back(GcRoot<mirror::String>(s)); in InsertStrong() 112 mirror::String* InternTable::InsertWeak(mirror::String* s) { in InsertWeak() 121 void InternTable::RemoveStrong(mirror::String* s) { in RemoveStrong() 125 void InternTable::RemoveWeak(mirror::String* s) { in RemoveWeak() 134 mirror::String* InternTable::InsertStrongFromTransaction(mirror::String* s) { in InsertStrongFromTransaction() [all …]
|
/art/runtime/native/ |
D | java_lang_String.cc | 34 return soa.Decode<mirror::String*>(java_this)->CharAt(index); in String_charAt() 43 return soa.Decode<mirror::String*>(java_this)->CompareTo(soa.Decode<mirror::String*>(java_rhs)); in String_compareTo() 54 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String*>(java_this))); in String_concat() 55 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String*>(java_string_arg))); in String_concat() 59 mirror::String* result = mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat() 70 return soa.Decode<mirror::String*>(java_this)->FastIndexOf(ch, start); in String_fastIndexOf() 76 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String*>(java_this))); in String_fastSubstring() 78 mirror::String* result = mirror::String::AllocFromString<true>(soa.Self(), length, string_this, in String_fastSubstring() 88 soa.Decode<mirror::String*>(java_this)->GetChars(start, end, char_array, index); in String_getCharsNoCheck() 93 mirror::String* s = soa.Decode<mirror::String*>(java_this); in String_intern() [all …]
|
/art/tools/dexfuzz/src/dexfuzz/ |
D | ExecutionResult.java | 25 public List<String> output; 26 public List<String> error; 29 private String flattenedOutput; 30 private String flattenedOutputWithNewlines; 31 private String flattenedError; 32 private String flattenedErrorWithNewlines; 33 private String flattenedAll; 41 public String getFlattenedOutput() { in getFlattenedOutput() 44 for (String line : output) { in getFlattenedOutput() 55 public String getFlattenedOutputWithNewlines() { in getFlattenedOutputWithNewlines() [all …]
|
/art/tools/dexfuzz/src/dexfuzz/listeners/ |
D | UniqueProgramTrackerListener.java | 43 private Map<String, Integer> uniquePrograms; 48 private Map<String, Integer> uniqueOutputs; 60 private String fuzzedFile; 63 private String databaseFile; 70 public UniqueProgramTrackerListener(String databaseFile) { in UniqueProgramTrackerListener() 83 private String getMD5SumOfProgram(String programName) { in getMD5SumOfProgram() 102 return new String(digest.digest()); in getMD5SumOfProgram() 105 private String getMD5SumOfOutput(String output) { in getMD5SumOfOutput() 107 return new String(digest.digest()); in getMD5SumOfOutput() 114 uniquePrograms = new HashMap<String, Integer>(); in loadUniqueProgsData() [all …]
|
/art/test/082-inline-execute/src/junit/framework/ |
D | ComparisonCompactor.java | 9 private static final String ELLIPSIS= "..."; 10 private static final String DELTA_END= "]"; 11 private static final String DELTA_START= "["; 14 private String fExpected; 15 private String fActual; 19 public ComparisonCompactor(int contextLength, String expected, String actual) { in ComparisonCompactor() 25 public String compact(String message) { in compact() 33 String expected= compactString(fExpected); in compact() 34 String actual= compactString(fActual); in compact() 39 private String compactString(String source) { in compactString() [all …]
|
D | Assert.java | 18 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() 62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() 79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() 84 String cleanMessage= message == null ? "" : message; in assertEquals() 90 static public void assertEquals(String expected, String actual) { in assertEquals() 98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() 116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() 133 static public void assertEquals(String message, long expected, long actual) { in assertEquals() [all …]
|
D | ComparisonFailure.java | 12 private String fExpected; 13 private String fActual; 21 public ComparisonFailure (String message, String expected, String actual) { in ComparisonFailure() 34 public String getMessage() { in getMessage() 42 public String getActual() { in getActual() 49 public String getExpected() { in getExpected()
|
/art/test/021-string2/src/junit/framework/ |
D | ComparisonCompactor.java | 9 private static final String ELLIPSIS= "..."; 10 private static final String DELTA_END= "]"; 11 private static final String DELTA_START= "["; 14 private String fExpected; 15 private String fActual; 19 public ComparisonCompactor(int contextLength, String expected, String actual) { in ComparisonCompactor() 25 public String compact(String message) { in compact() 33 String expected= compactString(fExpected); in compact() 34 String actual= compactString(fActual); in compact() 39 private String compactString(String source) { in compactString() [all …]
|
D | Assert.java | 18 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() 62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() 79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() 84 String cleanMessage= message == null ? "" : message; in assertEquals() 90 static public void assertEquals(String expected, String actual) { in assertEquals() 98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() 116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() 133 static public void assertEquals(String message, long expected, long actual) { in assertEquals() [all …]
|
/art/test/052-verifier-fun/src/ |
D | Main.java | 23 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/test/099-vmdebug/src/ |
D | Main.java | 23 public static void main(String[] args) throws Exception { in main() 24 String name = System.getProperty("java.vm.name"); in main() 50 String tempFileName = tempFile.getPath(); in testMethodTracing() 114 private static void checkNumber(String s) throws Exception { in checkNumber() 125 private static void checkHistogram(String s) throws Exception { in checkHistogram() 130 String[] buckets = s.split(","); in checkHistogram() 133 String bucket = buckets[i]; in checkHistogram() 138 String[] kv = bucket.split(":"); in checkHistogram() 164 String gc_count = VMDebug.getRuntimeStat("art.gc.gc-count"); in testRuntimeStat() 165 String gc_time = VMDebug.getRuntimeStat("art.gc.gc-time"); in testRuntimeStat() [all …]
|
/art/runtime/mirror/ |
D | string-inl.h | 33 inline uint32_t String::ClassSize(size_t pointer_size) { in ClassSize() 47 String* string = down_cast<String*>(obj); in operator() 66 String* string = down_cast<String*>(obj); in operator() 93 String* string = down_cast<String*>(obj); in operator() 108 SetStringCountAndValueVisitorFromString(int32_t count, Handle<String> src_string, in SetStringCountAndValueVisitorFromString() 116 String* string = down_cast<String*>(obj); in operator() 124 Handle<String> src_string_; 128 inline String* String::Intern() { in Intern() 132 inline uint16_t String::CharAt(int32_t index) { in CharAt() 133 int32_t count = GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); in CharAt() [all …]
|
D | stack_trace_element.h | 34 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 …]
|
D | string.cc | 35 GcRoot<Class> String::java_lang_String_; 37 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf() 55 void String::SetClass(Class* java_lang_String) { in SetClass() 61 void String::ResetClass() { in ResetClass() 66 int String::ComputeHashCode() { in ComputeHashCode() 72 int32_t String::GetUtfLength() { in GetUtfLength() 76 void String::SetCharAt(int32_t index, uint16_t c) { in SetCharAt() 81 String* String::AllocFromStrings(Thread* self, Handle<String> string, Handle<String> string2) { in AllocFromStrings() 86 String* new_string = Alloc<true>(self, length + length2, allocator_type, visitor); in AllocFromStrings() 96 String* String::AllocFromUtf16(Thread* self, int32_t utf16_length, const uint16_t* utf16_data_in) { in AllocFromUtf16() [all …]
|
D | string.h | 34 class MANAGED String FINAL : public Object { 41 return sizeof(String); in InstanceSize() 45 return OFFSET_OF_OBJECT_MEMBER(String, count_); in CountOffset() 49 return OFFSET_OF_OBJECT_MEMBER(String, value_); in ValueOffset() 61 return GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(String, count_)); in GetLength() 68 SetField32<false, false>(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); in SetCount() 82 String* Intern() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); 85 ALWAYS_INLINE static String* Alloc(Thread* self, int32_t utf16_length, 91 ALWAYS_INLINE static String* AllocFromByteArray(Thread* self, int32_t byte_length, 98 ALWAYS_INLINE static String* AllocFromCharArray(Thread* self, int32_t array_length, [all …]
|
/art/tools/dexfuzz/src/dexfuzz/program/ |
D | IdCreator.java | 47 private int findProtoIdInsertionPoint(String signature) { in findProtoIdInsertionPoint() 49 String[] parameterListStrings = convertSignatureToParameterList(signature); in findProtoIdInsertionPoint() 86 private int findMethodIdInsertionPoint(String className, String methodName, String signature) { in findMethodIdInsertionPoint() 113 private int findTypeIdInsertionPoint(String className) { in findTypeIdInsertionPoint() 131 private int findStringDataInsertionPoint(String string) { in findStringDataInsertionPoint() 142 private int findFieldIdInsertionPoint(String className, String typeName, String fieldName) { in findFieldIdInsertionPoint() 169 private int createMethodId(String className, String methodName, String signature) { in createMethodId() 207 Log.info(String.format("Created new MethodIdItem for %s %s %s, index: 0x%04x", in createMethodId() 218 private int findMethodId(String className, String methodName, String signature) { in findMethodId() 248 public int findOrCreateMethodId(String className, String methodName, String shorty) { in findOrCreateMethodId() [all …]
|
/art/test/003-omnibus-opcodes/src/ |
D | Classes.java | 163 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 …]
|
/art/test/071-dexfile/src/ |
D | Main.java | 27 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 …]
|