Commit 88668ea0 authored by Giovanni Ortuño Urquidi's avatar Giovanni Ortuño Urquidi Committed by Commit Bot

bluetooth: Make "radio" casing consistent

Un-capitalizes all instances of "radio" to make them consistent.

TBR=dominickn@chromium.org

Bug: 870192
Change-Id: Ibf38e8eae85d2ae05a2f82788193fec880f6a46a
Reviewed-on: https://chromium-review.googlesource.com/c/1341773Reviewed-by: default avatarGiovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609202}
parent cca42a8b
......@@ -10,7 +10,7 @@ interface BluetoothSystemFactory {
};
// High level interface targeted towards UI level components that:
// - Show the BT Radio state and allow users to change it.
// - Show the BT radio state and allow users to change it.
// - Show a list of nearby, connected and paired BT Devices.
// - Start and stop BT scans.
// - Connect to and pair with BT devices.
......@@ -26,21 +26,21 @@ interface BluetoothSystem {
// The platform supports Bluetooth but we can’t use it right now e.g. a BT
// radio is not present.
kUnavailable,
// Bluetooth Radio is off.
// Bluetooth radio is off.
kPoweredOff,
// State is transitioning between PoweredOff and PoweredOn or vice versa.
kTransitioning,
// Bluetooth Radio is on.
// Bluetooth radio is on.
kPoweredOn,
};
GetState() => (State state);
enum SetPoweredResult {
// Command successfully sent to BT Radio or ignored if the new state matches
// Command successfully sent to BT radio or ignored if the new state matches
// the current state. OnStateChanged call is imminent if the former.
kSuccess,
// Unknown failure when sending the command to the BT Radio.
// Unknown failure when sending the command to the BT radio.
kFailedUnknownReason,
// Can't use Bluetooth right now e.g. a BT radio is not present.
kBluetoothUnavailable,
......@@ -48,8 +48,8 @@ interface BluetoothSystem {
// Attempts to change the state of the Bluetooth to `kPoweredOn` if |powered|
// and `kPoweredOff` otherwise . Callback is run with `kSuccess if the command
// was successfully sent to the BT Radio. The state immediately changes to
// kTransitioning and once the BT Radio actually changes state
// was successfully sent to the BT radio. The state immediately changes to
// kTransitioning and once the BT radio actually changes state
// BluetoothSystemClient::OnStateChanged will be called.
// TODO(https://crbug.com/896113): This function is missing two features:
// 1. The new state should be saved in the user's pref so that the next time
......@@ -58,10 +58,10 @@ interface BluetoothSystem {
// there is one in progress already.
SetPowered(bool powered) => (SetPoweredResult result);
// Whether the BT Radio is scanning for devices.
// Whether the BT radio is scanning for devices.
enum ScanState {
// The BT Radio is not scanning for devices, Bluetooth is unavailable, or
// the BT Radio is off.
// The BT radio is not scanning for devices, Bluetooth is unavailable, or
// the BT radio is off.
kNotScanning,
// State is transitioning between Scanning and Not Scanning and vice versa.
kTransitioning,
......@@ -72,10 +72,10 @@ interface BluetoothSystem {
GetScanState() => (ScanState scan_state);
enum StartScanResult {
// Command successfully sent to BT Radio or ignored if already scanning.
// Command successfully sent to BT radio or ignored if already scanning.
// OnScanStateChanged call is imminent if the former.
kSuccess,
// Unknown failure when sending the command to the BT Radio.
// Unknown failure when sending the command to the BT radio.
kFailedUnknownReason,
// Can't use Bluetooth right now e.g. BT radio is off, not present, or
// transitioning between states.
......@@ -84,8 +84,8 @@ interface BluetoothSystem {
};
// Attempts to start scanning for Bluetooth devices. Callback is run with
// `kSuccess` if the command was successfully sent to the BT Radio. Once the
// BT Radio actually starts scanning for devices,
// `kSuccess` if the command was successfully sent to the BT radio. Once the
// BT radio actually starts scanning for devices,
// BluetoothSystemClient::OnScanStateChanged will be called.
// TODO(https://crbug.com/897996): This function is missing two features:
// 1. Support concurrent calls; currently BlueZ just drops other calls if
......@@ -94,9 +94,9 @@ interface BluetoothSystem {
StartScan() => (StartScanResult result);
enum StopScanResult {
// Command successfully sent to BT Radio.
// Command successfully sent to BT radio.
kSuccess,
// Unknown failure when sending the command to the BT Radio.
// Unknown failure when sending the command to the BT radio.
kFailedUnknownReason,
// Can't use Bluetooth right now e.g. BT radio is off, or not present.
kBluetoothUnavailable,
......@@ -104,8 +104,8 @@ interface BluetoothSystem {
};
// Attempts to stop scanning for Bluetooth devices. Callback is run with
// `kSuccess` if the command was successfully sent to the BT Radio. Once the
// BT Radio actually stops scanning for devices,
// `kSuccess` if the command was successfully sent to the BT radio. Once the
// BT radio actually stops scanning for devices,
// BluetoothSystemClient::OnScanStateChanged will be called.
// TODO(https://crbug.com/897996): This function is missing two features:
// 1. Support concurrent calls; currently BlueZ just drops other calls if
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment