Package 

Object DebugCollectionConfig


  • 
    public class DebugCollectionConfig
    
                        

    TEST/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 served wifi.enabled=false, and it does not send a ble block 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 beforestartDelivery* so startCollection(...) 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.

    • Method Detail

      • getForceBleEnabled

         final Boolean getForceBleEnabled()

        Force the experimental BLE collector on even when ble.enabled is false in the server config (which is currently always, since the server does not send a ble block). Default false.

      • setForceBleEnabled

         final Unit setForceBleEnabled(Boolean forceBleEnabled)

        Force the experimental BLE collector on even when ble.enabled is false in the server config (which is currently always, since the server does not send a ble block). Default false.

      • getForceWifiEnabled

         final Boolean getForceWifiEnabled()

        Force the WiFi collector on even when wifi.enabled is false in the server config. Default false.

      • setForceWifiEnabled

         final Unit setForceWifiEnabled(Boolean forceWifiEnabled)

        Force the WiFi collector on even when wifi.enabled is false in the server config. Default false.

      • getForceWifiRttEnabled

         final Boolean getForceWifiRttEnabled()

        Force WiFi RTT (802.11mc) ranging on even when wifi.rttEnabled is false in the server config. Only meaningful when the WiFi collector itself runs (server-enabled or forceWifiEnabled); hardware/permission gates still apply, so this is a no-op on devices without FEATURE_WIFI_RTT. Default false.

      • setForceWifiRttEnabled

         final Unit setForceWifiRttEnabled(Boolean forceWifiRttEnabled)

        Force WiFi RTT (802.11mc) ranging on even when wifi.rttEnabled is false in the server config. Only meaningful when the WiFi collector itself runs (server-enabled or forceWifiEnabled); hardware/permission gates still apply, so this is a no-op on devices without FEATURE_WIFI_RTT. Default false.

      • 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).

      • 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 a manifest.txt describing 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 a manifest.txt describing route/format/sizes. Independent of whether the upload succeeds. Production leaves this null.