/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-stdout.txt | 34 …String(byte[],byte), java.lang.String(int,int,char[]), public java.lang.String(), public java.lang… 35 …String.count, private int java.lang.String.hash, private static final java.io.ObjectStreamField[] … 36 …String.coder(), native void java.lang.String.getCharsNoCheck(int,int,char[],int), private boolean … 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/181-default-methods/src/ |
D | Main.java | 20 public static void expectSameString(String expected, String actual) { in expectSameString() 27 String output = target.testMethod(); // invoke-virtual Super.testMethod() in expectDefault() 29 String output2 = abstractTarget.testMethod(); // invoke-interface Abstract.testMethod() in expectDefault() 36 String output = target.testMethod(); // invoke-virtual Super.testMethod() in expectConflict() 47 String output = abstractTarget.testMethod(); // invoke-interface Abstract.testMethod() in expectConflict() 61 String output = target.testMethod(); // invoke-virtual Super.testMethod() in expectMiranda() 68 String output = abstractTarget.testMethod(); // invoke-interface Abstract.testMethod() in expectMiranda() 76 public static void main(String args[]) { in main() 169 String result = abstractTarget.testMethod(); in regressionTestB215510819() 254 String method_A(); in method_A() [all …]
|
/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/odsign/test-src/com/android/tests/odsign/ |
D | OdsignTestUtils.java | 59 public static final String ART_APEX_DALVIK_CACHE_DIRNAME = 61 public static final String CACHE_INFO_FILE = ART_APEX_DALVIK_CACHE_DIRNAME + "/cache-info.xml"; 62 public static final String APEX_INFO_FILE = "/apex/apex-info-list.xml"; 64 private static final String ODREFRESH_BIN = "odrefresh"; 66 public static final String ZYGOTE_32_NAME = "zygote"; 67 public static final String ZYGOTE_64_NAME = "zygote64"; 69 public static final List<String> APP_ARTIFACT_EXTENSIONS = List.of(".art", ".odex", ".vdex"); 70 public static final List<String> BCP_ARTIFACT_EXTENSIONS = List.of(".art", ".oat", ".vdex"); 72 private static final String ODREFRESH_COMPILATION_LOG = 78 private static final String TAG = "OdsignTestUtils"; [all …]
|
D | DeviceState.java | 43 private static final String TEST_JAR_RESOURCE_NAME = "/art-gtest-jars-Main.jar"; 44 private static final String PHENOTYPE_FLAG_NAMESPACE = "runtime_native_boot"; 45 private static final String ART_APEX_DALVIK_CACHE_BACKUP_DIRNAME = 51 private Set<String> mTempFiles = new HashSet<>(); 52 private Set<String> mMountPoints = new HashSet<>(); 53 private Map<String, String> mMutatedProperties = new HashMap<>(); 54 private Map<String, String> mMutatedPhenotypeFlags = new HashMap<>(); 55 private Map<String, String> mDeletedFiles = new HashMap<>(); 65 for (String mountPoint : mMountPoints) { in restore() 66 mTestInfo.getDevice().executeShellV2Command(String.format("umount '%s'", mountPoint)); in restore() [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/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/test/563-checker-fakestring/src/ |
D | Main.java | 22 public static native void ensureJitCompiled(Class<?> cls, String methodName); in ensureJitCompiled() 24 public static void assertEqual(String expected, String actual) { in assertEqual() 30 public static void assertEqual(byte[] expected, String actual) throws Exception { in assertEqual() 31 String str = new String(expected, "UTF8"); in assertEqual() 42 public static void main(String[] args) throws Throwable { in main() 45 String testString = "Hello world"; in main() 50 String result = (String) m.invoke(null, new Object[] { testData }); in main() 75 String result = (String) m.invoke(null, new Object[] { testData }); in main() 81 String result = (String) m.invoke(null, new Object[] { testData, true }); in main() 83 result = (String) m.invoke(null, new Object[] { testData, false }); in main() [all …]
|
/art/test/697-checker-string-append/src/ |
D | Main.java | 18 public static void main(String[] args) { in main() 32 private static final String APPEND_LONG_PREFIX = "Long/"; 33 private static final String[] APPEND_LONG_TEST_CASES = { 118 public static String $noinline$appendStringAndLong(String s, long l) { in $noinline$appendStringAndLong() 123 for (String expected : APPEND_LONG_TEST_CASES) { in testAppendStringAndLong() 125 String result = $noinline$appendStringAndLong(APPEND_LONG_PREFIX, l); in testAppendStringAndLong() 130 private static final String APPEND_INT_PREFIX = "Int/"; 131 private static final String[] APPEND_INT_TEST_CASES = { 180 public static String $noinline$appendStringAndInt(String s, int i) { in $noinline$appendStringAndInt() 185 for (String expected : APPEND_INT_TEST_CASES) { in testAppendStringAndInt() [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/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/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/ahat/src/main/com/android/ahat/proguard/ |
D | ProguardMap.java | 38 private static final String ARRAY_SYMBOL = "[]"; 42 public FrameData(String clearMethodName) { in FrameData() 46 private final String clearMethodName; 99 private final String mClearName; 102 private final Map<String, String> mFields = new HashMap<String, String>(); 105 private final Map<String, FrameData> mFrames = new HashMap<String, FrameData>(); 108 public ClassData(String clearName) { in ClassData() 113 public String getClearName() { in getClearName() 117 public void addField(String obfuscatedName, String clearName) { in addField() 126 public String getField(String obfuscatedName) { in getField() [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 = mirror::String::DoConcat(soa.Self(), string_this, string_arg); in String_concat() 73 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_fastSubstring() 75 ObjPtr<mirror::String> result = mirror::String::AllocFromString(soa.Self(), in String_fastSubstring() 88 soa.Decode<mirror::String>(java_this)->GetChars(start, end, char_array, index); in String_getCharsNoCheck() 96 soa.Decode<mirror::String>(java_this)->FillBytesLatin1(byte_array, byteIndex); in String_fillBytesLatin1() 104 soa.Decode<mirror::String>(java_this)->FillBytesUTF16(byte_array, byteIndex); in String_fillBytesUTF16() [all …]
|
/art/test/1945-proxy-method-arguments/ |
D | expected-stdout.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/libartservice/service/java/com/android/server/art/ |
D | ReasonMapping.java | 52 public static final String REASON_FIRST_BOOT = "first-boot"; 54 public static final String REASON_BOOT_AFTER_OTA = "boot-after-ota"; 56 public static final String REASON_BOOT_AFTER_MAINLINE_UPDATE = "boot-after-mainline-update"; 58 public static final String REASON_INSTALL = "install"; 60 public static final String REASON_BG_DEXOPT = "bg-dexopt"; 62 public static final String REASON_CMDLINE = "cmdline"; 64 public static final String REASON_INACTIVE = "inactive"; 66 public static final String REASON_PRE_REBOOT_DEXOPT = "ab-ota"; 69 public static final String REASON_INSTALL_FAST = "install-fast"; 70 public static final String REASON_INSTALL_BULK = "install-bulk"; [all …]
|
D | ArtJni.java | 73 public static String validateDexPath(@NonNull String dexPath) { in validateDexPath() 90 public static String validateClassLoaderContext( in validateClassLoaderContext() 91 @NonNull String dexPath, @NonNull String classLoaderContext) { in validateClassLoaderContext() 108 public static String getGarbageCollector() { in getGarbageCollector() 123 public static Void setProperty(@NonNull String key, @NonNull String value) { in setProperty() 153 public static Void ensureNoProcessInDir(@NonNull String dir, int timeoutMs) throws IOException { in ensureNoProcessInDir() 164 @Nullable private static native String validateDexPathNative(@NonNull String dexPath); in validateDexPathNative() 166 private static native String validateClassLoaderContextNative( in validateClassLoaderContextNative() 167 @NonNull String dexPath, @NonNull String classLoaderContext); in validateClassLoaderContextNative() 168 @NonNull private static native String getGarbageCollectorNative(); in getGarbageCollectorNative() [all …]
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 25 public static void main(String[] args) throws Throwable { in main() 49 MethodHandle handle = MethodHandles.throwException(String.class, in testThrowException() 52 if (handle.type().returnType() != String.class) { in testThrowException() 68 public static void dropArguments_delegate(String message, long message2) { in dropArguments_delegate() 75 MethodType.methodType(void.class, new Class<?>[] { String.class, long.class })); in testDropArguments() 113 new Class<?>[] { short.class, Object.class, String.class, long.class })); in testDropArguments() 137 public static String testCatchException_target(String arg1, long arg2, String exceptionMessage) in testCatchException_target() 147 …public static String testCatchException_handler(IllegalArgumentException iae, String arg1, long ar… in testCatchException_handler() 148 String exMsg) { in testCatchException_handler() 153 public static String testCatchException_handler2(IllegalArgumentException iae, String arg1) { in testCatchException_handler2() [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/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/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 …]
|