@Test public void testGetInstance() throws Exception { DiscoveryManagerSettings dmSettings = DiscoveryManagerSettings.getInstance(mMockContext, mMockSharedPreferences); assertThat(dmSettings, is(notNullValue())); }
public static DiscoveryManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new DiscoveryManagerSettings(context); } return mInstance; }
DiscoveryManagerSettings extends AbstractSettings { public static DiscoveryManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new DiscoveryManagerSettings(context); } return mInstance; } }
DiscoveryManagerSettings extends AbstractSettings { public static DiscoveryManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new DiscoveryManagerSettings(context); } return mInstance; } private  DiscoveryManagerSettings(Context context); private  DiscoveryManagerSettings(Context context, SharedPreferences preferences); }
DiscoveryManagerSettings extends AbstractSettings { public static DiscoveryManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new DiscoveryManagerSettings(context); } return mInstance; } 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 { public static DiscoveryManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new DiscoveryManagerSettings(context); } return mInstance; } 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; }