1/* 2 * Copyright (C) 2020 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"; 18 19import "frameworks/base/core/proto/android/inputmethodservice/softinputwindow.proto"; 20import "frameworks/base/core/proto/android/view/inputmethod/editorinfo.proto"; 21import "frameworks/base/core/proto/android/view/inputmethod/inputconnection.proto"; 22 23package android.inputmethodservice; 24 25option java_multiple_files = true; 26 27message InputMethodServiceProto { 28 optional SoftInputWindowProto soft_input_window = 1; 29 optional bool views_created= 2; 30 optional bool decor_view_visible = 3; 31 optional bool decor_view_was_visible = 4; 32 optional bool window_visible = 5; 33 optional bool in_show_window = 6; 34 optional string configuration = 7; 35 optional string token = 8; 36 optional string input_binding = 9; 37 optional bool input_started = 10; 38 optional bool input_view_started = 11; 39 optional bool candidates_view_started = 12; 40 optional .android.view.inputmethod.EditorInfoProto input_editor_info = 13; 41 optional bool show_input_requested = 14; 42 optional bool last_show_input_requested = 15; 43 reserved 16; // can_pre_render 44 reserved 17; // is_pre_rendered 45 optional int32 show_input_flags = 18; 46 optional int32 candidates_visibility = 19; 47 optional bool fullscreen_applied = 20; 48 optional bool is_fullscreen = 21; 49 optional bool extract_view_hidden = 22; 50 optional int32 extracted_token = 23; 51 optional bool is_input_view_shown = 24; 52 optional int32 status_icon = 25; 53 optional InsetsProto last_computed_insets = 26; 54 optional string settings_observer = 27; 55 optional .android.view.inputmethod.InputConnectionCallProto input_connection_call = 28; 56 57 message InsetsProto { 58 optional int32 content_top_insets = 1; 59 optional int32 visible_top_insets = 2; 60 optional int32 touchable_insets = 3; 61 optional string touchable_region = 4; 62 } 63}