Lines Matching refs:sCallbackEnv
59 CallbackEnv sCallbackEnv(__func__); in bta2dp_connection_state_callback() local
60 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_connection_state_callback()
63 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_connection_state_callback()
69 sCallbackEnv->SetByteArrayRegion( in bta2dp_connection_state_callback()
72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback()
81 CallbackEnv sCallbackEnv(__func__); in bta2dp_audio_state_callback() local
82 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_audio_state_callback()
85 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_audio_state_callback()
91 sCallbackEnv->SetByteArrayRegion( in bta2dp_audio_state_callback()
94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback()
105 CallbackEnv sCallbackEnv(__func__); in bta2dp_audio_config_callback() local
106 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_audio_config_callback()
108 jobject codecConfigObj = sCallbackEnv->NewObject( in bta2dp_audio_config_callback()
119 jobjectArray local_capabilities_array = sCallbackEnv->NewObjectArray( in bta2dp_audio_config_callback()
123 jobject capObj = sCallbackEnv->NewObject( in bta2dp_audio_config_callback()
130 sCallbackEnv->SetObjectArrayElement(local_capabilities_array, i++, capObj); in bta2dp_audio_config_callback()
131 sCallbackEnv->DeleteLocalRef(capObj); in bta2dp_audio_config_callback()
135 jobjectArray selectable_capabilities_array = sCallbackEnv->NewObjectArray( in bta2dp_audio_config_callback()
139 jobject capObj = sCallbackEnv->NewObject( in bta2dp_audio_config_callback()
146 sCallbackEnv->SetObjectArrayElement(selectable_capabilities_array, i++, in bta2dp_audio_config_callback()
148 sCallbackEnv->DeleteLocalRef(capObj); in bta2dp_audio_config_callback()
152 sCallbackEnv.get(), sCallbackEnv->NewByteArray(RawAddress::kLength)); in bta2dp_audio_config_callback()
157 sCallbackEnv->SetByteArrayRegion( in bta2dp_audio_config_callback()
161 sCallbackEnv->CallVoidMethod( in bta2dp_audio_config_callback()