Lines Matching refs:base
38 base::MessageLoop* jni_message_loop_ = nullptr;
39 base::CancelableTaskTracker task_tracker_;
41 void do_in_avrcp_jni(const base::Closure& task) { in do_in_avrcp_jni()
142 do_in_avrcp_jni(base::Bind(&MediaInterface::SendKeyEvent, in SendKeyEvent()
143 base::Unretained(wrapped_), key, state)); in SendKeyEvent()
148 do_in_main_thread(FROM_HERE, base::Bind(cb, data)); in GetSongInfo()
151 auto bound_cb = base::Bind(cb_lambda, info_cb); in GetSongInfo()
153 do_in_avrcp_jni(base::Bind(&MediaInterface::GetSongInfo, in GetSongInfo()
154 base::Unretained(wrapped_), bound_cb)); in GetSongInfo()
159 do_in_main_thread(FROM_HERE, base::Bind(cb, status)); in GetPlayStatus()
162 auto bound_cb = base::Bind(cb_lambda, status_cb); in GetPlayStatus()
164 do_in_avrcp_jni(base::Bind(&MediaInterface::GetPlayStatus, in GetPlayStatus()
165 base::Unretained(wrapped_), bound_cb)); in GetPlayStatus()
172 base::Bind(cb, curr_media_id, std::move(song_list))); in GetNowPlayingList()
175 auto bound_cb = base::Bind(cb_lambda, now_playing_cb); in GetNowPlayingList()
177 do_in_avrcp_jni(base::Bind(&MediaInterface::GetNowPlayingList, in GetNowPlayingList()
178 base::Unretained(wrapped_), bound_cb)); in GetNowPlayingList()
185 base::Bind(cb, curr_player, std::move(player_list))); in GetMediaPlayerList()
188 auto bound_cb = base::Bind(cb_lambda, list_cb); in GetMediaPlayerList()
190 do_in_avrcp_jni(base::Bind(&MediaInterface::GetMediaPlayerList, in GetMediaPlayerList()
191 base::Unretained(wrapped_), bound_cb)); in GetMediaPlayerList()
198 do_in_main_thread(FROM_HERE, base::Bind(cb, std::move(item_list))); in GetFolderItems()
201 auto bound_cb = base::Bind(cb_lambda, folder_cb); in GetFolderItems()
203 do_in_avrcp_jni(base::Bind(&MediaInterface::GetFolderItems, in GetFolderItems()
204 base::Unretained(wrapped_), player_id, media_id, in GetFolderItems()
212 do_in_main_thread(FROM_HERE, base::Bind(cb, success, root_id, num_items)); in SetBrowsedPlayer()
215 auto bound_cb = base::Bind(cb_lambda, browse_cb); in SetBrowsedPlayer()
217 do_in_avrcp_jni(base::Bind(&MediaInterface::SetBrowsedPlayer, in SetBrowsedPlayer()
218 base::Unretained(wrapped_), player_id, in SetBrowsedPlayer()
224 do_in_avrcp_jni(base::Bind(&MediaInterface::PlayItem, in PlayItem()
225 base::Unretained(wrapped_), player_id, in PlayItem()
230 do_in_avrcp_jni(base::Bind(&MediaInterface::SetActiveDevice, in SetActiveDevice()
231 base::Unretained(wrapped_), address)); in SetActiveDevice()
254 base::Bind(static_cast<void (VolumeInterface::*)(const RawAddress&)>( in DeviceConnected()
256 base::Unretained(wrapped_), bdaddr)); in DeviceConnected()
261 do_in_main_thread(FROM_HERE, base::Bind(cb, volume)); in DeviceConnected()
264 auto bound_cb = base::Bind(cb_lambda, cb); in DeviceConnected()
266 do_in_avrcp_jni(base::Bind(static_cast<void (VolumeInterface::*)( in DeviceConnected()
269 base::Unretained(wrapped_), bdaddr, bound_cb)); in DeviceConnected()
273 do_in_avrcp_jni(base::Bind(&VolumeInterface::DeviceDisconnected, in DeviceDisconnected()
274 base::Unretained(wrapped_), bdaddr)); in DeviceDisconnected()
278 do_in_avrcp_jni(base::Bind(&VolumeInterface::SetVolume, in SetVolume()
279 base::Unretained(wrapped_), volume)); in SetVolume()
304 base::Bind(&AvrcpService::DeviceCallback, base::Unretained(instance_)), in Init()
356 … base::Bind(&Device::SendMediaUpdate, device.get()->Get(), track_changed, play_state, queue)); in SendMediaUpdate()
370 …do_in_main_thread(FROM_HERE, base::Bind(&Device::SendFolderUpdate, device.get()->Get(), available_… in SendFolderUpdate()
407 base::Bind(&AvrcpService::Init, base::Unretained(instance_), in Init()
415 do_in_main_thread(FROM_HERE, base::Bind(&AvrcpService::ConnectDevice, in ConnectDevice()
416 base::Unretained(instance_), bdaddr)); in ConnectDevice()
424 do_in_main_thread(FROM_HERE, base::Bind(&AvrcpService::DisconnectDevice, in DisconnectDevice()
425 base::Unretained(instance_), bdaddr)); in DisconnectDevice()
441 base::Bind(&AvrcpService::Cleanup, base::Owned(instance_))); in Cleanup()