/art/test/055-enum-performance/src/ |
D | Main.java | 78 Class<SamePackagePublicEnum> c = SamePackagePublicEnum.class; in preTest() local 80 System.out.println(Enum.valueOf(c, "FOUR")); in preTest() 81 System.out.println(Enum.valueOf(c, "ONE")); in preTest() 82 System.out.println(Enum.valueOf(c, "FOURTEEN")); in preTest() 83 System.out.println(Enum.valueOf(c, "NINE")); in preTest() 84 System.out.println(Enum.valueOf(c, "FIVE")); in preTest() 85 System.out.println(Enum.valueOf(c, "TWELVE")); in preTest() 87 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName()); in preTest() 133 Class<SamePackagePublicEnum> c = SamePackagePublicEnum.class; in test1() local 135 Enum.valueOf(c, "ZERO"); in test1() [all …]
|
/art/test/StaticLeafMethods/ |
D | StaticLeafMethods.java | 29 static int sum(int a, int b, int c) { in sum() argument 30 return a + b + c; in sum() 32 static int sum(int a, int b, int c, int d) { in sum() argument 33 return a + b + c + d; in sum() 35 static int sum(int a, int b, int c, int d, int e) { in sum() argument 36 return a + b + c + d + e; in sum() 44 static double sum(double a, double b, double c) { in sum() argument 45 return a + b + c; in sum() 47 static double sum(double a, double b, double c, double d) { in sum() argument 48 return a + b + c + d; in sum() [all …]
|
/art/test/NonStaticLeafMethods/ |
D | NonStaticLeafMethods.java | 31 int sum(int a, int b, int c) { in sum() argument 32 return a + b + c; in sum() 34 int sum(int a, int b, int c, int d) { in sum() argument 35 return a + b + c + d; in sum() 37 int sum(int a, int b, int c, int d, int e) { in sum() argument 38 return a + b + c + d + e; in sum() 46 double sum(double a, double b, double c) { in sum() argument 47 return a + b + c; in sum() 49 double sum(double a, double b, double c, double d) { in sum() argument 50 return a + b + c + d; in sum() [all …]
|
/art/test/105-invoke/src/ |
D | Main.java | 27 int virI_III(int a, int b, int c) { in virI_III() argument 28 return a + b + c + 432; in virI_III() 31 int virI_IIII(int a, int b, int c, int d) { in virI_IIII() argument 32 return a + b + c + d + 919; in virI_IIII() 35 int virI_IIIII(int a, int b, int c, int d, int e) { in virI_IIIII() argument 36 return a + b + c + d + e + 1010; in virI_IIIII() 39 int virI_IIIIII(int a, int b, int c, int d, int e, int f) { in virI_IIIIII() argument 40 return a + b + c + d + e + f + 2020; in virI_IIIIII() 51 static int statI_III(int a, int b, int c) { in statI_III() argument 52 return a + b + c + 432; in statI_III() [all …]
|
/art/test/042-new-instance/src/ |
D | Main.java | 36 Class c = Class.forName("LocalClass"); in testClassNewInstance() local 37 Object obj = c.newInstance(); in testClassNewInstance() 46 Class c = Class.forName("otherpackage.PackageAccess"); in testClassNewInstance() local 47 Object obj = c.newInstance(); in testClassNewInstance() 74 Class c = Class.forName("LocalClass"); in testConstructorNewInstance() local 75 Constructor cons = c.getConstructor(new Class[0] /*(Class[])null*/); in testConstructorNewInstance() 86 Class c = Class.forName("LocalClass2"); in testConstructorNewInstance() local 87 Constructor cons = c.getConstructor((Class[]) null); in testConstructorNewInstance() 97 Class c = Class.forName("Main$InnerClass"); in testConstructorNewInstance() local 98 Constructor cons = c.getDeclaredConstructor(new Class<?>[]{Main.class}); in testConstructorNewInstance() [all …]
|
/art/runtime/native/ |
D | java_lang_Class.cc | 35 mirror::Class* c = soa.Decode<mirror::Class*>(java_class); in DecodeClass() local 36 DCHECK(c != NULL); in DecodeClass() 37 DCHECK(c->IsClass()); in DecodeClass() 41 return c; in DecodeClass() 65 mirror::Class* c = class_linker->FindClass(descriptor.c_str(), class_loader); in Class_classForName() local 66 if (c == NULL) { in Class_classForName() 76 class_linker->EnsureInitialized(c, true, true); in Class_classForName() 78 return soa.AddLocalReference<jclass>(c); in Class_classForName() 83 mirror::Class* c = DecodeClass(soa, javaThis); in Class_getNameNative() local 84 return soa.AddLocalReference<jstring>(c->ComputeName()); in Class_getNameNative() [all …]
|
D | java_lang_reflect_Constructor.cc | 43 mirror::Class* c = m->GetDeclaringClass(); in Constructor_newInstance() local 44 if (UNLIKELY(c->IsAbstract())) { in Constructor_newInstance() 48 c->IsInterface() ? "interface" : "abstract class", in Constructor_newInstance() 49 PrettyDescriptor(c).c_str()); in Constructor_newInstance() 53 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(c, true, true)) { in Constructor_newInstance() 58 mirror::Object* receiver = c->AllocObject(soa.Self()); in Constructor_newInstance()
|
D | java_lang_VMClassLoader.cc | 36 mirror::Class* c = Runtime::Current()->GetClassLinker()->LookupClass(descriptor.c_str(), loader); in VMClassLoader_findLoadedClass() local 37 if (c != NULL && c->IsResolved()) { in VMClassLoader_findLoadedClass() 38 return soa.AddLocalReference<jclass>(c); in VMClassLoader_findLoadedClass()
|
/art/runtime/mirror/ |
D | object.cc | 41 Class* c = GetClass(); in Clone() local 42 DCHECK(!c->IsClassClass()); in Clone() 48 SirtRef<Object> copy(self, heap->AllocObject(self, c, num_bytes)); in Clone() 61 if (c->IsArrayClass()) { in Clone() 62 if (!c->GetComponentType()->IsPrimitive()) { in Clone() 67 for (const Class* klass = c; klass != NULL; klass = klass->GetSuperClass()) { in Clone() 78 if (c->IsFinalizable()) { in Clone() 86 const Class* c = GetClass(); in CheckFieldAssignmentImpl() local 89 !c->IsResolved()) { in CheckFieldAssignmentImpl() 92 for (const Class* cur = c; cur != NULL; cur = cur->GetSuperClass()) { in CheckFieldAssignmentImpl() [all …]
|
D | object_test.cc | 137 Class* c = class_linker_->FindSystemClass("[I"); in TEST_F() local 138 SirtRef<Array> a(soa.Self(), Array::Alloc(soa.Self(), c, 1)); in TEST_F() 139 ASSERT_TRUE(c == a->GetClass()); in TEST_F() 141 c = class_linker_->FindSystemClass("[Ljava/lang/Object;"); in TEST_F() 142 a.reset(Array::Alloc(soa.Self(), c, 1)); in TEST_F() 143 ASSERT_TRUE(c == a->GetClass()); in TEST_F() 145 c = class_linker_->FindSystemClass("[[Ljava/lang/Object;"); in TEST_F() 146 a.reset(Array::Alloc(soa.Self(), c, 1)); in TEST_F() 147 ASSERT_TRUE(c == a->GetClass()); in TEST_F() 225 SirtRef<Class> c(soa.Self(), class_linker_->FindSystemClass("I")); in TEST_F() local [all …]
|
D | class.cc | 251 for (Class* c = this; c != NULL; c = c->GetSuperClass()) { in SetReferenceInstanceOffsets() local 252 count += c->NumReferenceInstanceFieldsDuringLinking(); in SetReferenceInstanceOffsets() 492 for (Class* c = this; c != NULL; c = c->GetSuperClass()) { in FindInstanceField() local 493 ArtField* f = c->FindDeclaredInstanceField(name, type); in FindInstanceField() 504 for (Class* c = this; c != NULL; c = c->GetSuperClass()) { in FindInstanceField() local 505 ArtField* f = c->FindDeclaredInstanceField(dex_cache, dex_field_idx); in FindInstanceField()
|
/art/runtime/ |
D | indenter.h | 32 int_type overflow(int_type c) { in overflow() argument 33 if (c != std::char_traits<char>::eof()) { in overflow() 39 out_sbuf_->sputc(c); in overflow() 40 indent_next_ = (c == '\n'); in overflow() 42 return std::char_traits<char>::not_eof(c); in overflow()
|
D | check_jni.cc | 262 mirror::Class* c = o->GetClass(); in CheckInstanceFieldID() local 264 if (c->FindInstanceField(fh.GetName(), fh.GetTypeDescriptor()) == NULL) { in CheckInstanceFieldID() 311 mirror::Class* c = soa_.Decode<mirror::Class*>(java_class); in CheckStaticFieldID() local 316 if (f->GetDeclaringClass() != c) { in CheckStaticFieldID() 318 fid, PrettyClass(c).c_str()); in CheckStaticFieldID() 337 mirror::Class* c = soa_.Decode<mirror::Class*>(java_class); in CheckStaticMethod() local 338 if (!m->GetDeclaringClass()->IsAssignableFrom(c)) { in CheckStaticMethod() 340 PrettyMethod(m).c_str(), PrettyClass(c).c_str()); in CheckStaticMethod() 426 jchar c = va_arg(ap, int); in Check() local 427 if (c < 0x7f && c >= ' ') { in Check() [all …]
|
D | utils_test.cc | 102 mirror::Class* c = class_linker_->FindSystemClass("[Ljava/lang/String;"); in TEST_F() local 103 ASSERT_TRUE(c != NULL); in TEST_F() 104 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F() 112 mirror::Class* c = class_linker_->FindSystemClass("[Ljava/lang/String;"); in TEST_F() local 113 ASSERT_TRUE(c != NULL); in TEST_F() 114 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F() 121 mirror::Class* c = class_linker_->FindSystemClass("[Ljava/lang/String;"); in TEST_F() local 122 ASSERT_TRUE(c != NULL); in TEST_F() 123 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F() 200 mirror::Class* c = class_linker_->FindSystemClass("Ljava/lang/String;"); in TEST_F() local [all …]
|
D | utils.cc | 234 const char* c = descriptor.c_str(); in PrettyDescriptor() local 236 while (*c == '[') { in PrettyDescriptor() 238 c++; in PrettyDescriptor() 242 if (*c == 'L') { in PrettyDescriptor() 244 c++; // Skip the 'L'. in PrettyDescriptor() 249 switch (*c) { in PrettyDescriptor() 250 case 'B': c = "byte;"; break; in PrettyDescriptor() 251 case 'C': c = "char;"; break; in PrettyDescriptor() 252 case 'D': c = "double;"; break; in PrettyDescriptor() 253 case 'F': c = "float;"; break; in PrettyDescriptor() [all …]
|
D | jni_internal_test.cc | 100 mirror::Class* c = class_linker_->FindClass(DotToDescriptor(class_name).c_str(), in DoCompile() local 102 CHECK(c != NULL); in DoCompile() 104 method = is_static ? c->FindDirectMethod(method_name, method_signature) in DoCompile() 105 : c->FindVirtualMethod(method_name, method_signature); in DoCompile() 108 receiver = (is_static ? NULL : c->AllocObject(self)); in DoCompile() 727 jclass c = env_->FindClass("java/lang/String"); in TEST_F() local 728 ASSERT_TRUE(c != NULL); in TEST_F() 729 jobject o = env_->AllocObject(c); in TEST_F() 733 ASSERT_TRUE(env_->IsInstanceOf(o, c)); in TEST_F() 736 ASSERT_EQ(0, env_->GetIntField(o, env_->GetFieldID(c, "count", "I"))); in TEST_F() [all …]
|
D | well_known_classes.cc | 100 ScopedLocalRef<jclass> c(env, env->FindClass(jni_class_name)); in CacheClass() local 101 if (c.get() == NULL) { in CacheClass() 104 return reinterpret_cast<jclass>(env->NewGlobalRef(c.get())); in CacheClass() 107 static jfieldID CacheField(JNIEnv* env, jclass c, bool is_static, const char* name, const char* sig… in CacheField() argument 108 …jfieldID fid = is_static ? env->GetStaticFieldID(c, name, signature) : env->GetFieldID(c, name, si… in CacheField() 115 jmethodID CacheMethod(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signatur… in CacheMethod() argument 116 …jmethodID mid = is_static ? env->GetStaticMethodID(c, name, signature) : env->GetMethodID(c, name,… in CacheMethod()
|
D | jvalue.h | 38 uint16_t GetC() const { return c; } in GetC() 39 void SetC(uint16_t new_c) { c = new_c; } in SetC() 67 uint16_t c; member
|
D | debugger.cc | 277 static JDWP::JdwpTag TagFromClass(mirror::Class* c) in TagFromClass() argument 279 CHECK(c != NULL); in TagFromClass() 280 if (c->IsArrayClass()) { in TagFromClass() 285 if (c->IsStringClass()) { in TagFromClass() 287 } else if (c->IsClassClass()) { in TagFromClass() 289 } else if (class_linker->FindSystemClass("Ljava/lang/Thread;")->IsAssignableFrom(c)) { in TagFromClass() 291 } else if (class_linker->FindSystemClass("Ljava/lang/ThreadGroup;")->IsAssignableFrom(c)) { in TagFromClass() 293 } else if (class_linker->FindSystemClass("Ljava/lang/ClassLoader;")->IsAssignableFrom(c)) { in TagFromClass() 610 mirror::Class* c = DecodeClass(id, status); in GetClassObject() local 611 if (c == NULL) { in GetClassObject() [all …]
|
/art/test/027-arithmetic/src/ |
D | Main.java | 55 long c = 0x33; in shiftTest2() local 62 long result = ((a << 56) | (b << 48) | (c << 40) | (d << 32) | in shiftTest2() 134 char c = 0xfffc; in unsignedShiftTest() local 139 c >>>= 4; in unsignedShiftTest() 142 System.out.println("b=" + b + ", s=" + s + ", c=" + (int)c + ", i=" +i); in unsignedShiftTest() 145 + ", c=0x" + Integer.toHexString((int)c) in unsignedShiftTest()
|
/art/test/300-package-override/src/ |
D | Main.java | 19 p1.BaseClass c = new p2.DerivedClass(); in main() local 20 c.run(); in main()
|
/art/runtime/hprof/ |
D | hprof.cc | 514 const mirror::Class* c = *it; in WriteClassTable() local 515 CHECK(c != NULL); in WriteClassTable() 528 rec->AddId((HprofClassObjectId) c); in WriteClassTable() 530 rec->AddId(LookupClassNameId(c)); in WriteClassTable() 576 HprofClassObjectId LookupClassId(mirror::Class* c) in LookupClassId() argument 578 if (c == NULL) { in LookupClassId() 583 std::pair<ClassSetIterator, bool> result = classes_.insert(c); in LookupClassId() 587 LookupClassNameId(c); in LookupClassId() 589 CHECK_EQ(present, c); in LookupClassId() 611 HprofStringId LookupClassNameId(const mirror::Class* c) in LookupClassNameId() argument [all …]
|
/art/test/005-args/src/ |
D | ArgsTest.java | 33 void argTest(int a, char c, double d, long j, float f) { in argTest() argument 41 System.out.println("a=" + a + " c=" + c + " d=" + d in argTest()
|
/art/compiler/driver/ |
D | compiler_driver_test.cc | 81 …mirror::Class* c = class_linker->FindClass(descriptor, soa.Decode<mirror::ClassLoader*>(class_load… in MakeDexFileExecutable() local 82 CHECK(c != NULL); in MakeDexFileExecutable() 83 for (size_t i = 0; i < c->NumDirectMethods(); i++) { in MakeDexFileExecutable() 84 MakeExecutable(c->GetDirectMethod(i)); in MakeDexFileExecutable() 86 for (size_t i = 0; i < c->NumVirtualMethods(); i++) { in MakeDexFileExecutable() 87 MakeExecutable(c->GetVirtualMethod(i)); in MakeDexFileExecutable()
|
/art/runtime/base/ |
D | stringpiece.cc | 53 StringPiece::size_type StringPiece::find(char c, size_type pos) const { in find() argument 57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() 71 StringPiece::size_type StringPiece::rfind(char c, size_type pos) const { in rfind() argument 75 if (ptr_[i] == c) { in rfind()
|