Add atom definition for satellite access info

These fields are needed to answer:
  1. Opt-in uid count in the device
  2. How often do apps get on the satellite network

Test: TH
Flag: EXEMPT atom definition only change
Bug: 419123367
Change-Id: Iefebaa0d54b4b616e1b2a64a3357a0102ef61c1d
This commit is contained in:
Junyu Lai 2025-05-21 16:55:47 +08:00
commit 0c5d445486
2 changed files with 29 additions and 1 deletions

View file

@ -238,8 +238,21 @@ message ConnectivityStateSample {
// Full list of network details (slice by transport / meteredness / internet+validated)
optional NetworkList networks = 4;
// Information for satellite access.
optional SatelliteAccessInfo satellite_access_info = 5;
}
/**
* Pulls information for satellite access.
*
* Pulled from:
* packages/modules/Connectivity/service/src/com/android/server/ConnectivityService.java
*/
message SatelliteAccessInfo {
// Number of satellite network opt-in uids on the device.
optional int32 optin_uid_count = 1;
}
/**
* Pulls information for network selection rematch info.
@ -274,6 +287,20 @@ message DefaultNetworkRematchInfo {
// The time duration the device kept the old network as the default in seconds
optional int32 time_duration_on_old_network_sec = 5;
// Uid ranges which applied to this event.
optional UidRanges uid_ranges = 6;
}
message UidRanges {
repeated UidRange uid_range = 1;
}
// Represents a range of UIDs.
// The range is inclusive, denoted as [begin, end].
message UidRange {
optional int32 begin = 1;
optional int32 end = 2;
}
/**

View file

@ -2741,7 +2741,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
sample.getNetworkCountPerTransports().toByteArray(),
sample.getConnectionDurationPerTransports().toByteArray(),
sample.getNetworkRequestCount().toByteArray(),
sample.getNetworks().toByteArray());
sample.getNetworks().toByteArray(),
sample.getSatelliteAccessInfo().toByteArray());
}
/**