1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto2"; 16 17package android.bluetooth.rootcanal.model.devices.ScriptedBeaconBleAdProto; 18 19option optimize_for = LITE_RUNTIME; 20 21message BleAdvertisement { 22 optional bytes payload = 1; 23 optional bytes mac_address = 2; 24 optional uint32 delay_before_send_ms = 3; 25} 26 27message BleAdvertisementList { 28 repeated BleAdvertisement advertisements = 1; 29} 30 31message PlaybackEvent { 32 // These events should occur in order, starting from INITIALIZED 33 enum PlaybackEventType { 34 UNKNOWN = 0; 35 INITIALIZED = 1; 36 SCANNED_ONCE = 2; 37 WAITING_FOR_FILE = 3; 38 WAITING_FOR_FILE_TO_BE_READABLE = 4; 39 PARSING_FILE = 5; 40 PLAYBACK_STARTED = 6; 41 PLAYBACK_ENDED = 7; 42 // Error conditions 43 FILE_PARSING_FAILED = 8; 44 } 45 optional PlaybackEventType type = 1; 46 optional uint64 secs_since_epoch = 2; 47} 48