1syntax = "proto2"; 2 3option java_package = "com.android.wm.shell.desktopmode.persistence"; 4option java_multiple_files = true; 5 6// Represents the state of a task in desktop. 7enum DesktopTaskState { 8 VISIBLE = 0; 9 MINIMIZED = 1; 10} 11 12enum DesktopTaskTilingState { 13 NONE = 1; 14 LEFT = 2; 15 RIGHT = 3; 16} 17 18message DesktopTask { 19 optional int32 task_id = 1; 20 optional DesktopTaskState desktop_task_state= 2; 21 optional DesktopTaskTilingState desktop_task_tiling_state = 3; 22} 23 24message Desktop { 25 optional int32 display_id = 1; 26 optional int32 desktop_id = 2; 27 // Stores a mapping between task id and the tasks. The key is the task id. 28 map<int32, DesktopTask> tasks_by_task_id = 3; 29 repeated int32 z_ordered_tasks = 4; 30} 31 32message DesktopRepositoryState { 33 // Stores a mapping between a repository and the desktops in it. The key is the desktop id. 34 map<int32, Desktop> desktop = 1; 35} 36 37message DesktopPersistentRepositories { 38 // Stores a mapping between a user and their desktop repository. The key is the user id. 39 map<int32, DesktopRepositoryState> desktop_repo_by_user = 1; 40}