Lines Matching refs:radio
18 #define LOG_TAG "Radio"
27 #include <radio/Radio.h>
28 #include <radio/IRadio.h>
29 #include <radio/IRadioService.h>
30 #include <radio/IRadioClient.h>
31 #include <radio/RadioCallback.h>
38 const char* kRadioServiceName = "media.radio";
51 ALOGW("Radio service died!");
58 const sp<IRadioService> Radio::getRadioService()
83 status_t Radio::listModules(struct radio_properties *properties,
94 sp<Radio> Radio::attach(radio_handle_t handle,
100 sp<Radio> radio;
103 return radio;
105 radio = new Radio(handle, callback);
106 status_t status = service->attach(handle, radio, config, withAudio, radio->mIRadio);
108 if (status == NO_ERROR && radio->mIRadio != 0) {
109 IInterface::asBinder(radio->mIRadio)->linkToDeath(radio);
111 ALOGW("Error %d connecting to radio service", status);
112 radio.clear();
114 return radio;
119 // Radio
120 Radio::Radio(radio_handle_t handle, const sp<RadioCallback>& callback)
125 Radio::~Radio()
133 void Radio::detach() {
144 status_t Radio::setConfiguration(const struct radio_band_config *config)
153 status_t Radio::getConfiguration(struct radio_band_config *config)
162 status_t Radio::setMute(bool mute)
171 status_t Radio::getMute(bool *mute)
180 status_t Radio::scan(radio_direction_t direction, bool skipSubchannel)
189 status_t Radio::step(radio_direction_t direction, bool skipSubchannel)
198 status_t Radio::tune(unsigned int channel, unsigned int subChannel)
207 status_t Radio::cancel()
216 status_t Radio::getProgramInformation(struct radio_program_info *info)
225 status_t Radio::hasControl(bool *hasControl)
236 void Radio::onEvent(const sp<IMemory>& eventMemory)
270 void Radio::binderDied(const wp<IBinder>& who __unused) {
272 ALOGW("Radio server binder Died ");