static jmethodID method_onAdvertisingParametersUpdated;
static jmethodID method_onPeriodicAdvertisingParametersUpdated;
static jmethodID method_onPeriodicAdvertisingDataSet;
-static jmethodID method_onPeriodicAdvertisingEnable;
+static jmethodID method_onPeriodicAdvertisingEnabled;
/**
* Static variables
clazz, "onPeriodicAdvertisingParametersUpdated", "(II)V");
method_onPeriodicAdvertisingDataSet =
env->GetMethodID(clazz, "onPeriodicAdvertisingDataSet", "(II)V");
- method_onPeriodicAdvertisingEnable =
- env->GetMethodID(clazz, "onPeriodicAdvertisingEnable", "(IZI)V");
+ method_onPeriodicAdvertisingEnabled =
+ env->GetMethodID(clazz, "onPeriodicAdvertisingEnabled", "(IZI)V");
}
static void advertiseInitializeNative(JNIEnv* env, jobject object) {
CallbackEnv sCallbackEnv(__func__);
if (!sCallbackEnv.valid()) return;
sCallbackEnv->CallVoidMethod(mCallbacksObj,
- method_onPeriodicAdvertisingEnable,
+ method_onPeriodicAdvertisingEnabled,
advertiser_id, enable, status);
}
callback.onPeriodicAdvertisingDataSet(advertiser_id, status);
}
- void onPeriodicAdvertisingEnable(int advertiser_id, boolean enable, int status)
+ void onPeriodicAdvertisingEnabled(int advertiser_id, boolean enable, int status)
throws Exception {
- logd("onPeriodicAdvertisingEnable() advertiser_id=" + advertiser_id + ", status=" + status);
+ logd("onPeriodicAdvertisingEnabled() advertiser_id=" + advertiser_id + ", status="
+ + status);
Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiser_id);
if (entry == null) {
}
IAdvertisingSetCallback callback = entry.getValue().callback;
- callback.onPeriodicAdvertisingEnable(advertiser_id, enable, status);
+ callback.onPeriodicAdvertisingEnabled(advertiser_id, enable, status);
}
private void logd(String s) {