Home | History | Annotate | Download | only in jni

Lines Matching full:addr

43   jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
44 if (!addr) {
45 ALOGE("Fail to new jbyteArray bd addr");
48 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t),
50 return addr;
61 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr));
62 if (!addr.get()) {
63 ALOGE("Fail to new jbyteArray bd addr for HID channel state");
68 addr.get(), (jint)state);
85 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr));
86 if (!addr.get()) {
87 ALOGE("Fail to new jbyteArray bd addr for get protocal mode callback");
92 addr.get(), (jint)mode);
108 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr));
109 if (!addr.get()) {
110 ALOGE("Fail to new jbyteArray bd addr for get report callback");
121 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, addr.get(),
134 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr));
135 if (!addr.get()) {
136 ALOGE("Fail to new jbyteArray bd addr for HID channel state");
140 addr.get(), (jint)hh_status);
151 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr));
152 if (!addr.get()) {
153 ALOGE("Fail to new jbyteArray bd addr for handshake callback");
156 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onHandshake, addr.get(),
245 jbyte* addr = env->GetByteArrayElements(address, NULL);
246 if (!addr) {
252 bt_status_t status = sBluetoothHidInterface->connect((bt_bdaddr_t*)addr);
257 env->ReleaseByteArrayElements(address, addr, 0);
264 jbyte* addr;
268 addr = env->GetByteArrayElements(address, NULL);
269 if (!addr) {
274 bt_status_t status = sBluetoothHidInterface->disconnect((bt_bdaddr_t*)addr);
279 env->ReleaseByteArrayElements(address, addr, 0);
288 jbyte* addr = env->GetByteArrayElements(address, NULL);
289 if (!addr) {
298 (bt_bdaddr_t*)addr, (bthh_protocol_mode_t)protocolMode);
303 env->ReleaseByteArrayElements(address, addr, 0);
312 jbyte* addr = env->GetByteArrayElements(address, NULL);
313 if (!addr) {
320 sBluetoothHidInterface->virtual_unplug((bt_bdaddr_t*)addr);
325 env->ReleaseByteArrayElements(address, addr, 0);
335 jbyte* addr = env->GetByteArrayElements(address, NULL);
336 if (!addr) {
356 sBluetoothHidInterface->set_protocol((bt_bdaddr_t*)addr, mode);
361 env->ReleaseByteArrayElements(address, addr, 0);
373 jbyte* addr = env->GetByteArrayElements(address, NULL);
374 if (!addr) {
383 (bt_bdaddr_t*)addr, (bthh_report_type_t)rType, (uint8_t)rId, bufferSize);
389 env->ReleaseByteArrayElements(address, addr, 0);
399 jbyte* addr = env->GetByteArrayElements(address, NULL);
400 if (!addr) {
409 (bt_bdaddr_t*)addr, (bthh_report_type_t)rType, (char*)c_report);
415 env->ReleaseByteArrayElements(address, addr, 0);
426 jbyte* addr = env->GetByteArrayElements(address, NULL);
427 if (!addr) {
435 sBluetoothHidInterface->send_data((bt_bdaddr_t*)addr, (char*)c_report);
441 env->ReleaseByteArrayElements(address, addr, 0);