Lines Matching refs:instance
111 HearingAidImpl* instance; variable
274 instance->gatt_if = client_id; in HearingAidImpl()
897 if (instance) in OnReadOnlyPropertiesReadStatic()
898 instance->OnReadOnlyPropertiesRead(conn_id, status, handle, len, value, in OnReadOnlyPropertiesReadStatic()
904 if (instance) in OnAudioStatusStatic()
905 instance->OnAudioStatus(conn_id, status, handle, len, value, data); in OnAudioStatusStatic()
911 if (instance) in OnPsmReadStatic()
912 instance->OnPsmRead(conn_id, status, handle, len, value, data); in OnPsmReadStatic()
1382 if (instance) instance->GapCallback(gap_handle, event, data); in GapCallbackStatic()
1684 if ((instance) && (p_result->status == BTM_SUCCESS)) { in read_rssi_cb()
1685 instance->OnReadRssiComplete(p_result->rem_bda, p_result->rssi); in read_rssi_cb()
1699 if (!instance) return; in hearingaid_gattc_callback()
1701 instance->OnGattConnected(o.status, o.conn_id, o.client_if, o.remote_bda, in hearingaid_gattc_callback()
1707 if (!instance) return; in hearingaid_gattc_callback()
1709 instance->OnGattDisconnected(c.status, c.conn_id, c.client_if, in hearingaid_gattc_callback()
1714 if (!instance) return; in hearingaid_gattc_callback()
1715 instance->OnServiceSearchComplete(p_data->search_cmpl.conn_id, in hearingaid_gattc_callback()
1720 if (!instance) return; in hearingaid_gattc_callback()
1727 instance->OnNotificationEvent(p_data->notify.conn_id, in hearingaid_gattc_callback()
1733 if (!instance) return; in hearingaid_gattc_callback()
1734 instance->OnEncryptionComplete(p_data->enc_cmpl.remote_bda, true); in hearingaid_gattc_callback()
1738 if (!instance) return; in hearingaid_gattc_callback()
1739 instance->OnConnectionUpdateComplete(p_data->conn_update.conn_id, p_data); in hearingaid_gattc_callback()
1743 if (!instance) return; in hearingaid_gattc_callback()
1744 instance->OnServiceChangeEvent(p_data->remote_bda); in hearingaid_gattc_callback()
1748 if (!instance) return; in hearingaid_gattc_callback()
1749 instance->OnServiceDiscDoneEvent(p_data->remote_bda); in hearingaid_gattc_callback()
1759 if (instance) { in encryption_callback()
1760 instance->OnEncryptionComplete(*address, in encryption_callback()
1768 if (instance) instance->OnAudioDataReady(data); in OnAudioDataReady()
1771 if (instance) instance->OnAudioSuspend(stop_audio_ticks); in OnAudioSuspend()
1774 if (instance) instance->OnAudioResume(start_audio_ticks); in OnAudioResume()
1784 if (instance) { in Initialize()
1789 instance = new HearingAidImpl(callbacks, initCb); in Initialize()
1793 bool HearingAid::IsHearingAidRunning() { return instance; } in IsHearingAidRunning()
1796 CHECK(instance); in Get()
1797 return instance; in Get()
1802 if (!instance) { in AddFromStorage()
1806 instance->AddFromStorage(dev_info, is_white_listed); in AddFromStorage()
1810 if (!instance) { in GetDeviceCount()
1815 return (instance->GetDeviceCount()); in GetDeviceCount()
1823 HearingAidImpl* ptr = instance; in CleanUp()
1824 instance = nullptr; in CleanUp()
1834 if (instance) instance->Dump(fd); in DebugDump()