Loading core/java/android/server/BluetoothEventLoop.java +2 −2 Original line number Diff line number Diff line Loading @@ -292,9 +292,9 @@ class BluetoothEventLoop { mBluetoothService.setProperty(name, propValues[1]); } else if (name.equals("Pairable") || name.equals("Discoverable")) { String pairable = name.equals("Pairable") ? propValues[1] : mBluetoothService.getProperty("Pairable"); mBluetoothService.getPropertyInternal("Pairable"); String discoverable = name.equals("Discoverable") ? propValues[1] : mBluetoothService.getProperty("Discoverable"); mBluetoothService.getPropertyInternal("Discoverable"); // This shouldn't happen, unless Adapter Properties are null. if (pairable == null || discoverable == null) Loading core/java/android/server/BluetoothService.java +9 −5 Original line number Diff line number Diff line Loading @@ -531,7 +531,7 @@ public class BluetoothService extends IBluetooth.Stub { return; } String []bonds = null; String val = getProperty("Devices"); String val = getPropertyInternal("Devices"); if (val != null) { bonds = val.split(","); } Loading Loading @@ -681,7 +681,6 @@ public class BluetoothService extends IBluetooth.Stub { /*package*/synchronized void getAllProperties() { mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); if (!isEnabledInternal()) return; mAdapterProperties.clear(); String properties[] = (String [])getAdapterPropertiesNative(); Loading Loading @@ -807,6 +806,11 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ synchronized String getProperty(String name) { if (!isEnabledInternal()) return null; return getPropertyInternal(name); } /*package*/ synchronized String getPropertyInternal(String name) { if (!mAdapterProperties.isEmpty()) return mAdapterProperties.get(name); getAllProperties(); Loading Loading @@ -1639,7 +1643,7 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ String getAddressFromObjectPath(String objectPath) { String adapterObjectPath = getProperty("ObjectPath"); String adapterObjectPath = getPropertyInternal("ObjectPath"); if (adapterObjectPath == null || objectPath == null) { Log.e(TAG, "getAddressFromObjectPath: AdpaterObjectPath:" + adapterObjectPath + " or deviceObjectPath:" + objectPath + " is null"); Loading @@ -1659,7 +1663,7 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ String getObjectPathFromAddress(String address) { String path = getProperty("ObjectPath"); String path = getPropertyInternal("ObjectPath"); if (path == null) { Log.e(TAG, "Error: Object Path is null"); return null; Loading core/jni/.android_server_BluetoothEventLoop.cpp.swpdeleted 100644 → 0 −16 KiB File deleted. View file Loading
core/java/android/server/BluetoothEventLoop.java +2 −2 Original line number Diff line number Diff line Loading @@ -292,9 +292,9 @@ class BluetoothEventLoop { mBluetoothService.setProperty(name, propValues[1]); } else if (name.equals("Pairable") || name.equals("Discoverable")) { String pairable = name.equals("Pairable") ? propValues[1] : mBluetoothService.getProperty("Pairable"); mBluetoothService.getPropertyInternal("Pairable"); String discoverable = name.equals("Discoverable") ? propValues[1] : mBluetoothService.getProperty("Discoverable"); mBluetoothService.getPropertyInternal("Discoverable"); // This shouldn't happen, unless Adapter Properties are null. if (pairable == null || discoverable == null) Loading
core/java/android/server/BluetoothService.java +9 −5 Original line number Diff line number Diff line Loading @@ -531,7 +531,7 @@ public class BluetoothService extends IBluetooth.Stub { return; } String []bonds = null; String val = getProperty("Devices"); String val = getPropertyInternal("Devices"); if (val != null) { bonds = val.split(","); } Loading Loading @@ -681,7 +681,6 @@ public class BluetoothService extends IBluetooth.Stub { /*package*/synchronized void getAllProperties() { mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); if (!isEnabledInternal()) return; mAdapterProperties.clear(); String properties[] = (String [])getAdapterPropertiesNative(); Loading Loading @@ -807,6 +806,11 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ synchronized String getProperty(String name) { if (!isEnabledInternal()) return null; return getPropertyInternal(name); } /*package*/ synchronized String getPropertyInternal(String name) { if (!mAdapterProperties.isEmpty()) return mAdapterProperties.get(name); getAllProperties(); Loading Loading @@ -1639,7 +1643,7 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ String getAddressFromObjectPath(String objectPath) { String adapterObjectPath = getProperty("ObjectPath"); String adapterObjectPath = getPropertyInternal("ObjectPath"); if (adapterObjectPath == null || objectPath == null) { Log.e(TAG, "getAddressFromObjectPath: AdpaterObjectPath:" + adapterObjectPath + " or deviceObjectPath:" + objectPath + " is null"); Loading @@ -1659,7 +1663,7 @@ public class BluetoothService extends IBluetooth.Stub { } /*package*/ String getObjectPathFromAddress(String address) { String path = getProperty("ObjectPath"); String path = getPropertyInternal("ObjectPath"); if (path == null) { Log.e(TAG, "Error: Object Path is null"); return null; Loading
core/jni/.android_server_BluetoothEventLoop.cpp.swpdeleted 100644 → 0 −16 KiB File deleted. View file