Lines Matching refs:statics
1170 Handle<mirror::Class> statics( in TEST_F() local
1172 class_linker_->EnsureInitialized(soa.Self(), statics, true, true); in TEST_F()
1177 ArtMethod* clinit = statics->FindClassMethod("<clinit>", "()V", kRuntimePointerSize); in TEST_F()
1180 EXPECT_EQ(9U, statics->NumStaticFields()); in TEST_F()
1182 ArtField* s0 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s0", "Z"); in TEST_F()
1184 EXPECT_EQ(true, s0->GetBoolean(statics.Get())); in TEST_F()
1185 s0->SetBoolean<false>(statics.Get(), false); in TEST_F()
1187 ArtField* s1 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s1", "B"); in TEST_F()
1189 EXPECT_EQ(5, s1->GetByte(statics.Get())); in TEST_F()
1190 s1->SetByte<false>(statics.Get(), 6); in TEST_F()
1192 ArtField* s2 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s2", "C"); in TEST_F()
1194 EXPECT_EQ('a', s2->GetChar(statics.Get())); in TEST_F()
1195 s2->SetChar<false>(statics.Get(), 'b'); in TEST_F()
1197 ArtField* s3 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s3", "S"); in TEST_F()
1199 EXPECT_EQ(-536, s3->GetShort(statics.Get())); in TEST_F()
1200 s3->SetShort<false>(statics.Get(), -535); in TEST_F()
1202 ArtField* s4 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s4", "I"); in TEST_F()
1204 EXPECT_EQ(2000000000, s4->GetInt(statics.Get())); in TEST_F()
1205 s4->SetInt<false>(statics.Get(), 2000000001); in TEST_F()
1207 ArtField* s5 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s5", "J"); in TEST_F()
1209 EXPECT_EQ(0x1234567890abcdefLL, s5->GetLong(statics.Get())); in TEST_F()
1210 s5->SetLong<false>(statics.Get(), INT64_C(0x34567890abcdef12)); in TEST_F()
1212 ArtField* s6 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s6", "F"); in TEST_F()
1214 EXPECT_DOUBLE_EQ(0.5, s6->GetFloat(statics.Get())); in TEST_F()
1215 s6->SetFloat<false>(statics.Get(), 0.75); in TEST_F()
1217 ArtField* s7 = mirror::Class::FindStaticField(soa.Self(), statics.Get(), "s7", "D"); in TEST_F()
1219 EXPECT_DOUBLE_EQ(16777217.0, s7->GetDouble(statics.Get())); in TEST_F()
1220 s7->SetDouble<false>(statics.Get(), 16777219); in TEST_F()
1223 soa.Self(), statics.Get(), "s8", "Ljava/lang/String;"); in TEST_F()
1225 EXPECT_TRUE(s8->GetObject(statics.Get())->AsString()->Equals("android")); in TEST_F()
1231 EXPECT_FALSE(s0->GetBoolean(statics.Get())); in TEST_F()
1232 EXPECT_EQ(6, s1->GetByte(statics.Get())); in TEST_F()
1233 EXPECT_EQ('b', s2->GetChar(statics.Get())); in TEST_F()
1234 EXPECT_EQ(-535, s3->GetShort(statics.Get())); in TEST_F()
1235 EXPECT_EQ(2000000001, s4->GetInt(statics.Get())); in TEST_F()
1236 EXPECT_EQ(INT64_C(0x34567890abcdef12), s5->GetLong(statics.Get())); in TEST_F()
1237 EXPECT_FLOAT_EQ(0.75, s6->GetFloat(statics.Get())); in TEST_F()
1238 EXPECT_DOUBLE_EQ(16777219.0, s7->GetDouble(statics.Get())); in TEST_F()
1239 EXPECT_TRUE(s8->GetObject(statics.Get())->AsString()->Equals("robot")); in TEST_F()
1486 Handle<mirror::Class> statics( in TEST_F() local
1489 CheckVerificationAttempted(statics.Get(), false); in TEST_F()
1491 class_linker_->EnsureInitialized(soa.Self(), statics, true, true); in TEST_F()
1492 CheckVerificationAttempted(statics.Get(), true); in TEST_F()
1509 Handle<mirror::Class> statics( in TEST_F() local
1511 ASSERT_TRUE(statics != nullptr); in TEST_F()
1512 EXPECT_FALSE(statics->IsBootStrapClassLoaded()); in TEST_F()