113450df2b9264ef2220418f308037c19cec739a9Matthew Xie/* 2fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * Copyright (C) 2012 The Android Open Source Project 3fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * 4fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * Licensed under the Apache License, Version 2.0 (the "License"); 5fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * you may not use this file except in compliance with the License. 6fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * You may obtain a copy of the License at 7fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * 8fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * http://www.apache.org/licenses/LICENSE-2.0 9fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * 10fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * Unless required by applicable law or agreed to in writing, software 11fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * distributed under the License is distributed on an "AS IS" BASIS, 12fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * See the License for the specific language governing permissions and 14fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * limitations under the License. 1513450df2b9264ef2220418f308037c19cec739a9Matthew Xie */ 1613450df2b9264ef2220418f308037c19cec739a9Matthew Xie 1713450df2b9264ef2220418f308037c19cec739a9Matthew Xiepackage android.bluetooth; 1813450df2b9264ef2220418f308037c19cec739a9Matthew Xie 1913450df2b9264ef2220418f308037c19cec739a9Matthew Xieimport android.bluetooth.BluetoothDevice; 2013450df2b9264ef2220418f308037c19cec739a9Matthew Xieimport android.bluetooth.BluetoothHealthAppConfiguration; 2113450df2b9264ef2220418f308037c19cec739a9Matthew Xieimport android.bluetooth.IBluetoothHealthCallback; 2213450df2b9264ef2220418f308037c19cec739a9Matthew Xieimport android.os.ParcelFileDescriptor; 2313450df2b9264ef2220418f308037c19cec739a9Matthew Xie 2413450df2b9264ef2220418f308037c19cec739a9Matthew Xie/** 2513450df2b9264ef2220418f308037c19cec739a9Matthew Xie * API for Bluetooth Health service 2613450df2b9264ef2220418f308037c19cec739a9Matthew Xie * 2713450df2b9264ef2220418f308037c19cec739a9Matthew Xie * {@hide} 2813450df2b9264ef2220418f308037c19cec739a9Matthew Xie */ 2913450df2b9264ef2220418f308037c19cec739a9Matthew Xieinterface IBluetoothHealth 3013450df2b9264ef2220418f308037c19cec739a9Matthew Xie{ 3113450df2b9264ef2220418f308037c19cec739a9Matthew Xie boolean registerAppConfiguration(in BluetoothHealthAppConfiguration config, 3213450df2b9264ef2220418f308037c19cec739a9Matthew Xie in IBluetoothHealthCallback callback); 3313450df2b9264ef2220418f308037c19cec739a9Matthew Xie boolean unregisterAppConfiguration(in BluetoothHealthAppConfiguration config); 3413450df2b9264ef2220418f308037c19cec739a9Matthew Xie boolean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 3513450df2b9264ef2220418f308037c19cec739a9Matthew Xie boolean connectChannelToSink(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, 3613450df2b9264ef2220418f308037c19cec739a9Matthew Xie int channelType); 3713450df2b9264ef2220418f308037c19cec739a9Matthew Xie boolean disconnectChannel(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, int id); 3813450df2b9264ef2220418f308037c19cec739a9Matthew Xie ParcelFileDescriptor getMainChannelFd(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); 3913450df2b9264ef2220418f308037c19cec739a9Matthew Xie List<BluetoothDevice> getConnectedHealthDevices(); 4013450df2b9264ef2220418f308037c19cec739a9Matthew Xie List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(in int[] states); 4113450df2b9264ef2220418f308037c19cec739a9Matthew Xie int getHealthDeviceConnectionState(in BluetoothDevice device); 4213450df2b9264ef2220418f308037c19cec739a9Matthew Xie} 43