Lines Matching refs:instance
111 HearingAidImpl* instance; variable
274 instance->gatt_if = client_id; in HearingAidImpl()
890 if (instance) in OnReadOnlyPropertiesReadStatic()
891 instance->OnReadOnlyPropertiesRead(conn_id, status, handle, len, value, in OnReadOnlyPropertiesReadStatic()
897 if (instance) in OnAudioStatusStatic()
898 instance->OnAudioStatus(conn_id, status, handle, len, value, data); in OnAudioStatusStatic()
904 if (instance) in OnPsmReadStatic()
905 instance->OnPsmRead(conn_id, status, handle, len, value, data); in OnPsmReadStatic()
1366 if (instance) instance->GapCallback(gap_handle, event, data); in GapCallbackStatic()
1640 if ((instance) && (p_result->status == BTM_SUCCESS)) { in read_rssi_cb()
1641 instance->OnReadRssiComplete(p_result->rem_bda, p_result->rssi); in read_rssi_cb()
1655 if (!instance) return; in hearingaid_gattc_callback()
1657 instance->OnGattConnected(o.status, o.conn_id, o.client_if, o.remote_bda, in hearingaid_gattc_callback()
1663 if (!instance) return; in hearingaid_gattc_callback()
1665 instance->OnGattDisconnected(c.status, c.conn_id, c.client_if, in hearingaid_gattc_callback()
1670 if (!instance) return; in hearingaid_gattc_callback()
1671 instance->OnServiceSearchComplete(p_data->search_cmpl.conn_id, in hearingaid_gattc_callback()
1676 if (!instance) return; in hearingaid_gattc_callback()
1683 instance->OnNotificationEvent(p_data->notify.conn_id, in hearingaid_gattc_callback()
1689 if (!instance) return; in hearingaid_gattc_callback()
1690 instance->OnEncryptionComplete(p_data->enc_cmpl.remote_bda, true); in hearingaid_gattc_callback()
1694 if (!instance) return; in hearingaid_gattc_callback()
1695 instance->OnConnectionUpdateComplete(p_data->conn_update.conn_id, p_data); in hearingaid_gattc_callback()
1699 if (!instance) return; in hearingaid_gattc_callback()
1700 instance->OnServiceChangeEvent(p_data->remote_bda); in hearingaid_gattc_callback()
1704 if (!instance) return; in hearingaid_gattc_callback()
1705 instance->OnServiceDiscDoneEvent(p_data->remote_bda); in hearingaid_gattc_callback()
1715 if (instance) { in encryption_callback()
1716 instance->OnEncryptionComplete(*address, in encryption_callback()
1724 if (instance) instance->OnAudioDataReady(data); in OnAudioDataReady()
1727 if (instance) instance->OnAudioSuspend(); in OnAudioSuspend()
1732 if (instance) instance->OnAudioResume(); in OnAudioResume()
1743 if (instance) { in Initialize()
1748 instance = new HearingAidImpl(callbacks, initCb); in Initialize()
1752 bool HearingAid::IsHearingAidRunning() { return instance; } in IsHearingAidRunning()
1755 CHECK(instance); in Get()
1756 return instance; in Get()
1761 if (!instance) { in AddFromStorage()
1765 instance->AddFromStorage(dev_info, is_white_listed); in AddFromStorage()
1769 if (!instance) { in GetDeviceCount()
1774 return (instance->GetDeviceCount()); in GetDeviceCount()
1782 HearingAidImpl* ptr = instance; in CleanUp()
1783 instance = nullptr; in CleanUp()
1793 if (instance) instance->Dump(fd); in DebugDump()