Home | History | Annotate | Download | only in runtime

Lines Matching full:primitive

67   void AssertPrimitiveClass(const std::string& descriptor, mirror::Class* primitive)
69 ASSERT_TRUE(primitive != nullptr);
70 ASSERT_TRUE(primitive->GetClass() != nullptr);
71 ASSERT_EQ(primitive->GetClass(), primitive->GetClass()->GetClass());
72 EXPECT_TRUE(primitive->GetClass()->GetSuperClass() != nullptr);
74 ASSERT_STREQ(descriptor.c_str(), primitive->GetDescriptor(&temp));
75 EXPECT_TRUE(primitive->GetSuperClass() == nullptr);
76 EXPECT_FALSE(primitive->HasSuperClass());
77 EXPECT_TRUE(primitive->GetClassLoader() == nullptr);
78 EXPECT_EQ(mirror::Class::kStatusInitialized, primitive->GetStatus());
79 EXPECT_FALSE(primitive->IsErroneous());
80 EXPECT_TRUE(primitive->IsLoaded());
81 EXPECT_TRUE(primitive->IsResolved());
82 EXPECT_TRUE(primitive->IsVerified());
83 EXPECT_TRUE(primitive->IsInitialized());
84 EXPECT_FALSE(primitive->IsArrayInstance());
85 EXPECT_FALSE(primitive->IsArrayClass());
86 EXPECT_TRUE(primitive->GetComponentType() == nullptr);
87 EXPECT_FALSE(primitive->IsInterface());
88 EXPECT_TRUE(primitive->IsPublic());
89 EXPECT_TRUE(primitive->IsFinal());
90 EXPECT_TRUE(primitive->IsPrimitive());
91 EXPECT_FALSE(primitive->IsSynthetic());
92 EXPECT_EQ(0U, primitive->NumDirectMethods());
93 EXPECT_EQ(0U, primitive->NumVirtualMethods());
94 EXPECT_EQ(0U, primitive->NumInstanceFields());
95 EXPECT_EQ(0U, primitive->NumStaticFields());
96 EXPECT_EQ(0U, primitive->NumDirectInterfaces());
97 EXPECT_FALSE(primitive->HasVTable());
98 EXPECT_EQ(0, primitive->GetIfTableCount());
99 EXPECT_TRUE(primitive->GetIfTable() == nullptr);
100 EXPECT_EQ(kAccPublic | kAccFinal | kAccAbstract, primitive->GetAccessFlags());
300 // While Reference.referent is not primitive, the ClassLinker
911 EXPECT_EQ(s0->GetTypeAsPrimitiveType(), Primitive::kPrimBoolean);
916 EXPECT_EQ(s1->GetTypeAsPrimitiveType(), Primitive::kPrimByte);
921 EXPECT_EQ(s2->GetTypeAsPrimitiveType(), Primitive::kPrimChar);
926 EXPECT_EQ(s3->GetTypeAsPrimitiveType(), Primitive::kPrimShort);
931 EXPECT_EQ(s4->GetTypeAsPrimitiveType(), Primitive::kPrimInt);
936 EXPECT_EQ(s5->GetTypeAsPrimitiveType(), Primitive::kPrimLong);
941 EXPECT_EQ(s6->GetTypeAsPrimitiveType(), Primitive::kPrimFloat);
946 EXPECT_EQ(s7->GetTypeAsPrimitiveType(), Primitive::kPrimDouble);
952 EXPECT_EQ(s8->GetTypeAsPrimitiveType(), Primitive::kPrimNot);