-
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>bleManufacturerIdFiltersprivate volatile BooleanbleCycleScannerEnabledOverrideprivate volatile LongbleCycleIntervalMsOverrideprivate volatile StringdumpPayloadsDirpublic 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. final BooleangetBleCycleScannerEnabledOverride()Test override for ble.cycleScannerEnabled: when non-null, forces the destroy/recreate scanner cycling on/off regardless of server config.final UnitsetBleCycleScannerEnabledOverride(Boolean bleCycleScannerEnabledOverride)Test override for ble.cycleScannerEnabled: when non-null, forces the destroy/recreate scanner cycling on/off regardless of server config.final LonggetBleCycleIntervalMsOverride()Test override for ble.cycleIntervalMs(destroy/recreate cadence, ms).final UnitsetBleCycleIntervalMsOverride(Long bleCycleIntervalMsOverride)Test override for ble.cycleIntervalMs(destroy/recreate cadence, ms).final StringgetDumpPayloadsDir()TEST/DEBUG: when non-null, com.doorstepai.sdks.tracking.internal.sensors.DataManager writes the EXACT compressed wire body of every prepared data-push batch (the bytes that would be PATCHed to the server) to <dir>/payload_<n>.txt, plus amanifest.txtdescribing route/format/sizes.final UnitsetDumpPayloadsDir(String dumpPayloadsDir)TEST/DEBUG: when non-null, com.doorstepai.sdks.tracking.internal.sensors.DataManager writes the EXACT compressed wire body of every prepared data-push batch (the bytes that would be PATCHed to the server) to <dir>/payload_<n>.txt, plus amanifest.txtdescribing route/format/sizes.-
-
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).
-
getBleCycleScannerEnabledOverride
final Boolean getBleCycleScannerEnabledOverride()
Test override for
ble.cycleScannerEnabled: when non-null, forces the destroy/recreate scanner cycling on/off regardless of server config. Lets the adb harness A/B cycling vs. the default bounce. Null = defer to server.
-
setBleCycleScannerEnabledOverride
final Unit setBleCycleScannerEnabledOverride(Boolean bleCycleScannerEnabledOverride)
Test override for
ble.cycleScannerEnabled: when non-null, forces the destroy/recreate scanner cycling on/off regardless of server config. Lets the adb harness A/B cycling vs. the default bounce. Null = defer to server.
-
getBleCycleIntervalMsOverride
final Long getBleCycleIntervalMsOverride()
Test override for
ble.cycleIntervalMs(destroy/recreate cadence, ms). Null = defer to server config. Coerced to a safe floor in BleManager.
-
setBleCycleIntervalMsOverride
final Unit setBleCycleIntervalMsOverride(Long bleCycleIntervalMsOverride)
Test override for
ble.cycleIntervalMs(destroy/recreate cadence, ms). Null = defer to server config. Coerced to a safe floor in BleManager.
-
getDumpPayloadsDir
final String getDumpPayloadsDir()
TEST/DEBUG: when non-null, com.doorstepai.sdks.tracking.internal.sensors.DataManager writes the EXACT compressed wire body of every prepared data-push batch (the bytes that would be PATCHed to the server) to
<dir>/payload_<n>.txt, plus amanifest.txtdescribing route/format/sizes. Independent of whether the upload succeeds. Production leaves this null.
-
setDumpPayloadsDir
final Unit setDumpPayloadsDir(String dumpPayloadsDir)
TEST/DEBUG: when non-null, com.doorstepai.sdks.tracking.internal.sensors.DataManager writes the EXACT compressed wire body of every prepared data-push batch (the bytes that would be PATCHed to the server) to
<dir>/payload_<n>.txt, plus amanifest.txtdescribing route/format/sizes. Independent of whether the upload succeeds. Production leaves this null.
-
-
-
-