Home
last modified time | relevance | path

Searched refs:ssid (Results 1 – 25 of 40) sorted by relevance

12

/system/chre/apps/wifi_offload/
Dutility.cc32 bool ParseSsidToStr(const uint8_t *ssid, size_t ssid_len, char *ssid_str, in ParseSsidToStr() argument
39 if (!std::isgraph(ssid[i]) && ssid[i] != ' ') { in ParseSsidToStr()
44 std::memcpy(ssid_str, ssid, ssid_len); in ParseSsidToStr()
91 void LogSsid(const uint8_t *ssid, uint8_t ssid_len) { in LogSsid() argument
97 } else if (ParseSsidToStr(ssid, ssid_len, ssid_buffer, kMaxSsidStrLen)) { in LogSsid()
103 buf_ptr += std::sprintf(buf_ptr, "%02" PRIx8 ":", ssid[i]); in LogSsid()
122 LogSsid(result.ssid, result.ssidLen); in LogChreScanResult()
Dscan_params.cc76 for (const auto &ssid : ssids_to_scan_) { in Log() local
77 ssid.Log(); in Log()
Dssid.cc50 const auto &ssid_vec = fbs_ssid.ssid(); in Deserialize()
75 std::memcpy(chre_ssid->ssid, ssid_vec_.data(), ssid_vec_.size()); in ToChreWifiSsidListItem()
Dscan_result.cc85 if (fbs_result.ssid() == nullptr || !ssid_.Deserialize(*fbs_result.ssid())) { in Deserialize()
141 ssid_.SetData(chre_scan_result.ssid, chre_scan_result.ssidLen); in UpdateFromChreWifiScanResult()
Dpreferred_network.cc38 const auto &fbs_ssid = fbs_network.ssid(); in Deserialize()
/system/chre/apps/wifi_offload/test/
Dscanresult_test.cc27 wifi_offload::Ssid ssid; in TEST() local
28 ssid.SetData(chre_scan_result.ssid, chre_scan_result.ssidLen); in TEST()
29 ASSERT_EQ(ssid, nanoapp_scan_result.ssid_); in TEST()
Dchrescanparamssafe_test.cc44 std::memcmp(ssid_item.ssid, chre_scan_params->ssidList[i].ssid, in ConstructChreScanParamsSafeAndCompareWithOrigScanParams()
Dutility.cc70 void init(wifi_offload::Ssid &ssid, RandomGenerator &rand_gen) { in init() argument
74 ssid.SetData(rand_ssid, len); in init()
151 init(result.ssid, result.ssidLen, rand_gen); in init()
/system/chre/util/nanoapp/
Dwifi.cc37 } else if (parseSsidToStr(ssidBuffer, sizeof(ssidBuffer), result.ssid, in logChreWifiResult()
65 bool parseSsidToStr(char *buffer, size_t bufferLen, const uint8_t *ssid, in parseSsidToStr() argument
74 if (!isgraph(ssid[i]) && ssid[i] != ' ') { in parseSsidToStr()
83 memcpy(buffer, ssid, ssidLen + 1); in parseSsidToStr()
/system/connectivity/wificond/scanning/
Dscan_result.cpp44 : ssid(ssid_), in NativeScanResult()
56 RETURN_IF_FAILED(parcel->writeByteVector(ssid)); in writeToParcel()
78 RETURN_IF_FAILED(parcel->readByteVector(&ssid)); in readFromParcel()
120 string ssid_str(ssid.data(), ssid.data() + ssid.size()); in DebugLog()
Dscan_result.h39 NativeScanResult(std::vector<uint8_t>& ssid,
54 std::vector<uint8_t> ssid; variable
Dscan_utils.cpp155 vector<uint8_t> ssid; in ParseScanResult() local
156 if (!GetSSIDFromInfoElement(ie, &ssid)) { in ParseScanResult()
187 NativeScanResult(ssid, bssid, ie, freq, signal, in ParseScanResult()
248 vector<uint8_t>* ssid) { in GetSSIDFromInfoElement() argument
267 *ssid = vector<uint8_t>(); in GetSSIDFromInfoElement()
269 *ssid = vector<uint8_t>(ptr + 2, ptr + length + 2); in GetSSIDFromInfoElement()
/system/connectivity/wificond/tests/
Dscan_result_unittest.cpp55 std::vector<uint8_t> ssid(kFakeSsid, kFakeSsid + sizeof(kFakeSsid)); in TEST_F() local
64 NativeScanResult scan_result(ssid, bssid, ie, kFakeFrequency, in TEST_F()
75 EXPECT_EQ(ssid, scan_result_copy.ssid); in TEST_F()
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/generated/
Dflatbuffers_types_generated.h47 const flatbuffers::Vector<uint8_t> *ssid() const { in ssid() function
53 verifier.VerifyVector(ssid()) && in Verify()
62 void add_ssid(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> ssid) { in add_ssid()
63 fbb_.AddOffset(Ssid::VT_SSID, ssid); in add_ssid()
79 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> ssid = 0) {
81 builder_.add_ssid(ssid);
87 const std::vector<uint8_t> *ssid = nullptr) {
88 auto ssid__ = ssid ? _fbb.CreateVector<uint8_t>(*ssid) : 0;
100 const wifi_offload::fbs::Ssid *ssid() const { in ssid() function
109 verifier.VerifyTable(ssid()) && in Verify()
[all …]
Dflatbuffers_types.fbs21 ssid:[ubyte];
29 ssid:Ssid;
39 ssid:Ssid;
/system/chre/chpp/test/
Dwifi_convert_test.cpp33 EXPECT_EQ(std::memcmp(chppAp.ssid, chreAp.ssid, sizeof(chppAp.ssid)), 0); in validateScanResult()
222 EXPECT_EQ(std::memcmp(chppSsidList[i].ssid, chreParams.ssidList[i].ssid, in validateScanParams()
223 sizeof(chppSsidList[i].ssid)), in validateScanParams()
226 EXPECT_EQ(std::memcmp(chppSsidList[i].ssid, backParams->ssidList[i].ssid, in validateScanParams()
227 sizeof(chppSsidList[i].ssid)), in validateScanParams()
504 .ssid = {'a', 'b', 'c', 'd',}, in TEST()
543 .ssid = {'a', 'b', 'c', 'd',}, in TEST()
561 .ssid = {'h', 'i',}, in TEST()
624 {.ssidLen = 4, .ssid = {0xde, 0xad, 0xbe, 0xef}}, in TEST()
625 {.ssidLen = 2, .ssid = {':', ')'}} in TEST()
[all …]
/system/chre/apps/test/common/chre_cross_validator_wifi/src/
Dwifi_scan_result.cc29 wifiScanResultProto.ssid = {.funcs = {.decode = decodeString}, .arg = mSsid}; in WifiScanResult()
43 memcpy(mSsid, chreScanResult.ssid, chreScanResult.ssidLen); in WifiScanResult()
/system/chre/chre_api/legacy/v1_1/chre/
Dwifi.h238 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
299 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dutility.h41 void LogSsid(const uint8_t *ssid, uint8_t ssid_len);
/system/chre/util/include/chre/util/nanoapp/
Dwifi.h50 bool parseSsidToStr(char *buffer, size_t bufferLen, const uint8_t *ssid,
/system/chre/chpp/common/
Dwifi_convert.c109 memcpy(out->ssid, in->ssid, sizeof(out->ssid)); in chppWifiConvertScanResultFromChre()
173 memcpy(out->ssid, in->ssid, sizeof(out->ssid)); in chppWifiConvertSsidListItemFromChre()
556 memcpy(out->ssid, in->ssid, sizeof(out->ssid)); in chppWifiConvertScanResultToChre()
642 memcpy(out->ssid, in->ssid, sizeof(out->ssid)); in chppWifiConvertSsidListItemToChre()
/system/chre/chre_api/legacy/v1_3/chre/
Dwifi.h361 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
429 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
/system/chre/chre_api/legacy/v1_2/chre/
Dwifi.h361 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
429 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
/system/chre/chre_api/legacy/v1_4/chre/
Dwifi.h361 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
429 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
/system/chre/chre_api/legacy/v1_5/chre/
Dwifi.h398 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
487 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member

12