Lines Matching defs:obj

338     sp<JavaBBinder> get(JNIEnv* env, jobject obj)
343 b = new JavaBBinder(env, obj);
346 b.get(), b->getWeakRefs(), obj, b->getWeakRefs()->getWeakCount());
435 bool matches(jobject obj) {
440 result = env->IsSameObject(obj, mObject);
443 result = env->IsSameObject(obj, me);
546 static void proxy_cleanup(const void* id, void* obj, void* cleanupCookie)
550 env->DeleteGlobalRef((jobject)obj);
611 sp<IBinder> ibinderForJavaObject(JNIEnv* env, jobject obj)
613 if (obj == NULL) return NULL;
615 if (env->IsInstanceOf(obj, gBinderOffsets.mClass)) {
617 env->GetIntField(obj, gBinderOffsets.mObject);
618 return jbh != NULL ? jbh->get(env, obj) : NULL;
621 if (env->IsInstanceOf(obj, gBinderProxyOffsets.mClass)) {
623 env->GetIntField(obj, gBinderProxyOffsets.mObject);
626 ALOGW("ibinderForJavaObject: %p is not a Binder object", obj);
645 void signalExceptionForError(JNIEnv* env, jobject obj, status_t err,
766 static void android_os_Binder_init(JNIEnv* env, jobject obj)
773 ALOGV("Java Binder %p: acquiring first ref on holder %p", obj, jbh);
775 env->SetIntField(obj, gBinderOffsets.mObject, (int)jbh);
778 static void android_os_Binder_destroy(JNIEnv* env, jobject obj)
781 env->GetIntField(obj, gBinderOffsets.mObject);
783 env->SetIntField(obj, gBinderOffsets.mObject, 0);
784 ALOGV("Java Binder %p: removing ref on holder %p", obj, jbh);
793 ALOGV("Java Binder %p: ignoring uninitialized binder", obj);
919 static jboolean android_os_BinderProxy_pingBinder(JNIEnv* env, jobject obj)
922 env->GetIntField(obj, gBinderProxyOffsets.mObject);
930 static jstring android_os_BinderProxy_getInterfaceDescriptor(JNIEnv* env, jobject obj)
932 IBinder* target = (IBinder*) env->GetIntField(obj, gBinderProxyOffsets.mObject);
942 static jboolean android_os_BinderProxy_isBinderAlive(JNIEnv* env, jobject obj)
945 env->GetIntField(obj, gBinderProxyOffsets.mObject);
1047 static jboolean android_os_BinderProxy_transact(JNIEnv* env, jobject obj,
1065 env->GetIntField(obj, gBinderProxyOffsets.mObject);
1072 target, obj, code);
1095 signalExceptionForError(env, obj, err, true /*canThrowRemoteException*/);
1099 static void android_os_BinderProxy_linkToDeath(JNIEnv* env, jobject obj,
1108 env->GetIntField(obj, gBinderProxyOffsets.mObject);
1118 env->GetIntField(obj, gBinderProxyOffsets.mOrgue);
1125 signalExceptionForError(env, obj, err, true /*canThrowRemoteException*/);
1130 static jboolean android_os_BinderProxy_unlinkToDeath(JNIEnv* env, jobject obj,
1140 env->GetIntField(obj, gBinderProxyOffsets.mObject);
1153 env->GetIntField(obj, gBinderProxyOffsets.mOrgue);
1179 static void android_os_BinderProxy_destroy(JNIEnv* env, jobject obj)
1182 env->GetIntField(obj, gBinderProxyOffsets.mObject);
1184 env->GetIntField(obj, gBinderProxyOffsets.mOrgue);
1186 LOGDEATH("Destroying BinderProxy %p: binder=%p drl=%p\n", obj, b, drl);
1187 env->SetIntField(obj, gBinderProxyOffsets.mObject, 0);
1188 env->SetIntField(obj, gBinderProxyOffsets.mOrgue, 0);
1190 b->decStrong(obj);