@Test public void testLoad() throws Exception { mDiscoveryManagerSettings.load(); verify(mMockSharedPreferences, Mockito.times(1)) .getBoolean(Mockito.eq("automate_bluetooth_mac_address_resolution"), Mockito.eq(DiscoveryManagerSettings.DEFAULT_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION)); verify(mMockSharedPreferences, Mockito.times(1)) .getLong(Mockito.eq("provide_bluetooth_mac_address_timeout"), Mockito.eq(DiscoveryManagerSettings.DEFAULT_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS)); verify(mMockSharedPreferences, Mockito.times(1)) .getString(Mockito.eq("bluetooth_mac_address"), anyString()); verify(mMockSharedPreferences, Mockito.times(1)) .getInt(Mockito.eq("discovery_mode"), Mockito.eq(0)); verify(mMockSharedPreferences, Mockito.times(1)) .getLong(Mockito.eq("peer_expiration"), Mockito.eq(DiscoveryManagerSettings.DEFAULT_PEER_EXPIRATION_IN_MILLISECONDS)); verify(mMockSharedPreferences, Mockito.times(1)) .getInt(Mockito.eq("advertisement_data_type"), anyInt()); verify(mMockSharedPreferences, Mockito.times(1)) .getInt(Mockito.eq("advertise_mode"), Mockito.eq(DiscoveryManagerSettings.DEFAULT_ADVERTISE_MODE)); verify(mMockSharedPreferences, Mockito.times(1)) .getInt(Mockito.eq("advertise_tx_power_level"), Mockito.eq(DiscoveryManagerSettings.DEFAULT_ADVERTISE_TX_POWER_LEVEL)); verify(mMockSharedPreferences, Mockito.times(1)) .getInt(Mockito.eq("scan_mode"), Mockito.eq(DiscoveryManagerSettings.DEFAULT_SCAN_MODE)); verify(mMockSharedPreferences, Mockito.times(1)) .getLong(Mockito.eq("scan_report_delay"), Mockito.eq(DiscoveryManagerSettings.DEFAULT_SCAN_REPORT_DELAY_IN_FOREGROUND_IN_MILLISECONDS)); }
@Override public void load() { if (!mLoaded) { mLoaded = true; mAutomateBluetoothMacAddressResolution = mSharedPreferences.getBoolean( KEY_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION, DEFAULT_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION); mProvideBluetoothMacAddressTimeoutInMilliseconds = mSharedPreferences.getLong( KEY_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS, DEFAULT_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS); mBluetoothMacAddress = mSharedPreferences.getString(KEY_BLUETOOTH_MAC_ADDRESS, null); int discoveryModeAsInt = mSharedPreferences.getInt(KEY_DISCOVERY_MODE, discoveryModeToInt(DEFAULT_DISCOVERY_MODE)); mDiscoveryMode = intToDiscoveryMode(discoveryModeAsInt); mPeerExpirationInMilliseconds = mSharedPreferences.getLong( KEY_PEER_EXPIRATION, DEFAULT_PEER_EXPIRATION_IN_MILLISECONDS); mManufacturerId = mSharedPreferences.getInt(KEY_MANUFACTURER_ID, DEFAULT_MANUFACTURER_ID); mBeaconAdLengthAndType = mSharedPreferences.getInt(KEY_BEACON_AD_LENGTH_AND_TYPE, DEFAULT_BEACON_AD_LENGTH_AND_TYPE); mBeaconAdExtraInformation = mSharedPreferences.getInt(KEY_BEACON_AD_EXTRA_INFORMATION, DEFAULT_BEACON_AD_EXTRA_INFORMATION); int advertisementDataTypeAsInt = mSharedPreferences.getInt( KEY_ADVERTISEMENT_DATA_TYPE, advertisementDataTypeToInt(DEFAULT_ADVERTISEMENT_DATA_TYPE)); mAdvertisementDataType = intToAdvertisementDataType(advertisementDataTypeAsInt); mAdvertiseMode = mSharedPreferences.getInt(KEY_ADVERTISE_MODE, DEFAULT_ADVERTISE_MODE); mAdvertiseTxPowerLevel = mSharedPreferences.getInt( KEY_ADVERTISE_TX_POWER_LEVEL, DEFAULT_ADVERTISE_TX_POWER_LEVEL); mScanMode = mSharedPreferences.getInt(KEY_SCAN_MODE, DEFAULT_SCAN_MODE); mScanReportDelayInMilliseconds = mSharedPreferences.getLong( KEY_SCAN_REPORT_DELAY_IN_MILLISECONDS, DEFAULT_SCAN_REPORT_DELAY_IN_FOREGROUND_IN_MILLISECONDS); Log.v(TAG, "load: " + "\n - Automate Bluetooth MAC address resolution: " + mAutomateBluetoothMacAddressResolution + "\n - Provide Bluetooth MAC address timeout in milliseconds: " + mProvideBluetoothMacAddressTimeoutInMilliseconds + "\n - Bluetooth MAC address: " + mBluetoothMacAddress + "\n - Discovery mode: " + mDiscoveryMode + "\n - Peer expiration time in milliseconds: " + mPeerExpirationInMilliseconds + "\n - Manufacturer ID: " + mManufacturerId + "\n - Beacon ad length and type: " + mBeaconAdLengthAndType + "\n - Beacon ad extra information: " + mBeaconAdExtraInformation + "\n - Advertisement data type: " + mAdvertisementDataType + "\n - Advertise mode: " + mAdvertiseMode + "\n - Advertise TX power level: " + mAdvertiseTxPowerLevel + "\n - Scan mode: " + mScanMode + "\n - Scan report delay in milliseconds: " + mScanReportDelayInMilliseconds); } else { Log.v(TAG, "load: Already loaded"); } }
DiscoveryManagerSettings extends AbstractSettings { @Override public void load() { if (!mLoaded) { mLoaded = true; mAutomateBluetoothMacAddressResolution = mSharedPreferences.getBoolean( KEY_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION, DEFAULT_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION); mProvideBluetoothMacAddressTimeoutInMilliseconds = mSharedPreferences.getLong( KEY_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS, DEFAULT_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS); mBluetoothMacAddress = mSharedPreferences.getString(KEY_BLUETOOTH_MAC_ADDRESS, null); int discoveryModeAsInt = mSharedPreferences.getInt(KEY_DISCOVERY_MODE, discoveryModeToInt(DEFAULT_DISCOVERY_MODE)); mDiscoveryMode = intToDiscoveryMode(discoveryModeAsInt); mPeerExpirationInMilliseconds = mSharedPreferences.getLong( KEY_PEER_EXPIRATION, DEFAULT_PEER_EXPIRATION_IN_MILLISECONDS); mManufacturerId = mSharedPreferences.getInt(KEY_MANUFACTURER_ID, DEFAULT_MANUFACTURER_ID); mBeaconAdLengthAndType = mSharedPreferences.getInt(KEY_BEACON_AD_LENGTH_AND_TYPE, DEFAULT_BEACON_AD_LENGTH_AND_TYPE); mBeaconAdExtraInformation = mSharedPreferences.getInt(KEY_BEACON_AD_EXTRA_INFORMATION, DEFAULT_BEACON_AD_EXTRA_INFORMATION); int advertisementDataTypeAsInt = mSharedPreferences.getInt( KEY_ADVERTISEMENT_DATA_TYPE, advertisementDataTypeToInt(DEFAULT_ADVERTISEMENT_DATA_TYPE)); mAdvertisementDataType = intToAdvertisementDataType(advertisementDataTypeAsInt); mAdvertiseMode = mSharedPreferences.getInt(KEY_ADVERTISE_MODE, DEFAULT_ADVERTISE_MODE); mAdvertiseTxPowerLevel = mSharedPreferences.getInt( KEY_ADVERTISE_TX_POWER_LEVEL, DEFAULT_ADVERTISE_TX_POWER_LEVEL); mScanMode = mSharedPreferences.getInt(KEY_SCAN_MODE, DEFAULT_SCAN_MODE); mScanReportDelayInMilliseconds = mSharedPreferences.getLong( KEY_SCAN_REPORT_DELAY_IN_MILLISECONDS, DEFAULT_SCAN_REPORT_DELAY_IN_FOREGROUND_IN_MILLISECONDS); Log.v(TAG, "load: " + "\n - Automate Bluetooth MAC address resolution: " + mAutomateBluetoothMacAddressResolution + "\n - Provide Bluetooth MAC address timeout in milliseconds: " + mProvideBluetoothMacAddressTimeoutInMilliseconds + "\n - Bluetooth MAC address: " + mBluetoothMacAddress + "\n - Discovery mode: " + mDiscoveryMode + "\n - Peer expiration time in milliseconds: " + mPeerExpirationInMilliseconds + "\n - Manufacturer ID: " + mManufacturerId + "\n - Beacon ad length and type: " + mBeaconAdLengthAndType + "\n - Beacon ad extra information: " + mBeaconAdExtraInformation + "\n - Advertisement data type: " + mAdvertisementDataType + "\n - Advertise mode: " + mAdvertiseMode + "\n - Advertise TX power level: " + mAdvertiseTxPowerLevel + "\n - Scan mode: " + mScanMode + "\n - Scan report delay in milliseconds: " + mScanReportDelayInMilliseconds); } else { Log.v(TAG, "load: Already loaded"); } } }
DiscoveryManagerSettings extends AbstractSettings { @Override public void load() { if (!mLoaded) { mLoaded = true; mAutomateBluetoothMacAddressResolution = mSharedPreferences.getBoolean( KEY_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION, DEFAULT_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION); mProvideBluetoothMacAddressTimeoutInMilliseconds = mSharedPreferences.getLong( KEY_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS, DEFAULT_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS); mBluetoothMacAddress = mSharedPreferences.getString(KEY_BLUETOOTH_MAC_ADDRESS, null); int discoveryModeAsInt = mSharedPreferences.getInt(KEY_DISCOVERY_MODE, discoveryModeToInt(DEFAULT_DISCOVERY_MODE)); mDiscoveryMode = intToDiscoveryMode(discoveryModeAsInt); mPeerExpirationInMilliseconds = mSharedPreferences.getLong( KEY_PEER_EXPIRATION, DEFAULT_PEER_EXPIRATION_IN_MILLISECONDS); mManufacturerId = mSharedPreferences.getInt(KEY_MANUFACTURER_ID, DEFAULT_MANUFACTURER_ID); mBeaconAdLengthAndType = mSharedPreferences.getInt(KEY_BEACON_AD_LENGTH_AND_TYPE, DEFAULT_BEACON_AD_LENGTH_AND_TYPE); mBeaconAdExtraInformation = mSharedPreferences.getInt(KEY_BEACON_AD_EXTRA_INFORMATION, DEFAULT_BEACON_AD_EXTRA_INFORMATION); int advertisementDataTypeAsInt = mSharedPreferences.getInt( KEY_ADVERTISEMENT_DATA_TYPE, advertisementDataTypeToInt(DEFAULT_ADVERTISEMENT_DATA_TYPE)); mAdvertisementDataType = intToAdvertisementDataType(advertisementDataTypeAsInt); mAdvertiseMode = mSharedPreferences.getInt(KEY_ADVERTISE_MODE, DEFAULT_ADVERTISE_MODE); mAdvertiseTxPowerLevel = mSharedPreferences.getInt( KEY_ADVERTISE_TX_POWER_LEVEL, DEFAULT_ADVERTISE_TX_POWER_LEVEL); mScanMode = mSharedPreferences.getInt(KEY_SCAN_MODE, DEFAULT_SCAN_MODE); mScanReportDelayInMilliseconds = mSharedPreferences.getLong( KEY_SCAN_REPORT_DELAY_IN_MILLISECONDS, DEFAULT_SCAN_REPORT_DELAY_IN_FOREGROUND_IN_MILLISECONDS); Log.v(TAG, "load: " + "\n - Automate Bluetooth MAC address resolution: " + mAutomateBluetoothMacAddressResolution + "\n - Provide Bluetooth MAC address timeout in milliseconds: " + mProvideBluetoothMacAddressTimeoutInMilliseconds + "\n - Bluetooth MAC address: " + mBluetoothMacAddress + "\n - Discovery mode: " + mDiscoveryMode + "\n - Peer expiration time in milliseconds: " + mPeerExpirationInMilliseconds + "\n - Manufacturer ID: " + mManufacturerId + "\n - Beacon ad length and type: " + mBeaconAdLengthAndType + "\n - Beacon ad extra information: " + mBeaconAdExtraInformation + "\n - Advertisement data type: " + mAdvertisementDataType + "\n - Advertise mode: " + mAdvertiseMode + "\n - Advertise TX power level: " + mAdvertiseTxPowerLevel + "\n - Scan mode: " + mScanMode + "\n - Scan report delay in milliseconds: " + mScanReportDelayInMilliseconds); } else { Log.v(TAG, "load: Already loaded"); } } private  DiscoveryManagerSettings(Context context); private  DiscoveryManagerSettings(Context context, SharedPreferences preferences); }
DiscoveryManagerSettings extends AbstractSettings { @Override public void load() { if (!mLoaded) { mLoaded = true; mAutomateBluetoothMacAddressResolution = mSharedPreferences.getBoolean( KEY_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION, DEFAULT_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION); mProvideBluetoothMacAddressTimeoutInMilliseconds = mSharedPreferences.getLong( KEY_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS, DEFAULT_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS); mBluetoothMacAddress = mSharedPreferences.getString(KEY_BLUETOOTH_MAC_ADDRESS, null); int discoveryModeAsInt = mSharedPreferences.getInt(KEY_DISCOVERY_MODE, discoveryModeToInt(DEFAULT_DISCOVERY_MODE)); mDiscoveryMode = intToDiscoveryMode(discoveryModeAsInt); mPeerExpirationInMilliseconds = mSharedPreferences.getLong( KEY_PEER_EXPIRATION, DEFAULT_PEER_EXPIRATION_IN_MILLISECONDS); mManufacturerId = mSharedPreferences.getInt(KEY_MANUFACTURER_ID, DEFAULT_MANUFACTURER_ID); mBeaconAdLengthAndType = mSharedPreferences.getInt(KEY_BEACON_AD_LENGTH_AND_TYPE, DEFAULT_BEACON_AD_LENGTH_AND_TYPE); mBeaconAdExtraInformation = mSharedPreferences.getInt(KEY_BEACON_AD_EXTRA_INFORMATION, DEFAULT_BEACON_AD_EXTRA_INFORMATION); int advertisementDataTypeAsInt = mSharedPreferences.getInt( KEY_ADVERTISEMENT_DATA_TYPE, advertisementDataTypeToInt(DEFAULT_ADVERTISEMENT_DATA_TYPE)); mAdvertisementDataType = intToAdvertisementDataType(advertisementDataTypeAsInt); mAdvertiseMode = mSharedPreferences.getInt(KEY_ADVERTISE_MODE, DEFAULT_ADVERTISE_MODE); mAdvertiseTxPowerLevel = mSharedPreferences.getInt( KEY_ADVERTISE_TX_POWER_LEVEL, DEFAULT_ADVERTISE_TX_POWER_LEVEL); mScanMode = mSharedPreferences.getInt(KEY_SCAN_MODE, DEFAULT_SCAN_MODE); mScanReportDelayInMilliseconds = mSharedPreferences.getLong( KEY_SCAN_REPORT_DELAY_IN_MILLISECONDS, DEFAULT_SCAN_REPORT_DELAY_IN_FOREGROUND_IN_MILLISECONDS); Log.v(TAG, "load: " + "\n - Automate Bluetooth MAC address resolution: " + mAutomateBluetoothMacAddressResolution + "\n - Provide Bluetooth MAC address timeout in milliseconds: " + mProvideBluetoothMacAddressTimeoutInMilliseconds + "\n - Bluetooth MAC address: " + mBluetoothMacAddress + "\n - Discovery mode: " + mDiscoveryMode + "\n - Peer expiration time in milliseconds: " + mPeerExpirationInMilliseconds + "\n - Manufacturer ID: " + mManufacturerId + "\n - Beacon ad length and type: " + mBeaconAdLengthAndType + "\n - Beacon ad extra information: " + mBeaconAdExtraInformation + "\n - Advertisement data type: " + mAdvertisementDataType + "\n - Advertise mode: " + mAdvertiseMode + "\n - Advertise TX power level: " + mAdvertiseTxPowerLevel + "\n - Scan mode: " + mScanMode + "\n - Scan report delay in milliseconds: " + mScanReportDelayInMilliseconds); } else { Log.v(TAG, "load: Already loaded"); } } private  DiscoveryManagerSettings(Context context); private  DiscoveryManagerSettings(Context context, SharedPreferences preferences); static DiscoveryManagerSettings getInstance(Context context); static DiscoveryManagerSettings getInstance(Context context, SharedPreferences preferences); boolean getAutomateBluetoothMacAddressResolution(); void setAutomateBluetoothMacAddressResolution(boolean automate); long getProvideBluetoothMacAddressTimeout(); void setProvideBluetoothMacAddressTimeout(long provideBluetoothMacAddressTimeoutInMilliseconds); String getBluetoothMacAddress(); void setBluetoothMacAddress(String bluetoothMacAddress); void clearBluetoothMacAddress(); DiscoveryMode getDiscoveryMode(); boolean setDiscoveryMode(final DiscoveryMode discoveryMode, boolean startIfNotRunning); boolean setDiscoveryMode(final DiscoveryMode discoveryMode); long getPeerExpiration(); void setPeerExpiration(long peerExpirationInMilliseconds); int getManufacturerId(); void setManufacturerId(int manufacturerId); int getBeaconAdLengthAndType(); void setBeaconAdLengthAndType(int beaconAdLengthAndType); int getBeaconAdExtraInformation(); void setBeaconAdExtraInformation(int beaconAdExtraInformation); AdvertisementDataType getAdvertisementDataType(); void setAdvertisementDataType(AdvertisementDataType advertisementDataType); int getAdvertiseMode(); void setAdvertiseMode(int advertiseMode); int getAdvertiseTxPowerLevel(); void setAdvertiseTxPowerLevel(int advertiseTxPowerLevel); int getScanMode(); void setScanMode(int scanMode); long getScanReportDelay(); void setScanReportDelay(long scanReportDelayInMilliseconds); void setAdvertiseScanModeAndTxPowerLevel(int advertiseMode, int advertiseTxPowerLevel, int scanMode); @Override void load(); @Override void resetDefaults(); }
DiscoveryManagerSettings extends AbstractSettings { @Override public void load() { if (!mLoaded) { mLoaded = true; mAutomateBluetoothMacAddressResolution = mSharedPreferences.getBoolean( KEY_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION, DEFAULT_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION); mProvideBluetoothMacAddressTimeoutInMilliseconds = mSharedPreferences.getLong( KEY_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS, DEFAULT_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS); mBluetoothMacAddress = mSharedPreferences.getString(KEY_BLUETOOTH_MAC_ADDRESS, null); int discoveryModeAsInt = mSharedPreferences.getInt(KEY_DISCOVERY_MODE, discoveryModeToInt(DEFAULT_DISCOVERY_MODE)); mDiscoveryMode = intToDiscoveryMode(discoveryModeAsInt); mPeerExpirationInMilliseconds = mSharedPreferences.getLong( KEY_PEER_EXPIRATION, DEFAULT_PEER_EXPIRATION_IN_MILLISECONDS); mManufacturerId = mSharedPreferences.getInt(KEY_MANUFACTURER_ID, DEFAULT_MANUFACTURER_ID); mBeaconAdLengthAndType = mSharedPreferences.getInt(KEY_BEACON_AD_LENGTH_AND_TYPE, DEFAULT_BEACON_AD_LENGTH_AND_TYPE); mBeaconAdExtraInformation = mSharedPreferences.getInt(KEY_BEACON_AD_EXTRA_INFORMATION, DEFAULT_BEACON_AD_EXTRA_INFORMATION); int advertisementDataTypeAsInt = mSharedPreferences.getInt( KEY_ADVERTISEMENT_DATA_TYPE, advertisementDataTypeToInt(DEFAULT_ADVERTISEMENT_DATA_TYPE)); mAdvertisementDataType = intToAdvertisementDataType(advertisementDataTypeAsInt); mAdvertiseMode = mSharedPreferences.getInt(KEY_ADVERTISE_MODE, DEFAULT_ADVERTISE_MODE); mAdvertiseTxPowerLevel = mSharedPreferences.getInt( KEY_ADVERTISE_TX_POWER_LEVEL, DEFAULT_ADVERTISE_TX_POWER_LEVEL); mScanMode = mSharedPreferences.getInt(KEY_SCAN_MODE, DEFAULT_SCAN_MODE); mScanReportDelayInMilliseconds = mSharedPreferences.getLong( KEY_SCAN_REPORT_DELAY_IN_MILLISECONDS, DEFAULT_SCAN_REPORT_DELAY_IN_FOREGROUND_IN_MILLISECONDS); Log.v(TAG, "load: " + "\n - Automate Bluetooth MAC address resolution: " + mAutomateBluetoothMacAddressResolution + "\n - Provide Bluetooth MAC address timeout in milliseconds: " + mProvideBluetoothMacAddressTimeoutInMilliseconds + "\n - Bluetooth MAC address: " + mBluetoothMacAddress + "\n - Discovery mode: " + mDiscoveryMode + "\n - Peer expiration time in milliseconds: " + mPeerExpirationInMilliseconds + "\n - Manufacturer ID: " + mManufacturerId + "\n - Beacon ad length and type: " + mBeaconAdLengthAndType + "\n - Beacon ad extra information: " + mBeaconAdExtraInformation + "\n - Advertisement data type: " + mAdvertisementDataType + "\n - Advertise mode: " + mAdvertiseMode + "\n - Advertise TX power level: " + mAdvertiseTxPowerLevel + "\n - Scan mode: " + mScanMode + "\n - Scan report delay in milliseconds: " + mScanReportDelayInMilliseconds); } else { Log.v(TAG, "load: Already loaded"); } } private  DiscoveryManagerSettings(Context context); private  DiscoveryManagerSettings(Context context, SharedPreferences preferences); static DiscoveryManagerSettings getInstance(Context context); static DiscoveryManagerSettings getInstance(Context context, SharedPreferences preferences); boolean getAutomateBluetoothMacAddressResolution(); void setAutomateBluetoothMacAddressResolution(boolean automate); long getProvideBluetoothMacAddressTimeout(); void setProvideBluetoothMacAddressTimeout(long provideBluetoothMacAddressTimeoutInMilliseconds); String getBluetoothMacAddress(); void setBluetoothMacAddress(String bluetoothMacAddress); void clearBluetoothMacAddress(); DiscoveryMode getDiscoveryMode(); boolean setDiscoveryMode(final DiscoveryMode discoveryMode, boolean startIfNotRunning); boolean setDiscoveryMode(final DiscoveryMode discoveryMode); long getPeerExpiration(); void setPeerExpiration(long peerExpirationInMilliseconds); int getManufacturerId(); void setManufacturerId(int manufacturerId); int getBeaconAdLengthAndType(); void setBeaconAdLengthAndType(int beaconAdLengthAndType); int getBeaconAdExtraInformation(); void setBeaconAdExtraInformation(int beaconAdExtraInformation); AdvertisementDataType getAdvertisementDataType(); void setAdvertisementDataType(AdvertisementDataType advertisementDataType); int getAdvertiseMode(); void setAdvertiseMode(int advertiseMode); int getAdvertiseTxPowerLevel(); void setAdvertiseTxPowerLevel(int advertiseTxPowerLevel); int getScanMode(); void setScanMode(int scanMode); long getScanReportDelay(); void setScanReportDelay(long scanReportDelayInMilliseconds); void setAdvertiseScanModeAndTxPowerLevel(int advertiseMode, int advertiseTxPowerLevel, int scanMode); @Override void load(); @Override void resetDefaults(); static final boolean DEFAULT_AUTOMATE_BLUETOOTH_MAC_ADDRESS_RESOLUTION; static final long DEFAULT_PROVIDE_BLUETOOTH_MAC_ADDRESS_TIMEOUT_IN_MILLISECONDS; static final int DEFAULT_DEVICE_DISCOVERABLE_DURATION_IN_SECONDS; static final DiscoveryMode DEFAULT_DISCOVERY_MODE; static final long DEFAULT_PEER_EXPIRATION_IN_MILLISECONDS; static final int DEFAULT_MANUFACTURER_ID; static final int DEFAULT_BEACON_AD_LENGTH_AND_TYPE; static final int DEFAULT_BEACON_AD_EXTRA_INFORMATION; static final AdvertisementDataType DEFAULT_ADVERTISEMENT_DATA_TYPE; static final int DEFAULT_ADVERTISE_MODE; static final int DEFAULT_ADVERTISE_TX_POWER_LEVEL; static final int DEFAULT_SCAN_MODE; static final long DEFAULT_SCAN_REPORT_DELAY_IN_FOREGROUND_IN_MILLISECONDS; static final long DEFAULT_SCAN_REPORT_DELAY_IN_BACKGROUND_IN_MILLISECONDS; }