Lines Matching refs:env

49 jint Java_com_android_server_wifi_WifiNative_registerNanNatives(JNIEnv* env, jclass clazz);
55 static bool doCommand(JNIEnv* env, jstring javaCommand,
57 ScopedUtfChars command(env, javaCommand);
80 static jint doIntCommand(JNIEnv* env, jstring javaCommand) {
82 if (!doCommand(env, javaCommand, reply, sizeof(reply))) {
88 static jboolean doBooleanCommand(JNIEnv* env, jstring javaCommand) {
90 if (!doCommand(env, javaCommand, reply, sizeof(reply))) {
95 ScopedUtfChars command(env, javaCommand);
102 static jstring doStringCommand(JNIEnv* env, jstring javaCommand) {
104 if (!doCommand(env, javaCommand, reply, sizeof(reply))) {
107 return env->NewStringUTF(reply);
110 static jboolean android_net_wifi_isDriverLoaded(JNIEnv* env, jclass)
115 static jboolean android_net_wifi_loadDriver(JNIEnv* env, jclass)
120 static jboolean android_net_wifi_unloadDriver(JNIEnv* env, jclass)
125 static jboolean android_net_wifi_startSupplicant(JNIEnv* env, jclass, jboolean p2pSupported)
130 static jboolean android_net_wifi_killSupplicant(JNIEnv* env, jclass, jboolean p2pSupported)
135 static jboolean android_net_wifi_connectToSupplicant(JNIEnv* env, jclass)
140 static void android_net_wifi_closeSupplicantConnection(JNIEnv* env, jclass)
145 static jstring android_net_wifi_waitForEvent(JNIEnv* env, jclass)
150 return env->NewStringUTF(buf);
156 static jboolean android_net_wifi_doBooleanCommand(JNIEnv* env, jclass, jstring javaCommand) {
157 return doBooleanCommand(env, javaCommand);
160 static jint android_net_wifi_doIntCommand(JNIEnv* env, jclass, jstring javaCommand) {
161 return doIntCommand(env, javaCommand);
164 static jstring android_net_wifi_doStringCommand(JNIEnv* env, jclass, jstring javaCommand) {
165 return doStringCommand(env,javaCommand);
292 static jboolean android_net_wifi_set_interface_up(JNIEnv* env, jclass cls, jboolean up) {
296 static jboolean android_net_wifi_startHal(JNIEnv* env, jclass cls) {
297 JNIHelper helper(env);
322 env->GetJavaVM(&mVM);
323 mCls = (jclass) env->NewGlobalRef(cls);
342 static void android_net_wifi_stopHal(JNIEnv* env, jclass cls) {
345 JNIHelper helper(env);
354 static void android_net_wifi_waitForHalEvents(JNIEnv* env, jclass cls) {
356 ALOGD("waitForHalEvents called, vm = %p, obj = %p, env = %p", mVM, mCls, env);
358 JNIHelper helper(env);
364 static int android_net_wifi_getInterfaces(JNIEnv *env, jclass cls) {
367 JNIHelper helper(env);
391 jlongArray array = (env)->NewLongArray(n);
408 static jstring android_net_wifi_getInterfaceName(JNIEnv *env, jclass cls, jint i) {
412 JNIHelper helper(env);
430 // ALOGD("onScanStatus called, vm = %p, obj = %p, env = %p", mVM, mCls, env);
440 //ALOGD("onFullScanResult called, vm = %p, obj = %p, env = %p", mVM, mCls, env);
453 JNIEnv *env, jclass cls, jint iface, jint id, jobject settings) {
455 JNIHelper helper(env);
529 static jboolean android_net_wifi_stopScan(JNIEnv *env, jclass cls, jint iface, jint id) {
531 JNIHelper helper(env);
545 JNIEnv *env, jclass cls, jint iface, jboolean flush) {
547 JNIHelper helper(env);
614 JNIEnv *env, jclass cls, jint iface, jobject capabilities) {
616 JNIHelper helper(env);
689 static bool parseMacAddress(JNIEnv *env, jobject obj, mac_addr addr) {
690 JNIHelper helper(env);
697 ScopedUtfChars chars(env, macAddrString);
770 JNIEnv *env, jclass cls, jint iface, jint id, jobject ap) {
772 JNIHelper helper(env);
806 ScopedUtfChars chars(env, macAddrString);
835 static jboolean android_net_wifi_resetHotlist(JNIEnv *env, jclass cls, jint iface, jint id) {
837 JNIHelper helper(env);
890 JNIEnv *env, jclass cls, jint iface, jint id, jobject settings) {
892 JNIHelper helper(env);
925 ScopedUtfChars chars(env, macAddrString.get());
956 JNIEnv *env, jclass cls, jint iface, jint id) {
958 JNIHelper helper(env);
1009 static void android_net_wifi_setLinkLayerStats (JNIEnv *env, jclass cls, jint iface, int enable) {
1010 JNIHelper helper(env);
1022 static jobject android_net_wifi_getLinkLayerStats (JNIEnv *env, jclass cls, jint iface) {
1024 JNIHelper helper(env);
1090 static jint android_net_wifi_getSupportedFeatures(JNIEnv *env, jclass cls, jint iface) {
1092 JNIHelper helper(env);
1205 JNIEnv *env, jclass cls, jint iface, jint id, jobject params) {
1207 JNIHelper helper(env);
1234 parseMacAddress(env, param, config.addr);
1262 JNIEnv *env, jclass cls, jint iface, jint id, jobject params) {
1264 JNIHelper helper(env);
1289 parseMacAddress(env, param, addrs[i]);
1296 JNIEnv *env, jclass cls, jint iface, jint id, jint timeout_seconds, jobject channel_hint) {
1297 JNIHelper helper(env);
1346 JNIEnv *env, jclass cls, jint iface, jint id) {
1347 JNIHelper helper(env);
1354 static jboolean android_net_wifi_setScanningMacOui(JNIEnv *env, jclass cls,
1357 JNIHelper helper(env);
1368 ScopedBytesRW paramBytes(env, param);
1378 static jboolean android_net_wifi_is_get_channels_for_band_supported(JNIEnv *env, jclass cls){
1382 static jintArray android_net_wifi_getValidChannels(JNIEnv *env, jclass cls,
1385 JNIHelper helper(env);
1410 static jboolean android_net_wifi_setDfsFlag(JNIEnv *env, jclass cls, jint iface, jboolean dfs) {
1412 JNIHelper helper(env);
1421 static jobject android_net_wifi_get_rtt_capabilities(JNIEnv *env, jclass cls, jint iface) {
1423 JNIHelper helper(env);
1463 static jobject android_net_wifi_get_apf_capabilities(JNIEnv *env, jclass cls,
1466 JNIHelper helper(env);
1474 JNIObject<jclass> apf_cls(helper, env->FindClass("android/net/apf/ApfCapabilities"));
1479 jmethodID constructor = env->GetMethodID(apf_cls, "<init>", "(III)V");
1484 JNIObject<jobject> capabilities(helper, env->NewObject(apf_cls, constructor, version,
1498 static jboolean android_net_wifi_install_packet_filter(JNIEnv *env, jclass cls, jint iface,
1501 JNIHelper helper(env);
1502 const u8* filter = (uint8_t*)env->GetByteArrayElements(jfilter, NULL);
1503 const u32 filter_len = env->GetArrayLength(jfilter);
1506 env->ReleaseByteArrayElements(jfilter, (jbyte*)filter, JNI_ABORT);
1510 static jboolean android_net_wifi_set_Country_Code_Hal(JNIEnv *env,jclass cls, jint iface,
1513 JNIHelper helper(env);
1516 ScopedUtfChars chars(env, country_code);
1524 static jboolean android_net_wifi_enable_disable_tdls(JNIEnv *env,jclass cls, jint iface,
1527 JNIHelper helper(env);
1531 parseMacAddress(env, addr, address);
1558 static jobject android_net_wifi_get_tdls_status(JNIEnv *env,jclass cls, jint iface,jstring addr) {
1560 JNIHelper helper(env);
1564 parseMacAddress(env, addr, address);
1584 static jobject android_net_wifi_get_tdls_capabilities(JNIEnv *env, jclass cls, jint iface) {
1586 JNIHelper helper(env);
1621 static jint android_net_wifi_get_supported_logger_feature(JNIEnv *env, jclass cls, jint iface){
1626 static jobject android_net_wifi_get_driver_version(JNIEnv *env, jclass cls, jint iface) {
1629 JNIHelper helper(env);
1657 static jobject android_net_wifi_get_firmware_version(JNIEnv *env, jclass cls, jint iface) {
1660 JNIHelper helper(env);
1688 static jobject android_net_wifi_get_ring_buffer_status (JNIEnv *env, jclass cls, jint iface) {
1690 JNIHelper helper(env);
1761 /* ALOGD("on_ring_buffer_data called, vm = %p, obj = %p, env = %p buffer size = %d", mVM,
1762 mCls, env, buffer_size); */
1805 static jboolean android_net_wifi_start_logging_ring_buffer(JNIEnv *env, jclass cls, jint iface,
1808 JNIHelper helper(env);
1817 ScopedUtfChars chars(env, ring_name);
1831 static jboolean android_net_wifi_get_ring_buffer_data(JNIEnv *env, jclass cls, jint iface,
1834 JNIHelper helper(env);
1838 ScopedUtfChars chars(env, ring_name);
1848 /* ALOGD("on_firmware_memory_dump called, vm = %p, obj = %p, env = %p buffer_size = %d"
1849 , mVM, mCls, env, buffer_size); */
1859 static jboolean android_net_wifi_get_fw_memory_dump(JNIEnv *env, jclass cls, jint iface){
1861 JNIHelper helper(env);
1898 static jbyteArray android_net_wifi_get_driver_state_dump(JNIEnv *env, jclass cls, jint iface){
1900 JNIHelper helper(env);
1934 static jboolean android_net_wifi_set_log_handler(JNIEnv *env, jclass cls, jint iface, jint id) {
1936 JNIHelper helper(env);
1961 static jboolean android_net_wifi_reset_log_handler(JNIEnv *env, jclass cls, jint iface, jint id) {
1963 JNIHelper helper(env);
1985 static jint android_net_wifi_start_pkt_fate_monitoring(JNIEnv *env, jclass cls, jint iface) {
1987 JNIHelper helper(env);
2026 JNIEnv *env, jclass cls, jint iface, jobjectArray reports) {
2028 JNIHelper helper(env);
2100 static jint android_net_wifi_get_tx_pkt_fates(JNIEnv *env, jclass cls, jint iface,
2105 env, cls, iface, reports);
2108 static jint android_net_wifi_get_rx_pkt_fates(JNIEnv *env, jclass cls, jint iface,
2113 env, cls, iface, reports);
2168 JNIEnv *env, jclass cls, jint iface, jint id, jobject settings) {
2170 JNIHelper helper(env);
2209 ScopedUtfChars chars(env, (jstring)sssid.get());
2255 JNIEnv *env, jclass cls, jint iface, jint id) {
2257 JNIHelper helper(env);
2269 JNIEnv *env, jclass cls, jint iface, jint id, jobject list) {
2271 JNIHelper helper(env);
2291 ScopedUtfChars chars(env, (jstring)jbssid.get());
2316 static jint android_net_wifi_start_sending_offloaded_packet(JNIEnv *env, jclass cls, jint iface,
2318 JNIHelper helper(env);
2324 ScopedBytesRO pktBytes(env, pkt), srcMacBytes(env, srcMac), dstMacBytes(env, dstMac);
2327 unsigned short pkt_len = env->GetArrayLength(pkt);
2350 static jint android_net_wifi_stop_sending_offloaded_packet(JNIEnv *env, jclass cls,
2353 JNIHelper helper(env);
2368 //ALOGD("onRssiThresholdbreached called, vm = %p, obj = %p, env = %p", mVM, mCls, env);
2372 static jint android_net_wifi_start_rssi_monitoring_native(JNIEnv *env, jclass cls, jint iface,
2375 JNIHelper helper(env);
2387 static jint android_net_wifi_stop_rssi_monitoring_native(JNIEnv *env, jclass cls,
2389 JNIHelper helper(env);
2398 static jobject android_net_wifi_get_wlan_wake_reason_count(JNIEnv *env, jclass cls, jint iface) {
2400 JNIHelper helper(env);
2466 static jbyteArray android_net_wifi_readKernelLog(JNIEnv *env, jclass cls) {
2467 JNIHelper helper(env);
2507 static jint android_net_wifi_configure_nd_offload(JNIEnv *env, jclass cls,
2509 JNIHelper helper(env);
2633 jint Java_com_android_server_wifi_WifiNative_registerNatives(JNIEnv* env, jclass clazz) {
2635 JniConstants::init(env);
2637 return jniRegisterNativeMethods(env,