@Test public void testGenerateNewProvideBluetoothMacAddressRequestUuid() throws Exception { UUID serviceUuid = new UUID(123, 456); UUID genUUID = BlePeerDiscoverer.generateNewProvideBluetoothMacAddressRequestUuid(serviceUuid); assertThat("The most significant bits are equal", genUUID.getMostSignificantBits(), is(serviceUuid.getMostSignificantBits())); assertThat("The least significant bits are different", genUUID.getLeastSignificantBits(), is(not(serviceUuid.getLeastSignificantBits()))); }
public static UUID generateNewProvideBluetoothMacAddressRequestUuid(UUID serviceUuid) { return PeerAdvertisementFactory.generateNewProvideBluetoothMacAddressRequestUuid(serviceUuid); }
BlePeerDiscoverer implements BleAdvertiser.Listener, BleScanner.Listener { public static UUID generateNewProvideBluetoothMacAddressRequestUuid(UUID serviceUuid) { return PeerAdvertisementFactory.generateNewProvideBluetoothMacAddressRequestUuid(serviceUuid); } }
BlePeerDiscoverer implements BleAdvertiser.Listener, BleScanner.Listener { public static UUID generateNewProvideBluetoothMacAddressRequestUuid(UUID serviceUuid) { return PeerAdvertisementFactory.generateNewProvideBluetoothMacAddressRequestUuid(serviceUuid); } BlePeerDiscoverer(
            BlePeerDiscoveryListener listener, BluetoothAdapter bluetoothAdapter,
            UUID serviceUuid, UUID provideBluetoothMacAddressRequestUuid,
            String myBluetoothMacAddress,
            AdvertisementData advertisementData);   BlePeerDiscoverer(BlePeerDiscoveryListener listener, BluetoothAdapter bluetoothAdapter,
                      UUID serviceUuid, UUID provideBluetoothMacAddressRequestUuid,
                      String myBluetoothMacAddress, AdvertisementData advertisementData,
                      BleAdvertiser bleAdvertiser, BleScanner bleScanner); }
BlePeerDiscoverer implements BleAdvertiser.Listener, BleScanner.Listener { public static UUID generateNewProvideBluetoothMacAddressRequestUuid(UUID serviceUuid) { return PeerAdvertisementFactory.generateNewProvideBluetoothMacAddressRequestUuid(serviceUuid); } BlePeerDiscoverer(
            BlePeerDiscoveryListener listener, BluetoothAdapter bluetoothAdapter,
            UUID serviceUuid, UUID provideBluetoothMacAddressRequestUuid,
            String myBluetoothMacAddress,
            AdvertisementData advertisementData);   BlePeerDiscoverer(BlePeerDiscoveryListener listener, BluetoothAdapter bluetoothAdapter,
                      UUID serviceUuid, UUID provideBluetoothMacAddressRequestUuid,
                      String myBluetoothMacAddress, AdvertisementData advertisementData,
                      BleAdvertiser bleAdvertiser, BleScanner bleScanner); static UUID generateNewProvideBluetoothMacAddressRequestUuid(UUID serviceUuid); EnumSet<BlePeerDiscovererStateSet> getState(); String getProvideBluetoothMacAddressRequestId(); String getBluetoothMacAddress(); void setBluetoothMacAddress(String myBluetoothMacAddress); boolean applySettings(AdvertisementData advertisementData, int advertiseMode,
                                 int advertiseTxPowerLevel, int scanMode, long scanReportDelayInMilliseconds); synchronized boolean startScanner(); synchronized void stopScanner(); synchronized boolean startAdvertiser(); synchronized void stopAdvertiser(); synchronized boolean startScannerAndAdvertiser(); synchronized void stopScannerAndAdvertiser(); synchronized boolean startPeerAddressHelperAdvertiser(
            final String requestId, String bluetoothMacAddress, long durationInMilliseconds); @Override void onAdvertiserFailedToStart(int errorCode); @Override void onIsAdvertiserStartedChanged(boolean isStarted); @Override void onScannerFailed(int errorCode); @Override void onIsScannerStartedChanged(boolean isStarted); @Override void onScanResult(ScanResult result); @Override void onBatchScanResults(List<ScanResult> results); void releaseListener(); }
BlePeerDiscoverer implements BleAdvertiser.Listener, BleScanner.Listener { public static UUID generateNewProvideBluetoothMacAddressRequestUuid(UUID serviceUuid) { return PeerAdvertisementFactory.generateNewProvideBluetoothMacAddressRequestUuid(serviceUuid); } BlePeerDiscoverer(
            BlePeerDiscoveryListener listener, BluetoothAdapter bluetoothAdapter,
            UUID serviceUuid, UUID provideBluetoothMacAddressRequestUuid,
            String myBluetoothMacAddress,
            AdvertisementData advertisementData);   BlePeerDiscoverer(BlePeerDiscoveryListener listener, BluetoothAdapter bluetoothAdapter,
                      UUID serviceUuid, UUID provideBluetoothMacAddressRequestUuid,
                      String myBluetoothMacAddress, AdvertisementData advertisementData,
                      BleAdvertiser bleAdvertiser, BleScanner bleScanner); static UUID generateNewProvideBluetoothMacAddressRequestUuid(UUID serviceUuid); EnumSet<BlePeerDiscovererStateSet> getState(); String getProvideBluetoothMacAddressRequestId(); String getBluetoothMacAddress(); void setBluetoothMacAddress(String myBluetoothMacAddress); boolean applySettings(AdvertisementData advertisementData, int advertiseMode,
                                 int advertiseTxPowerLevel, int scanMode, long scanReportDelayInMilliseconds); synchronized boolean startScanner(); synchronized void stopScanner(); synchronized boolean startAdvertiser(); synchronized void stopAdvertiser(); synchronized boolean startScannerAndAdvertiser(); synchronized void stopScannerAndAdvertiser(); synchronized boolean startPeerAddressHelperAdvertiser(
            final String requestId, String bluetoothMacAddress, long durationInMilliseconds); @Override void onAdvertiserFailedToStart(int errorCode); @Override void onIsAdvertiserStartedChanged(boolean isStarted); @Override void onScannerFailed(int errorCode); @Override void onIsScannerStartedChanged(boolean isStarted); @Override void onScanResult(ScanResult result); @Override void onBatchScanResults(List<ScanResult> results); void releaseListener();  }