Loading src/com/android/settings/bluetooth/BluetoothPairingRequest.java +1 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver { String name = intent.getStringExtra(BluetoothDevice.EXTRA_NAME); if (TextUtils.isEmpty(name)) { name = device != null ? device.getName() : name = device != null ? device.getAliasName() : context.getString(android.R.string.unknownName); } Loading src/com/android/settings/bluetooth/BluetoothPermissionActivity.java +2 −2 Original line number Diff line number Diff line Loading @@ -130,7 +130,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements } private String createConnectionDisplayText() { String mRemoteName = mDevice != null ? mDevice.getName() : null; String mRemoteName = mDevice != null ? mDevice.getAliasName() : null; if (mRemoteName == null) mRemoteName = getString(R.string.unknown); String mMessage1 = getString(R.string.bluetooth_connection_dialog_text, Loading @@ -139,7 +139,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements } private String createPbapDisplayText() { String mRemoteName = mDevice != null ? mDevice.getName() : null; String mRemoteName = mDevice != null ? mDevice.getAliasName() : null; if (mRemoteName == null) mRemoteName = getString(R.string.unknown); String mMessage1 = getString(R.string.bluetooth_pb_acceptance_dialog_text, Loading src/com/android/settings/bluetooth/BluetoothPermissionRequest.java +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { Notification notification = new Notification(android.R.drawable.stat_sys_data_bluetooth, context.getString(R.string.bluetooth_connection_permission_request), System.currentTimeMillis()); String deviceName = device != null ? device.getName() : null; String deviceName = device != null ? device.getAliasName() : null; notification.setLatestEventInfo(context, context.getString(R.string.bluetooth_connection_permission_request), context.getString(R.string.bluetooth_connection_notif_message, deviceName), Loading src/com/android/settings/bluetooth/CachedBluetoothDevice.java +3 −3 Original line number Diff line number Diff line Loading @@ -326,8 +326,8 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { mName = mDevice.getAddress(); } else { mName = name; mDevice.setAlias(name); } // TODO: save custom device name in preferences dispatchAttributesChanged(); } } Loading @@ -338,7 +338,7 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { } private void fetchName() { mName = mDevice.getName(); mName = mDevice.getAliasName(); if (TextUtils.isEmpty(mName)) { mName = mDevice.getAddress(); Loading Loading @@ -422,7 +422,7 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { mProfileManager.updateProfiles(uuids, localUuids, mProfiles, mRemovedProfiles); if (DEBUG) { Log.e(TAG, "updating profiles for " + mDevice.getName()); Log.e(TAG, "updating profiles for " + mDevice.getAliasName()); BluetoothClass bluetoothClass = mDevice.getBluetoothClass(); if (bluetoothClass != null) Log.v(TAG, "Class: " + bluetoothClass.toString()); Loading src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ final class CachedBluetoothDeviceManager { return cachedDevice.getName(); } String name = device.getName(); String name = device.getAliasName(); if (name != null) { return name; } Loading Loading
src/com/android/settings/bluetooth/BluetoothPairingRequest.java +1 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver { String name = intent.getStringExtra(BluetoothDevice.EXTRA_NAME); if (TextUtils.isEmpty(name)) { name = device != null ? device.getName() : name = device != null ? device.getAliasName() : context.getString(android.R.string.unknownName); } Loading
src/com/android/settings/bluetooth/BluetoothPermissionActivity.java +2 −2 Original line number Diff line number Diff line Loading @@ -130,7 +130,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements } private String createConnectionDisplayText() { String mRemoteName = mDevice != null ? mDevice.getName() : null; String mRemoteName = mDevice != null ? mDevice.getAliasName() : null; if (mRemoteName == null) mRemoteName = getString(R.string.unknown); String mMessage1 = getString(R.string.bluetooth_connection_dialog_text, Loading @@ -139,7 +139,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements } private String createPbapDisplayText() { String mRemoteName = mDevice != null ? mDevice.getName() : null; String mRemoteName = mDevice != null ? mDevice.getAliasName() : null; if (mRemoteName == null) mRemoteName = getString(R.string.unknown); String mMessage1 = getString(R.string.bluetooth_pb_acceptance_dialog_text, Loading
src/com/android/settings/bluetooth/BluetoothPermissionRequest.java +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver { Notification notification = new Notification(android.R.drawable.stat_sys_data_bluetooth, context.getString(R.string.bluetooth_connection_permission_request), System.currentTimeMillis()); String deviceName = device != null ? device.getName() : null; String deviceName = device != null ? device.getAliasName() : null; notification.setLatestEventInfo(context, context.getString(R.string.bluetooth_connection_permission_request), context.getString(R.string.bluetooth_connection_notif_message, deviceName), Loading
src/com/android/settings/bluetooth/CachedBluetoothDevice.java +3 −3 Original line number Diff line number Diff line Loading @@ -326,8 +326,8 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { mName = mDevice.getAddress(); } else { mName = name; mDevice.setAlias(name); } // TODO: save custom device name in preferences dispatchAttributesChanged(); } } Loading @@ -338,7 +338,7 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { } private void fetchName() { mName = mDevice.getName(); mName = mDevice.getAliasName(); if (TextUtils.isEmpty(mName)) { mName = mDevice.getAddress(); Loading Loading @@ -422,7 +422,7 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { mProfileManager.updateProfiles(uuids, localUuids, mProfiles, mRemovedProfiles); if (DEBUG) { Log.e(TAG, "updating profiles for " + mDevice.getName()); Log.e(TAG, "updating profiles for " + mDevice.getAliasName()); BluetoothClass bluetoothClass = mDevice.getBluetoothClass(); if (bluetoothClass != null) Log.v(TAG, "Class: " + bluetoothClass.toString()); Loading
src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ final class CachedBluetoothDeviceManager { return cachedDevice.getName(); } String name = device.getName(); String name = device.getAliasName(); if (name != null) { return name; } Loading