Lines Matching refs:num

331 static int parseScanResults(wifi_scan_result *results, int num, nlattr *attr)  in parseScanResults()  argument
333 memset(results, 0, sizeof(wifi_scan_result) * num); in parseScanResults()
336 for (nl_iterator it(attr); it.has_next() && i < num; it.next(), i++) { in parseScanResults()
365 if (i >= num) { in parseScanResults()
845 wifi_cached_scan_results *results, int max, int *num) in GetScanResultsCommand() argument
846 : WifiCommand("GetScanResultsCommand", iface, -1), mScans(results), mMax(max), mNum(num), in GetScanResultsCommand()
850 int createRequest(WifiRequest& request, int num, byte flush) { in createRequest() argument
857 result = request.put_u32(GSCAN_ATTRIBUTE_NUM_OF_RESULTS, num); in createRequest()
939 int scan_id = 0, flags = 0, num = 0, scan_ch_bucket_mask = 0; in handleResponse() local
948 num = it2.get_u32(); in handleResponse()
949 ALOGV("retrieved num_results: %d", num); in handleResponse()
953 } else if (it2.get_type() == GSCAN_ATTRIBUTE_SCAN_RESULTS && num) { in handleResponse()
958 num = min(num, (int)(it2.get_len()/sizeof(wifi_gscan_result))); in handleResponse()
959 num = min(num, (int)MAX_AP_CACHE_PER_SCAN); in handleResponse()
960 ALOGV("Copying %d scan results", num); in handleResponse()
964 for (int i = 0; i < num; i++) { in handleResponse()
975 mScans[mRetrieved].num_results = num; in handleResponse()
995 int max, wifi_cached_scan_results *results, int *num) { in wifi_get_cached_gscan_results() argument
996 ALOGV("Getting cached scan results, iface handle = %p, num = %d", iface, *num); in wifi_get_cached_gscan_results()
998 GetScanResultsCommand *cmd = new GetScanResultsCommand(iface, flush, results, max, num); in wifi_get_cached_gscan_results()
1162 int num = len / sizeof(wifi_gscan_result_t); in handleEvent() local
1164 num = min(MAX_RESULTS, num); in handleEvent()
1165 for (int i = 0; i < num; i++, inp++) { in handleEvent()
1170 ALOGI("FOUND %d hotlist APs", num); in handleEvent()
1172 (*mHandler.on_hotlist_ap_found)(id(), num, mResults); in handleEvent()
1174 ALOGI("LOST %d hotlist APs", num); in handleEvent()
1176 (*mHandler.on_hotlist_ap_lost)(id(), num, mResults); in handleEvent()
1366 unsigned int num = len / sizeof(wifi_pno_result_t); in handleEvent() local
1368 num = min(MAX_EPNO_NETWORKS, num); in handleEvent()
1370 for (i = 0; i < num; i++) { in handleEvent()
1381 (*mHandler.on_network_found)(id(), num, mResults); in handleEvent()
1591 int num = min(len / sizeof(ChangeInfo), MAX_RESULTS); in handleEvent() local
1594 for (int i = 0; i < num; i++) { in handleEvent()
1603 ALOGV("Retrieved %d scan results", num); in handleEvent()
1605 if (num != 0) { in handleEvent()
1606 (*mHandler.on_significant_change)(id(), num, mResults); in handleEvent()
1690 int num, wifi_passpoint_network *hs_list, wifi_passpoint_event_handler handler) in AnqpoConfigureCommand() argument
1691 : WifiCommand("AnqpoConfigureCommand", iface, id), num_hs(num), mNetworks(hs_list), in AnqpoConfigureCommand()
1834 wifi_error wifi_set_passpoint_list(wifi_request_id id, wifi_interface_handle iface, int num, in wifi_set_passpoint_list() argument
1839 AnqpoConfigureCommand *cmd = new AnqpoConfigureCommand(id, iface, num, networks, handler); in wifi_set_passpoint_list()