1// Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved. 2// Licensed under the Apache License, Version 2.0 (the "License"); 3// you may not use this file except in compliance with the License. 4// You may obtain a copy of the License at 5// 6// http://www.apache.org/licenses/LICENSE-2.0 7// 8// Unless required by applicable law or agreed to in writing, software 9// distributed under the License is distributed on an "AS IS" BASIS, 10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11// See the License for the specific language governing permissions and 12// limitations under the License. 13syntax = "proto3"; 14option java_package = "ohos.devtools.datasources.transport.grpc.service"; 15option optimize_for = LITE_RUNTIME; 16 17// For Device Stat all below. 18message AudioVolumeInfo { 19 int32 stream_default = 1; 20 int32 voice_call = 2; 21 int32 music = 3; 22 int32 stream_ring = 4; 23 int32 media = 5; 24 int32 voice_assistant = 6; 25 int32 system = 7; 26 int32 alarm = 8; 27 int32 notification = 9; 28 int32 bluetoolth_sco = 10; 29 int32 enforced_audible = 11; 30 int32 stream_dtmf = 12; 31 int32 stream_tts = 13; 32 int32 accessibility = 14; 33 int32 recording = 15; 34 int32 stream_all = 16; 35} 36 37// NODE Save the Device Stat 38message DeviceStat { 39 uint32 brightness_state = 1; 40 int32 bt_state = 2; 41 bool location_state = 3; 42 int32 wifi_state = 4; 43 AudioVolumeInfo volume_state = 5; 44} 45 46// NODE Save the captured data 47message HisyseventLine { 48 string raw_content = 1; 49 uint64 id = 2; 50} 51 52message HisyseventInfo { 53 repeated HisyseventLine info = 1; 54 DeviceStat device_state = 2; 55}