Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b126d8e authored by Anna Bauza's avatar Anna Bauza
Browse files

Fix regression due to default bypass change in IpcDataCache.

Change-Id: I512f34b5293370abc2ff368d5e95b91b3bb7df2b
Test: m . + install on device and observe state change
Flag: EXEMPT bugfix
Bug: 374222784
parent 12ae2f47
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -1484,6 +1484,11 @@ public final class BluetoothAdapter {
                        throw e.rethrowAsRuntimeException();
                    }
                }
                @RequiresNoPermission
                @Override
                public boolean shouldBypassCache(IBluetooth serviceQuery) {
                    return false;
                }
            };

    private static final IpcDataCache.QueryHandler<IBluetoothManager, Integer>
@@ -1498,6 +1503,11 @@ public final class BluetoothAdapter {
                                throw e.rethrowAsRuntimeException();
                            }
                        }
                        @RequiresNoPermission
                        @Override
                        public boolean shouldBypassCache(IBluetoothManager serviceQuery) {
                            return false;
                        }
                    };

    private static final String GET_STATE_API = "BluetoothAdapter_getState";
@@ -2405,6 +2415,11 @@ public final class BluetoothAdapter {
                        throw e.rethrowAsRuntimeException();
                    }
                }
                @RequiresNoPermission
                @Override
                public boolean shouldBypassCache(IBluetooth serviceQuery) {
                    return false;
                }
            };

    private static final String FILTERING_API = "BluetoothAdapter_isOffloadedFilteringSupported";
@@ -2948,6 +2963,11 @@ public final class BluetoothAdapter {
                                throw e.rethrowAsRuntimeException();
                            }
                        }
                        @RequiresNoPermission
                        @Override
                        public boolean shouldBypassCache(IBluetooth serviceQuery) {
                            return false;
                        }
                    };

    private static final String GET_CONNECTION_API = "BluetoothAdapter_getConnectionState";
@@ -3017,6 +3037,12 @@ public final class BluetoothAdapter {
                                throw e.rethrowAsRuntimeException();
                            }
                        }
                        @RequiresNoPermission
                        @Override
                        public boolean shouldBypassCache(
                            Pair<IBluetooth, Pair<AttributionSource, Integer>> pairQuery) {
                            return false;
                        }
                    };

    private static final String PROFILE_API = "BluetoothAdapter_getProfileConnectionState";