1 /* 2 * Copyright (C) 2013 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 package com.android.phone; 18 19 public class BluetoothManager { BluetoothManager()20 public BluetoothManager() { 21 } 22 isBluetoothHeadsetAudioOn()23 /* package */ boolean isBluetoothHeadsetAudioOn() { 24 return false; 25 } 26 isBluetoothAvailable()27 /* package */ boolean isBluetoothAvailable() { 28 return false; 29 } 30 isBluetoothAudioConnected()31 /* package */ boolean isBluetoothAudioConnected() { 32 return false; 33 } 34 isBluetoothAudioConnectedOrPending()35 /* package */ boolean isBluetoothAudioConnectedOrPending() { 36 return false; 37 } 38 showBluetoothIndication()39 /* package */ boolean showBluetoothIndication() { 40 return false; 41 } 42 updateBluetoothIndication()43 /* package */ void updateBluetoothIndication() { 44 } 45 addBluetoothIndicatorListener(BluetoothIndicatorListener listener)46 public void addBluetoothIndicatorListener(BluetoothIndicatorListener listener) { 47 } 48 removeBluetoothIndicatorListener(BluetoothIndicatorListener listener)49 public void removeBluetoothIndicatorListener(BluetoothIndicatorListener listener) { 50 } 51 connectBluetoothAudio()52 /* package */ void connectBluetoothAudio() { 53 } 54 disconnectBluetoothAudio()55 /* package */ void disconnectBluetoothAudio() { 56 } 57 58 /* package */ interface BluetoothIndicatorListener { onBluetoothIndicationChange(boolean isConnected, BluetoothManager manager)59 public void onBluetoothIndicationChange(boolean isConnected, BluetoothManager manager); 60 } 61 } 62