-
public class DebugStateTEST-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,
registryandactiveDeliveriesare empty;no session ⇒ no radios:
collecting,gnssCallbacksRegistered,wifiPositioningActiveandwakeLockHeldare all false when nothing is active.
Driven from adb via the sample app's
TEST_STATEbroadcast; 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 DebugStateINSTANCE
-
Method Summary
Modifier and Type Method Description final StringsnapshotJson(Context context)-
-
Method Detail
-
snapshotJson
final String snapshotJson(Context context)
-
-
-
-