API reference

NativeIntrospectionRegistry Object

Kotlin-side accessors for the C++ aether::introspection::IntrospectionRegistry mirror.
The C++ registry is a separate instance from the Kotlin IntrospectionRegistry singleton. The dumpsys adapter (Phase 2) is responsible for walking BOTH on dump and merging the results.
Encoding format used over JNI (kept narrow on purpose to avoid per-call jobject churn):
  • Value: path=<typeChar>:<encoded> with typeChar in L | D | S | B.
  • Metadata: path|type|visibility|description|unit (unit may be empty).

Signature

object NativeIntrospectionRegistry

Methods

decodeMetadata ( encoded )
Decode a metadata string of the form path|type|visibility|description|unit with | and \ inside free-form fields backslash-escaped (per escapeField in IntrospectionRegistryJni.cpp).
Signature
fun decodeMetadata(encoded: String): NodeMetadata?
Parameters
encoded: String
decodeValue ( encoded )
Decode a value string of the form path=<typeChar>:<encoded>.
Signature
fun decodeValue(encoded: String): Pair<String, Value>?
Parameters
encoded: String
Returns
Pair<String, Value>?
nativeList ( pathPrefix )
Returns an array of encoded metadata strings path|type|visibility|description|unit.
Signature
external fun nativeList(pathPrefix: String): Array<String>
Parameters
pathPrefix: String
Returns
Array
nativeRead ( path )
Returns the encoded value string path=<typeChar>:<encoded>, or null if absent / hidden.
Signature
external fun nativeRead(path: String): String?
Parameters
path: String
Returns
String?
nativeSetProductionMode ( value )
Push the production-mode flag down to the native registry.
Signature
external fun nativeSetProductionMode(value: Boolean)
Parameters
value: Boolean
nativeSnapshot ( pathPrefix )
Returns an array of encoded value strings path=<typeChar>:<encoded>.
Signature
external fun nativeSnapshot(pathPrefix: String): Array<String>
Parameters
pathPrefix: String
Returns
Array
nativeUnregister ( path )
Signature
external fun nativeUnregister(path: String): Boolean
Parameters
path: String
Returns
Boolean
nativeUnregisterSubtree ( prefix )
Signature
external fun nativeUnregisterSubtree(prefix: String): Int
Parameters
prefix: String
Returns
Int