Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 152) sorted by relevance

1234567

/base/hiviewdfx/hisysevent/test/unittest/common/napi/
Dnapi_hisysevent.test.js72 }, (err, val) => {
73 if (err) {
74 … console.error('in hiSysEventJsUnitTest001 test callback: err.code = ' + err.code)
83 } catch (err) {
84 … console.error(`hiSysEventJsUnitTest001 > error code: ${err.code}, error msg: ${err.message}`)
118 (err) => {
119 … console.error('in hiSysEventJsUnitTest002 test callback: err.code = ' + err.code)
125 } catch (err) {
126 … console.error(`hiSysEventJsUnitTest002 > error code: ${err.code}, error msg: ${err.message}`)
157 } catch (err) {
[all …]
/base/telephony/ril_adapter/services/vendor/src/
Dat_sms.c70 int32_t *err, ResponseInfo *responseInfo) in HandlerSmsResult() argument
72 if (reportInfo == NULL || err == NULL) { in HandlerSmsResult()
76 *err = HRIL_ERR_GENERIC_FAILURE; in HandlerSmsResult()
80 NextInt(&pLine, err); in HandlerSmsResult()
82 if (*err == -1) { in HandlerSmsResult()
83 *err = HRIL_ERR_INVALID_RESPONSE; in HandlerSmsResult()
85 *reportInfo = CreateReportInfo(requestInfo, *err, HRIL_RESPONSE, 0); in HandlerSmsResult()
90 static void HandleResult(int32_t *err, char *result, const ResponseInfo *responseInfo, HRilSmsRespo… in HandleResult() argument
92 if (response == NULL || err == NULL || responseInfo == NULL) { in HandleResult()
99 *err = NextInt(&result, &response->msgRef); in HandleResult()
[all …]
Dat_call.c37 static void OnCallReportErrorMessages(const ReqDataInfo *requestInfo, uint32_t err, ResponseInfo *p… in OnCallReportErrorMessages() argument
41 errorNo = (err != HRIL_ERR_SUCCESS) ? err : errInfo.errorNo; in OnCallReportErrorMessages()
121 int32_t err = HRIL_ERR_SUCCESS; in ReportCallStateUpdated() local
130 err = HRIL_ERR_INVALID_MODEM_PARAMETER; in ReportCallStateUpdated()
133 err = HRIL_ERR_INVALID_MODEM_PARAMETER; in ReportCallStateUpdated()
136 err = HRIL_ERR_INVALID_MODEM_PARAMETER; in ReportCallStateUpdated()
139 err = HRIL_ERR_INVALID_MODEM_PARAMETER; in ReportCallStateUpdated()
142 …struct ReportInfo reportInfo = CreateReportInfo(&requestInfo, err, HRIL_NOTIFICATION, HNOTI_CALL_S… in ReportCallStateUpdated()
149 int32_t err = HRIL_ERR_SUCCESS; in ReportSrvccStatusUpdate() local
156 err = HRIL_ERR_INVALID_MODEM_PARAMETER; in ReportSrvccStatusUpdate()
[all …]
Dat_support.c221 int32_t err; in SendCommandLock() local
230 err = SendCommandNoLock(atCmd, timeout, outResponse); in SendCommandLock()
231 if (err != 0) { in SendCommandLock()
232 TELEPHONY_LOGI("NeedATPause err = %{public}d", err); in SendCommandLock()
241 err = SendCommandNoLock(command, timeout, outResponse); in SendCommandLock()
243 TELEPHONY_LOGI("err = %{public}d", err); in SendCommandLock()
245 if (err == AT_ERR_TIMEOUT && g_onTimeout != NULL) { in SendCommandLock()
247 } else if (err == AT_ERR_GENERIC) { in SendCommandLock()
248 TELEPHONY_LOGI("OnReaderClosed() err = %{public}d", err); in SendCommandLock()
251 return err; in SendCommandLock()
[all …]
/base/theme/wallpaper_mgr/interfaces/kits/napi/test/unittest/src/wallpaper_js/
DWallpaper.test.js44 wallpaper.restore(WALLPAPER_SYSTEM, function (err, data) { argument
45 if (err) {
46 console.info(`restore WALLPAPER_SYSTEM err ${err}`)
51 wallpaper.restore(WALLPAPER_LOCKSCREEN, function (err, data) { argument
52 if (err) {
53 console.info(`restore WALLPAPER_LOCKSCREEN err ${err}`)
64 imagePackerApi.packing(pixelMap, packOpts, (err, data) => {
65 if (err) {
66 console.info(`packing error: ${err}`)
196 wallpaper.restore(WALLPAPER_SYSTEM, function (err, data) { argument
[all …]
/base/request/request/test/unittest/common/napi/requestTest/
DRequestJsunit.test.js66 request.download(downloadConfig, (err, data)=>{
82 }catch(err){
83 … console.error("====>SUB_REQUEST_DOWNLOAD_API_PROMISE_0001 throw_error: " + err);
87 }catch(err){
88 console.error("====>SUB_REQUEST_DOWNLOAD_API_PROMISE_0001 error: " + err);
117 request.download(downloadConfig, (err, data)=>{
126 }catch(err){
127 … console.error("====>SUB_REQUEST_DOWNLOAD_API_DOWNLOADTASK_ON_0002 throw_error: " + err);
131 }catch(err){
132 console.error("====>SUB_REQUEST_DOWNLOAD_API_DOWNLOADTASK_ON_0002 error: " + err);
[all …]
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Dwallpaper_extension_context.cpp30 …ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUE… in StartAbility() local
31 HILOG_DEBUG("%{public}s. End calling StartAbility. ret=%{public}d", __func__, err); in StartAbility()
32 if (err != ERR_OK) { in StartAbility()
33 HILOG_ERROR("WallpaperContext::StartAbility is failed %{public}d", err); in StartAbility()
35 return err; in StartAbility()
41 … ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, startOptions, token_, in StartAbility() local
43 HILOG_DEBUG("%{public}s. End calling StartAbility. ret=%{public}d", __func__, err); in StartAbility()
44 if (err != ERR_OK) { in StartAbility()
45 HILOG_ERROR("WallpaperContext::StartAbility is failed %{public}d", err); in StartAbility()
47 return err; in StartAbility()
[all …]
/base/inputmethod/imf/frameworks/kits/extension/src/
Dinputmethod_extension_context.cpp31 …ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUE… in StartAbility() local
32 IMSA_HILOGD("%{public}s ret=%{public}d", __func__, err); in StartAbility()
33 if (err != ERR_OK) { in StartAbility()
34 IMSA_HILOGE("InputMethodExtensionContext::StartAbility failed: %{public}d", err); in StartAbility()
36 return err; in StartAbility()
43 ErrCode err = in StartAbility() local
45 IMSA_HILOGD("%{public}s ret=%{public}d", __func__, err); in StartAbility()
46 if (err != ERR_OK) { in StartAbility()
47 IMSA_HILOGE("InputMethodExtensionContext::StartAbility failed: %{public}d", err); in StartAbility()
49 return err; in StartAbility()
[all …]
/base/theme/screenlock_mgr/interfaces/kits/napi/test/unittest/src/
DScreenlock.test.js52 screenLock.isScreenLocked((err, data) => {
70 screenLock.isSecureMode((err, data) => {
88 screenLock.unlock((err, data) => {
89 if (err) {
90 … console.info("unlock filed: error.code : " + err.code + "error.message :" + err.message);
91 expect(err.code === PERMISSION_ERROR).assertTrue();
119 }).catch((err) => {
120 …rror("SUB_MISC_THEME_screenLock_API_0004: error.code : " + err.code + "error.message :" + err.mess…
121 expect(err.code === PERMISSION_ERROR).assertTrue();
137 screenLock.lock((err, data) => {
[all …]
/base/update/updater/test/unittest/updater_ui_test/view/
Dui_view_proxy_unittest.cpp39 std::string err; variable
40 viewproxy.As(err);
41 EXPECT_EQ(err, " view is null");
48 std::string err; variable
49 viewproxy.As(err);
50 EXPECT_EQ(err, "A view is null");
52 err = "";
53 viewproxy.As<Updater::TextLabelAdapter>(err);
54 EXPECT_EQ(err, "A view is null");
63 std::string err {}; variable
[all …]
/base/theme/screenlock_mgr/
DREADME_ZH.md91 }).catch((err) => {
93 console.error(`failed to screenLock.isScreenLocked because ${err.message}`)
97 screenLock.isScreenLocked((err, value) => {
98 if (err) {
100 console.error(`failed to screenLock.isScreenLocked because ${err.message}`);
119 }).catch((err) => {
120 console.error('isSecureMode fail, promise: err->${JSON.stringify(err)}');
124 screenlock.isSecureMode((err, data)=>{
125 if (err) {
126 console.error('isSecureMode callback error -> ${JSON.stringify(err)}');
[all …]
/base/inputmethod/imf/test/js/
DInputMethodTest.test.js29 inputMethodSetting.listInputMethod((err, data) => {
31 expect(err==undefined).assertTrue();
71 }).catch((err) => {
72 console.info('inputmethod_test_listInputMethod_003 listInputMethod err ' + err);
87 inputMethodSetting.displayOptionalInputMethod((err) => {
88 console.info("inputmethod_test_displayOptionalInputMethod_001 err:" + err);
89 expect(err==undefined).assertTrue();
122 }).catch((err) => {
123 … console.info('inputmethod_test_displayOptionalInputMethod_003 listInputMethod err ' + err);
139 inputMethodCtrl.stopInput((err,res) => {
[all …]
/base/time/time_service/framework/js/napi/system_timer/test/unittest/src/
DSystemTimerJsunit.test.js39 systemTimer.createTimer(options, function (err, timerID) { argument
40 if (err) {
44 systemTimer.startTimer("timerID", function (err, data) { argument
48 } catch (err) {
49 expect(err.code).assertEqual(401);
70 systemTimer.createTimer(options, function (err, timerID) { argument
72 systemTimer.startTimer(timerID, 6000, function (err, data) { argument
73 systemTimer.stopTimer("timerID", function (err, data) { argument
79 expect(err.code).assertEqual(401);
100 systemTimer.createTimer(options, function (err, timerID) { argument
[all …]
DSystemTimerUnit.test.js38 systemTimer.createTimer(options, function (err, timerID) { argument
39 if (err) {
47 } catch (err) {
70 systemTimer.createTimer(options, function (err, timerID) { argument
71 if (err) {
103 systemTimer.createTimer(options, function (err, timerID) { argument
104 if (err) {
135 systemTimer.createTimer(options, function (err, timerID) { argument
136 if (err) {
167 systemTimer.createTimer(options, function (err, timerID) { argument
[all …]
/base/time/time_service/framework/js/napi/system_date_time/test/unittest/src/
DSystemDateTimeGets.test.js195 systemDateTime.getCurrentTime("true", function (err) { argument
198 } catch (err) {
199 console.info(err.code);
200 expect(err.code).assertEqual(401);
207 } catch (err) {
208 console.info(err.code);
209 expect(err.code).assertEqual(401);
227 systemDateTime.getRealActiveTime("true", function (err) { argument
230 } catch (err) {
231 console.info(err.code);
[all …]
DSystemDateTimeJsunit.test.js505 }).catch((err) => {
509 }).catch((err) => {
513 } catch (err) {
533 }).catch((err) => {
537 } catch (err) {
559 }).catch((err) => {
563 }).catch((err) => {
567 } catch (err) {
588 }).catch((err) => {
592 }).catch((err) => {
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/test/unittest/
DExampleJsunit.test.js80 } catch(err) {
81 console.info(err);
101 } catch(err) {
102 console.info(err.code);
103 console.info(err.message);
104 expect(err.code == 401).assertTrue();
122 } catch(err) {
123 console.info(err.code);
124 console.info(err.message);
125 expect(err.code == 401).assertTrue();
[all …]
/base/inputmethod/imf/test/unitest/src/
DInputMethodTest.js123 setting.on('imeChange', (err, property, subtype) => {
124 if (err) {
125 console.info("inputmethod_test_on_001 imeChange err:" + err);
149 }).catch( err=> {
150 console.info("inputmethod_test_switchInputMethod_001 err:" + JSON.stringify(err.message))
182 inputMethodSetting.listInputMethod((err, data) => {
183 if (err) {
184 console.error("listInputMethod callback result---err: " + JSON.stringify(err.message));
188 expect(err == undefined).assertTrue();
207 }).catch((err) => {
[all …]
/base/time/time_service/framework/js/napi/system_time/test/unittest/src/
DSystemTimeJsunit.test.js505 }).catch((err) => {
509 }).catch((err) => {
513 } catch (err) {
533 }).catch((err) => {
537 } catch (err) {
559 }).catch((err) => {
563 }).catch((err) => {
567 } catch (err) {
588 }).catch((err) => {
592 }).catch((err) => {
[all …]
DSystemTimeGets.test.js195 systemTime.getCurrentTime("true", function (err, data) { argument
198 } catch (err) {
199 expect(err.code).assertEqual(-1);
206 } catch (err) {
207 expect(err.code).assertEqual(-1);
225 systemTime.getRealActiveTime("true", function (err, data) { argument
229 } catch (err) {
230 expect(err.code).assertEqual(-1);
237 } catch (err) {
238 expect(err.code).assertEqual(-1);
[all …]
/base/telephony/cellular_data/
DREADME_zh.md72 data.isCellularDataEnabled((err, value) => {
73 if (err) {
74 // 接口调用失败,err非空
75 console.error(`failed to isCellularDataEnabled because ${err.message}`);
78 // 接口调用成功,err为空
87 }).catch((err) => {
89 console.error(`failed to isCellularDataEnabled because ${err.message}`);
116 data.getCellularDataState((err, value) => {
117 if (err) {
118 // 接口调用失败,err非空
[all …]
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_dump_request.cpp28 errno_t err = memset_s(&siginfo_, sizeof(siginfo_), 0, sizeof(siginfo_)); in ProcessDumpRequest() local
29 if (err != EOK) { in ProcessDumpRequest()
32 err = memset_s(&context_, sizeof(context_), 0, sizeof(context_)); in ProcessDumpRequest()
33 if (err != EOK) { in ProcessDumpRequest()
36 err = memset_s(&threadName_, sizeof(threadName_), 0, sizeof(threadName_)); in ProcessDumpRequest()
37 if (err != EOK) { in ProcessDumpRequest()
40 err = memset_s(&processName_, sizeof(processName_), 0, sizeof(processName_)); in ProcessDumpRequest()
41 if (err != EOK) { in ProcessDumpRequest()
44 err = memset_s(&lastFatalMessage_, sizeof(lastFatalMessage_), 0, sizeof(lastFatalMessage_)); in ProcessDumpRequest()
45 if (err != EOK) { in ProcessDumpRequest()
/base/telephony/state_registry/
DREADME_zh.md85 2. 收到回调后,若err为空,则订阅成功,否则订阅失败。订阅成功则可以从value中获取数据。
93 observer.on('callStateChange', {slotId: 1}, (err, value) => {
94 if (err) {
95 // 接口调用失败,err非空
96 console.error(`failed, because ${err.message}`);
99 // 接口调用成功,err为空
104 observer.off('callStateChange', (err, value) => {
105 if (err) {
106 // 接口调用失败,err非空
107 console.error(`failed, because ${err.message}`);
[all …]
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/
Dfs_dm.c54 errno_t err; in InitDmIo() local
56 err = memset_s(io, sizeof(*io), 0, sizeof(*io)); in InitDmIo()
57 if (err != EOK) { in InitDmIo()
58 BEGET_LOGE("memset io, ret=%d", err); in InitDmIo()
72 err = strcpy_s(io->name, sizeof(io->name), devName); in InitDmIo()
73 if (err != EOK) { in InitDmIo()
74 BEGET_LOGE("cp devName, ret=%d", err); in InitDmIo()
104 errno_t err; in LoadDmDeviceTable() local
141 err = strcpy_s(ts->target_type, sizeof(ts->target_type), "verity"); in LoadDmDeviceTable()
142 if (err != EOK) { in LoadDmDeviceTable()
[all …]
/base/hiviewdfx/hiappevent/test/unittest/common/napi/
Dnapi_hiappevent.test.js70 }, (err) => {
71 expect(err).assertNull()
97 hiAppEvent.write(name, type, params, (err, value) => {
98 let result = err ? err.code : value;
116 hiAppEventV9.write(eventInfo, (err) => {
117 expect(err).assertNull()
119 } catch (err) {
120 assertErrorEqual(err, expectErr);
125 hiAppEventV9.write(eventInfo, (err) => {
126 assertErrorEqual(err, expectErr);
[all …]

1234567