Fix miscellaneous typos in the comments or logging.

PiperOrigin-RevId: 454649199
This commit is contained in:
hai007
2022-06-13 10:55:57 -07:00
committed by Copybara-Service
parent a852817f0e
commit 2d4cc75dfa
21 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -196,7 +196,7 @@ class BleV2Medium : public api::ble_v2::BleMedium {
BluetoothAdapter& GetAdapter() { return *adapter_; }
private:
// A concrete implemenation for GattServer.
// A concrete implementation for GattServer.
class GattServer : public api::ble_v2::GattServer {
public:
std::optional<api::ble_v2::GattCharacteristic> CreateCharacteristic(
@@ -213,7 +213,7 @@ class BleV2Medium : public api::ble_v2::BleMedium {
void Stop() override;
};
// A concrete implemenation for GattClient.
// A concrete implementation for GattClient.
class GattClient : public api::ble_v2::GattClient {
public:
bool DiscoverServiceAndCharacteristics(
@@ -95,7 +95,7 @@ class WifiHotspotMedium {
int port) = 0;
// Start a softAP as Hotspot with platform dependent APIs and set the
// SSID/password pair back to the credentials. BWU module will retieve these
// SSID/password pair back to the credentials. BWU module will retrieve these
// credentials and send to the client device through established channel and
// then client may connect to this Hotspot with these credentials.
virtual bool StartWifiHotspot(HotspotCredentials* hotspot_credentials) = 0;
@@ -203,7 +203,7 @@ bool BleV2Medium::StartScanning(const Uuid& service_uuid,
advertisement_received_token_ =
watcher_.Received({this, &BleV2Medium::AdvertisementReceivedHandler});
// Active mode indicates that scan request packes will be sent to query for
// Active mode indicates that scan request packets will be sent to query for
// Scan Response
watcher_.ScanningMode(BluetoothLEScanningMode::Active);
watcher_.Start();
@@ -36,7 +36,7 @@ namespace windows {
// https://docs.microsoft.com/en-us/uwp/api/windows.foundation.iasyncoperation-1?view=winrt-20348
using winrt::Windows::Foundation::IAsyncOperation;
// The result of an Rfcomm device service request.
// The result of a Rfcomm device service request.
// https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.rfcomm.rfcommdeviceservicesresult?view=winrt-20348
using winrt::Windows::Devices::Bluetooth::Rfcomm::RfcommDeviceServicesResult;
@@ -115,7 +115,7 @@ class WifiMedium : public api::WifiMedium {
private:
// Since the WiFi interface capability won't change in the connection session,
// we only need to querry it once at the beginning
// we only need to query it once at the beginning
void InitCapability();
bool wifi_interface_valid_;
@@ -229,7 +229,7 @@ class WifiHotspotMedium : public api::WifiHotspotMedium {
std::unique_ptr<api::WifiHotspotServerSocket> ListenForService(
int port) override;
// Advertiser start WiFi Hotspot with specific Crendentials
// Advertiser start WiFi Hotspot with specific Credentials.
bool StartWifiHotspot(HotspotCredentials* hotspot_credentials_) override;
// Advertiser stop the current WiFi Hotspot
bool StopWifiHotspot() override;