1/* 2 * Copyright (C) 2022 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 19package android.os.statsd.view.inputmethod; 20 21import "frameworks/proto_logging/stats/atom_field_options.proto"; 22import "frameworks/proto_logging/stats/enums/view/inputmethod/enums.proto"; 23 24option java_package = "com.android.os.view.inputmethod"; 25option java_multiple_files = true; 26 27/** 28 * Logged when an IME request finished. 29 * 30 * Logged from: 31 * frameworks/base/services/core/java/com/android/server/inputmethod/ImeTrackerService.java 32 */ 33message ImeRequestFinished { 34 // Uid of the client that requested the IME. 35 optional int32 requester_uid = 1 [(is_uid) = true]; 36 37 // Duration in milliseconds of the IME request from start to end, 38 // (according to System.currentTimeMIllis()). 39 optional int64 duration_millis = 2; 40 41 // Type of the IME request, from 42 // frameworks/proto_logging/stats/enums/view/inputmethod/enums.proto. 43 optional android.view.inputmethod.ImeRequestTypeEnum type = 3; 44 45 // Status of the IME request, from 46 // frameworks/proto_logging/stats/enums/view/inputmethod/enums.proto. 47 optional android.view.inputmethod.ImeRequestStatusEnum status = 4; 48 49 // Reason for creating the IME request, from 50 // frameworks/proto_logging/stats/enums/view/inputmethod/enums.proto. 51 optional android.view.inputmethod.SoftInputShowHideReasonEnum reason = 5; 52 53 // Origin of the IME request, from 54 // frameworks/proto_logging/stats/enums/view/inputmethod/enums.proto. 55 optional android.view.inputmethod.ImeRequestOriginEnum origin = 6; 56 57 // Last phased reached by the IME request, from 58 // frameworks/proto_logging/stats/enums/view/inputmethod/enums.proto. 59 optional android.view.inputmethod.ImeRequestPhaseEnum phase = 7; 60 61 // Whether this request was created directly from user interaction. 62 optional bool from_user = 8; 63} 64