Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 81) sorted by relevance

1234

/art/test/055-enum-performance/src/
DMain.java78 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/
DStaticLeafMethods.java29 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/
DNonStaticLeafMethods.java31 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/
DMain.java27 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/
DMain.java36 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/
Djava_lang_Class.cc35 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 …]
Djava_lang_reflect_Constructor.cc43 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()
Djava_lang_VMClassLoader.cc36 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/
Dobject.cc41 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 …]
Dobject_test.cc137 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 …]
Dclass.cc251 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/
Dindenter.h32 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()
Dcheck_jni.cc262 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 …]
Dutils_test.cc102 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 …]
Dutils.cc234 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 …]
Djni_internal_test.cc100 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 …]
Dwell_known_classes.cc100 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()
Djvalue.h38 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
Ddebugger.cc277 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/
DMain.java55 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/
DMain.java19 p1.BaseClass c = new p2.DerivedClass(); in main() local
20 c.run(); in main()
/art/runtime/hprof/
Dhprof.cc514 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/
DArgsTest.java33 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/
Dcompiler_driver_test.cc81 …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/
Dstringpiece.cc53 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()

1234