Lines Matching refs:statics
924 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Statics"))));
925 Handle<mirror::Class> statics(
927 class_linker_->EnsureInitialized(soa.Self(), statics, true, true);
932 ArtMethod* clinit = statics->FindDirectMethod("<clinit>", "()V", sizeof(void*));
935 EXPECT_EQ(9U, statics->NumStaticFields());
937 ArtField* s0 = mirror::Class::FindStaticField(soa.Self(), statics, "s0", "Z");
939 EXPECT_EQ(true, s0->GetBoolean(statics.Get()));
940 s0->SetBoolean<false>(statics.Get(), false);
942 ArtField* s1 = mirror::Class::FindStaticField(soa.Self(), statics, "s1", "B");
944 EXPECT_EQ(5, s1->GetByte(statics.Get()));
945 s1->SetByte<false>(statics.Get(), 6);
947 ArtField* s2 = mirror::Class::FindStaticField(soa.Self(), statics, "s2", "C");
949 EXPECT_EQ('a', s2->GetChar(statics.Get()));
950 s2->SetChar<false>(statics.Get(), 'b');
952 ArtField* s3 = mirror::Class::FindStaticField(soa.Self(), statics, "s3", "S");
954 EXPECT_EQ(-536, s3->GetShort(statics.Get()));
955 s3->SetShort<false>(statics.Get(), -535);
957 ArtField* s4 = mirror::Class::FindStaticField(soa.Self(), statics, "s4", "I");
959 EXPECT_EQ(2000000000, s4->GetInt(statics.Get()));
960 s4->SetInt<false>(statics.Get(), 2000000001);
962 ArtField* s5 = mirror::Class::FindStaticField(soa.Self(), statics, "s5", "J");
964 EXPECT_EQ(0x1234567890abcdefLL, s5->GetLong(statics.Get()));
965 s5->SetLong<false>(statics.Get(), INT64_C(0x34567890abcdef12));
967 ArtField* s6 = mirror::Class::FindStaticField(soa.Self(), statics, "s6", "F");
969 EXPECT_DOUBLE_EQ(0.5, s6->GetFloat(statics.Get()));
970 s6->SetFloat<false>(statics.Get(), 0.75);
972 ArtField* s7 = mirror::Class::FindStaticField(soa.Self(), statics, "s7", "D");
974 EXPECT_DOUBLE_EQ(16777217.0, s7->GetDouble(statics.Get()));
975 s7->SetDouble<false>(statics.Get(), 16777219);
977 ArtField* s8 = mirror::Class::FindStaticField(soa.Self(), statics, "s8",
980 EXPECT_TRUE(s8->GetObject(statics.Get())->AsString()->Equals("android"));
986 EXPECT_FALSE(s0->GetBoolean(statics.Get()));
987 EXPECT_EQ(6, s1->GetByte(statics.Get()));
988 EXPECT_EQ('b', s2->GetChar(statics.Get()));
989 EXPECT_EQ(-535, s3->GetShort(statics.Get()));
990 EXPECT_EQ(2000000001, s4->GetInt(statics.Get()));
991 EXPECT_EQ(INT64_C(0x34567890abcdef12), s5->GetLong(statics.Get()));
992 EXPECT_FLOAT_EQ(0.75, s6->GetFloat(statics.Get()));
993 EXPECT_DOUBLE_EQ(16777219.0, s7->GetDouble(statics.Get()));
994 EXPECT_TRUE(s8->GetObject(statics.Get())->AsString()->Equals("robot"));
1200 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Statics"))));
1201 Handle<mirror::Class> statics(
1204 CheckVerificationAttempted(statics.Get(), false);
1206 class_linker_->EnsureInitialized(soa.Self(), statics, true, true);
1207 CheckVerificationAttempted(statics.Get(), true);
1215 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(LoadDex("Statics"))));
1223 // Statics is not a bootstrap class.
1224 Handle<mirror::Class> statics(
1226 ASSERT_TRUE(statics.Get() != nullptr);
1227 EXPECT_FALSE(statics.Get()->IsBootStrapClassLoaded());