/packages/apps/Bluetooth/jni/ |
com_android_bluetooth_pan.cpp | 45 static jobject mCallbacksObj = NULL; 64 if (mCallbacksObj == NULL) { 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, 83 if (mCallbacksObj == NULL) { 94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, 131 if (mCallbacksObj != NULL) { 133 env->DeleteGlobalRef(mCallbacksObj); 134 mCallbacksObj = NULL; 143 mCallbacksObj = env->NewGlobalRef(object); 149 if (mCallbacksObj != NULL) [all...] |
com_android_bluetooth_hearing_aid.cpp | 40 static jobject mCallbacksObj = nullptr; 52 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; 63 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, 74 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; 85 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, 119 if (mCallbacksObj != nullptr) { 121 env->DeleteGlobalRef(mCallbacksObj); 122 mCallbacksObj = nullptr; 125 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { 155 if (mCallbacksObj != nullptr) [all...] |
com_android_bluetooth_a2dp_sink.cpp | 34 static jobject mCallbacksObj = NULL; 51 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, 70 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, 90 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioConfigChanged, 126 if (mCallbacksObj != NULL) { 128 env->DeleteGlobalRef(mCallbacksObj); 129 mCallbacksObj = NULL; 147 mCallbacksObj = env->NewGlobalRef(object); 163 if (mCallbacksObj != NULL) { 164 env->DeleteGlobalRef(mCallbacksObj); [all...] |
com_android_bluetooth_hid_host.cpp | 38 static jobject mCallbacksObj = NULL; 58 if (!mCallbacksObj) { 59 ALOGE("%s: mCallbacksObj is null", __func__); 68 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, 77 if (!mCallbacksObj) { 78 ALOGE("%s: mCallbacksObj is null", __func__); 92 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, 100 if (!mCallbacksObj) { 101 ALOGE("%s: mCallbacksObj is null", __func__); 122 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, addr.get() [all...] |
com_android_bluetooth_hdp.cpp | 34 static jobject mCallbacksObj = NULL; 41 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAppRegistrationState, 69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onChannelStateChanged, 101 if (mCallbacksObj != NULL) { 103 env->DeleteGlobalRef(mCallbacksObj); 104 mCallbacksObj = NULL; 121 mCallbacksObj = env->NewGlobalRef(object); 138 if (mCallbacksObj != NULL) { 140 env->DeleteGlobalRef(mCallbacksObj); 141 mCallbacksObj = NULL [all...] |
com_android_bluetooth_hfp.cpp | 57 static jobject mCallbacksObj = nullptr; 88 if (!sCallbackEnv.valid() || !mCallbacksObj) return; 93 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, 103 if (!sCallbackEnv.valid() || !mCallbacksObj) return; 108 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, 116 if (!sCallbackEnv.valid() || !mCallbacksObj) return; 124 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, 131 if (!sCallbackEnv.valid() || !mCallbacksObj) return; 139 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAnswerCall, 146 if (!sCallbackEnv.valid() || !mCallbacksObj) return [all...] |
com_android_bluetooth_hid_device.cpp | 39 static jobject mCallbacksObj = NULL; 75 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onApplicationStateChanged, 89 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, 97 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, type, id, 113 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetReport, (jbyte)type, 120 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetProtocol, protocol); 135 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onInterruptData, 141 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualCableUnplug); 188 if (mCallbacksObj != NULL) { 190 env->DeleteGlobalRef(mCallbacksObj); [all...] |
com_android_bluetooth_hfpclient.cpp | 29 static jobject mCallbacksObj = NULL; 78 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, 91 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, 102 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, 114 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkState, 125 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkRoaming, 136 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkSignal, 147 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onBatteryLevel, 160 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onCurrentOperator, 171 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onCall, (jint)call [all...] |
com_android_bluetooth_gatt.cpp | 192 static jobject mCallbacksObj = NULL; 203 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, 223 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onScanResult, event_type, 236 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnected, clientIf, 247 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDisconnected, clientIf, 255 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchCompleted, conn_id, 264 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onRegisterForNotifications, 279 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNotify, conn_id, 300 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onReadCharacteristic, 308 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onWriteCharacteristic [all...] |
com_android_bluetooth_a2dp.cpp | 51 static jobject mCallbacksObj = nullptr; 60 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, 82 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; 94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, 106 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; 162 mCallbacksObj, method_onCodecConfigChanged, addr.get(), codecConfigObj, 279 if (mCallbacksObj != nullptr) { 281 env->DeleteGlobalRef(mCallbacksObj); 282 mCallbacksObj = nullptr [all...] |
com_android_bluetooth_avrcp.cpp | 48 static jobject mCallbacksObj = NULL; 66 if (!mCallbacksObj) { 67 ALOGE("%s: mCallbacksObj is null", __func__); 80 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getRcFeatures, addr.get(), 89 if (!mCallbacksObj) { 90 ALOGE("%s: mCallbacksObj is null", __func__); 103 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getPlayStatus, addr.get()); 112 if (!mCallbacksObj) { 113 ALOGE("%s: mCallbacksObj is null", __func__); 135 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getElementAttr, addr.get() [all...] |
/frameworks/base/services/core/jni/ |
com_android_server_location_GnssLocationProvider.cpp | 43 static jobject mCallbacksObj = NULL; 128 env->CallVoidMethod(mCallbacksObj, method_reportGnssServiceDied); 420 env->CallVoidMethod(mCallbacksObj, method_setGnssHardwareModelName, jstringName); 436 env->CallVoidMethod(mCallbacksObj, 447 env->CallVoidMethod(mCallbacksObj, method_reportStatus, status); 500 env->CallVoidMethod(mCallbacksObj, method_reportSvStatus, 518 env->CallVoidMethod(mCallbacksObj, method_reportNmea, timestamp); 527 env->CallVoidMethod(mCallbacksObj, method_setEngineCapabilities, capabilities); 544 env->CallVoidMethod(mCallbacksObj, method_requestUtcTime); 551 env->CallVoidMethod(mCallbacksObj, method_requestLocation, boolToJbool(independentFromGnss)) [all...] |
com_android_server_hdmi_HdmiCecController.cpp | 86 return mCallbacksObj; 102 jobject mCallbacksObj; 184 mCallbacksObj(callbacksObj),
|