Searched defs:rc (Results 1 - 25 of 102) sorted by relevance

12345

/hardware/interfaces/radio/1.0/vts/functional/
H A Dradio_hidl_hal_misc.cpp644 RadioCapability rc; local
645 memset(&rc, 0, sizeof(rc));
646 rc.logicalModemUuid = hidl_string();
648 radio->setRadioCapability(serial, rc);
/hardware/interfaces/audio/2.0/default/
H A DDevicesFactory.cpp49 int rc; local
51 rc = hw_get_module_by_class(AUDIO_HARDWARE_MODULE_ID, if_name, &mod);
52 if (rc) {
54 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc));
57 rc = audio_hw_device_open(mod, dev);
58 if (rc) {
60 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc));
65 rc = -EINVAL;
73 return rc;
/hardware/libhardware/include/hardware/
H A Dkeymaster0.h136 int rc = module->methods->open(module, KEYSTORE_KEYMASTER, local
139 return rc;
/hardware/interfaces/broadcastradio/1.0/default/
H A DBroadcastRadio.cpp48 int rc; local
62 rc = hw_get_module_by_class(RADIO_HARDWARE_MODULE_ID, classString, &mod);
63 if (rc != 0) {
65 RADIO_HARDWARE_MODULE_ID, classString, strerror(-rc));
69 rc = radio_hw_device_open(mod, &mHwDevice);
70 if (rc != 0) {
72 RADIO_HARDWARE_MODULE_ID, "primary", strerror(-rc));
101 int rc; local
106 rc = -ENODEV;
109 rc
127 int rc = mHwDevice->open_tuner(mHwDevice, &halConfig, audio, local
[all...]
H A DTuner.cpp111 int rc = mHalTuner->set_configuration(mHalTuner, &halConfig); local
112 return Utils::convertHalResult(rc);
116 int rc; local
122 rc = -ENODEV;
125 rc = mHalTuner->get_configuration(mHalTuner, &halConfig);
126 if (rc == 0) {
131 _hidl_cb(Utils::convertHalResult(rc), config);
139 int rc = mHalTuner->scan(mHalTuner, static_cast<radio_direction_t>(direction), skipSubChannel); local
140 return Utils::convertHalResult(rc);
147 int rc local
155 int rc = mHalTuner->tune(mHalTuner, channel, subChannel); local
163 int rc = mHalTuner->cancel(mHalTuner); local
168 int rc; local
[all...]
H A DUtils.cpp124 Result Utils::convertHalResult(int rc) argument
126 switch (rc) {
/hardware/interfaces/broadcastradio/1.1/default/
H A DBroadcastRadio.cpp48 int rc; local
62 rc = hw_get_module_by_class(RADIO_HARDWARE_MODULE_ID, classString, &mod);
63 if (rc != 0) {
65 RADIO_HARDWARE_MODULE_ID, classString, strerror(-rc));
68 rc = radio_hw_device_open(mod, &mHwDevice);
69 if (rc != 0) {
71 RADIO_HARDWARE_MODULE_ID, "primary", strerror(-rc));
100 int rc; local
105 rc = -ENODEV;
108 rc
131 int rc = mHwDevice->open_tuner(mHwDevice, &halConfig, audio, Tuner::callback, local
[all...]
H A DTuner.cpp118 int rc = mHalTuner->set_configuration(mHalTuner, &halConfig); local
119 return Utils::convertHalResult(rc);
123 int rc; local
129 rc = -ENODEV;
132 rc = mHalTuner->get_configuration(mHalTuner, &halConfig);
133 if (rc == 0) {
138 _hidl_cb(Utils::convertHalResult(rc), config);
146 int rc = mHalTuner->scan(mHalTuner, static_cast<radio_direction_t>(direction), skipSubChannel); local
147 return Utils::convertHalResult(rc);
154 int rc local
162 int rc = mHalTuner->tune(mHalTuner, channel, subChannel); local
170 int rc = mHalTuner->cancel(mHalTuner); local
182 int rc; local
[all...]
H A DUtils.cpp130 Result Utils::convertHalResult(int rc) argument
132 switch (rc) {
/hardware/qcom/audio/hal/audio_extn/
H A Dutils.c43 int app_type_cfg[MAX_LENGTH_MIXER_CONTROL_IN_INT], len = 0, rc = 0; local
57 rc = -EINVAL;
68 return rc;
74 int length = 0, app_type = 0,rc = 0; local
83 rc = platform_get_default_app_type_v2(platform, PCM_PLAYBACK, &app_type);
84 if (rc == 0) {
100 int app_type = 0, rc = 0; local
106 rc = 0;
112 rc = 0;
124 rc
[all...]
/hardware/qcom/power/
H A Dpower.c65 int rc; local
78 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un));
81 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un));
84 if (rc < 0) {
91 int rc; local
104 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un));
107 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un));
110 if (rc < 0) {
148 int rc; local
160 rc
[all...]
/hardware/interfaces/biometrics/fingerprint/2.1/vts/functional/
H A DVtsHalBiometricsFingerprintV2_1TargetTest.cpp204 Return<uint64_t> rc = mService->setNotify(cb); local
205 ASSERT_NE(0UL, static_cast<uint64_t>(rc));
210 Return<uint64_t> rc = mService->setNotify(NULL); local
211 ASSERT_NE(0UL, static_cast<uint64_t>(rc));
229 Return<uint64_t> rc = mService->setNotify(cb); local
230 ASSERT_NE(0UL, static_cast<uint64_t>(rc));
248 Return<uint64_t> rc = mService->setNotify(cb); local
249 ASSERT_NE(0UL, static_cast<uint64_t>(rc));
263 Return<uint64_t> rc = mService->setNotify(cb); local
280 Return<uint64_t> rc local
296 Return<uint64_t> rc = mService->setNotify(cb); local
312 Return<uint64_t> rc = mService->setNotify(cb); local
358 Return<uint64_t> rc = mService->setNotify(cb); local
377 Return<uint64_t> rc = mService->setNotify(cb); local
398 Return<uint64_t> rc = mService->setNotify(cb); local
418 Return<uint64_t> rc = mService->setNotify(cb); local
438 Return<uint64_t> rc = mService->setNotify(cb); local
[all...]
/hardware/interfaces/bluetooth/1.0/default/
H A Dbluetooth_hci.cc67 bool rc = VendorInterface::Initialize( local
93 if (!rc) {
/hardware/libhardware/modules/radio/
H A Dradio_hal_tool.c169 int rc; local
170 rc = hw_get_module_by_class(RADIO_HARDWARE_MODULE_ID, RADIO_HARDWARE_MODULE_ID_FM, &hw_module);
171 if (rc != 0) {
172 printf("Cannot open the hw module. Does the HAL exist? %d\n", rc);
177 rc = radio_hw_device_open(hw_module, &dev);
178 if (rc != 0) {
179 printf("Cannot open the device. Check that HAL implementation. %d\n", rc);
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-1240/
H A Dloc_api_rpc_glue.c123 int32 rc = loc_api_saved_cb(loc_handle, loc_event, loc_event_payload); local
124 ret->loc_event_cb_f_type_result = rc;
174 int rc = loc_apicb_app_init(); local
175 if (rc >= 0)
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-3200/
H A Dloc_api_rpc_glue.c123 int32 rc = loc_api_saved_cb(loc_handle, loc_event, loc_event_payload); local
124 ret->loc_event_cb_f_type_result = rc;
174 int rc = loc_apicb_app_init(); local
175 if (rc >= 0)
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
H A Dloc_api_sync_call.c447 int rc = 0; /* return code from pthread calls */ local
457 while (slot->signal_sent == 0 && rc != ETIMEDOUT) {
458 rc = pthread_cond_timedwait(&slot->loc_cb_arrived_cond,
462 if (rc == ETIMEDOUT)
502 int rc = -1; local
512 return rc;
525 rc = loc_ioctl(handle, ioctl_type, ioctl_data_ptr);
529 if (rc != RPC_LOC_API_SUCCESS)
532 select_id, loc_get_ioctl_type_name(ioctl_type), loc_get_ioctl_status_name(rc));
538 if ((rc
[all...]
/hardware/qcom/gps/loc_api/libloc_api_50001/
H A Dloc_eng_ni.cpp179 int rc = 0; local
180 rc = pthread_create(&pSession->thread, NULL, ni_thread_proc, pSession);
181 if (rc)
185 rc = pthread_detach(pSession->thread);
186 if (rc)
207 int rc = 0; /* return code from pthread calls */ local
223 rc = pthread_cond_timedwait(&pSession->tCond,
226 if (rc == ETIMEDOUT)
229 LOC_LOGD("ni_thread_proc-Thread time out after valting for specified time. Ret Val %d\n",rc );
234 "pthread_cond_timedwait = %d\n",rc );
[all...]
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc/gen-1240/
H A Dloc_api_rpc_glue.c123 int32 rc = loc_api_saved_cb(loc_handle, loc_event, loc_event_payload); local
124 ret->loc_event_cb_f_type_result = rc;
174 int rc = loc_apicb_app_init(); local
175 if (rc >= 0)
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc/gen-3200/
H A Dloc_api_rpc_glue.c123 int32 rc = loc_api_saved_cb(loc_handle, loc_event, loc_event_payload); local
124 ret->loc_event_cb_f_type_result = rc;
174 int rc = loc_apicb_app_init(); local
175 if (rc >= 0)
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
H A Dloc_api_sync_call.c447 int rc = 0; /* return code from pthread calls */ local
457 while (slot->signal_sent == 0 && rc != ETIMEDOUT) {
458 rc = pthread_cond_timedwait(&slot->loc_cb_arrived_cond,
462 if (rc == ETIMEDOUT)
502 int rc = -1; local
512 return rc;
525 rc = loc_ioctl(handle, ioctl_type, ioctl_data_ptr);
529 if (rc != RPC_LOC_API_SUCCESS)
532 select_id, loc_get_ioctl_type_name(ioctl_type), loc_get_ioctl_status_name(rc));
538 if ((rc
[all...]
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
H A Dloc_eng_ni.cpp179 int rc = 0; local
180 rc = pthread_create(&pSession->thread, NULL, ni_thread_proc, pSession);
181 if (rc)
185 rc = pthread_detach(pSession->thread);
186 if (rc)
207 int rc = 0; /* return code from pthread calls */ local
223 rc = pthread_cond_timedwait(&pSession->tCond,
226 if (rc == ETIMEDOUT)
229 LOC_LOGD("ni_thread_proc-Thread time out after valting for specified time. Ret Val %d\n",rc );
234 "pthread_cond_timedwait = %d\n",rc );
[all...]
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
H A Dloc_api_sync_call.c447 int rc = 0; /* return code from pthread calls */ local
457 while (slot->signal_sent == 0 && rc != ETIMEDOUT) {
458 rc = pthread_cond_timedwait(&slot->loc_cb_arrived_cond,
462 if (rc == ETIMEDOUT)
502 int rc = -1; local
512 return rc;
525 rc = loc_ioctl(handle, ioctl_type, ioctl_data_ptr);
529 if (rc != RPC_LOC_API_SUCCESS)
532 select_id, loc_get_ioctl_type_name(ioctl_type), loc_get_ioctl_status_name(rc));
538 if ((rc
[all...]
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
H A Dloc_eng_ni.cpp179 int rc = 0; local
180 rc = pthread_create(&pSession->thread, NULL, ni_thread_proc, pSession);
181 if (rc)
185 rc = pthread_detach(pSession->thread);
186 if (rc)
207 int rc = 0; /* return code from pthread calls */ local
223 rc = pthread_cond_timedwait(&pSession->tCond,
226 if (rc == ETIMEDOUT)
229 LOC_LOGD("ni_thread_proc-Thread time out after valting for specified time. Ret Val %d\n",rc );
234 "pthread_cond_timedwait = %d\n",rc );
[all...]
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
H A Dloc_eng_ni.cpp162 int rc = 0; local
163 rc = pthread_create(&loc_eng_ni_data_p->thread, NULL, ni_thread_proc, &loc_eng_data);
164 if (rc)
168 rc = pthread_detach(loc_eng_ni_data_p->thread);
169 if (rc)
191 int rc = 0; /* return code from pthread calls */ local
207 rc = pthread_cond_timedwait(&loc_eng_ni_data_p->tCond,
210 if (rc == ETIMEDOUT)
213 LOC_LOGD("ni_thread_proc-Thread time out after valting for specified time. Ret Val %d\n",rc );
218 "pthread_cond_timedwait = %d\n",rc );
[all...]

Completed in 554 milliseconds

12345