question: @ SuppressWarnings ( "unchecked" ) public void connect ( final BluetoothDevice device , final ILogSession session ) { if ( mManagedDevices . contains ( device ) ) return ; mManagedDevices . add ( device ) ; BleManager < BleManagerCallbacks > manager = mBleManagers . get ( device ) ; if ( manager != null ) { if ( session != null ) manager . setLogger ( session ) ; manager . connect ( device ) ; } else { mBleManagers . put ( device , manager = initializeManager ( ) ) ; manager . setGattCallbacks ( BleMulticonnectProfileService . this ) ; manager . setLogger ( session ) ; manager . connect ( device ) ; } }
target:  Adds the given device to managed and stars connecting to it. If the device is already connected this method does nothing.