code: @Implementation
    protected boolean getProfileProxy(
        Context context, BluetoothProfile.ServiceListener listener, int profile) {
      if (!isOverridingProxyBehavior) {
        return directlyOn(realAdapter, BluetoothAdapter.class)
            .getProfileProxy(context, listener, profile);
      }
  
      BluetoothProfile proxy = profileProxies.get(profile);
      if (proxy == null) {
        return false;
      } else {
        listener.onServiceConnected(profile, proxy);
        return true;
      }
    }
docs: Overrides behavior of {@link getProfileProxy} if {@link ShadowBluetoothAdapter#setProfileProxy}
  has been previously called.
  
  If active (non-null) proxy has been set by {@link setProfileProxy} for the given {@code
  profile}, {@link getProfileProxy} will immediately call {@code onServiceConnected} of the given
  BluetoothProfile.ServiceListener {@code listener}.
  
  @return 'true' if a proxy object has been set by {@link setProfileProxy} for the given
  BluetoothProfile {@code profile}