Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/base/sensors/sensor/test/unittest/interfaces/js/sensor/
DBarometerJsunit.test.js72 sensor.getSingleSensor(sensor.SensorId.BAROMETER, (error, data) => {
73 if (error) {
74 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
84 } catch (error) {
85 console.info('On fail, errCode:' + error.code + ' ,msg:' + error.message);
90 } catch (error) {
91 console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
92 expect(error.code).assertEqual(CommonConstants.PARAMETER_ERROR_CODE);
93 expect(error.message).assertEqual(CommonConstants.PARAMETER_ERROR_MSG);
111 sensor.getSingleSensor(sensor.SensorId.BAROMETER, (error, data) => {
[all …]
DGyroscopeJsunit.test.js76 sensor.getSingleSensor(sensor.SensorId.GYROSCOPE, (error, data) => {
77 if (error) {
78 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
88 } catch (error) {
89 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
94 } catch (error) {
95 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
96 expect(error.code).assertEqual(CommonConstants.PARAMETER_ERROR_CODE);
97 expect(error.message).assertEqual(CommonConstants.PARAMETER_ERROR_MSG);
115 sensor.getSingleSensor(sensor.SensorId.GYROSCOPE, (error, data) => {
[all …]
DSarJsunit.test.js73 sensor.getSingleSensor(sensor.SensorId.SAR, (error, data) => {
74 if (error) {
75 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
85 } catch (error) {
86 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
91 } catch (error) {
92 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
93 expect(error.code).assertEqual(CommonConstants.PARAMETER_ERROR_CODE);
94 expect(error.message).assertEqual(CommonConstants.PARAMETER_ERROR_MSG);
112 sensor.getSingleSensor(sensor.SensorId.SAR, (error, data) => {
[all …]
DColorJsunit.test.js74 sensor.getSingleSensor(sensor.SensorId.COLOR, (error, data) => {
75 if (error) {
76 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
86 } catch (error) {
87 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
92 } catch (error) {
93 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
94 expect(error.code).assertEqual(CommonConstants.PARAMETER_ERROR_CODE);
95 expect(error.message).assertEqual(CommonConstants.PARAMETER_ERROR_MSG);
113 sensor.getSingleSensor(sensor.SensorId.COLOR, (error, data) => {
[all …]
DSensorJsunit.test.js105 } catch (error) {
106 console.info(error);
107 expect(error.code).assertEqual(CommonConstants.PARAMETER_ERROR_CODE);
108 expect(error.message).assertEqual(CommonConstants.PARAMETER_ERROR_MSG);
147 } catch (error) {
148 console.info(error);
190 } catch (error) {
191 console.info(error);
192 expect(error.code).assertEqual(CommonConstants.PARAMETER_ERROR_CODE);
193 expect(error.message).assertEqual(CommonConstants.PARAMETER_ERROR_MSG);
[all …]
/base/theme/screenlock_mgr/frameworks/js/napi/test/unittest/src/
DScreenlock.test.js59 } catch (error) {
60 console.error(`SUB_MISC_THEME_screenLock_API_0001: ${error.code}, ${error.message}`);
78 } catch (error) {
79 console.error(`SUB_MISC_THEME_screenLock_API_0002: ${error.code}, ${error.message}`);
104 } catch (error) {
105 console.error(`SUB_MISC_THEME_screenLock_API_0003: ${error.code}, ${error.message}`);
125 console.error(`SUB_MISC_THEME_screenLock_API_0004: ${err.code}, ${err.message}`);
129 } catch (error) {
130 console.error(`SUB_MISC_THEME_screenLock_API_0004: ${error.code}, ${error.message}`);
145 … console.error(`SUB_MISC_THEME_screenLock_API_0005: ${err.code}, ${err.message}`);
[all …]
/base/telephony/call_manager/frameworks/native/src/
Dcall_manager_service_proxy.cpp37 int32_t error = SendRequest(INTERFACE_REGISTER_CALLBACK, dataParcel, replyParcel); in RegisterCallBack() local
38 if (error != TELEPHONY_SUCCESS) { in RegisterCallBack()
39 TELEPHONY_LOGE("Function RegisterCallBack! errCode:%{public}d", error); in RegisterCallBack()
40 return error; in RegisterCallBack()
52 int32_t error = SendRequest(INTERFACE_OBSERVER_ON_CALL_DETAILS_CHANGE); in ObserverOnCallDetailsChange() local
53 if (error != ERR_NONE) { in ObserverOnCallDetailsChange()
54 TELEPHONY_LOGE("function ObserverOnCallDetailsChange failed! errCode:%{public}d", error); in ObserverOnCallDetailsChange()
78 int32_t error = SendRequest(INTERFACE_DIAL_CALL, dataParcel, replyParcel); in DialCall() local
79 if (error != TELEPHONY_SUCCESS) { in DialCall()
80 TELEPHONY_LOGE("function DialCall call failed! errCode:%{public}d", error); in DialCall()
[all …]
Dcall_status_callback_proxy.cpp34 int32_t error = TELEPHONY_ERR_FAIL; in UpdateCallReportInfo() local
59error = Remote()->SendRequest(static_cast<int32_t>(UPDATE_CALL_INFO), dataParcel, replyParcel, opt… in UpdateCallReportInfo()
60 if (error != TELEPHONY_SUCCESS) { in UpdateCallReportInfo()
71 int32_t error = TELEPHONY_ERR_FAIL; in UpdateCallsReportInfo() local
100error = Remote()->SendRequest(static_cast<int32_t>(UPDATE_CALLS_INFO), dataParcel, replyParcel, op… in UpdateCallsReportInfo()
101 if (error != TELEPHONY_SUCCESS) { in UpdateCallsReportInfo()
112 int32_t error = TELEPHONY_ERR_FAIL; in UpdateDisconnectedCause() local
127error = Remote()->SendRequest(static_cast<int32_t>(UPDATE_DISCONNECTED_CAUSE), dataParcel, replyPa… in UpdateDisconnectedCause()
128 if (error != TELEPHONY_SUCCESS) { in UpdateDisconnectedCause()
139 int32_t error = TELEPHONY_ERR_FAIL; in UpdateEventResultInfo() local
[all …]
Dcellular_call_proxy.cpp43 …int32_t error = remote->SendRequest(static_cast<uint32_t>(CellularCallInterfaceCode::DIAL), in, ou… in Dial() local
44 if (error == ERR_NONE) { in Dial()
47 return error; in Dial()
72 …int32_t error = remote->SendRequest(static_cast<uint32_t>(CellularCallInterfaceCode::HANG_UP), in,… in HangUp() local
73 if (error == ERR_NONE) { in HangUp()
76 return error; in HangUp()
98 …int32_t error = remote->SendRequest(static_cast<uint32_t>(CellularCallInterfaceCode::REJECT), in, … in Reject() local
99 if (error == ERR_NONE) { in Reject()
102 return error; in Reject()
124 …int32_t error = remote->SendRequest(static_cast<uint32_t>(CellularCallInterfaceCode::ANSWER), in, … in Answer() local
[all …]
Dvoip_call_manager_proxy.cpp50 int32_t error = in ReportIncomingCall() local
52 if (error != TELEPHONY_SUCCESS) { in ReportIncomingCall()
53 TELEPHONY_LOGE("function ReportIncomingCall call failed! errCode:%{public}d", error); in ReportIncomingCall()
77 int32_t error = remote->SendRequest( in ReportIncomingCallError() local
79 if (error != TELEPHONY_SUCCESS) { in ReportIncomingCallError()
80 TELEPHONY_LOGE("function ReportIncomingCallError call failed! errCode:%{public}d", error); in ReportIncomingCallError()
102 int32_t error = in ReportCallStateChange() local
104 if (error != TELEPHONY_SUCCESS) { in ReportCallStateChange()
105 TELEPHONY_LOGE("function ReportCallStateChange call failed! errCode:%{public}d", error); in ReportCallStateChange()
126 int32_t error = in RegisterCallBack() local
[all …]
/base/sensors/miscdevice/test/unittest/vibrator/js/
DExampleJsunit.test.js75 function vibrateCallback(error) { argument
76 if (error) {
98 function vibrateCallback(error) { argument
99 if (error) {
121 function vibrateCallback(error) { argument
122 if (error) {
144 function vibrateCallback(error) { argument
145 if (error) {
167 function vibrateCallback(error) { argument
168 if (error) {
[all …]
/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_js/
DWallpaper.test.js93 } catch (error) {
94 console.info(`getBundleInfo error ${error.code}`);
113 } catch (error) {
114 console.info(`getColorsSyncTest001 error ${error}`);
133 } catch (error) {
134 console.info(`getColorsSyncTest002 error : ${error}`);
150 } catch (error) {
151 console.info(`getColorsSyncTest003 error : ${error}`);
152 expect(error.code === PARAMETER_ERROR).assertTrue()
167 } catch (error) {
[all …]
/base/telephony/cellular_data/frameworks/native/
Dcellular_data_service_proxy.cpp37 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::IS_CELLULAR_DATA_ENABLE… in IsCellularDataEnabled() local
39 if (error != TELEPHONY_SUCCESS) { in IsCellularDataEnabled()
40 TELEPHONY_LOGE("call failed! errCode:%{public}d", error); in IsCellularDataEnabled()
62 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::ENABLE_CELLULAR_DATA, d… in EnableCellularData() local
64 if (error != TELEPHONY_SUCCESS) { in EnableCellularData()
65 TELEPHONY_LOGE("call failed! errCode:%{public}d", error); in EnableCellularData()
83 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::ENABLE_INTELLIGENCE_SWI… in EnableIntelligenceSwitch() local
85 if (error != TELEPHONY_SUCCESS) { in EnableIntelligenceSwitch()
86 TELEPHONY_LOGE("call failed! errCode:%{public}d", error); in EnableIntelligenceSwitch()
103 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::GET_CELLULAR_DATA_STATE… in GetCellularDataState() local
[all …]
/base/print/print_fwk/services/print_service/src/
Dprint_callback_proxy.cpp31 int error = Remote()->SendRequest(PRINT_CALLBACK_TASK, data, reply, option); in OnCallback() local
32 if (error != 0) { in OnCallback()
33 PRINT_HILOGE("SendRequest failed, error %{public}d", error); in OnCallback()
52 int error = Remote()->SendRequest(PRINT_CALLBACK_PRINTER, data, reply, option); in OnCallback() local
53 if (error != 0) { in OnCallback()
54 PRINT_HILOGE("SendRequest failed, error %{public}d", error); in OnCallback()
73 int error = Remote()->SendRequest(PRINT_CALLBACK_PRINT_JOB, data, reply, option); in OnCallback() local
74 if (error != 0) { in OnCallback()
75 PRINT_HILOGE("SendRequest failed, error %{public}d", error); in OnCallback()
93 int error = Remote()->SendRequest(PRINT_CALLBACK_EXTINFO, data, reply, option); in OnCallback() local
[all …]
Dprint_extension_callback_proxy.cpp33 int error = Remote()->SendRequest(PRINT_EXTCB, data, reply, option); in OnCallback() local
34 if (error != 0) { in OnCallback()
35 PRINT_HILOGE("SendRequest failed, error %{public}d", error); in OnCallback()
52 int error = Remote()->SendRequest(PRINT_EXTCB_PRINTER, data, reply, option); in OnCallback() local
53 if (error != 0) { in OnCallback()
54 PRINT_HILOGE("SendRequest failed, error %{public}d", error); in OnCallback()
70 int error = Remote()->SendRequest(PRINT_EXTCB_PRINTJOB, data, reply, option); in OnCallback() local
71 if (error != 0) { in OnCallback()
72 PRINT_HILOGE("SendRequest failed, error %{public}d", error); in OnCallback()
88 int error = Remote()->SendRequest(PRINT_EXTCB_PRINTCAPABILITY, data, reply, option); in OnCallback() local
[all …]
/base/security/access_token/services/privacymanager/src/sensitive/camera_manager/
Dcamera_manager_privacy_proxy.cpp47 …int32_t error = Remote()->SendRequest(static_cast<uint32_t>(CAMERA_SERVICE_SET_MUTE_CALLBACK), dat… in SetMuteCallback() local
48 if (error != ERR_NONE) { in SetMuteCallback()
49 ACCESSTOKEN_LOG_ERROR(LABEL, "SendRequest failed, error: %{public}d", error); in SetMuteCallback()
51 return error; in SetMuteCallback()
67 …int32_t error = Remote()->SendRequest(static_cast<uint32_t>(CAMERA_SERVICE_MUTE_CAMERA), data, rep… in MuteCamera() local
68 if (error != ERR_NONE) { in MuteCamera()
69 ACCESSTOKEN_LOG_ERROR(LABEL, "SendRequest failed, error: %{public}d", error); in MuteCamera()
72 error = reply.ReadInt32(); in MuteCamera()
73 ACCESSTOKEN_LOG_DEBUG(LABEL, "MuteCamera Read muteMode is %{public}d", error); in MuteCamera()
74 return error; in MuteCamera()
[all …]
/base/sensors/miscdevice/
DREADME_zh.md154 }, (error) => {
155 if (error) {
156 … console.error('vibrate fail, error.code: ' + error.code + 'error.message: ', + error.message);
161 } catch (error) {
162 console.error('errCode: ' + error.code + ' ,msg: ' + error.message);
168 }, (error)=>{
169 console.log("stopVibration error:" + JSON.stringify(error));
171 } catch (error) {
172 console.error('Exception in, error:' + JSON.stringify(error));
184 }).catch((error)=>{
[all …]
/base/telephony/core_service/frameworks/native/src/
Di_network_search_callback_stub.cpp74 int32_t error = data.ReadInt32(); in OnSetNetworkModeCallback() local
75 OnSetNetworkModeCallback(result, error); in OnSetNetworkModeCallback()
81 int32_t error = data.ReadInt32(); in OnGetNetworkModeCallback() local
82 OnGetNetworkModeCallback(selectionMode, error); in OnGetNetworkModeCallback()
88 int32_t error = data.ReadInt32(); in OnSetRadioStateCallback() local
89 OnSetRadioStateCallback(result, error); in OnSetRadioStateCallback()
95 int32_t error = data.ReadInt32(); in OnGetRadioStateCallback() local
96 OnGetRadioStateCallback(result, error); in OnGetRadioStateCallback()
102 int32_t error = data.ReadInt32(); in OnGetNetworkSearchInformation() local
103 OnGetNetworkSearchInformation(callback, error); in OnGetNetworkSearchInformation()
[all …]
/base/security/access_token/services/privacymanager/src/sensitive/audio_manager/
Daudio_manager_privacy_proxy.cpp38 int32_t error = Remote()->SendRequest(static_cast<uint32_t>( in IsMicrophoneMute() local
40 if (error != ERR_NONE) { in IsMicrophoneMute()
41 ACCESSTOKEN_LOG_ERROR(LABEL, "IsMicrophoneMute failed, error: %{public}d", error); in IsMicrophoneMute()
57 int32_t error = Remote()->SendRequest(static_cast<uint32_t>( in SetMicrophoneMute() local
59 if (error != ERR_NONE) { in SetMicrophoneMute()
60 ACCESSTOKEN_LOG_ERROR(LABEL, "set microphoneMute failed, error: %d", error); in SetMicrophoneMute()
61 return error; in SetMicrophoneMute()
76 int error = Remote()->SendRequest(static_cast<uint32_t>( in SetMicStateChangeCallback() local
78 if (error != ERR_NONE) { in SetMicStateChangeCallback()
79 ACCESSTOKEN_LOG_ERROR(LABEL, "SetMicStateChangeCallback failed, error: %{public}d", error); in SetMicStateChangeCallback()
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/
Dfaultlog_info_ohos.cpp74 goto error; in Unmarshalling()
78 goto error; in Unmarshalling()
82 goto error; in Unmarshalling()
86 goto error; in Unmarshalling()
91 goto error; in Unmarshalling()
96 goto error; in Unmarshalling()
101 goto error; in Unmarshalling()
106 goto error; in Unmarshalling()
111 goto error; in Unmarshalling()
115 goto error; in Unmarshalling()
[all …]
/base/usb/usb_manager/test/native/js_unittest/
DUsbPortJsunitEx.test.js78 }).catch(error => {
79 console.info('usb case setPortRoles error : ' + error);
80 expect(error).assertFalse();
101 }).catch(error => {
102 console.info('usb case setPortRoles error : ' + error);
103 expect(error).assertFalse();
124 }).catch(error => {
125 console.info('usb case setPortRoles error : ' + error);
126 expect(error).assertFalse();
147 }).catch(error => {
[all …]
/base/inputmethod/imf/test/unittest/napi_test/src/
DInputMethodWithAttachTest.js143 }).catch((error) => {
144 … console.info(`inputmethod_with_attach_test_showTextInput_002 result: ${JSON.stringify(error)}`);
186 }).catch((error) => {
187 … console.info(`inputmethod_with_attach_test_hideTextInput_002 result: ${JSON.stringify(error)}`);
216 } catch (error) {
217 …console.info(`inputmethod_with_attach_test_setCallingWindow_001 result: ${JSON.stringify(error)}`);
240 }).catch((error) => {
241 …console.info(`inputmethod_with_attach_test_setCallingWindow_002 result: ${JSON.stringify(error)}`);
245 } catch (error) {
246 …console.info(`inputmethod_with_attach_test_setCallingWindow_002 result: ${JSON.stringify(error)}`);
[all …]
/base/location/services/location_locator/locator/source/
Dgeo_convert_proxy.cpp35 int error = ERRCODE_SERVICE_UNAVAILABLE; in GetAddressByCoordinate() local
42error = SendMsgWithDataReply(static_cast<int>(GeoConvertInterfaceCode::GET_FROM_COORDINATE), data,… in GetAddressByCoordinate()
44 return error; in GetAddressByCoordinate()
49 int error = ERRCODE_SERVICE_UNAVAILABLE; in GetAddressByLocationName() local
56error = SendMsgWithDataReply(static_cast<int>(GeoConvertInterfaceCode::GET_FROM_LOCATION_NAME_BY_B… in GetAddressByLocationName()
60 return error; in GetAddressByLocationName()
65 int error = ERRCODE_SERVICE_UNAVAILABLE; in SendSimpleMsg() local
73 error = SendMsgWithDataReply(msgId, data, reply); in SendSimpleMsg()
74 return error; in SendSimpleMsg()
79 int error = ERRCODE_SERVICE_UNAVAILABLE; in SendMsgWithDataReply() local
[all …]
/base/telephony/call_manager/services/telephony_interaction/src/
Dcall_status_callback_stub.cpp303 int32_t error = TELEPHONY_ERR_FAIL; in OnUpdateSetRestrictionResult() local
309 error = UpdateSetRestrictionResult(result); in OnUpdateSetRestrictionResult()
310 if (!reply.WriteInt32(error)) { in OnUpdateSetRestrictionResult()
319 int32_t error = TELEPHONY_ERR_FAIL; in OnUpdateSetRestrictionPasswordResult() local
325 error = UpdateSetRestrictionPasswordResult(result); in OnUpdateSetRestrictionPasswordResult()
326 if (!reply.WriteInt32(error)) { in OnUpdateSetRestrictionPasswordResult()
359 int32_t error = TELEPHONY_ERR_FAIL; in OnUpdateSetTransferResult() local
365 error = UpdateSetTransferResult(result); in OnUpdateSetTransferResult()
366 if (!reply.WriteInt32(error)) { in OnUpdateSetTransferResult()
423 int32_t error = TELEPHONY_ERR_FAIL; in OnUpdateSetCallClirResult() local
[all …]
/base/location/frameworks/native/source/
Dlocator_proxy.cpp47 int error = SendMsgWithReply(static_cast<int>(LocatorInterfaceCode::GET_SWITCH_STATE), reply); in GetSwitchState() local
48 LBSLOGD(LOCATOR_STANDARD, "Proxy::GetSwitchState Transact ErrCode = %{public}d", error); in GetSwitchState()
50 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in GetSwitchState()
65 …int error = SendMsgWithDataReply(static_cast<int>(LocatorInterfaceCode::ENABLE_ABILITY), data, rep… in EnableAbility() local
66 LBSLOGD(LOCATOR_STANDARD, "Proxy::EnableAbility Transact ErrCodes = %{public}d", error); in EnableAbility()
77 int error; in SendMsgWithDataReply() local
85 error = remote->SendRequest(msgId, data, reply, option); in SendMsgWithDataReply()
87 return error; in SendMsgWithDataReply()
131 int error = in RegisterSwitchCallback() local
133 … LBSLOGD(LOCATOR_STANDARD, "Proxy::RegisterSwitchCallback Transact ErrCodes = %{public}d", error); in RegisterSwitchCallback()
[all …]

12345678910>>...20