public class BleManagerConfig_UnitTest extends BleManagerConfig
BleManagerConfig.bluetoothManagerImplementation
, BleDeviceConfig.gattFactory
, BleDeviceConfig.bluetoothDeviceFactory
, BleManagerConfig.serverFactory
,
and BleManagerConfig.logger
to the default unit testing equivalents. This provides implementations that will "just work", with the exception of reads/writes, as no
GattDatabase
is implemented.BleManagerConfig.DeviceNameComparator
BleDeviceConfig.AuthTransactionFactory<T extends BleTransaction.Auth>, BleDeviceConfig.DefaultBondFilter, BleDeviceConfig.InitTransactionFactory<T extends BleTransaction.Init>, BleDeviceConfig.RefreshOption
BleNodeConfig.DefaultHistoricalDataLogFilter, BleNodeConfig.DefaultTaskTimeoutRequestFilter, BleNodeConfig.HistoricalDataFactory, BleNodeConfig.HistoricalDataLogFilter
Modifier and Type | Field and Description |
---|---|
GattDatabase |
m_gattDatabase |
autoPauseResumeDetection, autoScanDelayAfterBleTurnsOn, autoScanDelayAfterResume, autoScanDuringOta, autoScanPauseTimeWhileAppIsBackgrounded, autoUpdateRate, blockingShutdown, bluetoothManagerImplementation, DEFAULT_AUTO_SCAN_DELAY_AFTER_RESUME, DEFAULT_AUTO_UPDATE_RATE, DEFAULT_CLASSIC_SCAN_BOOST_TIME, DEFAULT_DELAY_BEFORE_IDLE, DEFAULT_IDLE_UPDATE_RATE, DEFAULT_MANAGER_STATE_POLL_RATE, DEFAULT_SCAN_INFINITE_INTERVAL_TIME, DEFAULT_SCAN_INFINITE_PAUSE_TIME, DEFAULT_UH_OH_CALLBACK_THROTTLE, defaultDiscoveryListener, defaultListComparator, defaultManagerStates, defaultNativeScanFilterList, defaultScanFilter, defaultStatePollRate, delayBetweenTasks, EMPTY_NATIVE_FILTER, enableCrashResolver, enableCrashResolverForReset, idealMinScanTime, idleUpdateRate, infinitePauseInterval, infiniteScanInterval, logger, loggingOptions, manageCpuWakeLock, manageLastUhOhOnDisk, MAX_CLASSIC_SCAN_TIME, minTimeToIdle, postCallbacksToMainThread, requestBackgroundOperation, revertToClassicDiscoveryIfNeeded, scanApi, scanClassicBoostLength, scanPower, scanReportDelay, serverFactory, stopScanOnPause, timeTrackerSetting, uhOhCallbackThrottle, updateHandler, updateLoopCallback, updateThreadType, uuidNameMaps
allowDuplicatePollEntries, alwaysBondOnConnect, autoBondFixes, autoEnableNotifiesOnReconnect, autoGetServices, autoNegotiateMtuOnReconnect, autoReconnectDeviceWhenBleTurnsBackOn, bluetoothDeviceFactory, bondFilter, bondingFailFailsConnection, bondRetryFilter, cacheDeviceOnUndiscovery, clearGattOnOtaSuccess, connectFailRetryConnectingOverall, connectionBugFixTimeout, DEFAULT_CONNECTION_BUG_FIX_TIMEOUT, DEFAULT_GATT_REFRESH_DELAY, DEFAULT_MAX_BOND_RETRIES, DEFAULT_MAX_CONNECTION_FAIL_HISTORY_SIZE, DEFAULT_MINIMUM_SCAN_TIME, DEFAULT_RSSI_AUTO_POLL_RATE, DEFAULT_RSSI_MAX, DEFAULT_RSSI_MIN, DEFAULT_RUNNING_AVERAGE_N, DEFAULT_SCAN_KEEP_ALIVE, DEFAULT_TX_POWER, defaultAuthFactory, defaultDeviceStates, defaultInitFactory, defaultTransactionAtomicity, defaultTxPower, equalOpportunityReadsWrites, forceBondDialog, forceBondHackInterval, gattFactory, gattRefreshDelay, gattRefreshOption, includeOtaReadWriteTimesInAverage, manageLastDisconnectOnDisk, maxConnectionFailHistorySize, minScanTimeNeededForUndiscovery, mtuTestCallback, nForAverageRunningReadTime, nForAverageRunningWriteTime, phyOptions, reconnectFilter, retainDeviceWhenBleTurnsOff, rssi_max, rssi_min, rssiAutoPollRate, saveNameChangesToDisk, serviceDiscoveryDelay, tryBondingWhileDisconnected, tryBondingWhileDisconnected_manageOnDisk, undiscoverDeviceWhenBleTurnsOff, undiscoveryKeepAlive, useGattRefresh, useLeTransportForBonding
alwaysUseAutoConnect, autoStripeWrites, DEFAULT_MTU_SIZE, disconnectIsCancellable, GATT_READ_MTU_OVERHEAD, GATT_WRITE_MTU_OVERHEAD, historicalDataFactory, historicalDataLogFilter, INVALID_TX_POWER, taskTimeoutRequestFilter
Constructor and Description |
---|
BleManagerConfig_UnitTest() |
BleManagerConfig_UnitTest(GattDatabase gattDatabase)
This constructor allows you to pass in a
GattDatabase instance to be used for the default BleDeviceConfig.gattFactory instance. |
clone, newWithLogging
newNulled
getTimeout, nullOut, readJSON, writeJSON
public GattDatabase m_gattDatabase
public BleManagerConfig_UnitTest()
public BleManagerConfig_UnitTest(GattDatabase gattDatabase)
GattDatabase
instance to be used for the default BleDeviceConfig.gattFactory
instance. If you are overriding
the default, then this constructor doesn't provide anything special. This is just a convenience if you are using the default gatt implementation.