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 { ...@@ -10,7 +10,7 @@ interface BluetoothSystemFactory {
}; };
// High level interface targeted towards UI level components that: // 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. // - Show a list of nearby, connected and paired BT Devices.
// - Start and stop BT scans. // - Start and stop BT scans.
// - Connect to and pair with BT devices. // - Connect to and pair with BT devices.
...@@ -26,21 +26,21 @@ interface BluetoothSystem { ...@@ -26,21 +26,21 @@ interface BluetoothSystem {
// The platform supports Bluetooth but we can’t use it right now e.g. a BT // The platform supports Bluetooth but we can’t use it right now e.g. a BT
// radio is not present. // radio is not present.
kUnavailable, kUnavailable,
// Bluetooth Radio is off. // Bluetooth radio is off.
kPoweredOff, kPoweredOff,
// State is transitioning between PoweredOff and PoweredOn or vice versa. // State is transitioning between PoweredOff and PoweredOn or vice versa.
kTransitioning, kTransitioning,
// Bluetooth Radio is on. // Bluetooth radio is on.
kPoweredOn, kPoweredOn,
}; };
GetState() => (State state); GetState() => (State state);
enum SetPoweredResult { 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. // the current state. OnStateChanged call is imminent if the former.
kSuccess, kSuccess,
// Unknown failure when sending the command to the BT Radio. // Unknown failure when sending the command to the BT radio.
kFailedUnknownReason, kFailedUnknownReason,
// Can't use Bluetooth right now e.g. a BT radio is not present. // Can't use Bluetooth right now e.g. a BT radio is not present.
kBluetoothUnavailable, kBluetoothUnavailable,
...@@ -48,8 +48,8 @@ interface BluetoothSystem { ...@@ -48,8 +48,8 @@ interface BluetoothSystem {
// Attempts to change the state of the Bluetooth to `kPoweredOn` if |powered| // Attempts to change the state of the Bluetooth to `kPoweredOn` if |powered|
// and `kPoweredOff` otherwise . Callback is run with `kSuccess if the command // and `kPoweredOff` otherwise . Callback is run with `kSuccess if the command
// was successfully sent to the BT Radio. The state immediately changes to // was successfully sent to the BT radio. The state immediately changes to
// kTransitioning and once the BT Radio actually changes state // kTransitioning and once the BT radio actually changes state
// BluetoothSystemClient::OnStateChanged will be called. // BluetoothSystemClient::OnStateChanged will be called.
// TODO(https://crbug.com/896113): This function is missing two features: // 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 // 1. The new state should be saved in the user's pref so that the next time
...@@ -58,10 +58,10 @@ interface BluetoothSystem { ...@@ -58,10 +58,10 @@ interface BluetoothSystem {
// there is one in progress already. // there is one in progress already.
SetPowered(bool powered) => (SetPoweredResult result); SetPowered(bool powered) => (SetPoweredResult result);
// Whether the BT Radio is scanning for devices. // Whether the BT radio is scanning for devices.
enum ScanState { enum ScanState {
// The BT Radio is not scanning for devices, Bluetooth is unavailable, or // The BT radio is not scanning for devices, Bluetooth is unavailable, or
// the BT Radio is off. // the BT radio is off.
kNotScanning, kNotScanning,
// State is transitioning between Scanning and Not Scanning and vice versa. // State is transitioning between Scanning and Not Scanning and vice versa.
kTransitioning, kTransitioning,
...@@ -72,10 +72,10 @@ interface BluetoothSystem { ...@@ -72,10 +72,10 @@ interface BluetoothSystem {
GetScanState() => (ScanState scan_state); GetScanState() => (ScanState scan_state);
enum StartScanResult { 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. // OnScanStateChanged call is imminent if the former.
kSuccess, kSuccess,
// Unknown failure when sending the command to the BT Radio. // Unknown failure when sending the command to the BT radio.
kFailedUnknownReason, kFailedUnknownReason,
// Can't use Bluetooth right now e.g. BT radio is off, not present, or // Can't use Bluetooth right now e.g. BT radio is off, not present, or
// transitioning between states. // transitioning between states.
...@@ -84,8 +84,8 @@ interface BluetoothSystem { ...@@ -84,8 +84,8 @@ interface BluetoothSystem {
}; };
// Attempts to start scanning for Bluetooth devices. Callback is run with // Attempts to start scanning for Bluetooth devices. Callback is run with
// `kSuccess` if the command was successfully sent to the BT Radio. Once the // `kSuccess` if the command was successfully sent to the BT radio. Once the
// BT Radio actually starts scanning for devices, // BT radio actually starts scanning for devices,
// BluetoothSystemClient::OnScanStateChanged will be called. // BluetoothSystemClient::OnScanStateChanged will be called.
// TODO(https://crbug.com/897996): This function is missing two features: // TODO(https://crbug.com/897996): This function is missing two features:
// 1. Support concurrent calls; currently BlueZ just drops other calls if // 1. Support concurrent calls; currently BlueZ just drops other calls if
...@@ -94,9 +94,9 @@ interface BluetoothSystem { ...@@ -94,9 +94,9 @@ interface BluetoothSystem {
StartScan() => (StartScanResult result); StartScan() => (StartScanResult result);
enum StopScanResult { enum StopScanResult {
// Command successfully sent to BT Radio. // Command successfully sent to BT radio.
kSuccess, kSuccess,
// Unknown failure when sending the command to the BT Radio. // Unknown failure when sending the command to the BT radio.
kFailedUnknownReason, kFailedUnknownReason,
// Can't use Bluetooth right now e.g. BT radio is off, or not present. // Can't use Bluetooth right now e.g. BT radio is off, or not present.
kBluetoothUnavailable, kBluetoothUnavailable,
...@@ -104,8 +104,8 @@ interface BluetoothSystem { ...@@ -104,8 +104,8 @@ interface BluetoothSystem {
}; };
// Attempts to stop scanning for Bluetooth devices. Callback is run with // Attempts to stop scanning for Bluetooth devices. Callback is run with
// `kSuccess` if the command was successfully sent to the BT Radio. Once the // `kSuccess` if the command was successfully sent to the BT radio. Once the
// BT Radio actually stops scanning for devices, // BT radio actually stops scanning for devices,
// BluetoothSystemClient::OnScanStateChanged will be called. // BluetoothSystemClient::OnScanStateChanged will be called.
// TODO(https://crbug.com/897996): This function is missing two features: // TODO(https://crbug.com/897996): This function is missing two features:
// 1. Support concurrent calls; currently BlueZ just drops other calls if // 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