Loading core/proto/android/view/imefocuscontroller.proto 0 → 100644 +30 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.view; option java_multiple_files = true; /** * Represents a {@link android.view.ImeFocusController} object. */ message ImeFocusControllerProto { optional bool has_ime_focus = 1; optional string served_view = 2; optional string next_served_view = 3; } No newline at end of file core/proto/android/view/imeinsetssourceconsumer.proto 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; import "frameworks/base/core/proto/android/view/inputmethod/editorinfo.proto"; package android.view; option java_multiple_files = true; /** * Represents a {@link android.view.ImeInsetsSourceConsumer} object. */ message ImeInsetsSourceConsumerProto { optional .android.view.inputmethod.EditorInfoProto focused_editor = 1; optional bool is_requested_visible_awaiting_control = 2; } No newline at end of file core/proto/android/view/inputmethod/editorinfo.proto 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.view.inputmethod; option java_multiple_files = true; /** * Represents a {@link android.view.inputmethod.EditorInfo} object. */ message EditorInfoProto { optional int32 input_type = 1; optional int32 ime_options = 2; optional string private_ime_options = 3; optional string package_name = 4; optional int32 field_id = 5; optional int32 target_input_method_user_id = 6; } No newline at end of file core/proto/android/view/inputmethod/inputmethodeditortrace.proto 0 → 100644 +69 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; option java_outer_classname = "InputMethodEditorTraceProto"; package android.view.inputmethod; import "frameworks/base/core/proto/android/view/inputmethod/inputmethodmanager.proto"; import "frameworks/base/core/proto/android/view/viewrootimpl.proto"; import "frameworks/base/core/proto/android/view/insetscontroller.proto"; import "frameworks/base/core/proto/android/view/insetssourceconsumer.proto"; import "frameworks/base/core/proto/android/view/imeinsetssourceconsumer.proto"; import "frameworks/base/core/proto/android/view/inputmethod/editorinfo.proto"; import "frameworks/base/core/proto/android/view/imefocuscontroller.proto"; /** * Represents a file full of input method editor trace entries. * Encoded, it should start with 0x9 0x49 0x4d 0x45 0x54 0x52 0x41 0x43 0x45 (.IMETRACE), such * that they can be easily identified. */ message InputMethodEditorTraceFileProto { /* constant; MAGIC_NUMBER = (long) MAGIC_NUMBER_H << 32 | MagicNumber.MAGIC_NUMBER_L (this is needed because enums have to be 32 bits and there's no nice way to put 64bit constants into .proto files.) */ enum MagicNumber { INVALID = 0; MAGIC_NUMBER_L = 0x54454d49; /* IMET (little-endian ASCII) */ MAGIC_NUMBER_H = 0x45434152; /* RACE (little-endian ASCII) */ } /* Must be the first field to allow winscope to auto-detect the dump type. Set to value in MagicNumber */ optional fixed64 magic_number = 1; repeated InputMethodEditorProto entry = 2; } /* one input method editor dump entry. */ message InputMethodEditorProto { /* required: elapsed realtime in nanos since boot of when this entry was logged */ optional fixed64 elapsed_realtime_nanos = 1; optional ClientSideProto client_side_dump = 2; /* groups together the dump from ime related client side classes */ message ClientSideProto { optional InputMethodManagerProto input_method_manager = 1; optional ViewRootImplProto view_root_impl = 2; optional InsetsControllerProto insets_controller = 3; optional InsetsSourceConsumerProto insets_source_consumer = 4; optional ImeInsetsSourceConsumerProto ime_insets_source_consumer = 5; optional EditorInfoProto editor_info = 6; optional ImeFocusControllerProto ime_focus_controller = 7; } } No newline at end of file core/proto/android/view/inputmethod/inputmethodmanager.proto 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.view.inputmethod; option java_multiple_files = true; /** * Represents a {@link android.view.inputmethod.InputMethodManager} object. */ message InputMethodManagerProto { optional string cur_id = 1; optional bool fullscreen_mode = 2; optional int32 display_id = 3; optional bool active = 4; optional bool served_connecting = 5; } No newline at end of file Loading
core/proto/android/view/imefocuscontroller.proto 0 → 100644 +30 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.view; option java_multiple_files = true; /** * Represents a {@link android.view.ImeFocusController} object. */ message ImeFocusControllerProto { optional bool has_ime_focus = 1; optional string served_view = 2; optional string next_served_view = 3; } No newline at end of file
core/proto/android/view/imeinsetssourceconsumer.proto 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; import "frameworks/base/core/proto/android/view/inputmethod/editorinfo.proto"; package android.view; option java_multiple_files = true; /** * Represents a {@link android.view.ImeInsetsSourceConsumer} object. */ message ImeInsetsSourceConsumerProto { optional .android.view.inputmethod.EditorInfoProto focused_editor = 1; optional bool is_requested_visible_awaiting_control = 2; } No newline at end of file
core/proto/android/view/inputmethod/editorinfo.proto 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.view.inputmethod; option java_multiple_files = true; /** * Represents a {@link android.view.inputmethod.EditorInfo} object. */ message EditorInfoProto { optional int32 input_type = 1; optional int32 ime_options = 2; optional string private_ime_options = 3; optional string package_name = 4; optional int32 field_id = 5; optional int32 target_input_method_user_id = 6; } No newline at end of file
core/proto/android/view/inputmethod/inputmethodeditortrace.proto 0 → 100644 +69 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; option java_outer_classname = "InputMethodEditorTraceProto"; package android.view.inputmethod; import "frameworks/base/core/proto/android/view/inputmethod/inputmethodmanager.proto"; import "frameworks/base/core/proto/android/view/viewrootimpl.proto"; import "frameworks/base/core/proto/android/view/insetscontroller.proto"; import "frameworks/base/core/proto/android/view/insetssourceconsumer.proto"; import "frameworks/base/core/proto/android/view/imeinsetssourceconsumer.proto"; import "frameworks/base/core/proto/android/view/inputmethod/editorinfo.proto"; import "frameworks/base/core/proto/android/view/imefocuscontroller.proto"; /** * Represents a file full of input method editor trace entries. * Encoded, it should start with 0x9 0x49 0x4d 0x45 0x54 0x52 0x41 0x43 0x45 (.IMETRACE), such * that they can be easily identified. */ message InputMethodEditorTraceFileProto { /* constant; MAGIC_NUMBER = (long) MAGIC_NUMBER_H << 32 | MagicNumber.MAGIC_NUMBER_L (this is needed because enums have to be 32 bits and there's no nice way to put 64bit constants into .proto files.) */ enum MagicNumber { INVALID = 0; MAGIC_NUMBER_L = 0x54454d49; /* IMET (little-endian ASCII) */ MAGIC_NUMBER_H = 0x45434152; /* RACE (little-endian ASCII) */ } /* Must be the first field to allow winscope to auto-detect the dump type. Set to value in MagicNumber */ optional fixed64 magic_number = 1; repeated InputMethodEditorProto entry = 2; } /* one input method editor dump entry. */ message InputMethodEditorProto { /* required: elapsed realtime in nanos since boot of when this entry was logged */ optional fixed64 elapsed_realtime_nanos = 1; optional ClientSideProto client_side_dump = 2; /* groups together the dump from ime related client side classes */ message ClientSideProto { optional InputMethodManagerProto input_method_manager = 1; optional ViewRootImplProto view_root_impl = 2; optional InsetsControllerProto insets_controller = 3; optional InsetsSourceConsumerProto insets_source_consumer = 4; optional ImeInsetsSourceConsumerProto ime_insets_source_consumer = 5; optional EditorInfoProto editor_info = 6; optional ImeFocusControllerProto ime_focus_controller = 7; } } No newline at end of file
core/proto/android/view/inputmethod/inputmethodmanager.proto 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.view.inputmethod; option java_multiple_files = true; /** * Represents a {@link android.view.inputmethod.InputMethodManager} object. */ message InputMethodManagerProto { optional string cur_id = 1; optional bool fullscreen_mode = 2; optional int32 display_id = 3; optional bool active = 4; optional bool served_connecting = 5; } No newline at end of file