/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 | 42 String shlemiel() { in shlemiel() 43 String s0 = new String("0"); in shlemiel() 44 String s1 = new String("1"); in shlemiel() 45 String s2 = new String("2"); in shlemiel() 46 String s3 = new String("3"); in shlemiel() 47 String s4 = new String("4"); in shlemiel() 48 String s5 = new String("5"); in shlemiel() 49 String s6 = new String("6"); in shlemiel() 50 String s7 = new String("7"); in shlemiel() 51 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/main/com/android/ahat/ |
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/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/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/ahat/src/main/com/android/ahat/proguard/ |
D | ProguardMap.java | 36 private static final String ARRAY_SYMBOL = "[]"; 39 public FrameData(String clearMethodName) { in FrameData() 43 private final String clearMethodName; 72 private final String mClearName; 75 private final Map<String, String> mFields = new HashMap<String, String>(); 78 private final Map<String, FrameData> mFrames = new HashMap<String, FrameData>(); 81 public ClassData(String clearName) { in ClassData() 86 public String getClearName() { in getClearName() 90 public void addField(String obfuscatedName, String clearName) { in addField() 99 public String getField(String obfuscatedName) { in getField() [all …]
|
/art/test/563-checker-fakestring/src/ |
D | Main.java | 25 public static native void ensureJitCompiled(Class<?> cls, String methodName); in ensureJitCompiled() 27 public static void assertEqual(String expected, String actual) { in assertEqual() 33 public static void assertEqual(byte[] expected, String actual) throws Exception { in assertEqual() 34 String str = new String(expected, "UTF8"); in assertEqual() 40 public static void main(String[] args) throws Throwable { in main() 43 String testString = "Hello world"; in main() 48 String result = (String) m.invoke(null, new Object[] { testData }); in main() 73 String result = (String) m.invoke(null, new Object[] { testData }); in main() 79 String result = (String) m.invoke(null, new Object[] { testData, true }); in main() 81 result = (String) m.invoke(null, new Object[] { testData, false }); in main() [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; 34 private String flattenedAllWithNewlines; 42 public String getFlattenedOutput() { in getFlattenedOutput() 45 for (String line : output) { in getFlattenedOutput() [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/697-checker-string-append/src/ |
D | Main.java | 18 public static void main(String[] args) { in main() 29 private static final String APPEND_LONG_PREFIX = "Long/"; 30 private static final String[] APPEND_LONG_TEST_CASES = { 115 public static String $noinline$appendStringAndLong(String s, long l) { in $noinline$appendStringAndLong() 120 for (String expected : APPEND_LONG_TEST_CASES) { in testAppendStringAndLong() 122 String result = $noinline$appendStringAndLong(APPEND_LONG_PREFIX, l); in testAppendStringAndLong() 127 private static final String APPEND_INT_PREFIX = "Int/"; 128 private static final String[] APPEND_INT_TEST_CASES = { 177 public static String $noinline$appendStringAndInt(String s, int i) { in $noinline$appendStringAndInt() 182 for (String expected : APPEND_INT_TEST_CASES) { in testAppendStringAndInt() [all …]
|
/art/test/1945-proxy-method-arguments/ |
D | expected.txt | 7 arg1: java.lang.String "a" 10 arg1: java.lang.String "one" 11 arg2: java.lang.String "two" 12 arg3: java.lang.String "three" 13 arg4: java.lang.String "four" 14 arg5: java.lang.String "five" 15 arg6: java.lang.String "six" 16 arg7: java.lang.String "seven" 17 arg8: java.lang.String "eight" 18 arg9: java.lang.String "nine" [all …]
|
/art/runtime/native/ |
D | java_lang_String.cc | 38 return soa.Decode<mirror::String>(java_this)->CharAt(index); in String_charAt() 47 return soa.Decode<mirror::String>(java_this)->CompareTo(soa.Decode<mirror::String>(java_rhs)); in String_compareTo() 58 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_concat() 59 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String>(java_string_arg))); in String_concat() 63 ObjPtr<mirror::String> result = in String_concat() 64 mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat() 74 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_fastSubstring() 76 ObjPtr<mirror::String> result = mirror::String::AllocFromString(soa.Self(), in String_fastSubstring() 89 soa.Decode<mirror::String>(java_this)->GetChars(start, end, char_array, index); in String_getCharsNoCheck() 94 ObjPtr<mirror::String> result = soa.Decode<mirror::String>(java_this)->Intern(); in String_intern() [all …]
|
/art/test/699-checker-string-append2/src/ |
D | Main.java | 20 public static void main(String[] args) throws Exception { in main() 22 Method m1 = c.getDeclaredMethod("$noinline$testAppend1", String.class, int.class); in main() 23 String b146014745_result1 = (String) m1.invoke(null, "x", 42); in main() 25 Method m2 = c.getDeclaredMethod("$noinline$testAppend2", String.class, int.class); in main() 26 String b146014745_result2 = (String) m2.invoke(null, "x", 42); in main() 28 Method m3 = c.getDeclaredMethod("$noinline$testAppend3", String.class, int.class); in main() 29 String b146014745_result3 = (String) m3.invoke(null, "x", 42); in main() 35 public static void assertEquals(String expected, String actual) { in assertEquals()
|
/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/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/ManyMethods/ |
D | ManyMethods.java | 19 public static String msg0 = "Hello World"; 20 public static String msg1 = "Hello World1"; 21 public static String msg2 = "Hello World2"; 22 public static String msg3 = "Hello World3"; 23 public static String msg4 = "Hello World4"; 24 public static String msg5 = "Hello World5"; 25 public static String msg6 = "Hello World6"; 26 public static String msg7 = "Hello World7"; 27 public static String msg8 = "Hello World8"; 28 public static String msg9 = "Hello World9"; [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 …]
|
/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 …]
|
/art/tools/class2greylist/test/src/com/android/class2greylist/ |
D | AnnotationPropertyWriterTest.java | 45 String signature = "foo"; in testExportPropertiesNoEscaping() 46 Map<String, String> annotationProperties = ImmutableMap.of( in testExportPropertiesNoEscaping() 49 Set<String> parsedFlags = new HashSet<String>(); in testExportPropertiesNoEscaping() 53 String output = mByteArrayOutputStream.toString(); in testExportPropertiesNoEscaping() 54 String expected = "prop,signature\n" in testExportPropertiesNoEscaping() 61 String signature = "foo"; in testExportPropertiesEscapeQuotes() 62 Map<String, String> annotationProperties = ImmutableMap.of( in testExportPropertiesEscapeQuotes() 65 Set<String> parsedFlags = new HashSet<String>(); in testExportPropertiesEscapeQuotes() 69 String output = mByteArrayOutputStream.toString(); in testExportPropertiesEscapeQuotes() 70 String expected = "prop,signature\n" in testExportPropertiesEscapeQuotes()
|
/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/1945-proxy-method-arguments/src/ |
D | Main.java | 23 void method1(String arg); in method1() 24 void method10(String arg1, String arg2, String arg3, String arg4, String arg5, in method10() 25 String arg6, String arg7, String arg8, String arg9, String arg10); in method10() 26 void method10Even(byte arg1, String arg2, short arg3, String arg4, int arg5, in method10Even() 27 String arg6, long arg7, String arg8, double arg9, String arg10); in method10Even() 63 String arg1 = (String) getProxyMethodArgument(1); in testMethod1() 76 String arg = (String) getProxyMethodArgument(arg_pos); in testMethod10() 91 String arg = (String) getProxyMethodArgument(arg_pos); in testMethod10Even() 122 public static void main(String[] args) { in main() 144 public static void assertEquals(String expected, String actual) { in assertEquals()
|