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

Commit cc651c11 authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Jack He
Browse files

Add launcher.proto to atoms.proto

Test: blank
Bug: 113043444
Bug: 120635548
Change-Id: I7e0e72cdf68dcf195188dbab8fe2567fcbd5964e
Merged-In: I7e0e72cdf68dcf195188dbab8fe2567fcbd5964e
(cherry picked from commit c6d6b77d)
parent 8b71c748
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ option java_outer_classname = "AtomsProto";

import "frameworks/base/cmds/statsd/src/atom_field_options.proto";
import "frameworks/base/core/proto/android/app/enums.proto";
import "frameworks/base/core/proto/android/app/launcher/launcher.proto";
import "frameworks/base/core/proto/android/app/job/enums.proto";
import "frameworks/base/core/proto/android/bluetooth/enums.proto";
import "frameworks/base/core/proto/android/os/enums.proto";
@@ -59,7 +60,8 @@ message Atom {
        LongPartialWakelockStateChanged long_partial_wakelock_state_changed = 11;
        MobileRadioPowerStateChanged mobile_radio_power_state_changed = 12;
        WifiRadioPowerStateChanged wifi_radio_power_state_changed = 13;
        // 14 - 19 are available
        // 14 - 18 are available
        LauncherUIChanged launcher_event = 19;
        BatterySaverModeStateChanged battery_saver_mode_state_changed = 20;
        DeviceIdleModeStateChanged device_idle_mode_state_changed = 21;
        DeviceIdlingModeStateChanged device_idling_mode_state_changed = 22;
@@ -1166,6 +1168,14 @@ message PhoneStateChanged {
    optional State state = 1;
}

message LauncherUIChanged {
    optional android.app.launcher.LauncherAction action = 1;
    optional android.app.launcher.LauncherState src_state = 2;
    optional android.app.launcher.LauncherState dst_state = 3;
    optional android.app.launcher.LauncherExtension extension = 4 [(log_mode) = MODE_BYTES];
    optional bool is_swipe_up_enabled = 5;
}

/**
 * Logs that a setting was updated.
 * Logged from:
+86 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";
package android.app.launcher;
option java_multiple_files = true;

enum LauncherAction {
    DEFAULT_ACTION = 0;
    LAUNCH_APP = 1;
    LAUNCH_TASK = 2;
    DISMISS_TASK = 3;
    LONGPRESS = 4;
    DRAGDROP = 5;
    SWIPE_UP = 6;
    SWIPE_DOWN = 7;
    SWIPE_LEFT = 8;
    SWIPE_RIGHT = 9;
}

enum LauncherState {
    BACKGROUND = 0;
    HOME = 1;
    OVERVIEW = 2;
    ALLAPPS = 3;
}

message LauncherTarget {
    enum Type {
        NONE = 0;
        ITEM_TYPE = 1;
        CONTROL_TYPE = 2;
        CONTAINER_TYPE = 3;
    }
    enum Item {
        DEFAULT_ITEM = 0;
        APP_ICON = 1;
        SHORTCUT = 2;
        WIDGET = 3;
        FOLDER_ICON = 4;
        DEEPSHORTCUT = 5;
        SEARCHBOX = 6;
        EDITTEXT = 7;
        NOTIFICATION = 8;
        TASK = 9;
    }
    enum Container {
        DEFAULT_CONTAINER = 0;
        HOTSEAT = 1;
        FOLDER = 2;
        PREDICTION = 3;
        SEARCHRESULT = 4;
    }
    enum Control {
        DEFAULT_CONTROL = 0;
        MENU = 1;
        UNINSTALL = 2;
        REMOVE = 3;
    }
    optional Type type = 1;
    optional Item item = 2;
    optional Container container = 3;
    optional Control control = 4;
    optional string launch_component = 5;
    optional int32 page_id = 6;
    optional int32 grid_x = 7;
    optional int32 grid_y = 8;
}

message LauncherExtension {
    repeated LauncherTarget src_target = 1;
    repeated LauncherTarget dst_target = 2;
}