1/* 2 * Copyright 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/** 18 * This is pixel only extension for Bluetooth HAL. 19 */ 20package hardware.google.bluetooth.sar@1.0; 21 22interface IBluetoothSar { 23 /** 24 * API to set Bluetooth Tx power cap. 25 * 26 * This API must be invoked whenever maximum Bluetooth Tx power need to 27 * changed for optimising performance purpose in SAR scenarios. 28 * 29 * @param cap Bluetooth Tx cap. Range is between 0 and 80 units, 30 * each unit is 0.25 dBm. 31 */ 32 oneway setBluetoothTxPowerCap(int8_t cap); 33 34 /** 35 * API to set Bluetooth Tx power cap of each tech. 36 * 37 * This API must be invoked whenever maximum Bluetooth Tx power for BR, EDR 38 * and BLE need to changed for optimising performance purpose in SAR 39 * scenarios. 40 * 41 * @param brCap Bluetooth Tx cap. Range is between 0 and 80 units, 42 * each unit is 0.25 dBm. 43 * @param edrCap Bluetooth Tx cap. Range is between 0 and 80 units, 44 * each unit is 0.25 dBm. 45 * @param bleCap Bluetooth Tx cap. Range is between 0 and 80 units, 46 * each unit is 0.25 dBm. 47 */ 48 oneway setBluetoothTechBasedTxPowerCap(int8_t brCap, int8_t edrCap, int8_t bleCap); 49}; 50