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 ROOT_DOCUMENTS = 12; 60} 61 62enum ContextScope { 63 SCOPE_UNKNOWN = 0; 64 SCOPE_FILES = 1; 65 SCOPE_PICKER = 2; 66} 67 68enum Provider { 69 PROVIDER_UNKNOWN = 0; 70 PROVIDER_SYSTEM = 1; 71 PROVIDER_EXTERNAL = 2; 72} 73 74enum FileOperation { 75 OP_UNKNOWN = 0; 76 OP_OTHER = 1; 77 OP_COPY = 2; 78 OP_COPY_INTRA_PROVIDER = 3; 79 OP_COPY_SYSTEM_PROVIDER = 4; 80 OP_COPY_EXTERNAL_PROVIDER = 5; 81 OP_MOVE = 6; 82 OP_MOVE_INTRA_PROVIDER = 7; 83 OP_MOVE_SYSTEM_PROVIDER = 8; 84 OP_MOVE_EXTERNAL_PROVIDER = 9; 85 OP_DELETE = 10; 86 OP_RENAME = 11; 87 OP_CREATE_DIR = 12; 88 OP_OTHER_ERROR = 13; 89 OP_DELETE_ERROR = 14; 90 OP_MOVE_ERROR = 15; 91 OP_COPY_ERROR = 16; 92 OP_RENAME_ERROR = 17; 93 OP_CREATE_DIR_ERROR = 18; 94 OP_COMPRESS_INTRA_PROVIDER = 19; 95 OP_COMPRESS_SYSTEM_PROVIDER = 20; 96 OP_COMPRESS_EXTERNAL_PROVIDER = 21; 97 OP_EXTRACT_INTRA_PROVIDER = 22; 98 OP_EXTRACT_SYSTEM_PROVIDER = 23; 99 OP_EXTRACT_EXTERNAL_PROVIDER = 24; 100 OP_COMPRESS_ERROR = 25; 101 OP_EXTRACT_ERROR = 26; 102} 103 104enum SubFileOperation { 105 SUB_OP_UNKNOWN = 0; 106 SUB_OP_QUERY_DOC = 1; 107 SUB_OP_QUERY_CHILD = 2; 108 SUB_OP_OPEN_FILE = 3; 109 SUB_OP_READ_FILE = 4; 110 SUB_OP_CREATE_DOC = 5; 111 SUB_OP_WRITE_FILE = 6; 112 SUB_OP_DELETE_DOC = 7; 113 SUB_OP_OBTAIN_STREAM_TYPE = 8; 114 SUB_OP_QUICK_MOVE = 9; 115 SUB_OP_QUICK_COPY = 10; 116} 117 118enum CopyMoveOpMode { 119 MODE_UNKNOWN = 0; 120 MODE_PROVIDER = 1; 121 MODE_CONVERTED = 2; 122 MODE_CONVENTIONAL = 3; 123} 124 125enum Authority { 126 AUTH_UNKNOWN = 0; 127 AUTH_OTHER = 1; 128 AUTH_MEDIA = 2; 129 AUTH_STORAGE_INTERNAL = 3; 130 AUTH_STORAGE_EXTERNAL = 4; 131 AUTH_DOWNLOADS = 5; 132 AUTH_MTP = 6; 133} 134 135enum UserAction { 136 ACTION_UNKNOWN = 0; 137 ACTION_OTHER = 1; 138 ACTION_GRID = 2; 139 ACTION_LIST = 3; 140 ACTION_SORT_NAME = 4; 141 ACTION_SORT_DATE = 5; 142 ACTION_SORT_SIZE = 6; 143 ACTION_SORT_TYPE = 7; 144 ACTION_SEARCH = 8; 145 ACTION_SHOW_SIZE = 9; 146 ACTION_HIDE_SIZE = 10; 147 ACTION_SETTINGS = 11; 148 ACTION_COPY_TO = 12; 149 ACTION_MOVE_TO = 13; 150 ACTION_DELETE = 14; 151 ACTION_RENAME = 15; 152 ACTION_CREATE_DIR = 16; 153 ACTION_SELECT_ALL = 17; 154 ACTION_SHARE = 18; 155 ACTION_OPEN = 19; 156 ACTION_SHOW_ADVANCED = 20; 157 ACTION_HIDE_ADVANCED = 21; 158 ACTION_NEW_WINDOW = 22; 159 ACTION_PASTE_CLIPBOARD = 23; 160 ACTION_COPY_CLIPBOARD = 24; 161 ACTION_DRAG_N_DROP = 25; 162 ACTION_DRAG_N_DROP_MULTI_WINDOW = 26; 163 ACTION_CUT_CLIPBOARD = 27; 164 ACTION_COMPRESS = 28; 165 ACTION_EXTRACT_TO = 29; 166 ACTION_VIEW_IN_APPLICATION = 30; 167 ACTION_INSPECTOR = 31; 168 ACTION_SEARCH_CHIP = 32; 169 ACTION_SEARCH_HISTORY = 33; 170} 171 172enum InvalidScopedAccess { 173 SCOPED_DIR_ACCESS_UNKNOWN = 0; 174 SCOPED_DIR_ACCESS_INVALID_ARGUMENTS = 1; 175 SCOPED_DIR_ACCESS_INVALID_DIRECTORY = 2; 176 SCOPED_DIR_ACCESS_ERROR = 3; 177 SCOPED_DIR_ACCESS_DEPRECATED = 4; 178} 179 180enum SearchType { 181 TYPE_UNKNOWN = 0; 182 TYPE_CHIP_IMAGES = 1; 183 TYPE_CHIP_AUDIOS = 2; 184 TYPE_CHIP_VIDEOS = 3; 185 TYPE_CHIP_DOCS = 4; 186 TYPE_SEARCH_HISTORY = 5; 187 TYPE_SEARCH_STRING = 6; 188 TYPE_CHIP_LARGE_FILES = 7; 189 TYPE_CHIP_FROM_THIS_WEEK = 8; 190} 191 192enum SearchMode { 193 SEARCH_UNKNOWN = 0; 194 SEARCH_KEYWORD = 1; 195 SEARCH_CHIPS = 2; 196 SEARCH_KEYWORD_N_CHIPS = 3; 197} 198