1/* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18package android.stats.docsui; 19option java_multiple_files = true; 20 21enum LaunchAction { 22 UNKNOWN = 0; 23 OPEN = 1; 24 CREATE = 2; 25 GET_CONTENT = 3; 26 OPEN_TREE = 4; 27 PICK_COPY_DEST = 5; 28 BROWSE = 6; 29 OTHER = 7; 30} 31 32enum MimeType { 33 MIME_UNKNOWN = 0; 34 MIME_NONE = 1; 35 MIME_ANY = 2; 36 MIME_APPLICATION = 3; 37 MIME_AUDIO = 4; 38 MIME_IMAGE = 5; 39 MIME_MESSAGE = 6; 40 MIME_MULTIPART = 7; 41 MIME_TEXT = 8; 42 MIME_VIDEO = 9; 43 MIME_OTHER = 10; 44} 45 46enum Root { 47 ROOT_UNKNOWN = 0; 48 ROOT_NONE = 1; 49 ROOT_OTHER_DOCS_PROVIDER = 2; 50 ROOT_AUDIO = 3; 51 ROOT_DEVICE_STORAGE = 4; 52 ROOT_DOWNLOADS = 5; 53 ROOT_HOME = 6; 54 ROOT_IMAGES = 7; 55 ROOT_RECENTS = 8; 56 ROOT_VIDEOS = 9; 57 ROOT_MTP = 10; 58 ROOT_THIRD_PARTY_APP = 11; 59} 60 61enum ContextScope { 62 SCOPE_UNKNOWN = 0; 63 SCOPE_FILES = 1; 64 SCOPE_PICKER = 2; 65} 66 67enum Provider { 68 PROVIDER_UNKNOWN = 0; 69 PROVIDER_SYSTEM = 1; 70 PROVIDER_EXTERNAL = 2; 71} 72 73enum FileOperation { 74 OP_UNKNOWN = 0; 75 OP_OTHER = 1; 76 OP_COPY = 2; 77 OP_COPY_INTRA_PROVIDER = 3; 78 OP_COPY_SYSTEM_PROVIDER = 4; 79 OP_COPY_EXTERNAL_PROVIDER = 5; 80 OP_MOVE = 6; 81 OP_MOVE_INTRA_PROVIDER = 7; 82 OP_MOVE_SYSTEM_PROVIDER = 8; 83 OP_MOVE_EXTERNAL_PROVIDER = 9; 84 OP_DELETE = 10; 85 OP_RENAME = 11; 86 OP_CREATE_DIR = 12; 87 OP_OTHER_ERROR = 13; 88 OP_DELETE_ERROR = 14; 89 OP_MOVE_ERROR = 15; 90 OP_COPY_ERROR = 16; 91 OP_RENAME_ERROR = 17; 92 OP_CREATE_DIR_ERROR = 18; 93 OP_COMPRESS_INTRA_PROVIDER = 19; 94 OP_COMPRESS_SYSTEM_PROVIDER = 20; 95 OP_COMPRESS_EXTERNAL_PROVIDER = 21; 96 OP_EXTRACT_INTRA_PROVIDER = 22; 97 OP_EXTRACT_SYSTEM_PROVIDER = 23; 98 OP_EXTRACT_EXTERNAL_PROVIDER = 24; 99 OP_COMPRESS_ERROR = 25; 100 OP_EXTRACT_ERROR = 26; 101} 102 103enum SubFileOperation { 104 SUB_OP_UNKNOWN = 0; 105 SUB_OP_QUERY_DOC = 1; 106 SUB_OP_QUERY_CHILD = 2; 107 SUB_OP_OPEN_FILE = 3; 108 SUB_OP_READ_FILE = 4; 109 SUB_OP_CREATE_DOC = 5; 110 SUB_OP_WRITE_FILE = 6; 111 SUB_OP_DELETE_DOC = 7; 112 SUB_OP_OBTAIN_STREAM_TYPE = 8; 113 SUB_OP_QUICK_MOVE = 9; 114 SUB_OP_QUICK_COPY = 10; 115} 116 117enum CopyMoveOpMode { 118 MODE_UNKNOWN = 0; 119 MODE_PROVIDER = 1; 120 MODE_CONVERTED = 2; 121 MODE_CONVENTIONAL = 3; 122} 123 124enum Authority { 125 AUTH_UNKNOWN = 0; 126 AUTH_OTHER = 1; 127 AUTH_MEDIA = 2; 128 AUTH_STORAGE_INTERNAL = 3; 129 AUTH_STORAGE_EXTERNAL = 4; 130 AUTH_DOWNLOADS = 5; 131 AUTH_MTP = 6; 132} 133 134enum UserAction { 135 ACTION_UNKNOWN = 0; 136 ACTION_OTHER = 1; 137 ACTION_GRID = 2; 138 ACTION_LIST = 3; 139 ACTION_SORT_NAME = 4; 140 ACTION_SORT_DATE = 5; 141 ACTION_SORT_SIZE = 6; 142 ACTION_SORT_TYPE = 7; 143 ACTION_SEARCH = 8; 144 ACTION_SHOW_SIZE = 9; 145 ACTION_HIDE_SIZE = 10; 146 ACTION_SETTINGS = 11; 147 ACTION_COPY_TO = 12; 148 ACTION_MOVE_TO = 13; 149 ACTION_DELETE = 14; 150 ACTION_RENAME = 15; 151 ACTION_CREATE_DIR = 16; 152 ACTION_SELECT_ALL = 17; 153 ACTION_SHARE = 18; 154 ACTION_OPEN = 19; 155 ACTION_SHOW_ADVANCED = 20; 156 ACTION_HIDE_ADVANCED = 21; 157 ACTION_NEW_WINDOW = 22; 158 ACTION_PASTE_CLIPBOARD = 23; 159 ACTION_COPY_CLIPBOARD = 24; 160 ACTION_DRAG_N_DROP = 25; 161 ACTION_DRAG_N_DROP_MULTI_WINDOW = 26; 162 ACTION_CUT_CLIPBOARD = 27; 163 ACTION_COMPRESS = 28; 164 ACTION_EXTRACT_TO = 29; 165 ACTION_VIEW_IN_APPLICATION = 30; 166 ACTION_INSPECTOR = 31; 167 ACTION_SEARCH_CHIP = 32; 168 ACTION_SEARCH_HISTORY = 33; 169} 170 171enum InvalidScopedAccess { 172 SCOPED_DIR_ACCESS_UNKNOWN = 0; 173 SCOPED_DIR_ACCESS_INVALID_ARGUMENTS = 1; 174 SCOPED_DIR_ACCESS_INVALID_DIRECTORY = 2; 175 SCOPED_DIR_ACCESS_ERROR = 3; 176 SCOPED_DIR_ACCESS_DEPRECATED = 4; 177} 178 179enum SearchType { 180 TYPE_UNKNOWN = 0; 181 TYPE_CHIP_IMAGES = 1; 182 TYPE_CHIP_AUDIOS = 2; 183 TYPE_CHIP_VIDEOS = 3; 184 TYPE_CHIP_DOCS = 4; 185 TYPE_SEARCH_HISTORY = 5; 186 TYPE_SEARCH_STRING = 6; 187} 188 189enum SearchMode { 190 SEARCH_UNKNOWN = 0; 191 SEARCH_KEYWORD = 1; 192 SEARCH_CHIPS = 2; 193 SEARCH_KEYWORD_N_CHIPS = 3; 194} 195