Home
last modified time | relevance | path

Searched refs:ssid (Results 1 – 25 of 31) 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()
Dwifi_offload.mk29 COMMON_SRCS += $(WIFI_OFFLOAD_TYPES_PREFIX)/ssid.cc
Dchre_scan_params_safe.cc46 utility::LogSsid(chre_scan_params_.ssidList[i].ssid, in Log()
DAndroid.bp34 "ssid.cc",
/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.cc27 const uint8_t *ssid, uint8_t ssidLen) { in parseSsidToStr() argument
35 if (!isgraph(ssid[i]) && ssid[i] != ' ') { in parseSsidToStr()
44 memcpy(buffer, ssid, ssidLen + 1); in parseSsidToStr()
/system/connectivity/wificond/scanning/
Dscan_result.cpp45 : ssid(ssid_), in NativeScanResult()
57 RETURN_IF_FAILED(parcel->writeByteVector(ssid)); in writeToParcel()
79 RETURN_IF_FAILED(parcel->readByteVector(&ssid)); in readFromParcel()
121 string ssid_str(ssid.data(), ssid.data() + ssid.size()); in DebugLog()
Dscan_result.h40 NativeScanResult(std::vector<uint8_t>& ssid,
55 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()
Dscanner_impl.cpp446 for (auto& ssid : ssid_list) { in LogSsidList() local
447 ssid_list_string += string(ssid.begin(), ssid.end()); in LogSsidList()
448 if (&ssid != &ssid_list.back()) { in LogSsidList()
/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/
Dflatbuffers_types_generated.h49 const flatbuffers::Vector<uint8_t> *ssid() const { in ssid() function
55 verifier.Verify(ssid()) && verifier.EndTable(); 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()
78 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> ssid = 0) {
80 builder_.add_ssid(ssid);
86 const std::vector<uint8_t> *ssid = nullptr) {
88 _fbb, ssid ? _fbb.CreateVector<uint8_t>(*ssid) : 0);
93 const Ssid *ssid() const { return GetPointer<const Ssid *>(VT_SSID); } in ssid() function
100 verifier.VerifyTable(ssid()) && in Verify()
[all …]
Dutility.h41 void LogSsid(const uint8_t *ssid, uint8_t ssid_len);
Dflatbuffers_types.fbs21 ssid:[ubyte];
29 ssid:Ssid;
39 ssid:Ssid;
/system/security/keystore/
Dpermissions.cpp134 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid, const char* ssid) { in keystore_selinux_check_access() argument
144 if (ssid == nullptr && getpidcon(spid, &sctx) != 0) { in keystore_selinux_check_access()
149 const char* use_sid = ssid ? ssid : sctx; in keystore_selinux_check_access()
/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/util/include/chre/util/nanoapp/
Dwifi.h41 const uint8_t *ssid, uint8_t ssidLen);
/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/include/chre_api/chre/
Dwifi.h361 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member
429 uint8_t ssid[CHRE_WIFI_SSID_MAX_LEN]; member

12