| /base/sensors/sensor/interfaces/plugin/test/unittest/barometer/ |
| D | ExampleJsunit.test.js | 72 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(PARAMETER_ERROR_CODE); 93 expect(error.message).assertEqual(PARAMETER_ERROR_MSG); 107 sensor.getSingleSensor(sensor.SensorId.BAROMETER, (error, data) => { [all …]
|
| /base/sensors/sensor/interfaces/plugin/test/unittest/gyroscope/ |
| D | ExampleJsunit.test.js | 76 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(PARAMETER_ERROR_CODE); 97 expect(error.message).assertEqual(PARAMETER_ERROR_MSG); 111 sensor.getSingleSensor(sensor.SensorId.GYROSCOPE, (error, data) => { [all …]
|
| /base/sensors/sensor/interfaces/plugin/test/unittest/sar/ |
| D | ExampleJsunit.test.js | 72 sensor.getSingleSensor(sensor.SensorId.SAR, (error, data) => { 73 if (error) { 74 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message); 84 } catch (error) { 85 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message); 90 } catch (error) { 91 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message); 92 expect(error.code).assertEqual(PARAMETER_ERROR_CODE); 93 expect(error.message).assertEqual(PARAMETER_ERROR_MSG); 107 sensor.getSingleSensor(sensor.SensorId.SAR, (error, data) => { [all …]
|
| /base/sensors/sensor/interfaces/plugin/test/unittest/color/ |
| D | ExampleJsunit.test.js | 74 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(PARAMETER_ERROR_CODE); 95 expect(error.message).assertEqual(PARAMETER_ERROR_MSG); 109 sensor.getSingleSensor(sensor.SensorId.COLOR, (error, data) => { [all …]
|
| /base/theme/screenlock_mgr/frameworks/js/napi/test/unittest/src/ |
| D | Screenlock.test.js | 57 } catch (error) { 58 console.error(`SUB_MISC_THEME_screenLock_API_0001: ${error.code}, ${error.message}`); 75 } catch (error) { 76 console.error(`SUB_MISC_THEME_screenLock_API_0002: ${error.code}, ${error.message}`); 100 } catch (error) { 101 console.error(`SUB_MISC_THEME_screenLock_API_0003: ${error.code}, ${error.message}`); 120 console.error(`SUB_MISC_THEME_screenLock_API_0004: ${err.code}, ${err.message}`); 124 } catch (error) { 125 console.error(`SUB_MISC_THEME_screenLock_API_0004: ${error.code}, ${error.message}`); 139 … console.error(`SUB_MISC_THEME_screenLock_API_0005: ${err.code}, ${err.message}`); [all …]
|
| /base/sensors/miscdevice/interfaces/plugin/vibrator/test/unittest/ |
| D | ExampleJsunit.test.js | 73 function vibrateCallback(error) { argument 74 if (error) { 95 function vibrateCallback(error) { argument 96 if (error) { 117 function vibrateCallback(error) { argument 118 if (error) { 139 function vibrateCallback(error) { argument 140 if (error) { 161 function vibrateCallback(error) { argument 162 if (error) { [all …]
|
| /base/telephony/call_manager/frameworks/native/src/ |
| D | bluetooth_call_proxy.cpp | 43 …int32_t error = Remote()->SendRequest(static_cast<int32_t>(BluetoothCallInterfaceCode::INTERFACE_B… in AnswerCall() local 45 if (error != TELEPHONY_SUCCESS) { in AnswerCall() 46 TELEPHONY_LOGE("function AnswerCall call failed! errCode:%{public}d", error); in AnswerCall() 47 return error; in AnswerCall() 65 …int32_t error = Remote()->SendRequest(static_cast<int32_t>(BluetoothCallInterfaceCode::INTERFACE_B… in RejectCall() local 67 if (error != TELEPHONY_SUCCESS) { in RejectCall() 68 TELEPHONY_LOGE("function RejectCall call failed! errCode:%{public}d", error); in RejectCall() 69 return error; in RejectCall() 87 int32_t error = Remote()->SendRequest( in HangUpCall() local 90 if (error != TELEPHONY_SUCCESS) { in HangUpCall() [all …]
|
| D | call_manager_service_proxy.cpp | 43 … int32_t error = remote->SendRequest(INTERFACE_REGISTER_CALLBACK, dataParcel, replyParcel, option); in RegisterCallBack() local 44 if (error != TELEPHONY_SUCCESS) { in RegisterCallBack() 45 TELEPHONY_LOGE("Function RegisterCallBack! errCode:%{public}d", error); in RegisterCallBack() 46 return error; in RegisterCallBack() 65 …int32_t error = remote->SendRequest(INTERFACE_UNREGISTER_CALLBACK, dataParcel, replyParcel, option… in UnRegisterCallBack() local 66 if (error != TELEPHONY_SUCCESS) { in UnRegisterCallBack() 67 TELEPHONY_LOGE("Function RegisterCallBack! errCode:%{public}d", error); in UnRegisterCallBack() 97 int32_t error = remote->SendRequest(INTERFACE_DIAL_CALL, dataParcel, replyParcel, option); in DialCall() local 98 if (error != TELEPHONY_SUCCESS) { in DialCall() 99 TELEPHONY_LOGE("function DialCall call failed! errCode:%{public}d", error); in DialCall() [all …]
|
| D | call_status_callback_proxy.cpp | 35 int32_t error = TELEPHONY_ERR_FAIL; in UpdateCallReportInfo() local 45 …error = Remote()->SendRequest(static_cast<int32_t>(UPDATE_CALL_INFO), dataParcel, replyParcel, opt… in UpdateCallReportInfo() 46 if (error != TELEPHONY_SUCCESS) { in UpdateCallReportInfo() 58 int32_t error = TELEPHONY_ERR_FAIL; in UpdateCallsReportInfo() local 71 …error = Remote()->SendRequest(static_cast<int32_t>(UPDATE_CALLS_INFO), dataParcel, replyParcel, op… in UpdateCallsReportInfo() 72 if (error != TELEPHONY_SUCCESS) { in UpdateCallsReportInfo() 83 int32_t error = TELEPHONY_ERR_FAIL; in UpdateDisconnectedCause() local 98 …error = Remote()->SendRequest(static_cast<int32_t>(UPDATE_DISCONNECTED_CAUSE), dataParcel, replyPa… in UpdateDisconnectedCause() 99 if (error != TELEPHONY_SUCCESS) { in UpdateDisconnectedCause() 110 int32_t error = TELEPHONY_ERR_FAIL; in UpdateEventResultInfo() local [all …]
|
| D | cellular_call_proxy.cpp | 43 …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 …]
|
| /base/telephony/cellular_data/frameworks/native/ |
| D | cellular_data_service_proxy.cpp | 36 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::IS_CELLULAR_DATA_ENABLE… in IsCellularDataEnabled() local 38 if (error != TELEPHONY_SUCCESS) { in IsCellularDataEnabled() 39 TELEPHONY_LOGE("function IsCellularDataEnabled call failed! errCode:%{public}d", error); in IsCellularDataEnabled() 61 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::ENABLE_CELLULAR_DATA, d… in EnableCellularData() local 63 if (error != TELEPHONY_SUCCESS) { in EnableCellularData() 64 TELEPHONY_LOGE("function EnableCellularData call failed! errCode:%{public}d", error); in EnableCellularData() 81 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::GET_CELLULAR_DATA_STATE… in GetCellularDataState() local 83 if (error != TELEPHONY_SUCCESS) { in GetCellularDataState() 84 TELEPHONY_LOGE("function GetCellularDataState call failed! errCode:%{public}d", error); in GetCellularDataState() 102 …int32_t error = Remote()->SendRequest((uint32_t)CellularDataInterfaceCode::IS_DATA_ROAMING_ENABLED… in IsCellularDataRoamingEnabled() local [all …]
|
| /base/msdp/device_status/rust/frameworks/client/src/ |
| D | lib.rs | 34 use hilog_rust::{ error, info, hilog, HiLogLabel, LogType }; 57 error!(LOG_LABEL, "Fail dereferencing mutable FusionFrameworks instance"); in fusion_alloc_socket_fd() 64 error!(LOG_LABEL, "program_name is null"); in fusion_alloc_socket_fd() 75 error!(LOG_LABEL, "Fail parsing AllocSocketPairParam"); in fusion_alloc_socket_fd() 89 error!(LOG_LABEL, "alloc_socket_pair() fail"); in fusion_alloc_socket_fd() 95 error!(LOG_LABEL, "Fail dereferencing FusionFrameworks instance"); in fusion_alloc_socket_fd() 113 error!(LOG_LABEL, "Can not dereference mutable FusionFrameworks instance"); in fusion_start_drag() 127 error!(LOG_LABEL, "Error happened when starting drag"); in fusion_start_drag() 133 error!(LOG_LABEL, "Can not dereference FusionFrameworks instance"); in fusion_start_drag() 153 error!(LOG_LABEL, "Fail to register coordination listener: {}", @public(err)); in fusion_register_coordination_listener() [all …]
|
| /base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_js/ |
| D | Wallpaper.test.js | 92 } catch (error) { 93 console.info(`getBundleInfo error ${error.code}`); 112 } catch (error) { 113 console.info(`getColorsSyncTest001 error ${error}`); 132 } catch (error) { 133 console.info(`getColorsSyncTest002 error : ${error}`); 149 } catch (error) { 150 console.info(`getColorsSyncTest003 error : ${error}`); 151 expect(error.code === PARAMETER_ERROR).assertTrue() 166 } catch (error) { [all …]
|
| /base/security/access_token/services/privacymanager/src/sensitive/camera_manager/ |
| D | camera_manager_privacy_proxy.cpp | 47 …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/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/ |
| D | faultlog_info_ohos.cpp | 79 goto error; in Unmarshalling() 83 goto error; in Unmarshalling() 87 goto error; in Unmarshalling() 91 goto error; in Unmarshalling() 95 goto error; in Unmarshalling() 99 goto error; in Unmarshalling() 103 goto error; in Unmarshalling() 107 goto error; in Unmarshalling() 111 goto error; in Unmarshalling() 115 goto error; in Unmarshalling() [all …]
|
| /base/security/access_token/services/privacymanager/src/sensitive/audio_manager/ |
| D | audio_manager_privacy_proxy.cpp | 36 …int32_t error = Remote()->SendRequest(PrivacyAudioPolicyInterfaceCode::IS_MICROPHONE_MUTE, data, r… in IsMicrophoneMute() local 37 if (error != ERR_NONE) { in IsMicrophoneMute() 38 ACCESSTOKEN_LOG_ERROR(LABEL, "IsMicrophoneMute failed, error: %{public}d", error); in IsMicrophoneMute() 54 …int32_t error = Remote()->SendRequest(PrivacyAudioPolicyInterfaceCode::SET_MICROPHONE_MUTE, data, … in SetMicrophoneMute() local 55 if (error != ERR_NONE) { in SetMicrophoneMute() 56 ACCESSTOKEN_LOG_ERROR(LABEL, "set microphoneMute failed, error: %d", error); in SetMicrophoneMute() 57 return error; in SetMicrophoneMute() 73 int error = Remote()->SendRequest( in SetMicStateChangeCallback() local 75 if (error != ERR_NONE) { in SetMicStateChangeCallback() 76 ACCESSTOKEN_LOG_ERROR(LABEL, "SetMicStateChangeCallback failed, error: %{public}d", error); in SetMicStateChangeCallback() [all …]
|
| /base/print/print_fwk/services/src/ |
| D | print_callback_proxy.cpp | 31 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 …]
|
| D | print_extension_callback_proxy.cpp | 33 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/telephony/core_service/frameworks/native/src/ |
| D | i_network_search_callback_stub.cpp | 74 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/sensors/miscdevice/ |
| D | README_zh.md | 154 }, (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/sensors/sensor/interfaces/plugin/test/unittest/sensor/ |
| D | ExampleJsunit.test.js | 94 } catch (error) { 95 console.info(error); 96 expect(error.code).assertEqual(PARAMETER_ERROR_CODE); 97 expect(error.message).assertEqual(PARAMETER_ERROR_MSG); 134 } catch (error) { 135 console.info(error); 175 } catch (error) { 176 console.info(error); 177 expect(error.code).assertEqual(PARAMETER_ERROR_CODE); 178 expect(error.message).assertEqual(PARAMETER_ERROR_MSG); [all …]
|
| /base/usb/usb_manager/test/native/js_unittest/ |
| D | UsbPortJsunitEx.test.js | 78 }).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/location/services/location_locator/locator/source/ |
| D | geo_convert_proxy.cpp | 35 int error = ERRCODE_SERVICE_UNAVAILABLE; in GetAddressByCoordinate() local 42 …error = 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 56 …error = 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/account/os_account/services/accountmgr/src/ability_manager_adapter/ |
| D | ability_manager_adapter.cpp | 62 int error; in DisconnectAbility() local 79 error = abms->SendRequest( in DisconnectAbility() 81 if (error != NO_ERROR) { in DisconnectAbility() 82 ACCOUNT_LOGE("Send request error: %{public}d", error); in DisconnectAbility() 83 return error; in DisconnectAbility() 124 int error; in StartUser() local 138 …error = abms->SendRequest(static_cast<uint32_t>(AbilityManagerInterfaceCode::START_USER), data, re… in StartUser() 139 if (error != NO_ERROR) { in StartUser() 140 ACCOUNT_LOGE("StartUser:SendRequest error: %{public}d", error); in StartUser() 141 return error; in StartUser() [all …]
|
| /base/security/access_token/services/privacymanager/src/sensitive/app_manager/ |
| D | app_manager_privacy_proxy.cpp | 46 int32_t error = Remote()->SendRequest( in RegisterApplicationStateObserver() local 48 if (error != ERR_NONE) { in RegisterApplicationStateObserver() 49 ACCESSTOKEN_LOG_ERROR(LABEL, "RegisterAppStatus failed, error: %{public}d", error); in RegisterApplicationStateObserver() 69 int32_t error = Remote()->SendRequest( in UnregisterApplicationStateObserver() local 71 if (error != ERR_NONE) { in UnregisterApplicationStateObserver() 72 ACCESSTOKEN_LOG_ERROR(LABEL, "set microphoneMute failed, error: %d", error); in UnregisterApplicationStateObserver() 73 return error; in UnregisterApplicationStateObserver() 87 int32_t error = Remote()->SendRequest( in GetForegroundApplications() local 89 if (error != ERR_NONE) { in GetForegroundApplications() 90 ACCESSTOKEN_LOG_ERROR(LABEL, "GetForegroundApplications failed, error: %{public}d", error); in GetForegroundApplications() [all …]
|