/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothGattCallback.java | 36 public void onPhyUpdate(BluetoothGatt gatt, int txPhy, int rxPhy, int status) {} in onPhyUpdate() 49 public void onPhyRead(BluetoothGatt gatt, int txPhy, int rxPhy, int status) {} in onPhyRead() 60 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {} in onConnectionStateChange() 70 public void onServicesDiscovered(BluetoothGatt gatt, int status) {} in onServicesDiscovered() 85 BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {} in onCharacteristicRead() 98 @NonNull BluetoothGatt gatt, in onCharacteristicRead() 120 BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {} in onCharacteristicWrite() 134 BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {} in onCharacteristicChanged() 147 @NonNull BluetoothGatt gatt, in onCharacteristicChanged() 166 BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) {} in onDescriptorRead() [all …]
|
D | BluetoothGatt.java | 55 public final class BluetoothGatt implements BluetoothProfile { class 262 BluetoothGatt.this, 317 BluetoothGatt.this, txPhy, rxPhy, status); 350 BluetoothGatt.this, txPhy, rxPhy, status); 388 BluetoothGatt.this, status, profileState); 456 callback.onServicesDiscovered(BluetoothGatt.this, status); 522 BluetoothGatt.this, characteristic, value, status); 603 BluetoothGatt.this, characteristic, status); 634 BluetoothGatt.this, characteristic, value); 690 BluetoothGatt.this, descriptor, status, value); [all …]
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | GattClientTest.java | 109 BluetoothGatt gatt = device.connectGatt(mContext, false, gattCallback); in directConnectGattAfterClose() 117 BluetoothGatt gatt2 = device.connectGatt(mContext, false, gattCallback2); in directConnectGattAfterClose() 132 BluetoothGatt gatt = connectGattAndWaitConnection(gattCallback); in fullGattClientLifecycle() 146 BluetoothGatt gatt = device.connectGatt(mContext, false, gattCallback); in reconnectExistingClient() 169 BluetoothGatt gatt = connectGattAndWaitConnection(gattCallback); in clientGattDiscoverServices() 174 .onServicesDiscovered(any(), eq(BluetoothGatt.GATT_SUCCESS)); in clientGattDiscoverServices() 187 BluetoothGatt gatt = connectGattAndWaitConnection(gattCallback); in clientGattReadCharacteristics() 192 .onServicesDiscovered(any(), eq(BluetoothGatt.GATT_SUCCESS)); in clientGattReadCharacteristics() 213 BluetoothGatt gatt = connectGattAndWaitConnection(gattCallback); in clientGattWriteCharacteristic() 218 .onServicesDiscovered(any(), eq(BluetoothGatt.GATT_SUCCESS)); in clientGattWriteCharacteristic() [all …]
|
D | DckGattTest.kt | 64 private val gattCaptor = argumentCaptor<BluetoothGatt>() 104 eq(BluetoothGatt.GATT_SUCCESS), in setUp() 195 eq(BluetoothGatt.GATT_SUCCESS), in testDiscoverDkGattService() 202 .onServicesDiscovered(any(), eq(BluetoothGatt.GATT_SUCCESS)) in testDiscoverDkGattService() 212 eq(BluetoothGatt.GATT_SUCCESS), in testDiscoverDkGattService() 261 eq(BluetoothGatt.GATT_SUCCESS), in testGattConnect_fromIrkScan() 307 eq(BluetoothGatt.GATT_SUCCESS), in testGattConnect_fromUuidScan()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | CompanionManagerTest.java | 21 import android.bluetooth.BluetoothGatt; 120 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_HIGH); in testGetGattConnParameterPrimary() 121 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_BALANCED); in testGetGattConnParameterPrimary() 122 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER); in testGetGattConnParameterPrimary() 125 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_HIGH); in testGetGattConnParameterPrimary() 126 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_BALANCED); in testGetGattConnParameterPrimary() 127 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER); in testGetGattConnParameterPrimary() 130 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_HIGH); in testGetGattConnParameterPrimary() 131 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_BALANCED); in testGetGattConnParameterPrimary() 132 checkReasonableConnParameterHelper(BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER); in testGetGattConnParameterPrimary() [all …]
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | GattClientListener.java | 23 import android.bluetooth.BluetoothGatt; 59 private BluetoothGatt mBluetoothGatt; 184 public void onConnectionStateChange(BluetoothGatt gatt, int status, in onConnectionStateChange() 213 public void onServicesDiscovered(BluetoothGatt gatt, int status) { in onServicesDiscovered() 219 public void onCharacteristicRead(BluetoothGatt gatt, in onCharacteristicRead() 225 public void onCharacteristicWrite(BluetoothGatt gatt, in onCharacteristicWrite() 235 public void onCharacteristicChanged(BluetoothGatt gatt, in onCharacteristicChanged() 241 public void onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, in onDescriptorRead() 247 public void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, in onDescriptorWrite() 253 public void onReliableWriteCompleted(BluetoothGatt gatt, int status) { in onReliableWriteCompleted() [all …]
|
D | GattServer.java | 23 import android.bluetooth.BluetoothGatt; 147 mGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, value); in onCharacteristicWriteRequest() 167 mGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, 0, null); in onExecuteWrite()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/ |
D | BatteryStateMachine.java | 25 import android.bluetooth.BluetoothGatt; 74 BluetoothGatt mBluetoothGatt; 337 case BluetoothGatt.STATE_DISCONNECTED: in processConnectionEvent() 394 case BluetoothGatt.STATE_DISCONNECTED: in processConnectionEvent() 398 case BluetoothGatt.STATE_CONNECTED: in processConnectionEvent() 456 case BluetoothGatt.STATE_DISCONNECTED: in processConnectionEvent() 460 case BluetoothGatt.STATE_CONNECTED: in processConnectionEvent() 529 case BluetoothGatt.STATE_DISCONNECTED: in processConnectionEvent() 533 case BluetoothGatt.STATE_CONNECTED: in processConnectionEvent() 545 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { in onConnectionStateChange() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/ |
D | GattTransportClientProvider.java | 19 import android.bluetooth.BluetoothGatt; 68 private BluetoothGatt mBluetoothGatt; 99 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { 102 if (status != BluetoothGatt.GATT_SUCCESS) { 118 public void onServiceChanged(BluetoothGatt gatt) { 125 public void onServicesDiscovered(BluetoothGatt gatt, int status) { 127 if (status != BluetoothGatt.GATT_SUCCESS) { 173 BluetoothGatt gatt, 184 BluetoothGatt gatt, 189 if (status != BluetoothGatt.GATT_SUCCESS) { [all …]
|
D | GattTransportServerProvider.java | 19 import android.bluetooth.BluetoothGatt; 119 BluetoothGatt.GATT_SUCCESS, 155 BluetoothGatt.GATT_SUCCESS, 165 BluetoothGatt.GATT_FAILURE, 181 BluetoothGatt.GATT_SUCCESS, 188 BluetoothGatt.GATT_FAILURE, 227 device, requestId, BluetoothGatt.GATT_SUCCESS, offset, value); 235 BluetoothGatt.GATT_FAILURE,
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/ |
D | GattTransportServerProviderTest.java | 34 import android.bluetooth.BluetoothGatt; 219 BluetoothGatt.GATT_SUCCESS, in testStartProcessing_succeed() 226 BluetoothGatt.GATT_SUCCESS, in testStartProcessing_succeed() 350 eq(BluetoothGatt.GATT_SUCCESS), in testSendMessageAndOutCharactersticRead_failedProcessingNotStarted() 367 BluetoothGatt.GATT_SUCCESS, in testSendMessageAndOutCharactersticRead_succeed() 405 eq(BluetoothGatt.GATT_SUCCESS), in testSendMessageAndOutCharactersticRead_threeReadSucceed() 412 BluetoothGatt.GATT_SUCCESS, in testSendMessageAndOutCharactersticRead_threeReadSucceed() 419 BluetoothGatt.GATT_SUCCESS, in testSendMessageAndOutCharactersticRead_threeReadSucceed() 426 BluetoothGatt.GATT_SUCCESS, in testSendMessageAndOutCharactersticRead_threeReadSucceed() 463 BluetoothGatt.GATT_FAILURE, in testInCharactersticWrite_failedProcessingNotStarted() [all …]
|
D | GattTransportClientProviderTest.java | 36 import android.bluetooth.BluetoothGatt; 134 @Mock BluetoothGatt mMockBluetoothGatt; 227 public BluetoothGatt answer(InvocationOnMock invocation) { in setupGattConnect() 234 BluetoothGatt.GATT_SUCCESS, in setupGattConnect() 262 (BluetoothGatt) invocation.getMock(), in setupGattServicesDiscover() 263 BluetoothGatt.GATT_SUCCESS)); in setupGattServicesDiscover() 277 (BluetoothGatt) invocation.getMock(), in setupGattWriteCharacteristic() 280 BluetoothGatt.GATT_SUCCESS)); in setupGattWriteCharacteristic() 297 (BluetoothGatt) invocation.getMock(), in setupGattWriteDescriptor() 300 BluetoothGatt.GATT_SUCCESS)); in setupGattWriteDescriptor() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/tbs/ |
D | TbsGatt.java | 24 import android.bluetooth.BluetoothGatt; 488 return BluetoothGatt.GATT_SUCCESS; in setSubscriptionConfiguration() 628 device, requestId, BluetoothGatt.GATT_FAILURE, 0, value); in handleWriteRequest() 648 status = BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH; in handleWriteRequest() 650 status = BluetoothGatt.GATT_SUCCESS; in handleWriteRequest() 657 if (status != BluetoothGatt.GATT_SUCCESS) { in handleWriteRequest() 704 return BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH; in setValue() 717 return BluetoothGatt.GATT_FAILURE; in setValue() 1053 BluetoothGatt.GATT_INSUFFICIENT_AUTHORIZATION, in onRejectedAuthorizationGattOperation() 1062 BluetoothGatt.GATT_INSUFFICIENT_AUTHORIZATION, in onRejectedAuthorizationGattOperation() [all …]
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | GattInstance.kt | 20 import android.bluetooth.BluetoothGatt 39 public val mGatt: BluetoothGatt 86 bluetoothGatt: BluetoothGatt, in onConnectionStateChange() 97 override fun onServicesDiscovered(bluetoothGatt: BluetoothGatt, status: Int) { in onServicesDiscovered() 98 if (status == BluetoothGatt.GATT_SUCCESS) { in onServicesDiscovered() 105 bluetoothGatt: BluetoothGatt, in onCharacteristicRead() 124 bluetoothGatt: BluetoothGatt, in onDescriptorRead() 143 bluetoothGatt: BluetoothGatt, in onCharacteristicWrite() 153 bluetoothGatt: BluetoothGatt, in onDescriptorWrite() 163 bluetoothGatt: BluetoothGatt, in onCharacteristicChanged()
|
D | GattServerManager.kt | 20 import android.bluetooth.BluetoothGatt 48 check(status == BluetoothGatt.GATT_SUCCESS) in onServiceAdded() 67 BluetoothGatt.GATT_SUCCESS, in onCharacteristicReadRequest() 75 BluetoothGatt.GATT_SUCCESS, in onCharacteristicReadRequest()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/ |
D | MediaControlGattService.java | 31 import android.bluetooth.BluetoothGatt; 272 int status = BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH; 274 status = BluetoothGatt.GATT_SUCCESS; 292 int status = BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH; 294 status = BluetoothGatt.GATT_SUCCESS; 320 int status = BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH; 322 status = BluetoothGatt.GATT_SUCCESS; 340 int status = BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH; 342 status = BluetoothGatt.GATT_SUCCESS; 360 int status = BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH; [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | CompanionManager.java | 21 import android.bluetooth.BluetoothGatt; 423 case BluetoothGatt.CONNECTION_PRIORITY_HIGH: in getGattConnParameterPrimary() 425 case BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER: in getGattConnParameterPrimary() 433 case BluetoothGatt.CONNECTION_PRIORITY_HIGH: in getGattConnParameterSecondary() 435 case BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER: in getGattConnParameterSecondary() 443 case BluetoothGatt.CONNECTION_PRIORITY_HIGH: in getGattConnParameterDefault() 445 case BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER: in getGattConnParameterDefault() 447 case BluetoothGatt.CONNECTION_PRIORITY_DCK: in getGattConnParameterDefault()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothAccessoryFragment.java | 21 import android.bluetooth.BluetoothGatt; 80 private BluetoothGatt mDeviceGatt; 250 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { in onConnectionStateChange() 254 if (status == BluetoothGatt.GATT_SUCCESS && newState == BluetoothGatt.STATE_CONNECTED) { in onConnectionStateChange() 260 public void onServicesDiscovered(BluetoothGatt gatt, int status) { in onServicesDiscovered() 261 if (status != BluetoothGatt.GATT_SUCCESS) { in onServicesDiscovered() 289 public void onCharacteristicRead(BluetoothGatt gatt, in onCharacteristicRead() 291 if (status != BluetoothGatt.GATT_SUCCESS) { in onCharacteristicRead()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/ |
D | TbsGattTest.java | 170 .sendResponse(eq(device), eq(1), eq(BluetoothGatt.GATT_SUCCESS), eq(0), any()); in configureNotifications() 713 eq(BluetoothGatt.GATT_SUCCESS), in testHandleControlPointRequest() 737 eq(BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH), in testHandleControlPointInvalidLengthRequest() 899 eq(BluetoothGatt.GATT_SUCCESS), in testClientCharacteristicConfiguration() 911 eq(BluetoothGatt.GATT_SUCCESS), in testClientCharacteristicConfiguration() 923 eq(BluetoothGatt.GATT_SUCCESS), in testClientCharacteristicConfiguration() 943 eq(BluetoothGatt.GATT_SUCCESS), in testMultipleClientCharacteristicConfiguration() 952 eq(BluetoothGatt.GATT_SUCCESS), in testMultipleClientCharacteristicConfiguration() 965 eq(BluetoothGatt.GATT_SUCCESS), in testMultipleClientCharacteristicConfiguration() 979 eq(BluetoothGatt.GATT_SUCCESS), in testMultipleClientCharacteristicConfiguration() [all …]
|
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/ |
D | DistanceMeasurementInitiator.java | 22 import android.bluetooth.BluetoothGatt; 62 @Nullable private BluetoothGatt mBluetoothGatt = null; 106 BluetoothGatt gatt, int status, int newState) { in connectGatt() 125 public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) { in connectGatt() 126 if (status == BluetoothGatt.GATT_SUCCESS) { in connectGatt()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/ |
D | MediaControlGattServiceTest.java | 24 import android.bluetooth.BluetoothGatt; 196 mMcpService.mServerCallback.onServiceAdded(BluetoothGatt.GATT_SUCCESS, service); in initAllFeaturesGattService() 581 eq(BluetoothGatt.GATT_SUCCESS), in verifyWriteObjIdsValid() 613 eq(BluetoothGatt.GATT_SUCCESS), in testWriteCallbacksValid() 632 eq(BluetoothGatt.GATT_SUCCESS), in testWriteCallbacksValid() 666 eq(BluetoothGatt.GATT_SUCCESS), in testWriteCallbacksValid() 681 eq(BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH), in verifyWriteObjIdsInvalid() 709 eq(BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH), in testWriteCallbacksInvalid() 726 eq(BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH), in testWriteCallbacksInvalid() 753 eq(BluetoothGatt.GATT_INVALID_ATTRIBUTE_LENGTH), in testWriteCallbacksInvalid() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragment.java | 20 import static android.bluetooth.BluetoothGatt.GATT_SUCCESS; 26 import android.bluetooth.BluetoothGatt; 92 final List<BluetoothGatt> mConnectingGattList = new ArrayList<>(); 150 for (BluetoothGatt gatt: mConnectingGattList) { in onStop() 460 BluetoothGatt gatt = cachedDevice.getDevice().connectGatt(getContext(), false, in discoverServices() 463 public void onConnectionStateChange(BluetoothGatt gatt, int status, in discoverServices() 480 public void onServicesDiscovered(BluetoothGatt gatt, int status) { in discoverServices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/ |
D | BatteryStateMachineTest.java | 20 import static android.bluetooth.BluetoothGatt.GATT_SUCCESS; 37 import android.bluetooth.BluetoothGatt; 246 BatteryStateMachine.CONNECTION_STATE_CHANGED, BluetoothGatt.STATE_DISCONNECTED); in testConnectedStateChanges() 257 BatteryStateMachine.CONNECTION_STATE_CHANGED, BluetoothGatt.STATE_CONNECTED); in testConnectedStateChanges()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | FastPairGattServer.java | 23 import android.bluetooth.BluetoothGatt; 231 mBluetoothGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, 255 .sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, 260 mBluetoothGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, 273 .sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, null); 281 .sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, null); 294 mBluetoothGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset,
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | dis.rs | 8 BluetoothGatt, BluetoothGattCharacteristic, BluetoothGattService, GattDbElementType, 26 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, 39 pub fn new(bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, tx: Sender<Message>) -> Self { in new() argument
|