Home
last modified time | relevance | path

Searched refs:syncHandle (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DPeriodicScanNativeInterface.java71 void stopSync(int syncHandle) { in stopSync() argument
72 stopSyncNative(syncHandle); in stopSync()
79 void syncTransfer(BluetoothDevice bda, int serviceData, int syncHandle) { in syncTransfer() argument
80 syncTransferNative(PA_SOURCE_REMOTE, bda.getAddress(), serviceData, syncHandle); in syncTransfer()
93 int syncHandle, in onSyncStarted() argument
105 + (" syncHandle=" + syncHandle) in onSyncStarted()
107 mManager.onSyncStarted(regId, syncHandle, sid, addressType, address, phy, interval, status); in onSyncStarted()
110 void onSyncReport(int syncHandle, int txPower, int rssi, int dataStatus, byte[] data) in onSyncReport() argument
112 Log.d(TAG, "onSyncReport(): syncHandle=" + syncHandle); in onSyncReport()
113 mManager.onSyncReport(syncHandle, txPower, rssi, dataStatus, data); in onSyncReport()
[all …]
DPeriodicScanManager.java134 Map.Entry<IBinder, SyncInfo> findSync(int syncHandle) { in findSync() argument
137 if (e.getValue().id == syncHandle) { in findSync()
155 Map<IBinder, SyncInfo> findAllSync(int syncHandle) { in findAllSync() argument
158 if (e.getValue().id != syncHandle) { in findAllSync()
177 int syncHandle, in onSyncStarted() argument
188 mNativeInterface.stopSync(syncHandle); in onSyncStarted()
199 Log.d(TAG, "onSyncStarted: updating id with syncHandle " + syncHandle); in onSyncStarted()
202 syncHandle, in onSyncStarted()
210 syncHandle, in onSyncStarted()
218 syncHandle, in onSyncStarted()
[all …]
DScanController.java196 int syncHandle, in transferSync() argument
204 .transferSync(bda, serviceData, syncHandle, attributionSource); in transferSync()
DTransitionalScanHelper.java1371 int syncHandle, in transferSync() argument
1377 mPeriodicScanManager.transferSync(bda, serviceData, syncHandle); in transferSync()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/
DBassClientService.java273 int syncHandle, in updatePeriodicAdvertisementResultMap() argument
280 log("updatePeriodicAdvertisementResultMap: syncHandle: " + syncHandle); in updatePeriodicAdvertisementResultMap()
298 syncHandle, in updatePeriodicAdvertisementResultMap()
322 int oldBroadcastId = getBroadcastIdForSyncHandle(syncHandle); in updatePeriodicAdvertisementResultMap()
328 + syncHandle in updatePeriodicAdvertisementResultMap()
336 clearAllDataForSyncHandle(syncHandle); in updatePeriodicAdvertisementResultMap()
358 if (syncHandle != BassConstants.INVALID_SYNC_HANDLE) { in updatePeriodicAdvertisementResultMap()
360 mSyncHandleToDeviceMap.put(syncHandle, device); in updatePeriodicAdvertisementResultMap()
362 paRes.updateSyncHandle(syncHandle); in updatePeriodicAdvertisementResultMap()
366 updateSyncHandleForBroadcastId(syncHandle, paRes.getBroadcastId()); in updatePeriodicAdvertisementResultMap()
[all …]
DBassClientStateMachine.java340 void parseBaseData(BluetoothDevice device, int syncHandle, byte[] serviceData) { in parseBaseData() argument
349 mService.updateBase(syncHandle, base); in parseBaseData()
356 BluetoothDevice srcDevice = mService.getDeviceForSyncHandle(syncHandle); in parseBaseData()
368 cancelActiveSync(syncHandle); in parseBaseData()
375 void parseScanRecord(int syncHandle, ScanRecord record) { in parseScanRecord() argument
394 parseBaseData(mDevice, syncHandle, advData); in parseScanRecord()
398 cancelActiveSync(syncHandle); in parseScanRecord()
523 private void cancelActiveSync(Integer syncHandle) { in cancelActiveSync() argument
529 log("cancelActiveSync: syncHandle = " + syncHandle); in cancelActiveSync()
530 if (syncHandle == null) { in cancelActiveSync()
[all …]
DPeriodicAdvertisementResult.java39 int syncHandle, in PeriodicAdvertisementResult() argument
48 mSyncHandle = syncHandle; in PeriodicAdvertisementResult()
57 public void updateSyncHandle(int syncHandle) { in updateSyncHandle() argument
58 mSyncHandle = syncHandle; in updateSyncHandle()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DPeriodicAdvertisementResultTest.java48 int syncHandle = 2; in constructor() local
58 syncHandle, in constructor()
66 assertThat(result.getSyncHandle()).isEqualTo(syncHandle); in constructor()
77 int syncHandle = 2; in updateMethods() local
87 syncHandle, in updateMethods()
126 int syncHandle = 2; in print_doesNotCrash() local
136 syncHandle, in print_doesNotCrash()
DBassClientStateMachineTest.java2266 int syncHandle = 1; in periodicAdvertisingCallbackOnSyncLost_notifySourceLost() local
2268 when(mBassClientService.getBroadcastIdForSyncHandle(syncHandle)).thenReturn(broadcastId); in periodicAdvertisingCallbackOnSyncLost_notifySourceLost()
2270 cb.onSyncLost(syncHandle); in periodicAdvertisingCallbackOnSyncLost_notifySourceLost()
2283 int syncHandle = 1; in periodicAdvertisingCallbackOnBigInfoAdvertisingReport_updateRssi() local
2365 when(mBassClientService.getDeviceForSyncHandle(syncHandle)).thenReturn(testDevice); in periodicAdvertisingCallbackOnBigInfoAdvertisingReport_updateRssi()
2374 cb.onBigInfoAdvertisingReport(syncHandle, true); in periodicAdvertisingCallbackOnBigInfoAdvertisingReport_updateRssi()
DBassClientServiceTest.java930 private void onSyncEstablished(BluetoothDevice testDevice, int syncHandle) { in onSyncEstablished() argument
933 syncHandle, testDevice, TEST_ADVERTISER_SID, 0, 200, BluetoothGatt.GATT_SUCCESS); in onSyncEstablished()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DPeriodicAdvertisingManager.java202 public void transferSync(BluetoothDevice bda, int serviceData, int syncHandle) { in transferSync() argument
206 gatt.transferSync(bda, serviceData, syncHandle, mAttributionSource); in transferSync()
261 int syncHandle, in wrap()
273 syncHandle, device, advertisingSid, skip, timeout, status); in wrap()
296 public void onSyncLost(int syncHandle) { in wrap() argument
301 callback.onSyncLost(syncHandle); in wrap()
319 public void onBigInfoAdvertisingReport(int syncHandle, boolean encrypted) { in wrap() argument
324 callback.onBigInfoAdvertisingReport(syncHandle, encrypted); in wrap()
DPeriodicAdvertisingCallback.java56 int syncHandle, in onSyncEstablished() argument
75 public void onSyncLost(int syncHandle) {} in onSyncLost() argument
86 public void onBigInfoAdvertisingReport(int syncHandle, boolean encrypted) {} in onBigInfoAdvertisingReport() argument
DPeriodicAdvertisingReport.java54 int syncHandle, int txPower, int rssi, int dataStatus, ScanRecord data) { in PeriodicAdvertisingReport() argument
55 mSyncHandle = syncHandle; in PeriodicAdvertisingReport()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/le/
DIPeriodicAdvertisingCallback.aidl27 void onSyncEstablished(in int syncHandle, in BluetoothDevice device, in int advertisingSid, in onSyncEstablished() argument
30 void onSyncLost(in int syncHandle); in onSyncLost() argument
32 void onBigInfoAdvertisingReport(in int syncHandle, in boolean encrypted); in onBigInfoAdvertisingReport() argument
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DBluetoothMethodProxy.java253 int syncHandle) { in periodicAdvertisingManagerTransferSync() argument
254 manager.transferSync(bda, serviceData, syncHandle); in periodicAdvertisingManagerTransferSync()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DTransitionalScanHelperTest.java358 int syncHandle = 2; in transferSync() local
360 mScanHelper.transferSync(mDevice, serviceData, syncHandle, mAttributionSource); in transferSync()
361 verify(mPeriodicScanManager).transferSync(mDevice, serviceData, syncHandle); in transferSync()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothScan.aidl57 …void transferSync(in BluetoothDevice bda, in int serviceData, in int syncHandle, in AttributionSou… in transferSync() argument
DIBluetoothGatt.aidl98 …void transferSync(in BluetoothDevice bda, in int serviceData, in int syncHandle, in AttributionSou… in transferSync() argument
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceBinderTest.java757 int syncHandle = 2; in transferSync() local
759 mBinder.transferSync(mDevice, serviceData, syncHandle, mAttributionSource); in transferSync()
761 verify(mScanHelper).transferSync(mDevice, serviceData, syncHandle, mAttributionSource); in transferSync()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DGattService.java1135 int syncHandle, in transferSync() argument
1142 .transferSync(bda, serviceData, syncHandle, attributionSource); in transferSync()