Lines Matching refs:c
96 mirror::Class* c = class_linker_->FindPrimitiveClass(descriptor); in GetPrimitiveClass() local
97 CHECK(c != nullptr); in GetPrimitiveClass()
98 return soa.AddLocalReference<jclass>(c); in GetPrimitiveClass()
109 jclass c = env_->FindClass("java/lang/String"); in TEST_F() local
110 ASSERT_NE(c, nullptr); in TEST_F()
111 jobject o = env_->AllocObject(c); 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()
175 jclass c = env_->FindClass("java/lang/String"); in TEST_F() local
176 ASSERT_NE(c, nullptr); in TEST_F()
179 jfieldID fid = env_->GetFieldID(c, "count", "J"); in TEST_F()
184 fid = env_->GetFieldID(c, "count", "Lrod/jane/freddy;"); in TEST_F()
189 fid = env_->GetFieldID(c, "Count", "I"); in TEST_F()
194 fid = env_->GetFieldID(c, "count", "I"); in TEST_F()
199 c = env_->FindClass("java/lang/StringBuilder"); in TEST_F()
200 fid = env_->GetFieldID(c, "count", "I"); in TEST_F()
206 fid = env_->GetFieldID(c, "CASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;"); in TEST_F()
215 fid = env_->GetFieldID(c, nullptr, "I"); in TEST_F()
218 fid = env_->GetFieldID(c, "count", nullptr); in TEST_F()
226 jclass c = env_->FindClass("java/lang/String"); in TEST_F() local
227 ASSERT_NE(c, nullptr); in TEST_F()
230 jfieldID fid = env_->GetStaticFieldID(c, "CASE_INSENSITIVE_ORDER", "J"); in TEST_F()
235 fid = env_->GetStaticFieldID(c, "CASE_INSENSITIVE_ORDER", "Lrod/jane/freddy;"); in TEST_F()
240 fid = env_->GetStaticFieldID(c, "cASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;"); in TEST_F()
245 fid = env_->GetStaticFieldID(c, "CASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;"); in TEST_F()
251 fid = env_->GetStaticFieldID(c, "count", "I"); in TEST_F()
260 fid = env_->GetStaticFieldID(c, nullptr, "Ljava/util/Comparator;"); in TEST_F()
263 fid = env_->GetStaticFieldID(c, "CASE_INSENSITIVE_ORDER", nullptr); in TEST_F()
373 jclass c = env_->FindClass("java/lang/String"); in TEST_F() local
374 ASSERT_NE(c, nullptr); in TEST_F()
375 jfieldID fid = env_->GetFieldID(c, "count", "I"); in TEST_F()
378 jobject field = env_->ToReflectedField(c, fid, JNI_FALSE); in TEST_F()
382 env_->DeleteLocalRef(env_->ToReflectedField(c, fid, JNI_FALSE)); in TEST_F()
384 ASSERT_NE(c, nullptr); in TEST_F()
395 field = env_->ToReflectedField(c, nullptr, JNI_FALSE); in TEST_F()
408 jclass c = env_->FindClass("java/lang/String"); in TEST_F() local
409 ASSERT_NE(c, nullptr); in TEST_F()
411 jmethodID mid = env_->GetMethodID(c, "<init>", "()V"); in TEST_F()
414 jobject method = env_->ToReflectedMethod(c, mid, JNI_FALSE); in TEST_F()
418 env_->DeleteLocalRef(env_->ToReflectedMethod(c, mid, JNI_FALSE)); in TEST_F()
426 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c)); in TEST_F()
431 mid = env_->GetMethodID(c, "length", "()I"); in TEST_F()
434 method = env_->ToReflectedMethod(c, mid, JNI_FALSE); in TEST_F()
447 method = env_->ToReflectedMethod(c, nullptr, JNI_FALSE); in TEST_F()
944 jclass c = env_->GetObjectClass(s); in TEST_F() local
945 ASSERT_TRUE(env_->IsSameObject(string_class, c)); in TEST_F()
947 jclass c2 = env_->GetObjectClass(c); in TEST_F()
1260 jfieldID fid = env_->GetStaticFieldID(c, field_name, sig); \
1262 env_->SetStatic ## type ## Field(c, fid, value1); \
1263 EXPECT_EQ(value1, env_->GetStatic ## type ## Field(c, fid)); \
1264 env_->SetStatic ## type ## Field(c, fid, value2); \
1265 EXPECT_EQ(value2, env_->GetStatic ## type ## Field(c, fid)); \
1272 env_->GetStatic ## type ## Field(c, nullptr); \
1274 env_->SetStatic ## type ## Field(c, nullptr, value1); \
1280 jfieldID fid = env_->GetFieldID(c, field_name, sig); \
1306 jclass c = env_->FindClass("AllFields"); in TEST_F() local
1307 ASSERT_NE(c, nullptr); in TEST_F()
1308 jobject o = env_->AllocObject(c); in TEST_F()
1336 jclass c = env_->FindClass("AllFields"); in TEST_F() local
1337 ASSERT_NE(c, nullptr); in TEST_F()
1338 jobject o = env_->AllocObject(c); in TEST_F()
1346 jfieldID s_fid = env_->GetStaticFieldID(c, "sObject", "Ljava/lang/Object;"); in TEST_F()
1348 jfieldID i_fid = env_->GetFieldID(c, "iObject", "Ljava/lang/Object;"); in TEST_F()
1351 env_->SetStaticObjectField(c, s_fid, s1); in TEST_F()
1352 ASSERT_TRUE(env_->IsSameObject(s1, env_->GetStaticObjectField(c, s_fid))); in TEST_F()
1353 env_->SetStaticObjectField(c, s_fid, s2); in TEST_F()
1354 ASSERT_TRUE(env_->IsSameObject(s2, env_->GetStaticObjectField(c, s_fid))); in TEST_F()