Lines Matching refs:g_interface
33 BluetoothAvInterface* g_interface = nullptr; variable
52 if (!g_interface) { \
66 observer.ConnectionStateCallback(g_interface, bd_addr, state); in SourceConnectionStateCallback()
75 observer.AudioStateCallback(g_interface, bd_addr, state); in SourceAudioStateCallback()
86 observer.AudioConfigCallback(g_interface, bd_addr, codec_config, in SourceAudioConfigCallback()
97 if (!observer.MandatoryCodecPreferredCallback(g_interface, bd_addr)) in SourceMandatoryCodecPreferredCallback()
108 observer.ConnectionStateCallback(g_interface, bd_addr, state); in SinkConnectionStateCallback()
117 observer.AudioStateCallback(g_interface, bd_addr, state); in SinkAudioStateCallback()
126 observer.AudioConfigCallback(g_interface, bd_addr, sample_rate, in SinkAudioConfigCallback()
284 CHECK(g_interface); in GetA2dpSourceObservers()
285 return static_cast<BluetoothAvInterfaceImpl*>(g_interface) in GetA2dpSourceObservers()
291 CHECK(g_interface); in GetA2dpSinkObservers()
292 return static_cast<BluetoothAvInterfaceImpl*>(g_interface)->sink_observers(); in GetA2dpSinkObservers()
345 CHECK(!g_interface); in Initialize()
353 g_interface = impl.release(); in Initialize()
360 CHECK(g_interface); in CleanUp()
362 delete g_interface; in CleanUp()
363 g_interface = nullptr; in CleanUp()
369 return g_interface != nullptr; in IsInitialized()
377 CHECK(!g_interface); in InitializeForTesting()
379 g_interface = test_instance; in InitializeForTesting()
385 CHECK(g_interface); in Get()
386 return g_interface; in Get()