Package 

Object DebugState


  • 
    public class DebugState
    
                        

    TEST-ONLY introspection of the SDK's live + persisted session state, in the spirit of CSVMode/DebugCollectionConfig. One call returns everything the test harness needs to assert the two core invariants:

    • no zombie: after every stop path, registry and activeDeliveries are empty;

    • no session ⇒ no radios: collecting, gnssCallbacksRegistered, wifiPositioningActive and wakeLockHeld are all false when nothing is active.

    Driven from adb via the sample app's TEST_STATE broadcast; also usable directly from instrumentation (farm) tests. Reads are best-effort and unsynchronized — this is observability for tests, never an API for production logic.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static DebugState INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final String snapshotJson(Context context)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait