Home
last modified time | relevance | path

Searched refs:ret (Results 1 - 25 of 172) sorted by relevance

1234567

/applications/standard/app_samples/code/BasicFeature/Media/Camera/entry/src/main/cpp/
H A Dcamera_manager.cpp34 Camera_ErrorCode ret = OH_Camera_GetCameraManager(&cameraManager_); in NDKCamera() local
35 if (cameraManager_ == nullptr || ret != CAMERA_OK) { in NDKCamera()
39 ret = OH_CameraManager_CreateCaptureSession(cameraManager_, &captureSession_); in NDKCamera()
40 if (captureSession_ == nullptr || ret != CAMERA_OK) { in NDKCamera()
58 Camera_ErrorCode ret = CAMERA_OK; in ~NDKCamera() local
62 ret = OH_CameraManager_DeleteSupportedCameraOutputCapability(cameraManager_, cameraOutputCapability_); in ~NDKCamera()
63 if (ret != CAMERA_OK) { in ~NDKCamera()
70 ret = OH_CameraManager_DeleteSupportedCameras(cameraManager_, cameras_, size_); in ~NDKCamera()
71 if (ret != CAMERA_OK) { in ~NDKCamera()
77 ret in ~NDKCamera()
122 Camera_ErrorCode ret = OH_CaptureSession_Release(captureSession_); SessionRealese() local
133 Camera_ErrorCode ret = OH_CaptureSession_HasFlash(captureSession_, &hasFlash); HasFlashFn() local
178 Camera_ErrorCode ret = IsVideoStabilizationModeSupportedFn() local
213 Camera_ErrorCode ret = OH_CaptureSession_GetZoomRatioRange(captureSession_, &minZoom, &maxZoom); setZoomRatioFn() local
241 Camera_ErrorCode ret = OH_CaptureSession_BeginConfig(captureSession_); SessionBegin() local
252 Camera_ErrorCode ret = OH_CaptureSession_CommitConfig(captureSession_); SessionCommitConfig() local
263 Camera_ErrorCode ret = OH_CaptureSession_Start(captureSession_); SessionStart() local
274 Camera_ErrorCode ret = OH_CaptureSession_Stop(captureSession_); SessionStop() local
288 Camera_ErrorCode ret = OH_CaptureSession_BeginConfig(captureSession_); SessionFlowFn() local
440 Camera_ErrorCode ret = OH_CaptureSession_AddVideoOutput(captureSession_, videoOutput_); AddVideoOutput() local
451 Camera_ErrorCode ret = OH_CaptureSession_AddPhotoOutput(captureSession_, photoOutput_); AddPhotoOutput() local
522 Camera_ErrorCode ret = SessionStop(); StartVideo() local
549 Camera_ErrorCode ret = OH_VideoOutput_Start(videoOutput_); VideoOutputStart() local
560 Camera_ErrorCode ret = CAMERA_OK; StartPhoto() local
778 Camera_ErrorCode ret = CAMERA_OK; TakePicture() local
790 Camera_ErrorCode ret = CAMERA_OK; TakePictureWithPhotoSettings() local
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkNativeWindow/entry/src/main/cpp/
H A DNativeImageAdaptor.cpp94 unsigned int ret; in InitEGLEnv() local
100 ret = eglChooseConfig(eglDisplay_, config_attribs, &config_, 1, &count); in InitEGLEnv()
101 if (!(ret && static_cast<unsigned int>(count) >= 1)) { in InitEGLEnv()
143 bool ret = InitNativeWindow(); in Export() local
144 ret = InitNativeWindowCache() && ret; in Export()
146 return ret; in Export()
158 int32_t ret = OH_ConsumerSurface_SetDefaultSize(image_, width_, height_); in InitNativeWindow() local
159 if (ret != 0) { in InitNativeWindow()
167 ret in InitNativeWindow()
216 int32_t ret = OH_NativeWindow_NativeWindowHandleOpt(nativeWindowCache_, code, width_, height_); InitNativeWindowCache() local
252 int ret = OH_NativeWindow_NativeWindowAttachBuffer(nativeWindowCache_, buffer); AttachBuffer() local
270 int ret = OH_NativeWindow_NativeWindowDetachBuffer(nativeWindowCache_, buffer); DettachBuffer() local
285 int32_t ret = OH_NativeWindow_NativeWindowHandleOpt(nativeWindow_, code, value); SetConfigAndGetValue() local
338 int32_t ret = OH_NativeBuffer_FromNativeWindowBuffer(buffer, &nativeBuffer); GetBufferMapPlanes() local
363 int ret = OH_NativeWindow_NativeWindowRequestBuffer(InNativeWindow, &buffer, &fenceFd); ProduceBuffer() local
419 int ret = OH_NativeImage_AcquireNativeWindowBuffer(image_, &buffer, &fenceFd); ConsumerBuffer() local
444 int32_t ret = OH_NativeImage_UpdateSurfaceImage(image_); DealCallback() local
469 int32_t ret = OH_NativeWindow_NativeWindowHandleOpt(nativeWindow_, code, &bufferQueueSize); GetBufferQueueSize() local
529 int32_t ret = NativeImageAdaptor::GetInstance()-> NapiOnProduceBuffer() local
538 int32_t ret = NativeImageAdaptor::GetInstance()-> NapiOnConsumerBuffer() local
[all...]
H A DNativeRender.cpp28 int32_t ret = OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); in OnSurfaceCreatedCB() local
104 int32_t ret; in Export() local
118 ret = OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize); in Export()
119 if (ret != OH_NATIVEXCOMPONENT_RESULT_SUCCESS) { in Export()
167 auto ret = OH_NativeBuffer_SetColorSpace(nativeBuffer, OH_COLORSPACE_SRGB_FULL); in NativeBufferApi() local
168 if (ret != 0) { in NativeBufferApi()
181 auto ret = OH_NativeWindow_WriteToParcel(nativeWindow, parcel); in TestReadWriteWindow() local
182 if (ret != 0) { in TestReadWriteWindow()
183 LOGE("WriteToParcel fail, err code is %{public}d.", ret); in TestReadWriteWindow()
187 ret in TestReadWriteWindow()
208 auto ret = OH_NativeWindow_GetSurfaceId(nativeWindow_, &surfaceId); DrawBaseColor() local
[all...]
/applications/sample/camera/setting/setting/src/main/cpp/
H A Dwpa_work.c136 int ret = SendCtrlCommand("STATUS", connInfo, &infoLen); in GetCurrentConnInfo() local
137 if (ret == -1) { in GetCurrentConnInfo()
175 int ret; in ExitWpaScan() local
177 ret = pthread_cancel(g_scanThreadId); in ExitWpaScan()
178 printf("[INFO]pthread_cancel(g_scanThreadId) ret -> %d \n", ret); in ExitWpaScan()
182 ret = pthread_cancel(g_wpaThreadId); in ExitWpaScan()
183 printf("[INFO]pthread_cancel(g_wpaThreadId) ret -> %d \n", ret); in ExitWpaScan()
190 int ret; in ExitWpa() local
224 int ret = g_scanAvailable; GetAndResetScanStat() local
246 int i, ret, err; CheckSsid() local
342 int fd, ret; MonitorTask() local
371 int ret = SendCtrlCommand("DISCONNECT", networkId, &networkIdLen); TestNetworkConfig() local
420 int ret; InitControlInterface() local
457 int ret = InitControlInterface(); WpaScanThread() local
475 int ret = pthread_create(&g_scanThreadId, NULL, WpaScanThread, NULL); // create thread for read event WpaScanReconnect() local
506 int ret = pthread_create(&g_threadId, NULL, ThreadMain, NULL); WpaClientStart() local
[all...]
H A Dapp_info_ability_slice.h56 int ret = 0; in SetPermissionName() local
57 ret = memcpy_s(name_, sizeof(name_), permissionsName, nameLenght); in SetPermissionName()
58 if (ret != EOK) { in SetPermissionName()
67 int ret = 0; in SetBundleName() local
68 ret = memcpy_s(bundleName_, sizeof(bundleName_), bundleName, nameLength); in SetBundleName()
69 if (ret != EOK) { in SetBundleName()
78 int ret; variable
80 ret = RevokePermission(bundleName_, name_);
81 if (ret == 0) {
86 ret
[all...]
/applications/standard/contacts_data/dataBusiness/contacts/src/
H A Dcontacts_datashare_stub_impl.cpp88 int ret = 0; in Insert() local
92 return ret; in Insert()
94 ret = extension->Insert(uri, value); in Insert()
95 HILOG_INFO("insert end successfully. ret: %{public}d", ret); in Insert()
96 if (ret != Contacts::OPERATION_ERROR) { in Insert()
99 return ret; in Insert()
106 int ret = 0; in Update() local
110 return ret; in Update()
112 ret in Update()
123 int ret = 0; Delete() local
154 int ret = 0; BatchInsert() local
202 ErrCode ret = obsMgrClient->RegisterObserver(uri, dataObserver); RegisterObserver() local
220 ErrCode ret = obsMgrClient->UnregisterObserver(uri, dataObserver); UnregisterObserver() local
236 ErrCode ret = obsMgrClient->NotifyChange(uri); NotifyChange() local
[all...]
H A Dcontacts_update_helper.cpp45 int ret = RDB_EXECUTE_OK; in UpdateDisplay() local
51 return ret; in UpdateDisplay()
63 return ret; in UpdateDisplay()
65 ret = rawContacts.UpdateRawContactById(rawContactId, type, rdbStore, rawContactValues); in UpdateDisplay()
66 if (ret != OHOS::NativeRdb::E_OK) { in UpdateDisplay()
68 HILOG_ERROR("ContactsUpdateHelper UpdateDisplay UpdateRawContact failed:%{public}d", ret); in UpdateDisplay()
69 return ret; in UpdateDisplay()
73 return ret; in UpdateDisplay()
75 ret = contactsContact.UpdateContact(rawContactId, rdbStore, contactValues); in UpdateDisplay()
76 if (ret ! in UpdateDisplay()
127 int ret = RDB_EXECUTE_OK; UpdateName() local
282 int ret = RDB_EXECUTE_FAIL; UpdateCallLogNameNull() local
333 int ret = RDB_EXECUTE_FAIL; UpdateCallLog() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/coap_demo/
H A Diot_profile.c25 cJSON *ret = NULL; in FormatProfileValue() local
28 ret = cJSON_CreateNumber(kv->iValue); in FormatProfileValue()
31 ret = cJSON_CreateNumber((double)(*(long *)kv->value)); in FormatProfileValue()
34 ret = cJSON_CreateNumber((double)(*(float *)kv->fvalue)); in FormatProfileValue()
37 ret = cJSON_CreateNumber((*(double *)kv->dvalue)); in FormatProfileValue()
40 ret = cJSON_CreateString((const char *)kv->value); in FormatProfileValue()
45 return ret; in FormatProfileValue()
165 char *ret = NULL; in MakeTopic() local
171 ret = hi_malloc(0, len); in MakeTopic()
172 if (ret ! in MakeTopic()
187 char *ret = NULL; MakeProfileCmdResp() local
239 int ret = -1; IoTProfileCmdResp() local
263 char *ret = NULL; MakeProfilePropertyReport() local
291 int ret = -1; IoTProfilePropertyReport() local
[all...]
H A Diot_main.c90 int ret = 0; in MsgRcvCallBack() local
103 ret = memcpy_s(buf, bufSize, topic, topicLength); in MsgRcvCallBack()
104 if (ret != EOK) { in MsgRcvCallBack()
111 ret = memcpy_s(buf, bufSize, message->payload, message->payloadlen); in MsgRcvCallBack()
112 if (ret != EOK) { in MsgRcvCallBack()
138 hi_u32 ret; in IoTMsgProcess() local
145 ret = MQTTClient_publishMessage(client, msg->topic, &pubmsg, &g_ioTAppCb.tocken); in IoTMsgProcess()
146 if (ret != MQTTCLIENT_SUCCESS) { in IoTMsgProcess()
167 hi_u32 ret; in ProcessQueueMsg() local
177 ret in ProcessQueueMsg()
226 int ret = ProcessQueueMsg(client); // do the job here MqttProcess() local
242 int ret = 0; MainEntryProcess() local
293 hi_u32 ret; IoTMain() local
320 int ret = 0; IotSendMsg() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/oc_demo/
H A Diot_profile.c25 cJSON *ret = NULL; in FormatProfileValue() local
28 ret = cJSON_CreateNumber(kv->iValue); in FormatProfileValue()
31 ret = cJSON_CreateNumber((double)(*(long *)kv->value)); in FormatProfileValue()
34 ret = cJSON_CreateString((const char *)kv->value); in FormatProfileValue()
39 return ret; in FormatProfileValue()
159 char *ret = NULL; in MakeTopic() local
166 ret = hi_malloc(0, len); in MakeTopic()
167 if (ret != NULL) { in MakeTopic()
169 if (snprintf_s(ret, len + 1, len, fmt, deviceId, requestID) < 0) { in MakeTopic()
173 if (snprintf_s(ret, le in MakeTopic()
186 char *ret = NULL; MakeProfileCmdResp() local
239 int ret = -1; IoTProfileCmdResp() local
263 char *ret = NULL; MakeProfilePropertyReport() local
291 int ret = -1; IoTProfilePropertyReport() local
[all...]
H A Dapp_demo_config.c375 int ret = 0; in OledLedLightHumanReckonShow() local
393 ret = snprintf_s(showTimeCount, sizeof(showTimeCount), sizeof(showTimeCount), "%d", timeCount); in OledLedLightHumanReckonShow()
394 if (ret < 0) { in OledLedLightHumanReckonShow()
408 ret = snprintf_s(beepStatus, sizeof(beepStatus), sizeof(beepStatus), "%d", BEEP_ON); in OledLedLightHumanReckonShow()
409 if (ret < 0) { in OledLedLightHumanReckonShow()
415 ret = snprintf_s(beepStatus, sizeof(beepStatus), sizeof(beepStatus), "%d", BEEP_OFF); in OledLedLightHumanReckonShow()
416 if (ret < 0) { in OledLedLightHumanReckonShow()
594 int ret = 0; in OledAutoRedLedLigthReckonByTimeShow() local
617 int ret = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local
646 int ret in OledHumanRedLedLigthReckonByTimeShow() local
672 int ret = 0; OledRedLedLigthOnFlashRecordShow() local
696 int ret = 0; OledAutoRedLedLigthFiveSecondCountShow() local
719 int ret = 0; OledHumanRedLedLigthFiveSecondCountShow() local
744 int ret = 0; OledRedLedLigthOnFiveSecondCountShow() local
935 int ret = 0; OledAutoGreenLedLigthFiveSecondCountShow() local
958 int ret = 0; OledHumanGreenLedLigthFiveSecondCountShow() local
982 int ret = 0; OledGreenLedLigthOnFiveSecondCountShow() local
1024 int ret; OledRedLedLigthOnRecordShow() local
1086 int ret = 0; OledAutoYellowLedLigthOnRecordShow() local
1111 int ret = 0; OledHumanRedLedLigth30SecondCountShow() local
1139 int ret = 0; OledHumanNormalYellowLedLigthOnRecordShow() local
1169 int ret = 0; OledHumanYellowLedLigthOnRecordShow() local
1196 int ret = 0; OledYellowLedLigthOnRecordShow() local
1220 int ret = 0; OledAutoGreenLedLigthReckonByTimeShow() local
1243 int ret = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local
1272 int ret = 0; OledHumanGreenLedLigthReckonByTimeShow() local
1298 int ret = 0; OledGreenLedLigthOnFlashRecordShow() local
1319 unsigned char ret = 0; OledGreenLedLigthOnRecordShow() local
1346 int ret = 0; OledHumanModeGreenLedLigthOnRecordShow() local
1431 int ret = 0; TrafficAutoModeSample() local
1487 int ret = 0; NormalTypeRedLedLightOnRecord() local
1522 int ret = 0; TrafficNormalType() local
1998 unsigned int ret; SoftwareTimersTaskEntry() local
[all...]
/applications/standard/contacts_data/dataBusiness/voicemail/src/
H A Dvoicemail_database.cpp48 int ret = store_->Insert(outRowId, tableName, insertValues); in InsertVoiceMail() local
49 if (ret != OHOS::NativeRdb::E_OK) { in InsertVoiceMail()
50 HILOG_ERROR("VoiceMailDataBase InsertVoiceMail ret :%{public}d", ret); in InsertVoiceMail()
67 int ret = store_->Update(changedRows, values, rdbPredicates); in UpdateVoiceMail() local
68 if (ret != OHOS::NativeRdb::E_OK) { in UpdateVoiceMail()
69 HILOG_ERROR("VoiceMailDataBase Update ret :%{public}d", ret); in UpdateVoiceMail()
72 return ret; in UpdateVoiceMail()
82 int ret in DeleteVoiceMail() local
107 int ret = store_->BeginTransaction(); BeginTransaction() local
120 int ret = store_->Commit(); Commit() local
133 int ret = store_->RollBack(); RollBack() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/
H A Dwifi_sta.c75 int ret = 0; in hi_wifi_start_connect() local
97 ret = hi_wifi_sta_connect(&assoc_req); in hi_wifi_start_connect()
98 if (ret != HISI_OK) { in hi_wifi_start_connect()
107 int ret; in hi_wifi_start_sta() local
114 ret = hi_wifi_init(wifi_vap_res_num, wifi_user_res_num); in hi_wifi_start_sta()
115 if (ret != HISI_OK) { in hi_wifi_start_sta()
119 ret = hi_wifi_sta_start(ifname, &len); in hi_wifi_start_sta()
120 if (ret != HISI_OK) { in hi_wifi_start_sta()
127 ret = hi_wifi_register_event_callback(wifi_wpa_event_cb); in hi_wifi_start_sta()
128 if (ret ! in hi_wifi_start_sta()
174 int ret; hi_wifi_stop_sta() local
[all...]
H A Dapp_demo_config.c347 int ret = 0; in OledLedLightHumanReckonShow() local
365 ret = snprintf_s(showTimeCount, sizeof(showTimeCount), sizeof(showTimeCount), "%d", timeCount); in OledLedLightHumanReckonShow()
366 if (ret < 0) { in OledLedLightHumanReckonShow()
380 ret = snprintf_s(beepStatus, sizeof(beepStatus), sizeof(beepStatus), "%d", BEEP_ON); in OledLedLightHumanReckonShow()
381 if (ret < 0) { in OledLedLightHumanReckonShow()
387 ret = snprintf_s(beepStatus, sizeof(beepStatus), sizeof(beepStatus), "%d", BEEP_OFF); in OledLedLightHumanReckonShow()
388 if (ret < 0) { in OledLedLightHumanReckonShow()
566 int ret = 0; in OledAutoRedLedLigthReckonByTimeShow() local
589 int ret = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local
618 int ret in OledHumanRedLedLigthReckonByTimeShow() local
644 int ret = 0; OledRedLedLigthOnFlashRecordShow() local
668 int ret = 0; OledAutoRedLedLigthFiveSecondCountShow() local
691 int ret = 0; OledHumanRedLedLigthFiveSecondCountShow() local
716 int ret = 0; OledRedLedLigthOnFiveSecondCountShow() local
907 int ret = 0; OledAutoGreenLedLigthFiveSecondCountShow() local
930 int ret = 0; OledHumanGreenLedLigthFiveSecondCountShow() local
954 int ret = 0; OledGreenLedLigthOnFiveSecondCountShow() local
996 int ret; OledRedLedLigthOnRecordShow() local
1058 int ret = 0; OledAutoYellowLedLigthOnRecordShow() local
1083 int ret = 0; OledHumanRedLedLigth30SecondCountShow() local
1111 int ret = 0; OledHumanNormalYellowLedLigthOnRecordShow() local
1141 int ret = 0; OledHumanYellowLedLigthOnRecordShow() local
1168 int ret = 0; OledYellowLedLigthOnRecordShow() local
1192 int ret = 0; OledAutoGreenLedLigthReckonByTimeShow() local
1215 int ret = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local
1244 int ret = 0; OledHumanGreenLedLigthReckonByTimeShow() local
1270 int ret = 0; OledGreenLedLigthOnFlashRecordShow() local
1291 unsigned char ret = 0; OledGreenLedLigthOnRecordShow() local
1318 int ret = 0; OledHumanModeGreenLedLigthOnRecordShow() local
1403 int ret = 0; TrafficAutoModeSample() local
1459 int ret = 0; NormalTypeRedLedLightOnRecord() local
1494 int ret = 0; TrafficNormalType() local
1961 unsigned int ret; SoftwareTimersTaskEntry() local
[all...]
/applications/sample/camera/media/
H A Dcamera_sample.cpp74 int ret = 0; in SampleCreateRecorder() local
90 if ((ret = recorder->SetVideoSource(source, sourceId)) != SUCCESS) { in SampleCreateRecorder()
91 cout << "SetVideoSource failed." << ret << endl; in SampleCreateRecorder()
94 if ((ret = recorder->SetVideoEncoder(sourceId, encoder)) != SUCCESS) { in SampleCreateRecorder()
95 cout << "SetVideoEncoder failed." << ret << endl; in SampleCreateRecorder()
98 if ((ret = recorder->SetVideoSize(sourceId, width, height)) != SUCCESS) { in SampleCreateRecorder()
99 cout << "SetVideoSize failed." << ret << endl; in SampleCreateRecorder()
102 if ((ret = recorder->SetVideoFrameRate(sourceId, frameRate)) != SUCCESS) { in SampleCreateRecorder()
103 cout << "SetVideoFrameRate failed." << ret << endl; in SampleCreateRecorder()
106 if ((ret in SampleCreateRecorder()
236 int ret = PrepareRecorder(); StartRecord() local
304 int32_t ret = cam_->TriggerLoopingCapture(*fc); StartPreview() local
[all...]
H A Dplayer_sample.cpp365 int32_t ret = sample.adapter->SetVideoSurface(sample.surface); in SetSurface() local
367 if (ret != 0) { in SetSurface()
368 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret); in SetSurface()
409 int32_t ret = pthread_create(&sample.process, &attr, streamProcess, &sample); in SetStreamSourceProcess() local
410 if (ret != 0) { in SetStreamSourceProcess()
411 printf("pthread_create failed %d\n", ret); in SetStreamSourceProcess()
460 int32_t ret; in PlayProcess() local
464 ret = sample.adapter->Pause(); in PlayProcess()
466 ret in PlayProcess()
477 int32_t ret; ReleaseProcess() local
591 int32_t ret = sample.adapter->GetDuration(duration); RunCmdShow() local
632 int32_t ret = sample.adapter->SetVolume(lvolume, rvolume); RunCmdSetVolume() local
660 int ret; RunCmdPressurePupl() local
678 int ret; RunCmdPressureSeek() local
710 int32_t ret = sample.adapter->EnableSingleLooping(loop == 1); RunCmdLoop() local
725 int32_t ret = sample.adapter->SetPlaybackSpeed(speed); RunCmdSpeed() local
739 int32_t ret = sample.adapter->Rewind(timeMs, PlayerSeekMode::PLAYER_SEEK_PREVIOUS_SYNC); RunCmdSeek() local
757 int32_t ret = sample.adapter->Play(); RunCmdPlay() local
772 int ret; SampleCmd() local
897 int32_t ret = sample.adapter->Stop(); main() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/iottencent_demo/
H A Diot_profile.c27 cJSON *ret = NULL; in FormatProfileValue() local
30 ret = cJSON_CreateNumber(kv->iValue); in FormatProfileValue()
33 ret = cJSON_CreateNumber((double)(*(long *)kv->value)); in FormatProfileValue()
36 ret = cJSON_CreateString((const char *)kv->value); in FormatProfileValue()
41 return ret; in FormatProfileValue()
166 char *ret = NULL; in MakeTopic() local
173 ret = hi_malloc(0, len); in MakeTopic()
174 if (ret != NULL) { in MakeTopic()
176 (void)snprintf_s(ret, len, len, fmt, deviceID, requestID); in MakeTopic()
178 (void)snprintf_s(ret, le in MakeTopic()
189 char *ret = NULL; MakeProfileCmdResp() local
239 char *ret = NULL; MakeProfilePropertyReport() local
269 char *ret = NULL; MakeProfileReport() local
316 int ret = -1; IoTProfilePropertyReport() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/mqtt_demo/
H A Diot_profile.c27 cJSON *ret = NULL; in FormatProfileValue() local
30 ret = cJSON_CreateNumber(kv->iValue); in FormatProfileValue()
33 ret = cJSON_CreateNumber((double)(*(long *)kv->value)); in FormatProfileValue()
36 ret = cJSON_CreateString((const char *)kv->value); in FormatProfileValue()
41 return ret; in FormatProfileValue()
166 char *ret = NULL; in MakeTopic() local
173 ret = hi_malloc(0, len); in MakeTopic()
174 if (ret != NULL) { in MakeTopic()
176 (void)snprintf_s(ret, len, len, fmt, deviceID, requestID); in MakeTopic()
178 (void)snprintf_s(ret, le in MakeTopic()
189 char *ret = NULL; MakeProfileCmdResp() local
239 char *ret = NULL; MakeProfilePropertyReport() local
269 char *ret = NULL; MakeProfileReport() local
316 int ret = -1; IoTProfilePropertyReport() local
[all...]
/applications/standard/contacts_data/dataBusiness/calllog/src/
H A Dcalllog_database.cpp57 int ret = store_->BeginTransaction(); in BeginTransaction() local
58 if (ret != OHOS::NativeRdb::E_OK) { in BeginTransaction()
59 HILOG_ERROR("CallLogDataBase BeginTransaction fail :%{public}d", ret); in BeginTransaction()
61 return ret; in BeginTransaction()
70 int ret = store_->Commit(); in Commit() local
71 if (ret != OHOS::NativeRdb::E_OK) { in Commit()
72 HILOG_ERROR(" CallLogDataBase Commit fail :%{public}d", ret); in Commit()
74 return ret; in Commit()
83 int ret = store_->RollBack(); in RollBack() local
84 if (ret ! in RollBack()
143 int ret = store.SetVersion(newVersion); OnDowngrade() local
162 int ret = store_->Insert(outRowId, CallsTableName::CALLLOG, insertValues); InsertCallLog() local
188 int ret = store_->Update(changeRow, values, predicates); UpdateCallLog() local
210 int ret = store_->Delete(deleteRow, predicates); DeleteCallLog() local
286 int ret = UpdateTopContact(insertValues); QueryContactsByInsertCalls() local
323 int ret = ContactsDataBase::GetInstance()->contactStore_->ExecuteSql(sqlBuild, bindArgs); UpdateTopContact() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/environment/
H A Denvironment_demo.c84 int ret = UtilsGetValue(PARAM_TEMP_MAX, tempMax, LENGTH); in GetValue() local
85 if (ret < 0) { in GetValue()
86 printf("get tempMax value failed, ret is %d\r\n", ret); in GetValue()
91 ret = UtilsGetValue(PARAM_TEMP_MIN, tempMin, LENGTH); in GetValue()
92 if (ret < 0) { in GetValue()
93 printf("get tempMin value failed, ret is %d\r\n", ret); in GetValue()
98 ret = UtilsGetValue(PARAM_HUMI_MAX, humiMax, LENGTH); in GetValue()
99 if (ret < in GetValue()
194 int ret = GetValue(); EnvironmentTask() local
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkXComponent/entry/src/main/cpp/manager/
H A Dplugin_manager.cpp55 napi_status ret = napi_create_int32(env, hasDraw_, &(hasDraw)); in GetXComponentStatus() local
56 if (ret != napi_ok) { in GetXComponentStatus()
61 ret = napi_create_int32(env, hasChangeColor_, &(hasChangeColor)); in GetXComponentStatus()
62 if (ret != napi_ok) { in GetXComponentStatus()
69 ret = napi_create_object(env, &obj); in GetXComponentStatus()
70 if (ret != napi_ok) { in GetXComponentStatus()
74 ret = napi_set_named_property(env, obj, "hasDraw", hasDraw); in GetXComponentStatus()
75 if (ret != napi_ok) { in GetXComponentStatus()
80 ret = napi_set_named_property(env, obj, "hasChangeColor", hasChangeColor); in GetXComponentStatus()
81 if (ret ! in GetXComponentStatus()
112 int32_t ret; OnSurfaceCreatedCB() local
129 int32_t ret; OnSurfaceChangedCB() local
143 int32_t ret; OnSurfaceDestroyedCB() local
157 int32_t ret; DispatchTouchEventCB() local
262 int32_t ret = OH_ArkUI_NodeContent_SetUserData(nodeContentHandle_, new std::string(tag)); createNativeNode() local
292 int32_t ret; OnSurfaceCreated() local
310 int32_t ret = OH_NativeXComponent_GetTouchEvent(component, window, &touchEvent_); DispatchTouchEvent() local
332 int32_t ret = OH_NativeXComponent_GetXComponentSize(component, window, &width_, &height_); OnSurfaceChanged() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/traffic_light_demo/
H A Dapp_demo_config.c347 int ret = 0; in OledLedLightHumanReckonShow() local
365 ret = snprintf_s(showTimeCount, sizeof(showTimeCount), sizeof(showTimeCount), "%d", timeCount); in OledLedLightHumanReckonShow()
366 if (ret < 0) { in OledLedLightHumanReckonShow()
380 ret = snprintf_s(beepStatus, sizeof(beepStatus), sizeof(beepStatus), "%d", BEEP_ON); in OledLedLightHumanReckonShow()
381 if (ret < 0) { in OledLedLightHumanReckonShow()
387 ret = snprintf_s(beepStatus, sizeof(beepStatus), sizeof(beepStatus), "%d", BEEP_OFF); in OledLedLightHumanReckonShow()
388 if (ret < 0) { in OledLedLightHumanReckonShow()
566 int ret = 0; in OledAutoRedLedLigthReckonByTimeShow() local
589 int ret = 0; in OledHumanNormalRedLedLigthReckonByTimeShow() local
618 int ret in OledHumanRedLedLigthReckonByTimeShow() local
644 int ret = 0; OledRedLedLigthOnFlashRecordShow() local
668 int ret = 0; OledAutoRedLedLigthFiveSecondCountShow() local
691 int ret = 0; OledHumanRedLedLigthFiveSecondCountShow() local
716 int ret = 0; OledRedLedLigthOnFiveSecondCountShow() local
907 int ret = 0; OledAutoGreenLedLigthFiveSecondCountShow() local
930 int ret = 0; OledHumanGreenLedLigthFiveSecondCountShow() local
954 int ret = 0; OledGreenLedLigthOnFiveSecondCountShow() local
996 int ret; OledRedLedLigthOnRecordShow() local
1058 int ret = 0; OledAutoYellowLedLigthOnRecordShow() local
1083 int ret = 0; OledHumanRedLedLigth30SecondCountShow() local
1111 int ret = 0; OledHumanNormalYellowLedLigthOnRecordShow() local
1141 int ret = 0; OledHumanYellowLedLigthOnRecordShow() local
1168 int ret = 0; OledYellowLedLigthOnRecordShow() local
1192 int ret = 0; OledAutoGreenLedLigthReckonByTimeShow() local
1215 int ret = 0; OledHumanNormalGreenLedLigthReckonByTimeShow() local
1244 int ret = 0; OledHumanGreenLedLigthReckonByTimeShow() local
1270 int ret = 0; OledGreenLedLigthOnFlashRecordShow() local
1291 unsigned char ret = 0; OledGreenLedLigthOnRecordShow() local
1318 int ret = 0; OledHumanModeGreenLedLigthOnRecordShow() local
1403 int ret = 0; TrafficAutoModeSample() local
1459 int ret = 0; NormalTypeRedLedLightOnRecord() local
1494 int ret = 0; TrafficNormalType() local
1961 unsigned int ret; SoftwareTimersTaskEntry() local
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/
H A Dapp_napi.cpp53 int ret = angle % CIRCUMFERENCE_DEGREE; in Normalize() local
54 if (ret < 0) { in Normalize()
55 ret += CIRCUMFERENCE_DEGREE; in Normalize()
58 return ret; in Normalize()
64 int32_t ret; in OnSurfaceCreatedCB() local
67 ret = OH_NativeXComponent_GetXComponentId(component, idStr, &idSize); in OnSurfaceCreatedCB()
68 if (ret != OH_NATIVEXCOMPONENT_RESULT_SUCCESS) { in OnSurfaceCreatedCB()
79 int32_t ret; in OnSurfaceChangedCB() local
82 ret = OH_NativeXComponent_GetXComponentId(component, idStr, &idSize); in OnSurfaceChangedCB()
83 if (ret ! in OnSurfaceChangedCB()
94 int32_t ret; OnSurfaceDestroyedCB() local
111 int32_t ret; DispatchTouchEventCB() local
126 int32_t ret; DispatchMouseEventCB() local
187 int32_t ret = OH_NativeXComponent_GetXComponentSize(component, window, &width_, &height_); OnSurfaceCreated() local
206 int32_t ret = OH_NativeXComponent_GetXComponentSize(component, window, &width_, &height_); OnSurfaceChanged() local
236 int32_t ret = OH_NativeXComponent_GetTouchEvent(component, window, &touchEvent_); DispatchTouchEvent() local
268 int32_t ret = OH_NativeXComponent_GetMouseEvent(component, window, &mouseEvent_); DispatchMouseEvent() local
321 napi_value ret; UpdateAngle() local
341 int32_t ret; Quit() local
374 int32_t ret; GetXComponentId() local
[all...]
/applications/sample/camera/communication/wpa_cli/src/
H A Dwpa_cli_sample.c110 int fd, ret; in MonitorTask() local
116 ret = select(fd + 1, &rfd, NULL, NULL, NULL); in MonitorTask()
117 if (ret <= 0) { in MonitorTask()
118 SAMPLE_INFO("select failed ret = %d\n", ret); in MonitorTask()
144 int ret = SendCtrlCommand("DISCONNECT", networkId, &networkIdLen); in TestNetworkConfig() local
145 ret += SendCtrlCommand("ADD_NETWORK", networkId, &networkIdLen); in TestNetworkConfig()
146 if (ret != 0) { in TestNetworkConfig()
159 ret += SendCtrlCommand(cmd, reply, &replyLen); in TestNetworkConfig()
165 ret in TestNetworkConfig()
191 int ret = SendCtrlCommand("PING", reply, &replyLen); TestCliConnection() local
215 int ret = SendCtrlCommand("SCAN_RESULTS", scanResult, &scanLen); TestScan() local
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/XComponent/entry/src/main/cpp/render/
H A Dplugin_render.cpp130 int32_t ret; in DispatchMouseEventCB() local
133 ret = OH_NativeXComponent_GetXComponentId(component, idStr, &idSize); in DispatchMouseEventCB()
134 if (ret != OH_NATIVEXCOMPONENT_RESULT_SUCCESS) { in DispatchMouseEventCB()
148 int32_t ret; in DispatchHoverEventCB() local
151 ret = OH_NativeXComponent_GetXComponentId(component, idStr, &idSize); in DispatchHoverEventCB()
152 if (ret != OH_NATIVEXCOMPONENT_RESULT_SUCCESS) { in DispatchHoverEventCB()
166 int32_t ret; in OnFocusEventCB() local
169 ret = OH_NativeXComponent_GetXComponentId(component, idStr, &idSize); in OnFocusEventCB()
170 if (ret != OH_NATIVEXCOMPONENT_RESULT_SUCCESS) { in OnFocusEventCB()
184 int32_t ret; in OnBlurEventCB() local
202 int32_t ret; OnKeyEventCB() local
383 int32_t ret = OH_NativeXComponent_GetMouseEvent(component, window, &mouseEvent); OnMouseEvent() local
438 napi_status ret = napi_create_int32(env, hasDraw_, &(hasDraw)); TestGetXComponentStatus() local
[all...]

Completed in 27 milliseconds

1234567