shadows/framework/src/main/java/org/robolectric/shadows/ShadowBluetoothAdapter.java
@Implementation
  protected int getProfileConnectionState(int profile) {
    Integer state = profileConnectionStateData.get(profile);
    if (state == null) {
      return BluetoothProfile.STATE_DISCONNECTED;
    }
    return state;
  }
@Implementation
  protected int getProfileConnectionState(int profile) {
    Integer state = profileConnectionStateData.get(profile);
    if (state == null) {
      return BluetoothProfile.STATE_DISCONNECTED;
    }
    return state;
  }
@ Implementation protected int getProfileConnectionState ( int profile ) { Integer state = profileConnectionStateData . get ( profile ) ; if ( state == null ) { return BluetoothProfile . STATE_DISCONNECTED ; } return state ; }
Returns the connection state for the given Bluetooth {@code profile}, defaulting to {@link
BluetoothProfile.STATE_DISCONNECTED} if the profile's connection state was never set.

<p>Set a Bluetooth profile's connection state via {@link #setProfileConnectionState(int, int)}.
Returns the connection state for the given Bluetooth { @code profile } defaulting to { @link BluetoothProfile . STATE_DISCONNECTED } if the profile s connection state was never set .