@Test public void testConstructorThatTakesContextAndPrefs() throws Exception { DiscoveryManager dm = new DiscoveryManager(mMockContext, mMockManagerListener, new UUID(1, 1), "test service type", mMockBluetoothManager, mMockSharedPreferences); assertThat(dm, is(notNullValue())); assertThat(dm.getState(), is(equalTo(DiscoveryManager.DiscoveryManagerState.NOT_STARTED))); }
public DiscoveryManagerState getState() { return mState; }
DiscoveryManager extends AbstractBluetoothConnectivityAgent implements
        WifiDirectManager.WifiStateListener,
        WifiPeerDiscoverer.WifiPeerDiscoveryListener,
        BlePeerDiscoverer.BlePeerDiscoveryListener,
        BluetoothMacAddressResolutionHelper.BluetoothMacAddressResolutionHelperListener,
        PeerModel.Listener,
        DiscoveryManagerSettings.Listener { public DiscoveryManagerState getState() { return mState; } }
DiscoveryManager extends AbstractBluetoothConnectivityAgent implements
        WifiDirectManager.WifiStateListener,
        WifiPeerDiscoverer.WifiPeerDiscoveryListener,
        BlePeerDiscoverer.BlePeerDiscoveryListener,
        BluetoothMacAddressResolutionHelper.BluetoothMacAddressResolutionHelperListener,
        PeerModel.Listener,
        DiscoveryManagerSettings.Listener { public DiscoveryManagerState getState() { return mState; } DiscoveryManager(Context context, DiscoveryManagerListener listener, UUID bleServiceUuid, String serviceType);  DiscoveryManager(Context context, DiscoveryManagerListener listener, UUID bleServiceUuid,
                            String serviceType, BluetoothManager bluetoothManager, SharedPreferences preferences); }
DiscoveryManager extends AbstractBluetoothConnectivityAgent implements
        WifiDirectManager.WifiStateListener,
        WifiPeerDiscoverer.WifiPeerDiscoveryListener,
        BlePeerDiscoverer.BlePeerDiscoveryListener,
        BluetoothMacAddressResolutionHelper.BluetoothMacAddressResolutionHelperListener,
        PeerModel.Listener,
        DiscoveryManagerSettings.Listener { public DiscoveryManagerState getState() { return mState; } DiscoveryManager(Context context, DiscoveryManagerListener listener, UUID bleServiceUuid, String serviceType);  DiscoveryManager(Context context, DiscoveryManagerListener listener, UUID bleServiceUuid,
                            String serviceType, BluetoothManager bluetoothManager, SharedPreferences preferences); boolean isBleMultipleAdvertisementSupported(); boolean isBleOffloadedScanBatchingSupported(); boolean isBleOffloadedFilteringSupported(); boolean isBleSupported(); boolean isWifiDirectSupported(); DiscoveryManagerState getState(); boolean isRunning(); boolean isDiscovering(); boolean isBleDiscovering(); boolean isWifiDiscovering(); boolean isAdvertising(); boolean isBleAdvertising(); boolean isWifiAdvertising(); WifiDirectManager getWifiDirectManager(); PeerModel getPeerModel(); BluetoothMacAddressResolutionHelper getBluetoothMacAddressResolutionHelper(); String getMissingPermission(); synchronized boolean start(); synchronized boolean start(boolean startDiscovery, boolean startAdvertising); synchronized void stopDiscovery(); synchronized void stopAdvertising(); synchronized void stop(); void makeDeviceDiscoverable(int durationInSeconds); @Override void dispose(); BlePeerDiscoverer getBlePeerDiscovererInstanceAndCheckBluetoothMacAddress(); @Override void onDiscoveryModeChanged(final DiscoveryMode discoveryMode, boolean startIfNotRunning); @Override void onPeerExpirationSettingChanged(long peerExpirationInMilliseconds); @Override void onAdvertiseScanSettingsChanged(); @Override void onPeerExtraInfoChanged(int newExtraInfo); @Override void onBluetoothAdapterScanModeChanged(int mode); @Override void onBluetoothAdapterStateChanged(int state); @Override void onWifiP2PStateChanged(int state); @Override void onWifiStateChanged(int state); @Override void onWifiPeerDiscovererStateChanged(EnumSet<WifiPeerDiscovererStateSet> state); @Override void onBlePeerDiscovererStateChanged(EnumSet<BlePeerDiscovererStateSet> state); @Override void onPeerDiscovered(PeerProperties peerProperties); @Override synchronized void onP2pDeviceListChanged(Collection<WifiP2pDevice> p2pDeviceList); @Override void onProvideBluetoothMacAddressRequest(final String requestId); @Override void onPeerReadyToProvideBluetoothMacAddress(String requestId); @Override void onProvideBluetoothMacAddressResult(String requestId, boolean wasCompleted); @Override void onBluetoothMacAddressResolved(final String bluetoothMacAddress); @Override void onProvideBluetoothMacAddressModeStartedChanged(final boolean isStarted); @Override void onReceiveBluetoothMacAddressModeStartedChanged(final boolean isStarted); @Override void onPeerAdded(final PeerProperties peerProperties); @Override void onPeerUpdated(final PeerProperties peerProperties); @Override void onPeerExpiredAndRemoved(final PeerProperties peerProperties); }
DiscoveryManager extends AbstractBluetoothConnectivityAgent implements
        WifiDirectManager.WifiStateListener,
        WifiPeerDiscoverer.WifiPeerDiscoveryListener,
        BlePeerDiscoverer.BlePeerDiscoveryListener,
        BluetoothMacAddressResolutionHelper.BluetoothMacAddressResolutionHelperListener,
        PeerModel.Listener,
        DiscoveryManagerSettings.Listener { public DiscoveryManagerState getState() { return mState; } DiscoveryManager(Context context, DiscoveryManagerListener listener, UUID bleServiceUuid, String serviceType);  DiscoveryManager(Context context, DiscoveryManagerListener listener, UUID bleServiceUuid,
                            String serviceType, BluetoothManager bluetoothManager, SharedPreferences preferences); boolean isBleMultipleAdvertisementSupported(); boolean isBleOffloadedScanBatchingSupported(); boolean isBleOffloadedFilteringSupported(); boolean isBleSupported(); boolean isWifiDirectSupported(); DiscoveryManagerState getState(); boolean isRunning(); boolean isDiscovering(); boolean isBleDiscovering(); boolean isWifiDiscovering(); boolean isAdvertising(); boolean isBleAdvertising(); boolean isWifiAdvertising(); WifiDirectManager getWifiDirectManager(); PeerModel getPeerModel(); BluetoothMacAddressResolutionHelper getBluetoothMacAddressResolutionHelper(); String getMissingPermission(); synchronized boolean start(); synchronized boolean start(boolean startDiscovery, boolean startAdvertising); synchronized void stopDiscovery(); synchronized void stopAdvertising(); synchronized void stop(); void makeDeviceDiscoverable(int durationInSeconds); @Override void dispose(); BlePeerDiscoverer getBlePeerDiscovererInstanceAndCheckBluetoothMacAddress(); @Override void onDiscoveryModeChanged(final DiscoveryMode discoveryMode, boolean startIfNotRunning); @Override void onPeerExpirationSettingChanged(long peerExpirationInMilliseconds); @Override void onAdvertiseScanSettingsChanged(); @Override void onPeerExtraInfoChanged(int newExtraInfo); @Override void onBluetoothAdapterScanModeChanged(int mode); @Override void onBluetoothAdapterStateChanged(int state); @Override void onWifiP2PStateChanged(int state); @Override void onWifiStateChanged(int state); @Override void onWifiPeerDiscovererStateChanged(EnumSet<WifiPeerDiscovererStateSet> state); @Override void onBlePeerDiscovererStateChanged(EnumSet<BlePeerDiscovererStateSet> state); @Override void onPeerDiscovered(PeerProperties peerProperties); @Override synchronized void onP2pDeviceListChanged(Collection<WifiP2pDevice> p2pDeviceList); @Override void onProvideBluetoothMacAddressRequest(final String requestId); @Override void onPeerReadyToProvideBluetoothMacAddress(String requestId); @Override void onProvideBluetoothMacAddressResult(String requestId, boolean wasCompleted); @Override void onBluetoothMacAddressResolved(final String bluetoothMacAddress); @Override void onProvideBluetoothMacAddressModeStartedChanged(final boolean isStarted); @Override void onReceiveBluetoothMacAddressModeStartedChanged(final boolean isStarted); @Override void onPeerAdded(final PeerProperties peerProperties); @Override void onPeerUpdated(final PeerProperties peerProperties); @Override void onPeerExpiredAndRemoved(final PeerProperties peerProperties);  }