28import java.nio.ByteOrder;
32import org.jau.net.EUI48;
49public final class EInfoReport implements AutoCloseable, Cloneable
51 private volatile long nativeInstance;
52 long getNativeInstance() {
return nativeInstance; }
76 public static Source get(
final int value) {
78 case 1:
return AD_IND;
79 case 2:
return AD_SCAN_RSP;
81 case 4:
return EIR_MGMT;
91 nativeInstance = ctorImpl1();
93 private native
long ctorImpl1();
100 nativeInstance = ctorImpl2(nativeInstanceOther);
102 private native
long ctorImpl2(
final long nativeInstanceOther);
108 final void replaces_native(
final long nativeInstanceOther) {
109 replaces_nativeImpl(nativeInstanceOther);
111 private native
void replaces_nativeImpl(
final long nativeInstanceOther);
123 synchronized( this ) {
124 handle = nativeInstance;
131 private static native
void dtorImpl(
final long nativeInstance);
158 setAddressTypeImpl(at.
value);
160 private native
void setAddressTypeImpl(
final byte at);
165 private native
void setAddressImpl(
final byte[] a);
171 setFlagsImpl(f.
mask);
173 private native
void setFlagsImpl(
final byte f);
176 addFlagImpl(f.value);
178 private native
void addFlagImpl(
final byte f);
180 public native
void setName(
final String name);
190 public native
void setDeviceID(
final short source,
final short vendor,
final short product,
final short version);
203 private native
int getSourceImpl();
210 private native
int getEIRDataMaskImpl();
217 return new GAPFlags(getFlagsImpl());
219 private native
byte getFlagsImpl();
226 private native
byte getAddressTypeImpl();
229 return new EUI48(getAddressImpl(), ByteOrder.nativeOrder());
231 private native
byte[] getAddressImpl();
269 public native String
toString(
final boolean includeServices);
Bit mask of 'Extended Inquiry Response' (EIR) data fields, indicating a set of related data.
boolean isSet(final DataType bit)
Collection of 'Extended Advertising Data' (EAD), 'Advertising Data' (AD) or 'Extended Inquiry Respons...
final EIRDataTypeSet set(final EInfoReport eir)
Merge all fields from given EInfoReport if set and different.
final void setAddress(final EUI48 a)
native String eirDataMaskToString()
final boolean isSet(final EIRDataTypeSet.DataType bit)
native short getDeviceIDProduct()
native Map< Short, byte[]> getManufacturerData()
Returns a map containing manufacturer specific advertisement data.
final EIRDataTypeSet getEIRDataMask()
final BDAddressType getAddressType()
native byte getADAddressType()
native void setTxPower(final byte v)
native void setConnInterval(final short min, final short max)
Set slave connection interval range.
native String toString(final boolean includeServices)
native String getDeviceIDModalias()
final void setFlags(final GAPFlags f)
final void addFlag(final GAPFlags.Bit f)
native long getTimestamp()
native void setShortName(final String name_short)
native short getDeviceIDVendor()
native void setName(final String name)
native void getConnInterval(final short minmax[])
Get slave connection interval range.
native short getDeviceIDSource()
final native void clear()
Reset all data fields.
native void setDeviceID(final short source, final short vendor, final short product, final short version)
native void setServicesComplete(final boolean v)
native List< String > getServices()
native boolean getServicesComplete()
native String getShortName()
native int getDeviceClass()
native void setDeviceClass(final int c)
EInfoReport()
New independent EInfoReport instance.
native void addService(final String uuid)
native short getDeviceIDVersion()
final void setAddressType(final BDAddressType at)
final GAPFlags getFlags()
native void setRSSI(final byte v)
Bit mask of 'Extended Inquiry Response' (EIR) data fields, indicating a set of related data.
Bluetooth address type constants.
static BDAddressType get(final String name)
Maps the specified name to a constant of BDAddressType.
Each enum represents a 'Extended Inquiry Response' (EIR) data field type bit.
EIR
Extended Inquiry Response (EIR)
static Source get(final int value)
Maps the specified integer value to a constant of Source.
AD_IND
(Extended) Advertising Data (AD or EAD) Indication Variant, i.e.
EIR_MGMT
Extended Inquiry Response (EIR) from Kernel Mgmt.
AD_SCAN_RSP
(Extended) Advertising Data (AD or EAD) Scan Response, i.e.
Each enum represents a 'Extended Inquiry Response' (EIR) data field type bit.