Home
last modified time | relevance | path

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

1234567891011

/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
Dlexer.js19 function code(s) { function
24 return c == code(' ') || c == code('\t') || c == code('\r');
28 if (code('a') <= c[0] && c[0] <= code('z')) {
31 if (code('A') <= c[0] && c[0] <= code('Z')) {
42 return code('0') <= c[0] && c[0] <= code('9');
105 c[0] == code(';') ||
106 c[0] == code(',') ||
107 c[0] == code('[') ||
108 c[0] == code(']') ||
109 c[0] == code('{') ||
[all …]
/drivers/hdf_core/framework/model/input/driver/
Devent_hub.h24 uint32_t code; member
29 void PushOnePackage(InputDevice *inputDev, uint32_t type, uint32_t code, int32_t value);
32 static inline void ReportAbs(InputDevice *inputDev, uint32_t code, int32_t value) in ReportAbs() argument
34 PushOnePackage(inputDev, EV_ABS, code, value); in ReportAbs()
37 static inline void ReportKey(InputDevice *inputDev, uint32_t code, int32_t value) in ReportKey() argument
39 PushOnePackage(inputDev, EV_KEY, code, !!value); in ReportKey()
42 static inline void ReportRel(InputDevice *inputDev, uint32_t code, int32_t value) in ReportRel() argument
44 PushOnePackage(inputDev, EV_REL, code, value); in ReportRel()
Devent_hub.c39 void PushOnePackage(InputDevice *inputDev, uint32_t type, uint32_t code, int32_t value) in PushOnePackage() argument
52 package.code = code; in PushOnePackage()
69 if (type == EV_SYN && code == SYN_REPORT) { in PushOnePackage()
/drivers/peripheral/power/test/fuzztest/powerhdistub_fuzzer/
Dpowerhdistub_fuzz.cpp61 uint32_t code; in PowerStubFuzzTest() local
62 if (size < sizeof(code)) { in PowerStubFuzzTest()
65 if (memcpy_s(&code, sizeof(code), data, sizeof(code)) != EOK) { in PowerStubFuzzTest()
80 if (CMD_POWER_INTERFACE_FORCE_SUSPEND == code) { in PowerStubFuzzTest()
83 g_fuzzService->OnRemoteRequest(code, datas, reply, option); in PowerStubFuzzTest()
/drivers/peripheral/thermal/test/fuzztest/thermalhdistub_fuzzer/
Dthermalhdistub_fuzz.cpp42 uint32_t code; in ThermalStubFuzzTest() local
43 if (size < sizeof(code)) { in ThermalStubFuzzTest()
46 if (memcpy_s(&code, sizeof(code), data, sizeof(code)) != EOK) { in ThermalStubFuzzTest()
59 g_fuzzService->OnRemoteRequest(code, datas, reply, option); in ThermalStubFuzzTest()
/drivers/peripheral/battery/interfaces/hdi_service/test/fuzztest/batteryhdistub_fuzzer/
Dbatteryhdistub_fuzz.cpp42 uint32_t code; in BatteryStubFuzzTest() local
43 if (size < sizeof(code)) { in BatteryStubFuzzTest()
46 if (memcpy_s(&code, sizeof(code), data, sizeof(code)) != EOK) { in BatteryStubFuzzTest()
61 g_fuzzService->OnRemoteRequest(code, datas, reply, option); in BatteryStubFuzzTest()
/drivers/external_device_manager/test/unittest/device_manager_js_test/
DDeviceManagerJsTest.js60 expect(err.code).assertEqual(SERVICE_EXCEPTION_CODE);
75 expect(err.code).assertEqual(SERVICE_EXCEPTION_CODE);
97 expect(error.code).assertEqual(PARAMETER_ERROR_CODE);
114 expect(error.code).assertEqual(SERVICE_EXCEPTION_CODE);
120 expect(error.code).assertEqual(SERVICE_EXCEPTION_CODE);
137 expect(error.code).assertEqual(PARAMETER_ERROR_CODE);
154 expect(error.code).assertEqual(PARAMETER_ERROR_CODE);
171 expect(error.code).assertEqual(PARAMETER_ERROR_CODE);
197 expect(error.code).assertEqual(PARAMETER_ERROR_CODE);
223 expect(error.code).assertEqual(SERVICE_EXCEPTION_CODE);
[all …]
/drivers/peripheral/wlan/hal/src/
Dwifi_hal_ap_feature.c39 static int32_t SetCountryCodeInner(const struct IWiFiAp *apFeature, const char *code, uint32_t len) in SetCountryCodeInner() argument
41 if (apFeature == NULL || code == NULL || len != strlen(code)) { in SetCountryCodeInner()
45 return HalCmdSetCountryCode(apFeature->baseFeature.ifName, code, len); in SetCountryCodeInner()
57 static int32_t HalSetCountryCode(const struct IWiFiAp *apFeature, const char *code, uint32_t len) in HalSetCountryCode() argument
60 int32_t ret = SetCountryCodeInner(apFeature, code, len); in HalSetCountryCode()
/drivers/peripheral/audio/hal/hdi_binder/server/src/
Dhdf_audio_input_event.c41 switch (evt.code) { in AudioAnalogHeadsetDeviceCheck()
52 AUDIO_FUNC_LOGE("n't surpport code =0x%{public}x\n", evt.code); in AudioAnalogHeadsetDeviceCheck()
66 AUDIO_FUNC_LOGD("evt.type = EV_SW5, code =0x%{public}d, value = %{public}d\n", evt.code, in AudioPnpInputCheck()
74 …if ((evt.code == KEY_MEDIA) || (evt.code == KEY_KP7) || (evt.code == KEY_KP8) || (evt.code == KEY_… in AudioPnpInputCheck()
75 …DIO_FUNC_LOGD("evt.type = EV_KEY1, code = 0x%{public}x, value = %{public}d.", evt.code, evt.value); in AudioPnpInputCheck()
/drivers/peripheral/fingerprint_auth/test/fuzztest/fingerprint_auth/fingerprintexecutorstub_fuzzer/
Dfingerprint_auth_executor_stub_fuzzer.cpp54 …for (uint32_t code = FINGERPRINT_AUTH_EXECUTOR_CODE_MIN; code <= FINGERPRINT_AUTH_EXECUTOR_CODE_MA… in FingerprintAuthExecutorStubFuzzTest() local
60 if (code < FINGERPRINT_AUTH_EXECUTOR_CODE_MIN_V1_1) { in FingerprintAuthExecutorStubFuzzTest()
69 (void)executorStub->OnRemoteRequest(code, data, reply, optionSync); in FingerprintAuthExecutorStubFuzzTest()
74 (void)executorStub->OnRemoteRequest(code, data, reply, optionAsync); in FingerprintAuthExecutorStubFuzzTest()
/drivers/peripheral/face_auth/test/fuzztest/face_auth/faceauthhdistub_fuzzer/
Dface_auth_hdi_stub_fuzzer.cpp55 for (uint32_t code = EXECUTOR_STUB_CODE_MIN; code < EXECUTOR_STUB_CODE_MAX; code++) { in FaceAuthHdiStubFuzzTest() local
61 if (code < EXECUTOR_STUB_CODE_MIN_V1_1) { in FaceAuthHdiStubFuzzTest()
70 (void)executorStub->OnRemoteRequest(code, data, reply, optionSync); in FaceAuthHdiStubFuzzTest()
75 (void)executorStub->OnRemoteRequest(code, data, reply, optionAsync); in FaceAuthHdiStubFuzzTest()
/drivers/peripheral/pin_auth/test/fuzztest/pin_auth/pinauthinterfacestub_fuzzer/
Dpin_auth_interface_stub_fuzzer.cpp44 for (uint32_t code = HDI_PIN_AUTH_CODE_MIN; code <= HDI_PIN_AUTH_CODE_MAX; code++) { in PinAuthInterfaceStubFuzzTest() local
53 (void)pinAuthInterfaceStub.OnRemoteRequest(code, data, reply, optionSync); in PinAuthInterfaceStubFuzzTest()
58 (void)pinAuthInterfaceStub.OnRemoteRequest(code, data, reply, optionAsync); in PinAuthInterfaceStubFuzzTest()
/drivers/peripheral/face_auth/test/fuzztest/face_auth/faceauthinterfacestub_fuzzer/
Dface_auth_interface_stub_fuzzer.cpp57 …for (uint32_t code = FACE_AUTH_INTERFACE_STUB_CODE_MIN; code < FACE_AUTH_INTERFACE_STUB_CODE_MAX; in FaceAuthInterfaceStubFuzzTest() local
63 if (code < FACE_AUTH_INTERFACE_STUB_CODE_MIN_V1_1) { in FaceAuthInterfaceStubFuzzTest()
72 (void)faceAuthInterfaceStub->OnRemoteRequest(code, data, reply, optionSync); in FaceAuthInterfaceStubFuzzTest()
77 (void)faceAuthInterfaceStub->OnRemoteRequest(code, data, reply, optionAsync); in FaceAuthInterfaceStubFuzzTest()
/drivers/peripheral/user_auth/test/fuzztest/user_auth/userauthhdistub_fuzzer/
Duser_auth_hdi_stub_fuzzer.cpp62 for (uint32_t code = USER_AUTH_HDI_CODE_MIN; code < USER_AUTH_HDI_CODE_MAX; code++) { in UserAuthHdiStubFuzzTest() local
68 if (code < USER_AUTH_HDI_CODE_MIN_V1_1) { in UserAuthHdiStubFuzzTest()
77 (void)userAuthInterfaceStub->OnRemoteRequest(code, data, reply, optionSync); in UserAuthHdiStubFuzzTest()
82 (void)userAuthInterfaceStub->OnRemoteRequest(code, data, reply, optionAsync); in UserAuthHdiStubFuzzTest()
/drivers/peripheral/pin_auth/test/fuzztest/pin_auth/pinauthexecutorstub_fuzzer/
Dpin_auth_executor_stub_fuzzer.cpp58 for (uint32_t code = PIN_AUTH_EXECUTOR_CODE_MIN; code <= PIN_AUTH_EXECUTOR_CODE_MAX; code++) { in PinAuthExecutorStubFuzzTest() local
64 if (code < PIN_AUTH_EXECUTOR_CODE_MIN_V1_1) { in PinAuthExecutorStubFuzzTest()
73 (void)executorStub->OnRemoteRequest(code, data, reply, optionSync); in PinAuthExecutorStubFuzzTest()
78 (void)executorStub->OnRemoteRequest(code, data, reply, optionAsync); in PinAuthExecutorStubFuzzTest()
/drivers/peripheral/fingerprint_auth/test/fuzztest/fingerprint_auth/fingerprintinterfacestub_fuzzer/
Dfingerprint_auth_interface_stub_fuzzer.cpp45 …for (uint32_t code = HDI_FINGERPRINT_AUTH_CODE_MIN; code <= HDI_FINGERPRINT_AUTH_CODE_MAX; code++)… in FingerprintAuthInterfaceStubFuzzTest() local
54 (void)fingerprintAuthInterfaceStub.OnRemoteRequest(code, data, reply, optionSync); in FingerprintAuthInterfaceStubFuzzTest()
59 (void)fingerprintAuthInterfaceStub.OnRemoteRequest(code, data, reply, optionAsync); in FingerprintAuthInterfaceStubFuzzTest()
/drivers/hdf_core/framework/tools/hcs-view/docs/
DDEBUGGUIDE.md25 visual studio code 版本需1.62.0及以上。
48 ![](../figures/run-code-mock-succss.png)
61 ![](../figures/run-code-mock-launcher.png)
67 ![](../figures/run-code-mock-web.png)
72 visual studio code 版本需1.62.0及以上。
94 ![](../figures/run-code-succss.png)
/drivers/hdf_core/adapter/khdf/linux/platform/mipi_csi/
Dmipi_v4l2_adapter.c92 u32 code = MEDIA_BUS_FMT_SGBRG12_1X12; in LinuxGetFormatCode() local
96 code = MEDIA_BUS_FMT_SBGGR8_1X8; in LinuxGetFormatCode()
99 code = MEDIA_BUS_FMT_SBGGR10_1X10; in LinuxGetFormatCode()
102 code = MEDIA_BUS_FMT_SBGGR12_1X12; in LinuxGetFormatCode()
105 code = MEDIA_BUS_FMT_SBGGR14_1X14; in LinuxGetFormatCode()
108 code = MEDIA_BUS_FMT_SBGGR16_1X16; in LinuxGetFormatCode()
111 code = MEDIA_BUS_FMT_Y8_1X8; in LinuxGetFormatCode()
114 code = MEDIA_BUS_FMT_Y8_1X8; in LinuxGetFormatCode()
117 code = MEDIA_BUS_FMT_YUYV8_1X16; in LinuxGetFormatCode()
120 code = MEDIA_BUS_FMT_YVYU8_1X16; in LinuxGetFormatCode()
[all …]
/drivers/hdf_core/framework/test/fuzztest/devsvcmanagerstub_fuzzer/
Ddevsvcmanagerstub_fuzzer.cpp15 struct HdfRemoteService *service, int code, struct HdfSBuf *data, struct HdfSBuf *reply);
64 static bool DevsvcManagerFuzzTest(int32_t code, const uint8_t *data, size_t size) in DevsvcManagerFuzzTest() argument
100 reinterpret_cast<HdfRemoteService *>(instance->remote->target), code, dataBuf, replyBuf); in DevsvcManagerFuzzTest()
111 int32_t code = servmgrCode[i]; in LLVMFuzzerTestOneInput() local
112 DevsvcManagerFuzzTest(code, data, size); in LLVMFuzzerTestOneInput()
/drivers/hdf_core/framework/test/fuzztest/devmgrservicestub_fuzzer/
Ddevmgrservicestub_fuzzer.cpp15 struct HdfRemoteService *stub, int code, struct HdfSBuf *data, struct HdfSBuf *reply);
61 static bool AttachDeviceHostFuzzTest(int32_t code, const uint8_t *data, size_t size) in AttachDeviceHostFuzzTest() argument
97 reinterpret_cast<HdfRemoteService *>(instance->remote->target), code, dataBuf, replyBuf); in AttachDeviceHostFuzzTest()
108 int32_t code = g_devMgrCode[i]; in LLVMFuzzerTestOneInput() local
109 AttachDeviceHostFuzzTest(code, data, size); in LLVMFuzzerTestOneInput()
/drivers/hdf_core/adapter/khdf/uniproton/
DREADME.md9 This repository stores the code and compilation scripts for the OpenHarmony driver subsystem to ada…
15 ├── core # Driver code for adapting to the LiteOS Cortex-M kernel
17 ├── platform # Platform driver interfaces and adaptation code build
18 └── test # Test code for the kernel driver framework
/drivers/peripheral/display/hdi_service/device/src/proxy/display_device_callback/
Ddisplay_device_callback_stub.cpp19 … uint32_t code, OHOS::MessageParcel &data, OHOS::MessageParcel &reply, OHOS::MessageOption &option) in OnRemoteRequest() argument
22 DISPLAY_LOG("OnRemoteRequest receive code = %{public}u", code); in OnRemoteRequest()
23 switch (code) { in OnRemoteRequest()
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Dbluetooth_a2dp_audio_src_observer_stub.cpp40 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() argument
42 …HDF_LOGI("BluetoothA2dpAudioSrcObserverStub::OnRemoteRequest, cmd=%{public}d, flags= %d", code, op… in OnRemoteRequest()
49 auto itFunc = funcMap_.find(code); in OnRemoteRequest()
57 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/
Dindex.js53 function myKey(type, code) { argument
54 NapiLog.logError(type + code);
55 MainEditor.gi().onKey(code);
/drivers/external_device_manager/services/zidl/src/
Ddriver_ext_mgr_callback_stub.cpp22 uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) in OnRemoteRequest() argument
24 EDM_LOGD(MODULE_DEV_MGR, "cmd:%u, flags:%d", code, option.GetFlags()); in OnRemoteRequest()
30 switch (code) { in OnRemoteRequest()
38 return IPCObjectStub::OnRemoteRequest(code, data, reply, option); in OnRemoteRequest()

1234567891011