import android.bluetooth.BluetoothUuid;
import android.bluetooth.le.ScanFilter;
import android.os.ParcelUuid;
-import android.util.Log;
import java.util.Arrays;
import java.util.HashSet;
private static final int MAX_LEN_PER_FIELD = 26;
// Values defined in bluedroid.
- private static final byte DEVICE_TYPE_ALL = 0;
+ private static final byte DEVICE_TYPE_ALL = 2;
class Entry {
public String address;
logd("add address " + entry.address);
gattClientScanFilterAddNative(clientIf, entry.type, filterIndex, 0, 0, 0, 0, 0,
0,
- "", entry.address, (byte) 0, new byte[0], new byte[0]);
+ "", entry.address, (byte) entry.addr_type, new byte[0], new byte[0]);
break;
case ScanFilterQueue.TYPE_SERVICE_DATA: