Lines Matching refs:num

330 static int parseScanResults(wifi_scan_result *results, int num, nlattr *attr)  in parseScanResults()  argument
332 memset(results, 0, sizeof(wifi_scan_result) * num); in parseScanResults()
335 for (nl_iterator it(attr); it.has_next() && i < num; it.next(), i++) { in parseScanResults()
364 if (i >= num) { in parseScanResults()
844 wifi_cached_scan_results *results, int max, int *num) in GetScanResultsCommand() argument
845 : WifiCommand("GetScanResultsCommand", iface, -1), mScans(results), mMax(max), mNum(num), in GetScanResultsCommand()
849 int createRequest(WifiRequest& request, int num, byte flush) { in createRequest() argument
856 result = request.put_u32(GSCAN_ATTRIBUTE_NUM_OF_RESULTS, num); in createRequest()
938 int scan_id = 0, flags = 0, num = 0, scan_ch_bucket_mask = 0; in handleResponse() local
947 num = it2.get_u32(); in handleResponse()
948 ALOGV("retrieved num_results: %d", num); in handleResponse()
952 } else if (it2.get_type() == GSCAN_ATTRIBUTE_SCAN_RESULTS && num) { in handleResponse()
957 num = min(num, (int)(it2.get_len()/sizeof(wifi_gscan_result))); in handleResponse()
958 num = min(num, (int)MAX_AP_CACHE_PER_SCAN); in handleResponse()
959 ALOGV("Copying %d scan results", num); in handleResponse()
963 for (int i = 0; i < num; i++) { in handleResponse()
974 mScans[mRetrieved].num_results = num; in handleResponse()
994 int max, wifi_cached_scan_results *results, int *num) { in wifi_get_cached_gscan_results() argument
995 ALOGV("Getting cached scan results, iface handle = %p, num = %d", iface, *num); in wifi_get_cached_gscan_results()
997 GetScanResultsCommand *cmd = new GetScanResultsCommand(iface, flush, results, max, num); in wifi_get_cached_gscan_results()
1161 int num = len / sizeof(wifi_gscan_result_t); in handleEvent() local
1163 num = min(MAX_RESULTS, num); in handleEvent()
1164 for (int i = 0; i < num; i++, inp++) { in handleEvent()
1169 ALOGI("FOUND %d hotlist APs", num); in handleEvent()
1171 (*mHandler.on_hotlist_ap_found)(id(), num, mResults); in handleEvent()
1173 ALOGI("LOST %d hotlist APs", num); in handleEvent()
1175 (*mHandler.on_hotlist_ap_lost)(id(), num, mResults); in handleEvent()
1361 unsigned int num = len / sizeof(wifi_pno_result_t); in handleEvent() local
1363 num = min(MAX_EPNO_NETWORKS, num); in handleEvent()
1365 for (i = 0; i < num; i++) { in handleEvent()
1376 (*mHandler.on_network_found)(id(), num, mResults); in handleEvent()
1586 int num = min(len / sizeof(ChangeInfo), MAX_RESULTS); in handleEvent() local
1589 for (int i = 0; i < num; i++) { in handleEvent()
1598 ALOGV("Retrieved %d scan results", num); in handleEvent()
1600 if (num != 0) { in handleEvent()
1601 (*mHandler.on_significant_change)(id(), num, mResults); in handleEvent()
1685 int num, wifi_passpoint_network *hs_list, wifi_passpoint_event_handler handler) in AnqpoConfigureCommand() argument
1686 : WifiCommand("AnqpoConfigureCommand", iface, id), num_hs(num), mNetworks(hs_list), in AnqpoConfigureCommand()
1829 wifi_error wifi_set_passpoint_list(wifi_request_id id, wifi_interface_handle iface, int num, in wifi_set_passpoint_list() argument
1834 AnqpoConfigureCommand *cmd = new AnqpoConfigureCommand(id, iface, num, networks, handler); in wifi_set_passpoint_list()