/art/benchmark/const-string/src/ |
D | ConstStringBenchmark.java | 22 public static final String string_0000 = "TestString_0000"; 23 public static final String string_0001 = "TestString_0001"; 24 public static final String string_0002 = "TestString_0002"; 25 public static final String string_0003 = "TestString_0003"; 26 public static final String string_0004 = "TestString_0004"; 27 public static final String string_0005 = "TestString_0005"; 28 public static final String string_0006 = "TestString_0006"; 29 public static final String string_0007 = "TestString_0007"; 30 public static final String string_0008 = "TestString_0008"; 31 public static final String string_0009 = "TestString_0009"; [all …]
|
/art/test/004-StackWalk/src/ |
D | Main.java | 25 String shlemiel() { in shlemiel() 26 String s0 = new String("0"); in shlemiel() 27 String s1 = new String("1"); in shlemiel() 28 String s2 = new String("2"); in shlemiel() 29 String s3 = new String("3"); in shlemiel() 30 String s4 = new String("4"); in shlemiel() 31 String s5 = new String("5"); in shlemiel() 32 String s6 = new String("6"); in shlemiel() 33 String s7 = new String("7"); in shlemiel() 34 String s8 = new String("8"); in shlemiel() [all …]
|
/art/test/100-reflect2/ |
D | expected.txt | 34 …String(int,int,char[]), public java.lang.String(), public java.lang.String(byte[]), public java.la… 35 …String.count, private int java.lang.String.hash, private static final java.io.ObjectStreamField[] … 36 …String.getCharsNoCheck(int,int,char[],int), private boolean java.lang.String.nonSyncContentEquals(… 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() 32 String baseStr = "*** This is a very nice string!!!"; in basicTest() 33 String testStr; in basicTest() 44 String testStr2 = "This is a very nice strinG"; in basicTest() 58 …String s1 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\u00e9\u00e9\… in basicTest() 59 …String s2 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\uffff\uffff\… in basicTest() 71 String baseStr = "The quick brown fox jumps over the lazy dog!"; in indexTest() 72 String subStr; in indexTest() 100 String charsetName = "US-ASCII"; in constructorTest() 102 String string = "string"; in constructorTest() [all …]
|
/art/test/922-properties/src/art/ |
D | Test922.java | 28 Set<String> recommendedProperties = getRecommendedProperties(); in doTest() 31 for (String key : recommendedProperties) { in doTest() 35 Set<String> allProperties = getAllProperties(); in doTest() 37 Set<String> retained = new TreeSet<String>(recommendedProperties); in doTest() 40 Set<String> missing = new TreeSet<String>(recommendedProperties); in doTest() 45 Set<String> nonRecommended = new TreeSet<String>(allProperties); in doTest() 49 for (String key : nonRecommended) { in doTest() 54 String key = generate(allProperties); in doTest() 58 String key2 = generateUnique(allProperties); in doTest() 62 private static Set<String> getRecommendedProperties() { in getRecommendedProperties() [all …]
|
/art/tools/ahat/src/ |
D | Query.java | 32 private Map<String, String> mParams; 36 mParams = new HashMap<String, String>(); in Query() 38 String query = uri.getQuery(); in Query() 40 for (String param : query.split("&")) { in Query() 58 public String get(String name, String defaultValue) { in get() 59 String value = mParams.get(name); in get() 66 public long getLong(String name, long defaultValue) { in getLong() 67 String value = get(name, null); in getLong() 74 public int getInt(String name, int defaultValue) { in getInt() 75 String value = get(name, null); in getInt() [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 | 37 private String deviceName; 41 private String androidHostOut; 42 private String androidProductOut; 43 private String androidData; 59 public Device(String deviceName, boolean noBootImage) { in Device() 68 private String checkForEnvVar(Map<String, String> envVars, String key) { in checkForEnvVar() argument 75 private String getHostCoreImagePathWithArch() { in getHostCoreImagePathWithArch() 81 private String getHostCoreImagePathNoArch() { in getHostCoreImagePathNoArch() 88 Map<String, String> envVars = System.getenv(); in setup() 137 public String getName() { in getName() [all …]
|
/art/test/963-default-range-smali/src/ |
D | Iface.java | 17 public default String SayHi(String n1, in SayHi() 18 String n2, in SayHi() 19 String n3, in SayHi() 20 String n4, in SayHi() 21 String n5, in SayHi() 22 String n6, in SayHi() 23 String n7, in SayHi() 24 String n8, in SayHi() 25 String n9, in SayHi() 26 String n0) { in SayHi()
|
/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; 34 private String flattenedAllWithNewlines; 42 public String getFlattenedOutput() { in getFlattenedOutput() 45 for (String line : output) { in getFlattenedOutput() [all …]
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 24 public static void main(String[] args) throws Throwable { in main() 48 MethodHandle handle = MethodHandles.throwException(String.class, in testThrowException() 51 if (handle.type().returnType() != String.class) { in testThrowException() 67 public static void dropArguments_delegate(String message, long message2) { in dropArguments_delegate() 74 MethodType.methodType(void.class, new Class<?>[] { String.class, long.class })); in testDropArguments() 112 new Class<?>[] { short.class, Object.class, String.class, long.class })); in testDropArguments() 136 public static String testCatchException_target(String arg1, long arg2, String exceptionMessage) in testCatchException_target() 146 …public static String testCatchException_handler(IllegalArgumentException iae, String arg1, long ar… in testCatchException_handler() 147 String exMsg) { in testCatchException_handler() 152 public static String testCatchException_handler2(IllegalArgumentException iae, String arg1) { in testCatchException_handler2() [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( in String_compareTo() 44 soa.Decode<mirror::String>(java_rhs).Ptr()); in String_compareTo() 55 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_concat() 56 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String>(java_string_arg))); in String_concat() 60 ObjPtr<mirror::String> result = in String_concat() 61 mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat() 72 return soa.Decode<mirror::String>(java_this)->FastIndexOf(ch, start); in String_fastIndexOf() 78 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_fastSubstring() 80 ObjPtr<mirror::String> result = mirror::String::AllocFromString<true>(soa.Self(), in String_fastSubstring() [all …]
|
/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/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 …]
|
/art/runtime/ |
D | intern_table.h | 41 class String; variable 60 ObjPtr<mirror::String> InternStrong(int32_t utf16_length, const char* utf8_data) 66 ObjPtr<mirror::String> InternStrongImageString(ObjPtr<mirror::String> s) 70 ObjPtr<mirror::String> InternStrong(const char* utf8_data) REQUIRES_SHARED(Locks::mutator_lock_) 74 ObjPtr<mirror::String> InternStrong(ObjPtr<mirror::String> s) 79 ObjPtr<mirror::String> InternWeak(ObjPtr<mirror::String> s) REQUIRES_SHARED(Locks::mutator_lock_) 85 bool ContainsWeak(ObjPtr<mirror::String> s) REQUIRES_SHARED(Locks::mutator_lock_) 89 ObjPtr<mirror::String> LookupStrong(Thread* self, ObjPtr<mirror::String> s) 92 ObjPtr<mirror::String> LookupStrong(Thread* self, uint32_t utf16_length, const char* utf8_data) 97 ObjPtr<mirror::String> LookupWeak(Thread* self, ObjPtr<mirror::String> s) [all …]
|
D | intern_table_test.cc | 35 Handle<mirror::String> foo_1(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F() 36 Handle<mirror::String> foo_2(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F() 37 Handle<mirror::String> foo_3( in TEST_F() 38 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 39 Handle<mirror::String> bar(hs.NewHandle(intern_table.InternStrong(3, "bar"))); in TEST_F() 59 Handle<mirror::String> foo( in TEST_F() 60 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 77 GcRoot<mirror::String> str(mirror::String::AllocFromModifiedUtf8(soa.Self(), "00000000")); in TEST_F() 101 void Expect(const mirror::String* s) { in Expect() 110 mutable std::vector<const mirror::String*> expected_; [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/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/071-dexfile-map-clean/src/ |
D | Main.java | 27 private static final String CLASS_PATH = 33 public static void main(String[] args) throws Exception { in main() 45 private static boolean checkSmapsEntry(String[] smapsLines, int offset) { in checkSmapsEntry() 46 String nameDescription = smapsLines[offset]; in checkSmapsEntry() 47 String[] split = nameDescription.split(" "); in checkSmapsEntry() 49 String permissions = split[1]; in checkSmapsEntry() 59 String line = smapsLines[i]; in checkSmapsEntry() 62 String lineTrimmed = line.trim(); in checkSmapsEntry() 63 String[] lineSplit = lineTrimmed.split(" +"); in checkSmapsEntry() 65 String sizeUsuallyInKb = lineSplit[lineSplit.length - 2]; in checkSmapsEntry() [all …]
|
/art/test/956-methodhandles/src/ |
D | Main.java | 68 public static void main(String[] args) throws Throwable { in main() 167 MethodHandle handle = MethodHandles.lookup().findVirtual(String.class, "concat", in testExceptionDetailMessages() 168 MethodType.methodType(String.class, String.class)); in testExceptionDetailMessages() 179 public String foo(); in foo() 183 public String bar(); in bar() 187 public abstract String abstractSuperPublicMethod(); in abstractSuperPublicMethod() 191 public String superPublicMethod() { in superPublicMethod() 195 protected String superProtectedMethod() { in superProtectedMethod() 199 public String abstractSuperPublicMethod() { in abstractSuperPublicMethod() 203 String superPackageMethod() { in superPackageMethod() [all …]
|
/art/runtime/mirror/ |
D | string-inl.h | 38 inline uint32_t String::ClassSize(PointerSize pointer_size) { in ClassSize() 52 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); in operator() 72 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); in operator() 75 int32_t length = String::GetLengthFromCount(count_); in operator() 108 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); in operator() 111 const int32_t length = String::GetLengthFromCount(count_); in operator() 112 if (kUseStringCompression && String::IsCompressed(count_)) { in operator() 131 Handle<String> src_string, in SetStringCountAndValueVisitorFromString() 139 ObjPtr<String> string = ObjPtr<String>::DownCast(obj); in operator() 141 const int32_t length = String::GetLengthFromCount(count_); in operator() [all …]
|
D | stack_trace_element.h | 34 String* GetDeclaringClass() REQUIRES_SHARED(Locks::mutator_lock_) { in GetDeclaringClass() 35 return GetFieldObject<String>(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_)); in GetDeclaringClass() 38 String* GetMethodName() REQUIRES_SHARED(Locks::mutator_lock_) { in GetMethodName() 39 return GetFieldObject<String>(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_)); in GetMethodName() 42 String* GetFileName() REQUIRES_SHARED(Locks::mutator_lock_) { in GetFileName() 43 return GetFieldObject<String>(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_)); in GetFileName() 51 Handle<String> declaring_class, 52 Handle<String> method_name, 53 Handle<String> file_name, 68 HeapReference<String> declaring_class_; [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 …]
|