Home
last modified time | relevance | path

Searched refs:BluetoothGattService (Results 1 – 25 of 43) sorted by relevance

12

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattService.java36 public class BluetoothGattService implements Parcelable { class
83 protected List<BluetoothGattService> mIncludedServices;
96 public BluetoothGattService(UUID uuid, int serviceType) { in BluetoothGattService() method in BluetoothGattService
102 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService()
110 /*package*/ BluetoothGattService( in BluetoothGattService() method in BluetoothGattService
117 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService()
125 public BluetoothGattService(UUID uuid, int instanceId, int serviceType) { in BluetoothGattService() method in BluetoothGattService
131 mIncludedServices = new ArrayList<BluetoothGattService>(); in BluetoothGattService()
148 for (BluetoothGattService s : mIncludedServices) { in writeToParcel()
155 public static final @NonNull Creator<BluetoothGattService> CREATOR =
[all …]
DBluetoothGattServer.java61 private BluetoothGattService mPendingService;
62 private List<BluetoothGattService> mServices;
136 public void onServiceAdded(int status, BluetoothGattService service) {
152 BluetoothGattService tmp = mPendingService;
514 mServices = new ArrayList<BluetoothGattService>(); in BluetoothGattServer()
532 for (BluetoothGattService svc : mServices) { in getCharacteristicByHandle()
548 for (BluetoothGattService svc : mServices) { in getDescriptorByHandle()
686 /*package*/ BluetoothGattService getService(UUID uuid, int instanceId, int type) { in getService()
687 for (BluetoothGattService svc : mServices) { in getService()
928 BluetoothGattService service = characteristic.getService(); in notifyCharacteristicChanged()
[all …]
DBluetoothGatt.java97 private List<BluetoothGattService> mServices;
415 String address, List<BluetoothGattService> services, int status) {
423 for (BluetoothGattService s : services) {
431 for (BluetoothGattService fixedService : mServices) {
432 ArrayList<BluetoothGattService> includedServices =
436 for (BluetoothGattService brokenRef : includedServices) {
437 BluetoothGattService includedService =
969 mServices = new ArrayList<BluetoothGattService>(); in BluetoothGatt()
1010 /*package*/ BluetoothGattService getService(BluetoothDevice device, UUID uuid, int instanceId) { in getService()
1011 for (BluetoothGattService svc : mServices) { in getService()
[all …]
DBluetoothGattCharacteristic.java177 @UnsupportedAppUsage protected BluetoothGattService mService;
206 BluetoothGattService service, in BluetoothGattCharacteristic()
224 BluetoothGattService service, in initCharacteristic()
331 public BluetoothGattService getService() { in getService()
341 /*package*/ void setService(BluetoothGattService service) { in setService()
DBluetoothGattServerCallback.java39 public void onServiceAdded(int status, BluetoothGattService service) {} in onServiceAdded()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioTmapGattServerTest.java32 import android.bluetooth.BluetoothGattService;
74 ArgumentCaptor<BluetoothGattService> captor = in testStartStopService()
75 ArgumentCaptor.forClass(BluetoothGattService.class); in testStartStopService()
81 BluetoothGattService service = captor.getValue(); in testStartStopService()
84 assertThat(service.getType()).isEqualTo(BluetoothGattService.SERVICE_TYPE_PRIMARY); in testStartStopService()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioTmapGattServer.java24 import android.bluetooth.BluetoothGattService;
79 BluetoothGattService service = in start()
80 new BluetoothGattService( in start()
81 BluetoothUuid.TMAP.getUuid(), BluetoothGattService.SERVICE_TYPE_PRIMARY); in start()
179 public boolean addService(BluetoothGattService service) { in addService()
/packages/modules/Bluetooth/android/pandora/server/src/
DGattServerManager.kt24 import android.bluetooth.BluetoothGattService
40 val services = mutableMapOf<UUID, BluetoothGattService>()
41 val serviceFlow = MutableSharedFlow<BluetoothGattService>()
46 override fun onServiceAdded(status: Int, service: BluetoothGattService) { in onServiceAdded()
DGatt.kt22 import android.bluetooth.BluetoothGattService
23 import android.bluetooth.BluetoothGattService.SERVICE_TYPE_PRIMARY
257 BluetoothGattService(UUID.fromString(request.service.uuid), SERVICE_TYPE_PRIMARY) in registerService()
357 for (service: BluetoothGattService in gattInstance.mGatt.services.orEmpty()) { in getCharacteristicWithHandle()
376 for (service: BluetoothGattService in gattInstance.mGatt.services.orEmpty()) { in getDescriptorWithHandle()
390 servicesList: List<BluetoothGattService>, in generateServicesList()
DGattInstance.kt24 import android.bluetooth.BluetoothGattService
279 for (service: BluetoothGattService in mGatt.services.orEmpty()) { in readCharacteristicUuidBlocking()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/
DMediaControlGattServiceTest.java27 import android.bluetooth.BluetoothGattService;
82 @Captor private ArgumentCaptor<BluetoothGattService> mGattServiceCaptor;
93 doReturn(true).when(mMockGattServer).addService(any(BluetoothGattService.class)); in setUp()
140 doReturn(true).when(mMockGattServer).removeService(any(BluetoothGattService.class)); in testInit()
153 private BluetoothGattService initAllFeaturesGattService() { in initAllFeaturesGattService()
191 BluetoothGattService service = mGattServiceCaptor.getValue(); in initAllFeaturesGattService()
206 BluetoothGattService service = initAllFeaturesGattService(); in testGattServerFullInitialState()
426 BluetoothGattService service = initAllFeaturesGattService(); in testUpdatePlayerState()
588 BluetoothGattService service = initAllFeaturesGattService(); in testWriteCallbacksValid()
688 BluetoothGattService service = initAllFeaturesGattService(); in testWriteCallbacksInvalid()
[all …]
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattServer.java28 import android.bluetooth.BluetoothGattService;
51 private BluetoothGattService mGattService;
100 mGattService = new BluetoothGattService(UUID.fromString(TEST_SERVICE_UUID), in GattServer()
101 BluetoothGattService.SERVICE_TYPE_PRIMARY); in GattServer()
130 public void onServiceAdded(int status, BluetoothGattService service) { in onServiceAdded()
DGattClientListener.java27 import android.bluetooth.BluetoothGattService;
279 BluetoothGattService service = gatt.getService(sUuid); in writeCharacteristic()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/
DBluetoothGattServerProxy.java24 import android.bluetooth.BluetoothGattService;
63 public boolean addService(BluetoothGattService service) { in addService()
78 public BluetoothGattService getService(UUID uuid) { in getService()
DTbsGatt.java28 import android.bluetooth.BluetoothGattService;
360 BluetoothGattService gattService = in init()
361 new BluetoothGattService(UUID_GTBS, BluetoothGattService.SERVICE_TYPE_PRIMARY); in init()
982 BluetoothGattService gattService = mBluetoothGattServer.getService(UUID_GTBS); in restoreCccValuesForStoredDevices()
1438 BluetoothGattService gattService = mBluetoothGattServer.getService(UUID_GTBS); in onDeviceAuthorizationSet()
1505 public void onServiceAdded(int status, BluetoothGattService service) {
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Ddis.rs8 BluetoothGatt, BluetoothGattCharacteristic, BluetoothGattService, GattDbElementType,
65 let mut service = BluetoothGattService::new( in handle_callbacks()
146 ServiceAdded(GattStatus, BluetoothGattService),
170 fn on_service_added(&mut self, status: GattStatus, service: BluetoothGattService) { in on_service_added() argument
Dbattery_service.rs7 BluetoothGatt, BluetoothGattService, IBluetoothGatt, IBluetoothGattCallback,
54 OnSearchComplete(RawAddress, Vec<BluetoothGattService>, GattStatus),
296 services: Vec<BluetoothGattService>, in get_battery_level_handle() argument
451 services: Vec<BluetoothGattService>, in on_search_complete() argument
Dbluetooth_gatt.rs198 services: Vec<BluetoothGattService>,
337 fn add_service(&mut self, server_id: i32, service: BluetoothGattService) { in add_service() argument
647 fn add_service(&self, server_id: i32, service: BluetoothGattService); in add_service() argument
762 pub struct BluetoothGattService { struct
767 pub included_services: Vec<BluetoothGattService>, argument
770 impl BluetoothGattService { impl
771 pub fn new(uuid: Uuid, instance_id: i32, service_type: i32) -> BluetoothGattService { in new() argument
772 BluetoothGattService { in new()
784 ) -> Vec<BluetoothGattService> { in from_db() argument
785 let mut db_out: Vec<BluetoothGattService> = vec![]; in from_db()
[all …]
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothGattServerCallback.aidl18 import android.bluetooth.BluetoothGattService;
28 void onServiceAdded(in int status, in BluetoothGattService service); in onServiceAdded()
DIBluetoothGattCallback.aidl19 import android.bluetooth.BluetoothGattService;
31 void onSearchComplete(in String address, in List<BluetoothGattService> services, in int status); in onSearchComplete()
DBluetoothGattService.aidl19 parcelable BluetoothGattService;
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/
DGattTransportServerProvider.java24 import android.bluetooth.BluetoothGattService;
68 private BluetoothGattService mFiraCPService =
69 new BluetoothGattService(
71 BluetoothGattService.SERVICE_TYPE_PRIMARY);
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/
Diface_bluetooth_gatt.rs9 BluetoothGattCharacteristic, BluetoothGattDescriptor, BluetoothGattService,
73 services: Vec<BluetoothGattService>, in on_search_complete() argument
165 fn on_service_added(&mut self, status: GattStatus, service: BluetoothGattService) { in on_service_added() argument
334 #[dbus_propmap(BluetoothGattService)]
340 included_services: Vec<BluetoothGattService>,
945 fn add_service(&self, server_id: i32, service: BluetoothGattService) { in add_service() argument
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DGattService.java34 import android.bluetooth.BluetoothGattService;
930 int serverIf, BluetoothGattService svc, AttributionSource attributionSource) { in addService()
1569 List<BluetoothGattService> dbOut = new ArrayList<BluetoothGattService>(); in onGetGattDb()
1572 BluetoothGattService currSrvc = null; in onGetGattDb()
1584 currSrvc = new BluetoothGattService(el.uuid, el.id, el.type); in onGetGattDb()
1624 new BluetoothGattService(el.uuid, el.startHandle, el.type)); in onGetGattDb()
2787 BluetoothGattService svc = null; in onServiceAdded()
2795 BluetoothGattService.SERVICE_TYPE_PRIMARY, in onServiceAdded()
2799 new BluetoothGattService( in onServiceAdded()
2802 BluetoothGattService.SERVICE_TYPE_PRIMARY); in onServiceAdded()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairProviderTest.java41 import android.bluetooth.BluetoothGattService;
143 private BluetoothGattService mFastPairGattService;
204 mFastPairGattService = (BluetoothGattService) invocation.getArgument(0); in setUp()

12