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

Commit 20caff69 authored by Matthew Fritze's avatar Matthew Fritze
Browse files

Add Wifi Settings Panel API

Wifi Panel is the fourth Settings Panel, which hosts Wifi related settings.
Currently the panel only holds the Wifi slice, but is open to future
additions.

Also add metrics constants for panel logging.

Test: atest SettingsPanelTest
Bug: 126894142
Change-Id: Ie72b3b52ea89047dfde77daa35ff2f95c655dbb7
parent fcf2be28
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38944,6 +38944,7 @@ package android.provider {
    field public static final String ACTION_INTERNET_CONNECTIVITY = "android.settings.panel.action.INTERNET_CONNECTIVITY";
    field public static final String ACTION_NFC = "android.settings.panel.action.NFC";
    field public static final String ACTION_VOLUME = "android.settings.panel.action.VOLUME";
    field public static final String ACTION_WIFI = "android.settings.panel.action.WIFI";
  }
  public static final class Settings.Secure extends android.provider.Settings.NameValueTable {
+11 −0
Original line number Diff line number Diff line
@@ -14898,6 +14898,17 @@ public final class Settings {
        public static final String ACTION_NFC =
                "android.settings.panel.action.NFC";
        /**
         * Activity Action: Show a settings dialog containing controls for Wifi.
         * <p>
         * Input: Nothing.
         * <p>
         * Output: Nothing.
         */
        @SdkConstant(SdkConstant.SdkConstantType.ACTIVITY_INTENT_ACTION)
        public static final String ACTION_WIFI =
                "android.settings.panel.action.WIFI";
        /**
         * Activity Action: Show a settings dialog containing all volume streams.
         * <p>
+3 −0
Original line number Diff line number Diff line
@@ -2299,4 +2299,7 @@ enum PageId {

    // Open: Settings will show the conditional when Grayscale mode is on
    SETTINGS_CONDITION_GRAYSCALE_MODE = 1683;

    // Panel for Wifi
    PANEL_WIFI = 1687;
}
+3 −0
Original line number Diff line number Diff line
@@ -7087,6 +7087,9 @@ message MetricsEvent {
    //ACTION: Log result for each card's eligibility check
    ACTION_CONTEXTUAL_CARD_ELIGIBILITY = 1686;

    // Panel for Wifi
    PANEL_WIFI = 1687;

    // ---- End Q Constants, all Q constants go above this line ----
    // Add new aosp constants above this line.
    // END OF AOSP CONSTANTS