Loading android/app/src/com/android/bluetooth/gatt/ContextMap.java +18 −12 Original line number Diff line number Diff line Loading @@ -244,11 +244,13 @@ import com.android.bluetooth.btservice.BluetoothProto; * Get an application context by ID. */ App getById(int id) { synchronized (mApps) { Iterator<App> i = mApps.iterator(); while (i.hasNext()) { App entry = i.next(); if (entry.id == id) return entry; } } Log.e(TAG, "Context not found for ID " + id); return null; } Loading @@ -257,11 +259,13 @@ import com.android.bluetooth.btservice.BluetoothProto; * Get an application context by UUID. */ App getByUuid(UUID uuid) { synchronized (mApps) { Iterator<App> i = mApps.iterator(); while (i.hasNext()) { App entry = i.next(); if (entry.uuid.equals(uuid)) return entry; } } Log.e(TAG, "Context not found for UUID " + uuid); return null; } Loading @@ -270,11 +274,13 @@ import com.android.bluetooth.btservice.BluetoothProto; * Get an application context by the calling Apps name. */ App getByName(String name) { synchronized (mApps) { Iterator<App> i = mApps.iterator(); while (i.hasNext()) { App entry = i.next(); if (entry.name.equals(name)) return entry; } } Log.e(TAG, "Context not found for name " + name); return null; } Loading Loading
android/app/src/com/android/bluetooth/gatt/ContextMap.java +18 −12 Original line number Diff line number Diff line Loading @@ -244,11 +244,13 @@ import com.android.bluetooth.btservice.BluetoothProto; * Get an application context by ID. */ App getById(int id) { synchronized (mApps) { Iterator<App> i = mApps.iterator(); while (i.hasNext()) { App entry = i.next(); if (entry.id == id) return entry; } } Log.e(TAG, "Context not found for ID " + id); return null; } Loading @@ -257,11 +259,13 @@ import com.android.bluetooth.btservice.BluetoothProto; * Get an application context by UUID. */ App getByUuid(UUID uuid) { synchronized (mApps) { Iterator<App> i = mApps.iterator(); while (i.hasNext()) { App entry = i.next(); if (entry.uuid.equals(uuid)) return entry; } } Log.e(TAG, "Context not found for UUID " + uuid); return null; } Loading @@ -270,11 +274,13 @@ import com.android.bluetooth.btservice.BluetoothProto; * Get an application context by the calling Apps name. */ App getByName(String name) { synchronized (mApps) { Iterator<App> i = mApps.iterator(); while (i.hasNext()) { App entry = i.next(); if (entry.name.equals(name)) return entry; } } Log.e(TAG, "Context not found for name " + name); return null; } Loading