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

Commit be8b2ad0 authored by Thiru Ramasamy's avatar Thiru Ramasamy Committed by Tony Wickham
Browse files

Add TaskBarContainer to launcher_atom.proto

Bug: 193009817
Test: Manual
Change-Id: Ib69be2b2405ab38891dff34c4d366105cd2499c1
parent 94c673c6
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ message ContainerInfo {
    SettingsContainer settings_container = 9;
    PredictedHotseatContainer predicted_hotseat_container = 10;
    TaskSwitcherContainer task_switcher_container = 11;
    TaskBarContainer task_bar_container = 12;
    ExtendedContainers extended_containers = 20;
  }
}
@@ -100,6 +101,16 @@ message SettingsContainer {
message TaskSwitcherContainer {
}

// Container for taskbar.
// Configured to show up on large screens(tablet-sized) such as foldables in expanded state, within
// an app view(not in launcher screen).
message TaskBarContainer {
  optional int32 index = 1;

  // Bit encoded value to capture pinned and predicted taskbar positions.
  optional int32 cardinality = 2;
}

enum Attribute {
  UNKNOWN = 0;
  DEFAULT_LAYOUT = 1;       // icon automatically placed in workspace, folder, hotseat
+4 −0
Original line number Diff line number Diff line
@@ -375,6 +375,8 @@ public class StatsLogCompatManager extends StatsLogManager {
        switch (info.getContainerInfo().getContainerCase()) {
            case PREDICTED_HOTSEAT_CONTAINER:
                return info.getContainerInfo().getPredictedHotseatContainer().getCardinality();
            case TASK_BAR_CONTAINER:
                return info.getContainerInfo().getTaskBarContainer().getCardinality();
            case SEARCH_RESULT_CONTAINER:
                return info.getContainerInfo().getSearchResultContainer().getQueryLength();
            case EXTENDED_CONTAINERS:
@@ -461,6 +463,8 @@ public class StatsLogCompatManager extends StatsLogManager {
                return info.getContainerInfo().getHotseat().getIndex();
            case PREDICTED_HOTSEAT_CONTAINER:
                return info.getContainerInfo().getPredictedHotseatContainer().getIndex();
            case TASK_BAR_CONTAINER:
                return info.getContainerInfo().getTaskBarContainer().getIndex();
            default:
                return info.getContainerInfo().getWorkspace().getPageIndex();
        }