Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb68f592 authored by Yan Yan's avatar Yan Yan
Browse files

APIs to configure capabilities in VCN cell network template

This commit exposes APIs enabling caller to configure required
and forbidden capabilities in the VCN cell underlying network
template so that a cell network MUST match the capability
criteria to be selected as the VCN's underlying network.

Bug: 245618320
Test: make update-api && make
API-Coverage-Bug: 262448529
Change-Id: I3da7afab85f338f147707f724133a83fa08df4a5
parent 99a0e88e
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -27264,8 +27264,14 @@ package android.net.sip {
package android.net.vcn {
package android.net.vcn {
  public final class VcnCellUnderlyingNetworkTemplate extends android.net.vcn.VcnUnderlyingNetworkTemplate {
  public final class VcnCellUnderlyingNetworkTemplate extends android.net.vcn.VcnUnderlyingNetworkTemplate {
    method public int getCbs();
    method public int getDun();
    method public int getIms();
    method public int getInternet();
    method public int getMms();
    method @NonNull public java.util.Set<java.lang.String> getOperatorPlmnIds();
    method @NonNull public java.util.Set<java.lang.String> getOperatorPlmnIds();
    method public int getOpportunistic();
    method public int getOpportunistic();
    method public int getRcs();
    method public int getRoaming();
    method public int getRoaming();
    method @NonNull public java.util.Set<java.lang.Integer> getSimSpecificCarrierIds();
    method @NonNull public java.util.Set<java.lang.Integer> getSimSpecificCarrierIds();
  }
  }
@@ -27273,11 +27279,17 @@ package android.net.vcn {
  public static final class VcnCellUnderlyingNetworkTemplate.Builder {
  public static final class VcnCellUnderlyingNetworkTemplate.Builder {
    ctor public VcnCellUnderlyingNetworkTemplate.Builder();
    ctor public VcnCellUnderlyingNetworkTemplate.Builder();
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate build();
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate build();
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setCbs(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setDun(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setIms(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setInternet(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setMetered(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setMetered(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setMinDownstreamBandwidthKbps(int, int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setMinDownstreamBandwidthKbps(int, int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setMinUpstreamBandwidthKbps(int, int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setMinUpstreamBandwidthKbps(int, int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setMms(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setOperatorPlmnIds(@NonNull java.util.Set<java.lang.String>);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setOperatorPlmnIds(@NonNull java.util.Set<java.lang.String>);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setOpportunistic(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setOpportunistic(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setRcs(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setRoaming(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setRoaming(int);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setSimSpecificCarrierIds(@NonNull java.util.Set<java.lang.Integer>);
    method @NonNull public android.net.vcn.VcnCellUnderlyingNetworkTemplate.Builder setSimSpecificCarrierIds(@NonNull java.util.Set<java.lang.Integer>);
  }
  }
+0 −12
Original line number Original line Diff line number Diff line
@@ -300,7 +300,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
     * Returns the matching criteria for CBS networks.
     * Returns the matching criteria for CBS networks.
     *
     *
     * @see Builder#setCbs(int)
     * @see Builder#setCbs(int)
     * @hide
     */
     */
    @MatchCriteria
    @MatchCriteria
    public int getCbs() {
    public int getCbs() {
@@ -311,7 +310,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
     * Returns the matching criteria for DUN networks.
     * Returns the matching criteria for DUN networks.
     *
     *
     * @see Builder#setDun(int)
     * @see Builder#setDun(int)
     * @hide
     */
     */
    @MatchCriteria
    @MatchCriteria
    public int getDun() {
    public int getDun() {
@@ -321,7 +319,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
     * Returns the matching criteria for IMS networks.
     * Returns the matching criteria for IMS networks.
     *
     *
     * @see Builder#setIms(int)
     * @see Builder#setIms(int)
     * @hide
     */
     */
    @MatchCriteria
    @MatchCriteria
    public int getIms() {
    public int getIms() {
@@ -331,7 +328,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
     * Returns the matching criteria for INTERNET networks.
     * Returns the matching criteria for INTERNET networks.
     *
     *
     * @see Builder#setInternet(int)
     * @see Builder#setInternet(int)
     * @hide
     */
     */
    @MatchCriteria
    @MatchCriteria
    public int getInternet() {
    public int getInternet() {
@@ -341,7 +337,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
     * Returns the matching criteria for MMS networks.
     * Returns the matching criteria for MMS networks.
     *
     *
     * @see Builder#setMms(int)
     * @see Builder#setMms(int)
     * @hide
     */
     */
    @MatchCriteria
    @MatchCriteria
    public int getMms() {
    public int getMms() {
@@ -352,7 +347,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
     * Returns the matching criteria for RCS networks.
     * Returns the matching criteria for RCS networks.
     *
     *
     * @see Builder#setRcs(int)
     * @see Builder#setRcs(int)
     * @hide
     */
     */
    @MatchCriteria
    @MatchCriteria
    public int getRcs() {
    public int getRcs() {
@@ -612,7 +606,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
         * @param matchCriteria the matching criteria for CBS networks. Defaults to {@link
         * @param matchCriteria the matching criteria for CBS networks. Defaults to {@link
         *     #MATCH_ANY}.
         *     #MATCH_ANY}.
         * @see NetworkCapabilities#NET_CAPABILITY_CBS
         * @see NetworkCapabilities#NET_CAPABILITY_CBS
         * @hide
         */
         */
        @NonNull
        @NonNull
        public Builder setCbs(@MatchCriteria int matchCriteria) {
        public Builder setCbs(@MatchCriteria int matchCriteria) {
@@ -633,7 +626,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
         * @param matchCriteria the matching criteria for DUN networks. Defaults to {@link
         * @param matchCriteria the matching criteria for DUN networks. Defaults to {@link
         *     #MATCH_ANY}.
         *     #MATCH_ANY}.
         * @see NetworkCapabilities#NET_CAPABILITY_DUN
         * @see NetworkCapabilities#NET_CAPABILITY_DUN
         * @hide
         */
         */
        @NonNull
        @NonNull
        public Builder setDun(@MatchCriteria int matchCriteria) {
        public Builder setDun(@MatchCriteria int matchCriteria) {
@@ -654,7 +646,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
         * @param matchCriteria the matching criteria for IMS networks. Defaults to {@link
         * @param matchCriteria the matching criteria for IMS networks. Defaults to {@link
         *     #MATCH_ANY}.
         *     #MATCH_ANY}.
         * @see NetworkCapabilities#NET_CAPABILITY_IMS
         * @see NetworkCapabilities#NET_CAPABILITY_IMS
         * @hide
         */
         */
        @NonNull
        @NonNull
        public Builder setIms(@MatchCriteria int matchCriteria) {
        public Builder setIms(@MatchCriteria int matchCriteria) {
@@ -675,7 +666,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
         * @param matchCriteria the matching criteria for INTERNET networks. Defaults to {@link
         * @param matchCriteria the matching criteria for INTERNET networks. Defaults to {@link
         *     #MATCH_REQUIRED}.
         *     #MATCH_REQUIRED}.
         * @see NetworkCapabilities#NET_CAPABILITY_INTERNET
         * @see NetworkCapabilities#NET_CAPABILITY_INTERNET
         * @hide
         */
         */
        @NonNull
        @NonNull
        public Builder setInternet(@MatchCriteria int matchCriteria) {
        public Builder setInternet(@MatchCriteria int matchCriteria) {
@@ -696,7 +686,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
         * @param matchCriteria the matching criteria for MMS networks. Defaults to {@link
         * @param matchCriteria the matching criteria for MMS networks. Defaults to {@link
         *     #MATCH_ANY}.
         *     #MATCH_ANY}.
         * @see NetworkCapabilities#NET_CAPABILITY_MMS
         * @see NetworkCapabilities#NET_CAPABILITY_MMS
         * @hide
         */
         */
        @NonNull
        @NonNull
        public Builder setMms(@MatchCriteria int matchCriteria) {
        public Builder setMms(@MatchCriteria int matchCriteria) {
@@ -717,7 +706,6 @@ public final class VcnCellUnderlyingNetworkTemplate extends VcnUnderlyingNetwork
         * @param matchCriteria the matching criteria for RCS networks. Defaults to {@link
         * @param matchCriteria the matching criteria for RCS networks. Defaults to {@link
         *     #MATCH_ANY}.
         *     #MATCH_ANY}.
         * @see NetworkCapabilities#NET_CAPABILITY_RCS
         * @see NetworkCapabilities#NET_CAPABILITY_RCS
         * @hide
         */
         */
        @NonNull
        @NonNull
        public Builder setRcs(@MatchCriteria int matchCriteria) {
        public Builder setRcs(@MatchCriteria int matchCriteria) {