1/* 2 * Copyright (C) 2023 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.wearsysui; 20 21import "frameworks/proto_logging/stats/atoms.proto"; 22import "frameworks/proto_logging/stats/atom_field_options.proto"; 23 24option java_package = "com.android.os.wearsysui"; 25option java_multiple_files = true; 26 27extend Atom { 28 // Pushed Atom 29 optional WearPowerMenuOpened wear_power_menu_opened = 731 30 [(module) = "framework"]; 31 optional WearAssistantOpened wear_assistant_opened = 755 32 [(module) = "framework"]; 33 optional FirstOverlayStateChanged first_overlay_state_changed = 917 34 [(module) = "framework"]; 35} 36 37/** 38 * Logs whenever the Power Menu is opened for Wear 39 * Logged from : 40 * vendor/google_clockwork/packages/SystemUI/src/com/google/android/clockwork/systemui/statusbar/WearGlobalActionsProvider.java 41 */ 42message WearPowerMenuOpened { 43 optional bool device_provisioned = 1; 44 optional bool setup_wizard_completed = 2; 45} 46 47/** 48 * Logs whenever Assistant is opened for Wear 49 * Logged from : 50 * vendor/google_clockwork/packages/SystemUI/src/com/google/android/clockwork/systemui/assist/WearAssistManager.java 51 */ 52message WearAssistantOpened { 53 optional bool in_retail_mode = 1; 54} 55 56/** 57 * Logs for First Overlay State Changes 58 * 59 */ 60message FirstOverlayStateChanged { 61 enum OverlayState { 62 UNKNOWN = 0; 63 // The overlay is shown during boot. 64 SHOWN = 1; 65 // The overlay is dismissed to indicate boot is complete. 66 DISMISSED = 2; 67 } 68 69 optional OverlayState overlay_state = 1; 70 // The time when first overlay state change has occurred, in milliseconds since the system was booted. 71 optional int64 state_change_time_ms = 2; 72 // Indicates whether the lock screen is enabled 73 optional bool is_locked_screen_active = 3; 74} 75