@Test public void testGetInstance() throws Exception { BluetoothManager bluetoothManager = BluetoothManager.getInstance(mMockContext, mMockBluetoothAdapter, mMockSharedPreferences); assertThat(bluetoothManager, is(notNullValue())); }
public static BluetoothManager getInstance(Context context) { if (mInstance == null) { mInstance = new BluetoothManager(context); } return mInstance; }
BluetoothManager { public static BluetoothManager getInstance(Context context) { if (mInstance == null) { mInstance = new BluetoothManager(context); } return mInstance; } }
BluetoothManager { public static BluetoothManager getInstance(Context context) { if (mInstance == null) { mInstance = new BluetoothManager(context); } return mInstance; } private  BluetoothManager(Context context); private  BluetoothManager(Context context, BluetoothAdapter bluetoothAdapter,
                             SharedPreferences sharedPreferences); }
BluetoothManager { public static BluetoothManager getInstance(Context context) { if (mInstance == null) { mInstance = new BluetoothManager(context); } return mInstance; } private  BluetoothManager(Context context); private  BluetoothManager(Context context, BluetoothAdapter bluetoothAdapter,
                             SharedPreferences sharedPreferences); static BluetoothManager getInstance(Context context); static BluetoothManager getInstance(Context context, BluetoothAdapter bluetoothAdapter,
                                               SharedPreferences sharedPreferences); synchronized boolean bind(BluetoothManagerListener listener); synchronized void release(BluetoothManagerListener listener); boolean isBluetoothSupported(); boolean isBleSupported(); @TargetApi(21) FeatureSupportedStatus isBleMultipleAdvertisementSupported(); @TargetApi(21) FeatureSupportedStatus isBleOffloadedScanBatchingSupported(); @TargetApi(21) FeatureSupportedStatus isBleOffloadedFilteringSupported(); boolean isBluetoothEnabled(); boolean setBluetoothEnabled(boolean enable); BluetoothAdapter getBluetoothAdapter(); String getBluetoothMacAddress(); String getBluetoothName(); BluetoothDevice getRemoteDevice(String address); }
BluetoothManager { public static BluetoothManager getInstance(Context context) { if (mInstance == null) { mInstance = new BluetoothManager(context); } return mInstance; } private  BluetoothManager(Context context); private  BluetoothManager(Context context, BluetoothAdapter bluetoothAdapter,
                             SharedPreferences sharedPreferences); static BluetoothManager getInstance(Context context); static BluetoothManager getInstance(Context context, BluetoothAdapter bluetoothAdapter,
                                               SharedPreferences sharedPreferences); synchronized boolean bind(BluetoothManagerListener listener); synchronized void release(BluetoothManagerListener listener); boolean isBluetoothSupported(); boolean isBleSupported(); @TargetApi(21) FeatureSupportedStatus isBleMultipleAdvertisementSupported(); @TargetApi(21) FeatureSupportedStatus isBleOffloadedScanBatchingSupported(); @TargetApi(21) FeatureSupportedStatus isBleOffloadedFilteringSupported(); boolean isBluetoothEnabled(); boolean setBluetoothEnabled(boolean enable); BluetoothAdapter getBluetoothAdapter(); String getBluetoothMacAddress(); String getBluetoothName(); BluetoothDevice getRemoteDevice(String address);  }