| 1 |
/* |
| 2 |
* Copyright (C) 2020 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 |
|
| 17 |
syntax = "proto2"; |
| 18 |
package com.android.server; |
| 19 |
|
| 20 |
import "frameworks/base/core/proto/android/privacy.proto"; |
| 21 |
import "frameworks/proto_logging/stats/enums/bluetooth/enums.proto"; |
| 22 |
|
| 23 |
option java_multiple_files = true; |
| 24 |
|
| 25 |
message BluetoothManagerServiceDumpProto { |
| 26 |
option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 27 |
|
| 28 |
message ActiveLog { |
| 29 |
option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 30 |
optional int64 timestamp_ms = 1; |
| 31 |
optional bool enable = 2; |
| 32 |
optional string package_name = 3; |
| 33 |
optional .android.bluetooth.EnableDisableReasonEnum reason = 4; |
| 34 |
} |
| 35 |
|
| 36 |
optional bool enabled = 1; |
| 37 |
optional int32 state = 2; |
| 38 |
optional string state_name = 3; |
| 39 |
optional string address = 4 [(.android.privacy).dest = DEST_EXPLICIT]; |
| 40 |
optional string name = 5 [(.android.privacy).dest = DEST_EXPLICIT]; |
| 41 |
optional int64 last_enabled_time_ms = 6; |
| 42 |
optional int64 curr_timestamp_ms = 7; |
| 43 |
repeated ActiveLog active_logs = 8; |
| 44 |
optional int32 num_crashes = 9; |
| 45 |
optional bool crash_log_maxed = 10; |
| 46 |
repeated int64 crash_timestamps_ms = 11; |
| 47 |
optional int32 num_ble_apps = 12; |
| 48 |
repeated string ble_app_package_names = 13; |
| 49 |
} |