Loading core/java/android/bluetooth/BluetoothDevice.java +0 −5 Original line number Diff line number Diff line Loading @@ -1186,11 +1186,6 @@ public final class BluetoothDevice implements Parcelable, Attributable { mAttributionSource = attributionSource; } /** {@hide} */ public void prepareToEnterProcess(@NonNull AttributionSource attributionSource) { setAttributionSource(attributionSource); } @Override public boolean equals(@Nullable Object o) { if (o instanceof BluetoothDevice) { Loading core/java/android/bluetooth/BluetoothManager.java +8 −5 Original line number Diff line number Diff line Loading @@ -62,15 +62,15 @@ public final class BluetoothManager { private static final String TAG = "BluetoothManager"; private static final boolean DBG = false; private final AttributionSource mAttributionSource; private static AttributionSource sAttributionSource = null; private final BluetoothAdapter mAdapter; /** * @hide */ public BluetoothManager(Context context) { mAttributionSource = resolveAttributionSource(context); mAdapter = BluetoothAdapter.createAdapter(mAttributionSource); sAttributionSource = resolveAttributionSource(context); mAdapter = BluetoothAdapter.createAdapter(sAttributionSource); } /** {@hide} */ Loading @@ -79,6 +79,9 @@ public final class BluetoothManager { if (context != null) { res = context.getAttributionSource(); } else if (sAttributionSource != null) { return sAttributionSource; } if (res == null) { res = ActivityThread.currentAttributionSource(); } Loading Loading @@ -198,8 +201,8 @@ public final class BluetoothManager { IBluetoothGatt iGatt = managerService.getBluetoothGatt(); if (iGatt == null) return devices; devices = Attributable.setAttributionSource( iGatt.getDevicesMatchingConnectionStates(states, mAttributionSource), mAttributionSource); iGatt.getDevicesMatchingConnectionStates(states, sAttributionSource), sAttributionSource); } catch (RemoteException e) { Log.e(TAG, "", e); } Loading core/java/android/content/Intent.java +0 −11 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import android.annotation.SuppressLint; import android.annotation.SystemApi; import android.annotation.TestApi; import android.app.AppGlobals; import android.bluetooth.BluetoothDevice; import android.compat.annotation.UnsupportedAppUsage; import android.content.pm.ActivityInfo; import android.content.pm.ApplicationInfo; Loading Loading @@ -11462,16 +11461,6 @@ public class Intent implements Parcelable, Cloneable { if (fromProtectedComponent) { mLocalFlags |= LOCAL_FLAG_FROM_PROTECTED_COMPONENT; } // Special attribution fix-up logic for any BluetoothDevice extras // passed via Bluetooth intents if (mAction != null && mAction.startsWith("android.bluetooth.") && hasExtra(BluetoothDevice.EXTRA_DEVICE)) { final BluetoothDevice device = getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); if (device != null) { device.prepareToEnterProcess(source); } } } /** @hide */ Loading Loading
core/java/android/bluetooth/BluetoothDevice.java +0 −5 Original line number Diff line number Diff line Loading @@ -1186,11 +1186,6 @@ public final class BluetoothDevice implements Parcelable, Attributable { mAttributionSource = attributionSource; } /** {@hide} */ public void prepareToEnterProcess(@NonNull AttributionSource attributionSource) { setAttributionSource(attributionSource); } @Override public boolean equals(@Nullable Object o) { if (o instanceof BluetoothDevice) { Loading
core/java/android/bluetooth/BluetoothManager.java +8 −5 Original line number Diff line number Diff line Loading @@ -62,15 +62,15 @@ public final class BluetoothManager { private static final String TAG = "BluetoothManager"; private static final boolean DBG = false; private final AttributionSource mAttributionSource; private static AttributionSource sAttributionSource = null; private final BluetoothAdapter mAdapter; /** * @hide */ public BluetoothManager(Context context) { mAttributionSource = resolveAttributionSource(context); mAdapter = BluetoothAdapter.createAdapter(mAttributionSource); sAttributionSource = resolveAttributionSource(context); mAdapter = BluetoothAdapter.createAdapter(sAttributionSource); } /** {@hide} */ Loading @@ -79,6 +79,9 @@ public final class BluetoothManager { if (context != null) { res = context.getAttributionSource(); } else if (sAttributionSource != null) { return sAttributionSource; } if (res == null) { res = ActivityThread.currentAttributionSource(); } Loading Loading @@ -198,8 +201,8 @@ public final class BluetoothManager { IBluetoothGatt iGatt = managerService.getBluetoothGatt(); if (iGatt == null) return devices; devices = Attributable.setAttributionSource( iGatt.getDevicesMatchingConnectionStates(states, mAttributionSource), mAttributionSource); iGatt.getDevicesMatchingConnectionStates(states, sAttributionSource), sAttributionSource); } catch (RemoteException e) { Log.e(TAG, "", e); } Loading
core/java/android/content/Intent.java +0 −11 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import android.annotation.SuppressLint; import android.annotation.SystemApi; import android.annotation.TestApi; import android.app.AppGlobals; import android.bluetooth.BluetoothDevice; import android.compat.annotation.UnsupportedAppUsage; import android.content.pm.ActivityInfo; import android.content.pm.ApplicationInfo; Loading Loading @@ -11462,16 +11461,6 @@ public class Intent implements Parcelable, Cloneable { if (fromProtectedComponent) { mLocalFlags |= LOCAL_FLAG_FROM_PROTECTED_COMPONENT; } // Special attribution fix-up logic for any BluetoothDevice extras // passed via Bluetooth intents if (mAction != null && mAction.startsWith("android.bluetooth.") && hasExtra(BluetoothDevice.EXTRA_DEVICE)) { final BluetoothDevice device = getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); if (device != null) { device.prepareToEnterProcess(source); } } } /** @hide */ Loading