Lines Matching refs:o

111   jobject o = env_->AllocObject(c);  in TEST_F()  local
112 ASSERT_NE(o, nullptr); in TEST_F()
115 ASSERT_TRUE(env_->IsInstanceOf(o, c)); in TEST_F()
118 ASSERT_EQ(0, env_->GetIntField(o, env_->GetFieldID(c, "count", "I"))); in TEST_F()
119 ASSERT_EQ(0, env_->GetIntField(o, env_->GetFieldID(c, "offset", "I"))); in TEST_F()
120 ASSERT_TRUE(env_->GetObjectField(o, env_->GetFieldID(c, "value", "[C")) == nullptr); in TEST_F()
1308 jobject o = env_->AllocObject(c); in TEST_F() local
1309 ASSERT_NE(o, nullptr); in TEST_F()
1320 EXPECT_PRIMITIVE_FIELD(o, Boolean, "iZ", "Z", JNI_TRUE, JNI_FALSE); in TEST_F()
1321 EXPECT_PRIMITIVE_FIELD(o, Byte, "iB", "B", 1, 2); in TEST_F()
1322 EXPECT_PRIMITIVE_FIELD(o, Char, "iC", "C", 'a', 'b'); in TEST_F()
1323 EXPECT_PRIMITIVE_FIELD(o, Double, "iD", "D", 1.0, 2.0); in TEST_F()
1324 EXPECT_PRIMITIVE_FIELD(o, Float, "iF", "F", 1.0, 2.0); in TEST_F()
1325 EXPECT_PRIMITIVE_FIELD(o, Int, "iI", "I", 1, 2); in TEST_F()
1326 EXPECT_PRIMITIVE_FIELD(o, Long, "iJ", "J", 1, 2); in TEST_F()
1327 EXPECT_PRIMITIVE_FIELD(o, Short, "iS", "S", 1, 2); in TEST_F()
1338 jobject o = env_->AllocObject(c); in TEST_F() local
1339 ASSERT_NE(o, nullptr); in TEST_F()
1356 env_->SetObjectField(o, i_fid, s1); in TEST_F()
1357 ASSERT_TRUE(env_->IsSameObject(s1, env_->GetObjectField(o, i_fid))); in TEST_F()
1358 env_->SetObjectField(o, i_fid, s2); in TEST_F()
1359 ASSERT_TRUE(env_->IsSameObject(s2, env_->GetObjectField(o, i_fid))); in TEST_F()
1369 jobject o = env_->NewLocalRef(s); in TEST_F() local
1370 EXPECT_NE(o, nullptr); in TEST_F()
1371 EXPECT_NE(o, s); in TEST_F()
1373 EXPECT_EQ(JNILocalRefType, env_->GetObjectRefType(o)); in TEST_F()
1397 jobject o = env_->NewLocalRef(s); in TEST_F() local
1398 ASSERT_NE(o, nullptr); in TEST_F()
1401 env_->DeleteLocalRef(o); in TEST_F()
1462 jobject o = env_->NewGlobalRef(s); in TEST_F() local
1463 EXPECT_NE(o, nullptr); in TEST_F()
1464 EXPECT_NE(o, s); in TEST_F()
1466 EXPECT_EQ(env_->GetObjectRefType(o), JNIGlobalRefType); in TEST_F()
1477 jobject o = env_->NewGlobalRef(s); in TEST_F() local
1478 ASSERT_NE(o, nullptr); in TEST_F()
1479 env_->DeleteGlobalRef(o); in TEST_F()
1484 env_->DeleteGlobalRef(o); in TEST_F()
1487 "invalid global reference: %p", o)); in TEST_F()
1507 jobject o = env_->NewWeakGlobalRef(s); in TEST_F() local
1508 EXPECT_NE(o, nullptr); in TEST_F()
1509 EXPECT_NE(o, s); in TEST_F()
1511 EXPECT_EQ(env_->GetObjectRefType(o), JNIWeakGlobalRefType); in TEST_F()
1522 jobject o = env_->NewWeakGlobalRef(s); in TEST_F() local
1523 ASSERT_NE(o, nullptr); in TEST_F()
1524 env_->DeleteWeakGlobalRef(o); in TEST_F()
1529 env_->DeleteWeakGlobalRef(o); in TEST_F()
1532 "invalid weak global reference: %p", o)); in TEST_F()