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 = "proto3"; 18 19package com.android.systemui.qs; 20 21import "frameworks/base/packages/SystemUI/src/com/android/systemui/util/proto/component_name.proto"; 22 23option java_multiple_files = true; 24 25message QsTileState { 26 oneof identifier { 27 string spec = 1; 28 com.android.systemui.util.ComponentNameProto component_name = 2; 29 } 30 31 enum State { 32 UNAVAILABLE = 0; 33 INACTIVE = 1; 34 ACTIVE = 2; 35 } 36 37 State state = 3; 38 oneof optional_boolean_state { 39 bool boolean_state = 4; 40 } 41 oneof optional_label { 42 string label = 5; 43 } 44 oneof optional_secondary_label { 45 string secondary_label = 6; 46 } 47} 48