Home
last modified time | relevance | path

Searched refs:getSimpleName (Results 1 – 25 of 50) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidClassTest.java242 assertEquals("OldAndroidClassTest", clazz.getSimpleName()); in testVariousClassNames()
248 assertEquals("MemberClass", clazz.getSimpleName()); in testVariousClassNames()
258 assertEquals("LocalClass", clazz.getSimpleName()); in testVariousClassNames()
264 assertEquals("", clazz.getSimpleName()); in testVariousClassNames()
272 assertEquals("Mou$$aka", clazz.getSimpleName()); in testVariousClassNames()
278 assertEquals("Mi$o$oup", clazz.getSimpleName()); in testVariousClassNames()
287 assertEquals("Ma$hedPotatoe$", clazz.getSimpleName()); in testVariousClassNames()
DReflectionTest.java593 assertEquals("ReflectionTest", ReflectionTest.class.getSimpleName()); in testInnerClassName()
594 assertEquals("Foo", Foo.class.getSimpleName()); in testInnerClassName()
595 assertEquals("", staticAnonymous.getClass().getSimpleName()); in testInnerClassName()
/libcore/luni/src/test/java/libcore/java/lang/
DClassTest.java122 assertEquals("TestBadInnerClass_InnerXXXXX", cl.getSimpleName()); in b28833829()
127 assertEquals("ClassTest", this.getClass().getSimpleName()); in testGetSimpleName()
128 assertEquals("int[]", int[].class.getSimpleName()); in testGetSimpleName()
129 assertEquals("int[][]", int[][].class.getSimpleName()); in testGetSimpleName()
130 assertEquals("ClassTest[]", ClassTest[].class.getSimpleName()); in testGetSimpleName()
131 assertEquals("", new A() {}.getClass().getSimpleName()); // Anonymous class in testGetSimpleName()
132 assertEquals("A", A.class.getSimpleName()); // member interface in testGetSimpleName()
133 assertEquals("X", X.class.getSimpleName()); // member class in testGetSimpleName()
135 assertEquals("LocalClass", LocalClass.class.getSimpleName()); in testGetSimpleName()
DOldClassTest.java590 assertEquals("PublicTestClass", PublicTestClass.class.getSimpleName()); in test_getSimpleName()
591 assertEquals("void", void.class.getSimpleName()); in test_getSimpleName()
592 assertEquals("int[]", int[].class.getSimpleName()); in test_getSimpleName()
/libcore/ojluni/src/main/java/java/security/
DSecureRandomSpi.java218 return getClass().getSimpleName(); in toString()
/libcore/benchmarks/src_androidx/libcore/benchmark/
DClassTest.java37 A.class.getSimpleName(); in testGetSimpleName()
/libcore/ojluni/src/test/java/lang/invoke/
DVarargsArrayTest.java57 CLASS.getSimpleName()+".MAX_ARITY", 40);
59 CLASS.getSimpleName()+".START_ARITY", 0);
61 CLASS.getSimpleName()+".EXHAUSTIVE");
DPermuteArgsTest.java58 private static final int MAX_ARITY = Integer.getInteger(CLASS.getSimpleName()+".MAX_ARITY", 8);
59 private static final boolean DRY_RUN = Boolean.getBoolean(CLASS.getSimpleName()+".DRY_RUN");
60 …private static final boolean VERBOSE = Boolean.getBoolean(CLASS.getSimpleName()+".VERBOSE") || DRY…
DExplicitCastArgumentsTest.java570 + "%-10s => %-10s: %5s: ", from.getSimpleName(), in testConversion()
571 to.getSimpleName(), param); in testConversion()
634 result.getClass().getSimpleName()); in testConversion()
DMethodHandlesTest.java55 String vstr = System.getProperty(THIS_CLASS.getSimpleName()+".verbosity");
67 String vstr = System.getProperty(THIS_CLASS.getSimpleName()+".CAN_SKIP_WORKING");
325 return x.getClass().getSimpleName(); in getClasses()
648 pfx = rtype.getSimpleName().substring(0, 1).toLowerCase();
/libcore/ojluni/src/main/java/java/util/random/
DRandomGeneratorFactory.java177 return Map.entry(clazz.getSimpleName(), new Provider<>() { in entryFor()
275 category.getSimpleName() +
442 return provider.type().getSimpleName();
/libcore/ojluni/src/main/java/java/util/
DIntSummaryStatistics.java207 this.getClass().getSimpleName(), in toString()
DLongSummaryStatistics.java219 this.getClass().getSimpleName(), in toString()
DDoubleSummaryStatistics.java311 this.getClass().getSimpleName(), in toString()
/libcore/ojluni/src/main/java/java/util/stream/
DSpinedBuffer.java829 getClass().getSimpleName(), array.length, in toString()
835 getClass().getSimpleName(), array.length, in toString()
947 getClass().getSimpleName(), array.length, in toString()
953 getClass().getSimpleName(), array.length, in toString()
1065 getClass().getSimpleName(), array.length, in toString()
1071 getClass().getSimpleName(), array.length, in toString()
/libcore/luni/src/main/java/libcore/util/
DObjects.java34 sb.append(c.getSimpleName()).append('['); in toString()
/libcore/luni/src/main/java/libcore/reflect/
DParameterizedTypeImpl.java108 sb.append(getRawType().getSimpleName()); in toString()
/libcore/ojluni/src/test/java/util/Collections/
DRacingCollections.java306 System.out.printf("%s: %s, %s%n", k.getSimpleName(), in describe()
307 x.getClass().getSimpleName(), in describe()
308 y.getClass().getSimpleName()); in describe()
DEmptyNavigableSet.java62 …" + (actual == null ? "<null>" : actual.getClass().getSimpleName()) + " != " + expected.getSimpleN… in assertInstance()
DEmptyNavigableMap.java59 …" + (actual == null ? "<null>" : actual.getClass().getSimpleName()) + " != " + expected.getSimpleN… in assertInstance()
/libcore/luni/src/test/java/libcore/java/util/
DFormatterTest.java401 assertEquals("IllegalFormatArgumentIndexException", exception.getClass().getSimpleName()); in invalidIndicesThrowsException_afterU_whenChecksAreEnabled()
406 assertEquals("IllegalFormatArgumentIndexException", exception.getClass().getSimpleName()); in invalidIndicesThrowsException_afterU_whenChecksAreEnabled()
/libcore/benchmarks/src/benchmarks/regression/
DAnnotatedElementBenchmark.java192 HasSmallAnnotation.class.getSimpleName(); in timeGetSimpleName()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketConcurrentCloseTest.java40 private static final String TAG = ServerSocketConcurrentCloseTest.class.getSimpleName();
/libcore/luni/src/test/java/libcore/libcore/reflect/
DParameterizedTypeRegressionTest.java253 stringBuilder.append(rawType.getSimpleName()); in toString()
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java200 System.err.println(prefix + " [" + obj.getClass().getSimpleName() + in println()

12