Lines Matching refs:obj
255 void GraphicsJNI::get_jrect(JNIEnv* env, jobject obj, int* L, int* T, int* R, int* B) in get_jrect() argument
257 ALOG_ASSERT(env->IsInstanceOf(obj, gRect_class)); in get_jrect()
259 *L = env->GetIntField(obj, gRect_leftFieldID); in get_jrect()
260 *T = env->GetIntField(obj, gRect_topFieldID); in get_jrect()
261 *R = env->GetIntField(obj, gRect_rightFieldID); in get_jrect()
262 *B = env->GetIntField(obj, gRect_bottomFieldID); in get_jrect()
265 void GraphicsJNI::set_jrect(JNIEnv* env, jobject obj, int L, int T, int R, int B) in set_jrect() argument
267 ALOG_ASSERT(env->IsInstanceOf(obj, gRect_class)); in set_jrect()
269 env->SetIntField(obj, gRect_leftFieldID, L); in set_jrect()
270 env->SetIntField(obj, gRect_topFieldID, T); in set_jrect()
271 env->SetIntField(obj, gRect_rightFieldID, R); in set_jrect()
272 env->SetIntField(obj, gRect_bottomFieldID, B); in set_jrect()
275 SkIRect* GraphicsJNI::jrect_to_irect(JNIEnv* env, jobject obj, SkIRect* ir) in jrect_to_irect() argument
277 ALOG_ASSERT(env->IsInstanceOf(obj, gRect_class)); in jrect_to_irect()
279 ir->setLTRB(env->GetIntField(obj, gRect_leftFieldID), in jrect_to_irect()
280 env->GetIntField(obj, gRect_topFieldID), in jrect_to_irect()
281 env->GetIntField(obj, gRect_rightFieldID), in jrect_to_irect()
282 env->GetIntField(obj, gRect_bottomFieldID)); in jrect_to_irect()
286 void GraphicsJNI::irect_to_jrect(const SkIRect& ir, JNIEnv* env, jobject obj) in irect_to_jrect() argument
288 ALOG_ASSERT(env->IsInstanceOf(obj, gRect_class)); in irect_to_jrect()
290 env->SetIntField(obj, gRect_leftFieldID, ir.fLeft); in irect_to_jrect()
291 env->SetIntField(obj, gRect_topFieldID, ir.fTop); in irect_to_jrect()
292 env->SetIntField(obj, gRect_rightFieldID, ir.fRight); in irect_to_jrect()
293 env->SetIntField(obj, gRect_bottomFieldID, ir.fBottom); in irect_to_jrect()
296 SkRect* GraphicsJNI::jrectf_to_rect(JNIEnv* env, jobject obj, SkRect* r) in jrectf_to_rect() argument
298 ALOG_ASSERT(env->IsInstanceOf(obj, gRectF_class)); in jrectf_to_rect()
300 r->setLTRB(env->GetFloatField(obj, gRectF_leftFieldID), in jrectf_to_rect()
301 env->GetFloatField(obj, gRectF_topFieldID), in jrectf_to_rect()
302 env->GetFloatField(obj, gRectF_rightFieldID), in jrectf_to_rect()
303 env->GetFloatField(obj, gRectF_bottomFieldID)); in jrectf_to_rect()
307 SkRect* GraphicsJNI::jrect_to_rect(JNIEnv* env, jobject obj, SkRect* r) in jrect_to_rect() argument
309 ALOG_ASSERT(env->IsInstanceOf(obj, gRect_class)); in jrect_to_rect()
311 r->setLTRB(SkIntToScalar(env->GetIntField(obj, gRect_leftFieldID)), in jrect_to_rect()
312 SkIntToScalar(env->GetIntField(obj, gRect_topFieldID)), in jrect_to_rect()
313 SkIntToScalar(env->GetIntField(obj, gRect_rightFieldID)), in jrect_to_rect()
314 SkIntToScalar(env->GetIntField(obj, gRect_bottomFieldID))); in jrect_to_rect()
318 void GraphicsJNI::rect_to_jrectf(const SkRect& r, JNIEnv* env, jobject obj) in rect_to_jrectf() argument
320 ALOG_ASSERT(env->IsInstanceOf(obj, gRectF_class)); in rect_to_jrectf()
322 env->SetFloatField(obj, gRectF_leftFieldID, SkScalarToFloat(r.fLeft)); in rect_to_jrectf()
323 env->SetFloatField(obj, gRectF_topFieldID, SkScalarToFloat(r.fTop)); in rect_to_jrectf()
324 env->SetFloatField(obj, gRectF_rightFieldID, SkScalarToFloat(r.fRight)); in rect_to_jrectf()
325 env->SetFloatField(obj, gRectF_bottomFieldID, SkScalarToFloat(r.fBottom)); in rect_to_jrectf()
328 SkIPoint* GraphicsJNI::jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) in jpoint_to_ipoint() argument
330 ALOG_ASSERT(env->IsInstanceOf(obj, gPoint_class)); in jpoint_to_ipoint()
332 point->set(env->GetIntField(obj, gPoint_xFieldID), in jpoint_to_ipoint()
333 env->GetIntField(obj, gPoint_yFieldID)); in jpoint_to_ipoint()
337 void GraphicsJNI::ipoint_to_jpoint(const SkIPoint& ir, JNIEnv* env, jobject obj) in ipoint_to_jpoint() argument
339 ALOG_ASSERT(env->IsInstanceOf(obj, gPoint_class)); in ipoint_to_jpoint()
341 env->SetIntField(obj, gPoint_xFieldID, ir.fX); in ipoint_to_jpoint()
342 env->SetIntField(obj, gPoint_yFieldID, ir.fY); in ipoint_to_jpoint()
345 SkPoint* GraphicsJNI::jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) in jpointf_to_point() argument
347 ALOG_ASSERT(env->IsInstanceOf(obj, gPointF_class)); in jpointf_to_point()
349 point->set(env->GetIntField(obj, gPointF_xFieldID), in jpointf_to_point()
350 env->GetIntField(obj, gPointF_yFieldID)); in jpointf_to_point()
354 void GraphicsJNI::point_to_jpointf(const SkPoint& r, JNIEnv* env, jobject obj) in point_to_jpointf() argument
356 ALOG_ASSERT(env->IsInstanceOf(obj, gPointF_class)); in point_to_jpointf()
358 env->SetFloatField(obj, gPointF_xFieldID, SkScalarToFloat(r.fX)); in point_to_jpointf()
359 env->SetFloatField(obj, gPointF_yFieldID, SkScalarToFloat(r.fY)); in point_to_jpointf()
522 jobject obj = env->NewObject(gBitmapRegionDecoder_class, in createBitmapRegionDecoder() local
526 return obj; in createBitmapRegionDecoder()
532 jobject obj = env->NewObject(gRegion_class, gRegion_constructorMethodID, in createRegion() local
535 return obj; in createRegion()