-
public class DebugCollectionConfigTEST/DEBUG-only local overrides that force experimental collectors on regardless of the server-driven config.
Collection of WiFi and (experimental) BLE is normally gated on the server config (
wifi.enabled/ble.enabled). During local CSV testing the server may not enable them (e.g. it has servedwifi.enabled=false, and it does not send ableblock yet), so there would be nothing to record. These flags let the test harness force the collectors on for a local, CSV-only run.Read by com.doorstepai.sdks.tracking.internal.DataHolder when it decides whether to start each collector. Set the desired flags before
startDelivery*sostartCollection(...)sees them.Production callers must leave these
false. This does NOT disable OS scan throttling — WiFi still respects the platform's 4-scans/2-min limit — so a forced-on run still reflects a realistic driver experience.
-
-
Field Summary
Fields Modifier and Type Field Description private volatile BooleanforceBleEnabledprivate volatile BooleanforceWifiEnabledprivate volatile List<String>bleServiceUuidFiltersprivate volatile List<Integer>bleManufacturerIdFilterspublic final static DebugCollectionConfigINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleangetForceBleEnabled()Force the experimental BLE collector on even when ble.enabledis false in the server config (which is currently always, since the server does not send ableblock).final UnitsetForceBleEnabled(Boolean forceBleEnabled)Force the experimental BLE collector on even when ble.enabledis false in the server config (which is currently always, since the server does not send ableblock).final BooleangetForceWifiEnabled()Force the WiFi collector on even when wifi.enabledis false in the server config.final UnitsetForceWifiEnabled(Boolean forceWifiEnabled)Force the WiFi collector on even when wifi.enabledis false in the server config.final List<String>getBleServiceUuidFilters()Test override: BLE service-UUID ScanFilters, merged into the BLE config. final UnitsetBleServiceUuidFilters(List<String> bleServiceUuidFilters)Test override: BLE service-UUID ScanFilters, merged into the BLE config. final List<Integer>getBleManufacturerIdFilters()Test override: BLE manufacturer-id ScanFilters (e.g. final UnitsetBleManufacturerIdFilters(List<Integer> bleManufacturerIdFilters)Test override: BLE manufacturer-id ScanFilters (e.g. -
-
Method Detail
-
getForceBleEnabled
final Boolean getForceBleEnabled()
Force the experimental BLE collector on even when
ble.enabledis false in the server config (which is currently always, since the server does not send ableblock). Defaultfalse.
-
setForceBleEnabled
final Unit setForceBleEnabled(Boolean forceBleEnabled)
Force the experimental BLE collector on even when
ble.enabledis false in the server config (which is currently always, since the server does not send ableblock). Defaultfalse.
-
getForceWifiEnabled
final Boolean getForceWifiEnabled()
Force the WiFi collector on even when
wifi.enabledis false in the server config. Defaultfalse.
-
setForceWifiEnabled
final Unit setForceWifiEnabled(Boolean forceWifiEnabled)
Force the WiFi collector on even when
wifi.enabledis false in the server config. Defaultfalse.
-
getBleServiceUuidFilters
final List<String> getBleServiceUuidFilters()
Test override: BLE service-UUID ScanFilters, merged into the BLE config. Any non-empty filter makes the scan a FILTERED scan (delivers screen-off). Empty (default) leaves the scan filterless/wildcard (foreground-only).
-
setBleServiceUuidFilters
final Unit setBleServiceUuidFilters(List<String> bleServiceUuidFilters)
Test override: BLE service-UUID ScanFilters, merged into the BLE config. Any non-empty filter makes the scan a FILTERED scan (delivers screen-off). Empty (default) leaves the scan filterless/wildcard (foreground-only).
-
getBleManufacturerIdFilters
final List<Integer> getBleManufacturerIdFilters()
Test override: BLE manufacturer-id ScanFilters (e.g. 76 = Apple).
-
setBleManufacturerIdFilters
final Unit setBleManufacturerIdFilters(List<Integer> bleManufacturerIdFilters)
Test override: BLE manufacturer-id ScanFilters (e.g. 76 = Apple).
-
-
-
-