Lines Matching full:statics
850 SirtRef<mirror::ClassLoader> class_loader(soa.Self(), soa.Decode<mirror::ClassLoader*>(LoadDex("Statics")));
851 mirror::Class* statics = class_linker_->FindClass("LStatics;", class_loader.get());
852 class_linker_->EnsureInitialized(statics, true, true);
857 mirror::ArtMethod* clinit = statics->FindDirectMethod("<clinit>", "()V");
860 EXPECT_EQ(9U, statics->NumStaticFields());
862 mirror::ArtField* s0 = statics->FindStaticField("s0", "Z");
866 EXPECT_EQ(true, s0->GetBoolean(statics));
867 s0->SetBoolean(statics, false);
869 mirror::ArtField* s1 = statics->FindStaticField("s1", "B");
872 EXPECT_EQ(5, s1->GetByte(statics));
873 s1->SetByte(statics, 6);
875 mirror::ArtField* s2 = statics->FindStaticField("s2", "C");
878 EXPECT_EQ('a', s2->GetChar(statics));
879 s2->SetChar(statics, 'b');
881 mirror::ArtField* s3 = statics->FindStaticField("s3", "S");
884 EXPECT_EQ(-536, s3->GetShort(statics));
885 s3->SetShort(statics, -535);
887 mirror::ArtField* s4 = statics->FindStaticField("s4", "I");
890 EXPECT_EQ(2000000000, s4->GetInt(statics));
891 s4->SetInt(statics, 2000000001);
893 mirror::ArtField* s5 = statics->FindStaticField("s5", "J");
896 EXPECT_EQ(0x1234567890abcdefLL, s5->GetLong(statics));
897 s5->SetLong(statics, 0x34567890abcdef12LL);
899 mirror::ArtField* s6 = statics->FindStaticField("s6", "F");
902 EXPECT_EQ(0.5, s6->GetFloat(statics));
903 s6->SetFloat(statics, 0.75);
905 mirror::ArtField* s7 = statics->FindStaticField("s7", "D");
908 EXPECT_EQ(16777217, s7->GetDouble(statics));
909 s7->SetDouble(statics, 16777219);
911 mirror::ArtField* s8 = statics->FindStaticField("s8", "Ljava/lang/String;");
914 EXPECT_TRUE(s8->GetObject(statics)->AsString()->Equals("android"));
919 EXPECT_FALSE(s0->GetBoolean(statics));
920 EXPECT_EQ(6, s1->GetByte(statics));
921 EXPECT_EQ('b', s2->GetChar(statics));
922 EXPECT_EQ(-535, s3->GetShort(statics));
923 EXPECT_EQ(2000000001, s4->GetInt(statics));
924 EXPECT_EQ(0x34567890abcdef12LL, s5->GetLong(statics));
925 EXPECT_EQ(0.75, s6->GetFloat(statics));
926 EXPECT_EQ(16777219, s7->GetDouble(statics));
927 EXPECT_TRUE(s8->GetObject(statics)->AsString()->Equals("robot"));