1 /* 2 * Copyright (C) 2018 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.settings.bluetooth; 18 19 import android.bluetooth.BluetoothDevice; 20 import android.content.ComponentName; 21 import android.net.Uri; 22 23 import java.util.List; 24 25 /** 26 * Provider for bluetooth related features. 27 */ 28 public interface BluetoothFeatureProvider { 29 30 /** 31 * Gets the {@link Uri} that represents extra settings for a specific bluetooth device 32 * 33 * @param bluetoothDevice bluetooth device 34 * @return {@link Uri} for extra settings 35 */ getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice)36 Uri getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice); 37 38 /** 39 * Gets the {@link Uri} that represents extra control for a specific bluetooth device 40 * 41 * @param bluetoothDevice bluetooth device 42 * @return {@link String} uri string for extra control 43 */ getBluetoothDeviceControlUri(BluetoothDevice bluetoothDevice)44 String getBluetoothDeviceControlUri(BluetoothDevice bluetoothDevice); 45 46 /** 47 * Gets the {@link ComponentName} of services or activities that need to be shown in related 48 * tools. 49 * 50 * @return list of {@link ComponentName} 51 */ getRelatedTools()52 List<ComponentName> getRelatedTools(); 53 } 54