/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | platform_event_test.c | 57 uint32_t events; in PlatformEventTestPostAndWait() local 61 ret = PlatformEventWait(pe, PLAT_TEST_EVENT_A, 0, PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() 69 ret = PlatformEventWait(pe, PLAT_TEST_EVENT_A, 0, PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() 71 CHECK_EQ_RETURN(events, PLAT_TEST_EVENT_A, HDF_FAILURE); in PlatformEventTestPostAndWait() 74 ret = PlatformEventWait(pe, PLAT_TEST_EVENT_A, 0, PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() 83 PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() 85 ret = PlatformEventWait(pe, PLAT_TEST_EVENT_C, 0, PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() 90 PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() 92 CHECK_EQ_RETURN(events, PLAT_TEST_EVENT_A | PLAT_TEST_EVENT_B, HDF_FAILURE); in PlatformEventTestPostAndWait() 95 ret = PlatformEventWait(pe, PLAT_TEST_EVENT_A, 0, PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() [all …]
|
D | platform_device_test.c | 98 uint32_t events; in PlatformDeviceTestWaitEvent() local 103 ret = PlatformDeviceWaitEvent(device, mask, PLAT_DEV_WAIT_TIMEOUT, &events); in PlatformDeviceTestWaitEvent() 111 ret = PlatformDeviceWaitEvent(device, mask, PLAT_DEV_WAIT_TIMEOUT, &events); in PlatformDeviceTestWaitEvent() 112 PLAT_LOGD("PlatformDeviceTestWaitEvent: events:%x!", events); in PlatformDeviceTestWaitEvent() 114 CHECK_EQ_RETURN(events, eventA | eventB, ret); in PlatformDeviceTestWaitEvent() 209 uint32_t events; in PlatformDeviceTestReliability() local 237 ret = PlatformDeviceWaitEvent(NULL, 0x1, 1, &events); in PlatformDeviceTestReliability()
|
/drivers/hdf_core/framework/support/platform/src/fwk/ |
D | platform_event.c | 28 int32_t (*cb)(struct PlatformEventWaiter *waiter, int32_t events); 80 int32_t PlatformEventPost(struct PlatformEvent *pe, uint32_t events) in PlatformEventPost() argument 91 if (events == 0) { in PlatformEventPost() 96 pe->eventsWord |= events; in PlatformEventPost() 134 static int32_t PlatformEventRead(struct PlatformEvent *pe, uint32_t *events, uint32_t mask, int32_t… in PlatformEventRead() argument 138 if (events == NULL || mask == 0) { in PlatformEventRead() 154 *events = masked; in PlatformEventRead() 159 uint32_t *events, uint32_t mask, int32_t mode, uint32_t tms) in PlatformEventReadSlowlly() argument 176 return PlatformEventRead(pe, events, mask, mode); in PlatformEventReadSlowlly() 190 …ormEventWait(struct PlatformEvent *pe, uint32_t mask, int32_t mode, uint32_t tms, uint32_t *events) in PlatformEventWait() argument [all …]
|
D | platform_device.c | 344 int32_t PlatformDevicePostEvent(struct PlatformDevice *device, uint32_t events) in PlatformDevicePostEvent() argument 350 return PlatformEventPost(&device->event, events); in PlatformDevicePostEvent() 353 …atformDeviceWaitEvent(struct PlatformDevice *device, uint32_t mask, uint32_t tms, uint32_t *events) in PlatformDeviceWaitEvent() argument 372 if (events != NULL) { in PlatformDeviceWaitEvent() 373 *events = eventsRead; in PlatformDeviceWaitEvent()
|
/drivers/hdf_core/framework/support/platform/include/fwk/ |
D | platform_event.h | 51 int32_t (*cb)(struct PlatformEventListener *listener, uint32_t events); 86 int32_t PlatformEventPost(struct PlatformEvent *pe, uint32_t events); 100 …rmEventWait(struct PlatformEvent *pe, uint32_t mask, int32_t mode, uint32_t tms, uint32_t *events);
|
D | platform_device.h | 129 …tformDeviceWaitEvent(struct PlatformDevice *device, uint32_t mask, uint32_t tms, uint32_t *events); 140 int32_t PlatformDevicePostEvent(struct PlatformDevice *device, uint32_t events);
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
D | sensor_device_manager.c | 88 int32_t ReportSensorEvent(const struct SensorReportEvent *events) in ReportSensorEvent() argument 94 CHECK_NULL_PTR_RETURN_VALUE(events, HDF_ERR_INVALID_PARAM); in ReportSensorEvent() 106 if (!HdfSbufWriteBuffer(msg, events, sizeof(*events))) { in ReportSensorEvent() 112 if (!HdfSbufWriteBuffer(msg, events->data, events->dataLen)) { in ReportSensorEvent() 235 struct SensorReportEvent events; in ReadData() local 241 int32_t ret = deviceInfo->ops.ReadSensorData(&events); in ReadData() 247 if (!HdfSbufWriteBuffer(reply, &events, sizeof(events))) { in ReadData() 252 if (!HdfSbufWriteBuffer(reply, events.data, events.dataLen)) { in ReadData()
|
/drivers/hdf_core/framework/model/sensor/driver/include/ |
D | sensor_device_if.h | 20 int32_t (*ReadSensorData)(struct SensorReportEvent *events); 30 int32_t ReportSensorEvent(const struct SensorReportEvent *events);
|
/drivers/peripheral/battery/interfaces/hdi_service/src/ |
D | battery_thread.cpp | 80 ev.events = EPOLLIN; in RegisterCallback() 82 ev.events |= EPOLLWAKEUP; in RegisterCallback() 213 struct epoll_event events[size]; in LoopingThreadEntry() local 228 nevents = epoll_wait(epFd_, events, static_cast<int32_t>(size), timeout); in LoopingThreadEntry() 234 if (events[n].data.ptr) { in LoopingThreadEntry() 236 (callbacks_.find(events[n].data.fd)->second)(func, arg); in LoopingThreadEntry()
|
/drivers/interface/activity_recognition/v1_0/ |
D | IActivityInterface.idl | 24 * the current activity event of the device, and activity events cached on the device, 25 * and subscribe to or unsubscribe from activity events. 35 …* supported by the device, the current activity event of the device, and the activity events cache… 36 * and subscribe to or unsubscribe from activity events. 56 * the current activity event of the device, the activity events cached on the device, 57 * and subscribe to and unsubscribe from activity events. 63 * Before obtaining the current activity event or the activity events cached on the device, 110 * @brief Obtains the current activity events of the device. 114 …* @param event Indicates the current activity events. For details, see {@link ActRecognitionEvent}. 165 * @brief Flushes all the activity events cached on the device and reports them.
|
D | IActivityChangedCallback.idl | 24 * the current activity event of the device, and activity events cached on the device, 25 * and subscribe to or unsubscribe from activity events. 52 * @brief Defines the callback for reporting activity events. 54 …* Before obtaining the current activity event or the activity events cached on the device, you mus…
|
D | ActivityRecognitionTypes.idl | 24 * the current activity event of the device, and activity events cached on the device, 25 * and subscribe to or unsubscribe from activity events. 69 …/** Common mode, in which activity events are reported regardless of whether the primary core is i…
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
D | v4l2_dev.cpp | 235 struct epoll_event events[MAXSTREAMCOUNT]; in loopBuffers() local 247 nfds = epoll_wait(epollFd_, events, MAXSTREAMCOUNT, -1); in loopBuffers() 251 if ((events[n].events & EPOLLIN) && (events[n].data.fd != eventFd_)) { in loopBuffers() 253 rc = myBuffers_->V4L2DequeueBuffer(events[n].data.fd); in loopBuffers() 260 events[n].events, (events[n].data.fd == eventFd_)); in loopBuffers() 278 epollevent.events = EPOLLIN; in CreateEpoll() 287 epollevent.events = EPOLLIN; in CreateEpoll() 291 epollevent.events = EPOLLIN; in CreateEpoll()
|
/drivers/peripheral/sensor/hal/src/ |
D | sensor_controller.c | 396 struct SensorEvents *events = NULL; in GetSensorEvent() local 401 if (!HdfSbufReadBuffer(reply, (const void **)&events, &len) || sensorEvent == NULL) { in GetSensorEvent() 418 sensorEvent->sensorId = events->sensorId; in GetSensorEvent() 419 sensorEvent->version = events->version; in GetSensorEvent() 420 sensorEvent->timestamp = events->timestamp; in GetSensorEvent() 421 sensorEvent->option = events->option; in GetSensorEvent() 422 sensorEvent->mode = events->mode; in GetSensorEvent()
|
/drivers/hdf_core/framework/model/sensor/driver/common/include/ |
D | sensor_device_manager.h | 42 int32_t ReportSensorEvent(const struct SensorReportEvent *events);
|
/drivers/interface/location/geofence/v1_0/ |
D | IGeofenceCallback.idl | 32 * geofence events, and reporting geofence operation results. 43 …fines the geofence callback interface for reporting geofence service availability, geofence events, 61 * @brief Report of fence entry and exit events.
|
/drivers/interface/input/v1_0/ |
D | InputTypes.idl | 23 …* enabling or disabling input devices, obtaining input events, querying device information, regist… 92 * A bit is used to indicate the type of events that can be reported by the input device. 134 * @brief Defines the data packet structure for hot plug events. 143 * @brief Defines the data packet structure for input events.
|
D | IInputCallback.idl | 23 …* functions: enabling or disabling input devices, obtaining input events, querying device informat… 72 * @brief Called to report hot plug events.
|
/drivers/interface/nfc/v1_0/ |
D | INfcCallback.idl | 36 * @brief Declares callbacks for reporting data and events from the nfc chip to the nfc stack. 52 * @brief Defines the function for reporting nfc events from the nfc chip.
|
/drivers/interface/codec/v1_0/ |
D | ICodecCallback.idl | 32 …* @brief Defines the callbacks used to report codec events and processing results of the input and… 54 …* - Callback used to report component error events, command completion events, and port setting ev…
|
/drivers/peripheral/audio/hal/hdi_binder/server/src/ |
D | hdf_audio_input_event.c | 131 g_fdSets[j].events = POLLIN; in AudioPnpInputOpen()
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
D | icodec_buffer.cpp | 95 pollfds.events = POLLIN; in SyncWait()
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | icodec_buffer.cpp | 128 pollfds.events = POLLIN; in SyncWait()
|
/drivers/peripheral/codec/image/jpeg/src/ |
D | codec_jpeg_core.cpp | 140 pollfds.events = POLLIN; in SyncWait()
|
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/ |
D | platform_device_test.c | 222 uint32_t events; in PlatformDeviceTestReliability() local 250 ret = PlatformDeviceWaitEvent(NULL, 0x1, 1, &events); in PlatformDeviceTestReliability()
|