• Home
  • Raw
  • Download

Lines Matching refs:gap_handle

160   HearingDevice* FindByGapHandle(uint16_t gap_handle) {  in FindByGapHandle()  argument
162 [&gap_handle](const HearingDevice& device) { in FindByGapHandle()
163 return device.gap_handle == gap_handle; in FindByGapHandle()
586 if (hearingDevice->gap_handle) { in OnServiceChangeEvent()
587 GAP_ConnClose(hearingDevice->gap_handle); in OnServiceChangeEvent()
588 hearingDevice->gap_handle = 0; in OnServiceChangeEvent()
876 uint16_t gap_handle = GAP_ConnOpen( in ConnectSocket() local
880 if (gap_handle == GAP_INVALID_HANDLE) { in ConnectSocket()
885 hearingDevice->gap_handle = gap_handle; in ConnectSocket()
1207 uint16_t cid = GAP_ConnGetL2CAPCid(left->gap_handle); in OnAudioDataReady()
1231 uint16_t cid = GAP_ConnGetL2CAPCid(right->gap_handle); in OnAudioDataReady()
1284 uint16_t result = GAP_ConnWriteData(hearingAid->gap_handle, audio_packet); in SendAudio()
1291 void GapCallback(uint16_t gap_handle, uint16_t event, tGAP_CB_DATA* data) { in GapCallback() argument
1292 HearingDevice* hearingDevice = hearingDevices.FindByGapHandle(gap_handle); in GapCallback()
1294 LOG(INFO) << "Skipping unknown device, gap_handle=" << gap_handle; in GapCallback()
1300 RawAddress address = *GAP_ConnGetRemoteAddr(gap_handle); in GapCallback()
1301 uint16_t tx_mtu = GAP_ConnGetRemMtuSize(gap_handle); in GapCallback()
1314 hearingDevice->gap_handle = 0; in GapCallback()
1324 GAP_GetRxQueueCnt(gap_handle, &bytes_to_read); in GapCallback()
1329 GAP_ConnReadData(gap_handle, buffer.data(), buffer.size(), &bytes_read); in GapCallback()
1368 static void GapCallbackStatic(uint16_t gap_handle, uint16_t event, in GapCallbackStatic() argument
1370 if (instance) instance->GapCallback(gap_handle, event, data); in GapCallbackStatic()
1526 if (hearingDevice->gap_handle) { in DoDisconnectCleanUp()
1527 GAP_ConnClose(hearingDevice->gap_handle); in DoDisconnectCleanUp()
1528 hearingDevice->gap_handle = 0; in DoDisconnectCleanUp()