Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 695) sorted by relevance

12345678910>>...28

/base/powermgr/battery_lite/test/
Dbattery_test.js6 fail: function(data, code) { argument
7 console.log('fail to get battery Soc code:' + code + ', data: ' + data);
15 fail: function(data, code) { argument
16 console.log('fail to get battery ChargingStatus code:' + code + ', data: ' + data);
24 fail: function(data, code) { argument
25 console.log('fail to get battery HealthStatus code:' + code + ', data: ' + data);
33 fail: function(data, code) { argument
34 console.log('fail to get battery PluggedType code:' + code + ', data: ' + data);
42 fail: function(data, code) { argument
43 console.log('fail to get battery Voltage code:' + code + ', data: ' + data);
[all …]
/base/hiviewdfx/hiappevent/test/unittest/common/napi/
Dnapi_hiappevent.test.js70 console.error('HiAppEvent_Napi baseTest1 err.code=' + err.code);
71 result = err.code;
110 console.error('HiAppEvent_Napi baseTest2 err.code=' + err.code);
111 result = err.code;
138 console.error('HiAppEvent_Napi baseTest3 err.code=' + err.code);
139 result = err.code;
168 console.error('HiAppEvent_Napi baseTest4 err.code=' + err.code);
169 result = err.code;
197 console.error('HiAppEvent_Napi baseTest5 err.code=' + err.code);
198 result = err.code;
[all …]
/base/powermgr/display_manager/test/unittest/common/napi/
Dnapi_system_brightness.test.js81 fail: (data, code) => { argument
82 console.log("get_value_success, data: " + data + ", code: " + code)
102 fail: (data, code) => { argument
103 console.log("get_status_test_success_not_must, data: " + data + ", code: " + code);
135 fail: (data, code) => { argument
136 console.log("set_value_success_all, data: " + data + ", code: " + code);
185 fail: (data, code) => { argument
186 console.log("set_value_string, data: " + data + ", code: " + code);
187 expect(code === NPUT_ERROR_CODE).assertTrue();
218 fail: (data, code) => { argument
[all …]
/base/powermgr/battery_manager/frameworks/js/test/unittest/
Dsystem_battery_unit.test.js33 function failFunc(data, code, tag) { argument
34 console.log(tag + ": data: " + data + ", code: " + code);
56 fail: (data, code) => { argument
57 failFunc(data, code, successTest);
74 fail: (data, code) => { argument
75 failFunc(data, code, successNullTest);
91 fail: (data, code) => { argument
92 failFunc(data, code, successEmptyTest);
146 fail: (data, code) => { argument
147 failFunc(data, code, completeNullTest);
[all …]
/base/hiviewdfx/faultloggerd/test/funchook/
Ddfx_exit_hook.c41 typedef __attribute__((noreturn)) void (*ExitFunc)(int code);
74 void exit(int code) in exit() argument
76 LOGF("%d call exit with code %d", getpid(), code); in exit()
82 g_hookedExit(code); in exit()
87 quick_exit(code); in exit()
90 void _exit(int code) in _exit() argument
92 LOGF("%d call exit with code %d", getpid(), code); in _exit()
98 g_hookedExitEx(code); in _exit()
103 quick_exit(code); in _exit()
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts33 fail?: (data: string, code: number) => void;
50 fail?: (data: string, code: number) => void;
72 fail?: (data: string, code: number) => void;
94 fail?: (data: string, code: number) => void;
116 fail?: (data: string, code: number) => void;
138 fail?: (data: string, code: number) => void;
160 fail?: (data: string, code: number) => void;
/base/sensors/sensor/interfaces/plugin/test/
DExampleJsunit.test_system.js64 fail: function(data, code) { argument
66 console.error('Subscription failed. Code: ' + code + '; Data: ' + data);
98 fail: function(data, code) { argument
100 … console.error('SensorJsTest002 Subscription failed. Code: ' + code + '; Data: ' + data);
196 fail: function(data, code) { argument
197 … console.error('SensorJsTest007 Subscription failed. Code: ' + code + '; Data: ' + data);
227 fail: function(data, code) { argument
228 … console.error('SensorJsTest008 Subscription failed. Code: ' + code + '; Data: ' + data);
257 fail: function(data, code) { argument
258 … console.error('SensorJsTest009 Subscription failed. Code: ' + code + '; Data: ' + data);
[all …]
/base/account/os_account/frameworks/osaccount/core/src/
Dos_account_event_stub.cpp28 int OsAccountEventStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, M… in OnRemoteRequest() argument
31 ACCOUNT_LOGE("check descriptor failed! code %{public}u.", code); in OnRemoteRequest()
35 switch (code) { in OnRemoteRequest()
46 ACCOUNT_LOGI("default, code = %{public}u, flags = %{public}u", code, option.GetFlags()); in OnRemoteRequest()
47 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/customization/enterprise_device_management/services/edm/src/
Denterprise_device_mgr_stub.cpp48 int32_t EnterpriseDeviceMgrStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel … in OnRemoteRequest() argument
53 EDMLOGI("EnterpriseDeviceMgrStub code %{public}u", code); in OnRemoteRequest()
55 …E("EnterpriseDeviceMgrStub code %{public}d client and service descriptors are inconsistent", code); in OnRemoteRequest()
59 if (SERVICE_FLAG(code)) { in OnRemoteRequest()
60 auto func = memberFuncMap_.find(code); in OnRemoteRequest()
68 if (POLICY_FLAG(code)) { in OnRemoteRequest()
69 EDMLOGD("POLICY_FLAG(code:%{public}x)\n", code); in OnRemoteRequest()
70 if (FUNC_TO_OPERATE(code) == static_cast<int>(FuncOperateType::GET)) { in OnRemoteRequest()
72 return GetDevicePolicyInner(code, data, reply); in OnRemoteRequest()
75 return HandleDevicePolicyInner(code, data, reply); in OnRemoteRequest()
[all …]
/base/powermgr/display_manager/interfaces/kits/js/
D@system.brightness.d.ts43 fail?: (data: string, code: number) => void;
77 fail?: (data: string, code: number) => void;
115 fail?: (data: string, code: number) => void;
147 fail?: (data: string, code: number) => void;
177 fail?: (data: string, code: number) => void;
/base/miscservices/pasteboard/services/zidl/src/
Dpasteboard_observer_stub.cpp26 int32_t PasteboardObserverStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &… in OnRemoteRequest() argument
29 PASTEBOARD_HILOGI(PASTEBOARD_MODULE_SERVICE, "start##code = %{public}u", code); in OnRemoteRequest()
34 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
39 "CallingPid = %{public}d, CallingUid = %{public}d, code = %{public}u", p, p1, code); in OnRemoteRequest()
40 auto itFunc = memberFuncMap_.find(code); in OnRemoteRequest()
47 int ret = IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/telephony/state_registry/frameworks/native/observer/src/
Dtelephony_observer_proxy.cpp46 int code = remote->SendRequest( in OnCallStateUpdated() local
49 TELEPHONY_LOGI("TelephonyObserverProxy::OnCallStateUpdated end ##error: %{public}d", code); in OnCallStateUpdated()
72 int code = remote->SendRequest( in OnSimStateUpdated() local
75 TELEPHONY_LOGI("TelephonyObserverProxy::OnSimStateUpdated end ##error: %{public}d.", code); in OnSimStateUpdated()
104 int code = remote->SendRequest( in OnSignalInfoUpdated() local
107 TELEPHONY_LOGI("TelephonyObserverProxy::OnSignalInfoUpdated##error: %{public}d.", code); in OnSignalInfoUpdated()
143 int code = remote->SendRequest( in OnCellInfoUpdated() local
146 TELEPHONY_LOGI("TelephonyObserverProxy::OnCellInfoUpdated##error: %{public}d.", code); in OnCellInfoUpdated()
169 int code = remote->SendRequest( in OnNetworkStateUpdated() local
172 TELEPHONY_LOGI("TelephonyObserverProxy::OnNetworkStateUpdated##error: %{public}d.", code); in OnNetworkStateUpdated()
[all …]
/base/telephony/core_service/services/sim/test/
Dcommon_event_test.h50 int32_t code = data.GetCode(); in OnReceiveEvent() local
54 << ", code = " << code << std::endl; in OnReceiveEvent()
58 int32_t code = data.GetCode(); in OnReceiveEvent() local
60 std::cout << "receive a CommonEvent action = " << action << ", code = " << code in OnReceiveEvent()
64 int32_t code = data.GetCode(); in OnReceiveEvent() local
67 << " event = " << event << ", code = " << code << std::endl; in OnReceiveEvent()
71 int32_t code = data.GetCode(); in OnReceiveEvent() local
75 << ", code = " << code << std::endl; in OnReceiveEvent()
81 int32_t code = data.GetCode(); in OnReceiveEvent() local
85 << ", code = " << code << std::endl; in OnReceiveEvent()
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_ability_stub.cpp22 int32_t HiviewServiceAbilityStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel… in OnRemoteRequest() argument
25 HIVIEW_LOGI("HiviewServiceAbilityStub::OnRemoteRequest, cmd = %d, flags= %d", code, in OnRemoteRequest()
33 switch (code) { in OnRemoteRequest()
35 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/miscservices/inputmethod/frameworks/inputmethod_ability/src/
Dinput_method_core_proxy.cpp71 int32_t code = reply.ReadException(); in initializeInput() local
72 return code; in initializeInput()
103 int32_t code = reply.ReadException(); in InitInputControlChannel() local
104 return code; in InitInputControlChannel()
164 int32_t code = reply.ReadException(); in startInput() local
165 return code == ErrorCode::NO_ERROR; in startInput()
186 int code = reply.ReadException(); in stopInput() local
187 if (code != ErrorCode::NO_ERROR) { in stopInput()
188 IMSA_HILOGI("InputMethodCoreProxy::stopInput code = %{public}d", code); in stopInput()
189 return code; in stopInput()
[all …]
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_event_stub.cpp31 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() argument
36 ACCOUNT_LOGE("failed to check descriptor! code %{public}u.", code); in OnRemoteRequest()
40 switch (code) { in OnRemoteRequest()
54 ACCOUNT_LOGI("default, code = %{public}u, flags = %{public}u", code, option.GetFlags()); in OnRemoteRequest()
55 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
Dapp_account_authenticator_callback_stub.cpp35 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() argument
40 ACCOUNT_LOGE("failed to check descriptor! code %{public}u.", code); in OnRemoteRequest()
45 switch (code) { in OnRemoteRequest()
78 ACCOUNT_LOGI("default, code = %{public}u, flags = %{public}u", code, option.GetFlags()); in OnRemoteRequest()
79 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/miscservices/wallpaper/frameworks/innerkitsimpl/wallpaper_manager/src/
Dwallpaper_service_cb_stub.cpp26 …int32_t WallpaperServiceCbStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel … in OnRemoteRequest() argument
30 HILOG_INFO(" start##ret = %{public}u", code); in OnRemoteRequest()
35 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
37 auto itFunc = memberFuncMap_.find(code); in OnRemoteRequest()
44 int ret = IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/miscservices/inputmethod/etc/para/src/
Dpara_handle.cpp34 int code = 0; in GetDefaultIme() local
36 code = GetParameter(DEFAULT_IME_KEY + userId, "", value, CONFIG_LEN); in GetDefaultIme()
38 code = GetParameter(DEFAULT_IME_KEY, "", value, CONFIG_LEN); in GetDefaultIme()
40 if (code > 0) { in GetDefaultIme()
/base/notification/ces_standard/frameworks/core/src/
Devent_receive_stub.cpp31 int EventReceiveStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, Mes… in OnRemoteRequest() argument
37 switch (code) { in OnRemoteRequest()
51 EVENT_LOGW("event receive stub receives unknown code, code = %{public}u", code); in OnRemoteRequest()
52 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/telephony/ril_adapter/services/hril/src/
Dhril_modem.cpp107 bool HRilModem::IsModemResponse(uint32_t code) in IsModemResponse() argument
109 return ((code >= HREQ_COMMON_BASE) && (code <= HREQ_MODEM_GET_VOICE_RADIO)); in IsModemResponse()
112 bool HRilModem::IsModemNotification(uint32_t code) in IsModemNotification() argument
114 return ((code >= HNOTI_COMMON_BASE) && (code <= HNOTI_MODEM_VOICE_TECH_UPDATED)); in IsModemNotification()
117 bool HRilModem::IsModemRespOrNotify(uint32_t code) in IsModemRespOrNotify() argument
119 return IsModemResponse(code) || IsModemNotification(code); in IsModemRespOrNotify()
/base/location/location_geocode/geocode/source/
Dgeo_convert_skeleton.cpp23 int GeoConvertServiceStub::OnRemoteRequest(uint32_t code, in OnRemoteRequest() argument
29 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest()
40 switch (code) { in OnRemoteRequest()
54 ret = IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/miscservices/time/services/time_manager/src/
Dtimer_call_back_stub.cpp20 int TimerCallbackStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, in OnRemoteRequest() argument
23 … TIME_HILOGD(TIME_MODULE_SERVICE, "cmd = %{public}d, flags= %{public}d", code, option.GetFlags()); in OnRemoteRequest()
31 switch (code) { in OnRemoteRequest()
36 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/base/update/updater/services/ui/
Dinput_event.cpp127 ev.code = iev->code; in HandleInputEvent()
130 if (ev.code == SYN_REPORT) { in HandleInputEvent()
142 switch (ev.code) { in HandleInputEvent()
162 if (ev.type == EV_KEY && ev.code <= KEY_MAX) { in HandleInputEvent()
163 if (ev.code == BTN_TOUCH) { in HandleInputEvent()
166 if (ev.code == BTN_TOUCH || ev.code == BTN_TOOL_FINGER) { in HandleInputEvent()
181 .code = static_cast<__u16>(pkgs[i]->code), in ReportEventPkgCallback()
/base/web/webview/
DREADME.md26 ├── ohos_nweb # OpenHarmony adaptation code
28 │ ├── prebuilts # NWeb.hap, built based on the third_party_chromium source code repository
30 └── test # nwebview test code
33 ** This code repository is the native engine of the OpenHarmony web component. This topic describes…
35code is not compiled. Therefore, to use the test code, you need to add the **nweb_test** target to…
43 2. Build source code.

12345678910>>...28