MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / getDisplayString

Method getDisplayString

android/src/BluetoothHelper.java:97–105  ·  view source on GitHub ↗

Turns the #BluetoothDevice into a human-readable string.

(BluetoothDevice device)

Source from the content-addressed store, hash-verified

95 * Turns the #BluetoothDevice into a human-readable string.
96 */
97 public static String getDisplayString(BluetoothDevice device) {
98 String name = device.getName();
99 String address = device.getAddress();
100
101 if (name == null)
102 return address;
103
104 return name + " [" + address + "]";
105 }
106
107 public static String getDisplayString(BluetoothSocket socket) {
108 return getDisplayString(socket.getRemoteDevice());

Callers 3

runMethod · 0.95
toStringMethod · 0.95
BluetoothPortMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected