/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | clock_virtual.c | 26 device->clk = (void *)&device->deviceIndex; in VirtualClockStart() 148 clockDevice->deviceIndex = ret; in VirtualClockGetParent() 153 HDF_LOGE("ClockGetParent: add clock device:%u fail!", clockDevice->deviceIndex); in VirtualClockGetParent() 164 uint32_t deviceIndex; member 179 ret = drsOps->GetUint32(node, "deviceIndex", &virtual->deviceIndex, 0); in VirtualClockReadDrs() 212 virtual->device.deviceIndex = virtual->deviceIndex; in VirtualClockInit() 216 …_LOGE("VirtualClockInit: clock clock virtual device:%u fail, ret: %d!", virtual->deviceIndex, ret); in VirtualClockInit() 228 uint32_t deviceIndex; in VirtualClockRelease() local 244 ret = drsOps->GetUint32(device->property, "deviceIndex", (uint32_t *)&deviceIndex, 0); in VirtualClockRelease() 250 dev = ClockDeviceGet(deviceIndex); in VirtualClockRelease()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/clock/ |
H A D | clock_core.c | 73 if (device->deviceIndex >= CLOCK_DEVICES_MAX) { in ClockManagerAddDevice() 74 HDF_LOGE("ClockManagerAddDevice: deviceIndex:%u exceed!", device->deviceIndex); in ClockManagerAddDevice() 88 if (manager->devices[device->deviceIndex]) { in ClockManagerAddDevice() 89 HDF_LOGE("ClockManagerAddDevice: clock device num:%u already exits!", device->deviceIndex); in ClockManagerAddDevice() 92 manager->devices[device->deviceIndex] = device; in ClockManagerAddDevice() 93 HDF_LOGE("ClockManagerAddDevice: clock device num:%u add success!", device->deviceIndex); in ClockManagerAddDevice() 105 if (device->deviceIndex < 0 || device->deviceIndex >= CLOCK_DEVICES_MAX) { in ClockManagerRemoveDevice() 106 HDF_LOGE("ClockManagerRemoveDevice: invalid devNum:%u!", device->deviceIndex); in ClockManagerRemoveDevice() 120 if (manager->devices[device->deviceIndex] != device) { in ClockManagerRemoveDevice() 123 manager->devices[device->deviceIndex] = NULL; in ClockManagerRemoveDevice() [all …]
|
H A D | clock_if.c | 157 return (DevHandle)(parent->deviceIndex + CLOCK_HANDLE_SHIFT); in ClockGetParent()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-clock-develop.md | 237 deviceIndex = 1; 268 uint32_t deviceIndex; 363 … HDF_LOGE("ClockParseAndDeviceAdd: add clock device:%u fail!", clockDevice->deviceIndex); 381 ret = drsOps->GetUint32(node, "deviceIndex", &clockDevice->deviceIndex, 0); 383 HDF_LOGE("ClockReadDrs: read deviceIndex fail, ret: %d!", ret); 427 int32_t deviceIndex; 437 ret = drsOps->GetUint32(node, "deviceIndex", (uint32_t *)&deviceIndex, 0); 439 HDF_LOGE("ClockRemoveByNode: read deviceIndex fail, ret: %d!", ret); 443 device = ClockDeviceGet(deviceIndex);
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/clock/ |
H A D | clock_adapter.c | 228 clockDevice->deviceIndex = ret; in ClockLinuxGetParent() 233 HDF_LOGE("ClockLinuxGetParent: add clock device:%u fail!", clockDevice->deviceIndex); in ClockLinuxGetParent() 252 ret = drsOps->GetUint32(node, "deviceIndex", &clockDevice->deviceIndex, 0); in ClockReadDrs() 291 HDF_LOGE("ClockParseAndDeviceAdd: add clock device:%u fail!", clockDevice->deviceIndex); in ClockParseAndDeviceAdd() 324 int32_t deviceIndex; in ClockRemoveByNode() local 334 ret = drsOps->GetUint32(node, "deviceIndex", (uint32_t *)&deviceIndex, 0); in ClockRemoveByNode() 340 device = ClockDeviceGet(deviceIndex); in ClockRemoveByNode()
|
/ohos5.0/base/update/updater/services/ptable_parse/ |
H A D | ptable_manager.cpp | 118 int32_t deviceIndex = GetPartitionInfoIndexByName(devicePtnInfo, partitionName); in IsPartitionChanged() local 119 if (deviceIndex < 0) { in IsPartitionChanged() 129 if (devicePtnInfo[deviceIndex].startAddr != pkgPtnInfo[updateIndex].startAddr) { in IsPartitionChanged() 131 … LOG(INFO) << "[" << partitionName << "]: device ptable[" << deviceIndex << "] startAddr = 0x" << in IsPartitionChanged() 132 …devicePtnInfo[deviceIndex].startAddr << ", in package ptable[" << updateIndex << "] startAddr is 0… in IsPartitionChanged() 136 if (devicePtnInfo[deviceIndex].partitionSize != pkgPtnInfo[updateIndex].partitionSize) { in IsPartitionChanged() 138 …LOG(INFO) << "[" << partitionName << "]: device ptable[" << deviceIndex << "] partitionSize = 0x" … in IsPartitionChanged() 139 devicePtnInfo[deviceIndex].partitionSize << ", in package ptable[" << updateIndex << in IsPartitionChanged()
|
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_capture/src/ |
H A D | audio_adm_if_lib_capture_test.cpp | 50 struct AudioHwCaptureParam *handleData, int32_t deviceIndex); 320 int32_t deviceIndex = 0; variable 321 int32_t ret = AudioCtlCaptureSceneSelectSBuf(sBuf, handleData, deviceIndex); 331 int32_t deviceIndex = 0; variable 332 int32_t ret = AudioCtlCaptureSceneSelectSBuf(sBuf, handleData, deviceIndex); 342 int32_t deviceIndex = 0; variable 343 int32_t ret = AudioCtlCaptureSceneSelectSBuf(sBuf, handleData, deviceIndex);
|
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_render/src/ |
H A D | audio_adm_if_lib_render_test.cpp | 49 struct AudioHwRenderParam *handleData, int32_t deviceIndex); 326 int32_t deviceIndex = 0; variable 327 int32_t ret = AudioCtlRenderSceneSelectSBuf(sBuf, handleData, deviceIndex); 337 int32_t deviceIndex = 0; variable 338 int32_t ret = AudioCtlRenderSceneSelectSBuf(sBuf, handleData, deviceIndex); 348 int32_t deviceIndex = 0; variable 349 int32_t ret = AudioCtlRenderSceneSelectSBuf(sBuf, handleData, deviceIndex);
|
/ohos5.0/drivers/peripheral/input/udriver/src/ |
H A D | input_device_manager.cpp | 677 RetStatus InputDeviceManager::OpenDevice(uint32_t deviceIndex) in OpenDevice() argument 682 if (deviceIndex >= inputDevList_.size()) { in OpenDevice() 686 auto searchIndex = inputDevList_.find(deviceIndex); in OpenDevice() 714 RetStatus InputDeviceManager::CloseDevice(uint32_t deviceIndex) in CloseDevice() argument 719 if (deviceIndex >= inputDevList_.size()) { in CloseDevice() 723 auto searchIndex = inputDevList_.find(deviceIndex); in CloseDevice() 728 __func__, deviceIndex, ret, inputDevList_.size()); in CloseDevice() 732 int32_t InputDeviceManager::GetDevice(int32_t deviceIndex, InputDeviceInfo **devInfo) in GetDevice() argument 737 …if (devInfo == nullptr || deviceIndex >= static_cast<int32_t>(inputDevList_.size()) || *devInfo !=… in GetDevice() 741 auto it = inputDevList_.find(deviceIndex); in GetDevice() [all …]
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-platform-clock-develop.md | 228 deviceIndex = 1; 257 uint32_t deviceIndex; 353 … HDF_LOGE("ClockParseAndDeviceAdd: add clock device:%u fail!", clockDevice->deviceIndex); 371 ret = drsOps->GetUint32(node, "deviceIndex", &clockDevice->deviceIndex, 0); 373 HDF_LOGE("ClockReadDrs: read deviceIndex fail, ret: %d!", ret); 421 int32_t deviceIndex; 431 ret = drsOps->GetUint32(node, "deviceIndex", (uint32_t *)&deviceIndex, 0); 433 HDF_LOGE("ClockRemoveByNode: read deviceIndex fail, ret: %d!", ret); 437 device = ClockDeviceGet(deviceIndex);
|
/ohos5.0/drivers/peripheral/input/udriver/include/ |
H A D | input_device_manager.h | 92 RetStatus OpenDevice(uint32_t deviceIndex); 93 RetStatus CloseDevice(uint32_t deviceIndex); 94 int32_t GetDevice(int32_t deviceIndex, InputDeviceInfo **devInfo);
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | clock_test.c | 95 tester.handle = ClockOpen(tester.config.deviceIndex); in ClockTesterGet() 97 HDF_LOGE("ClockTesterGet: open clock device:%u fail!", tester.config.deviceIndex); in ClockTesterGet() 119 HDF_LOGI("ClockTestEnable: clock device num is %u!", tester->config.deviceIndex); in ClockTestEnable()
|
H A D | clock_test.h | 21 uint32_t deviceIndex; member
|
H A D | clock_driver_test.c | 52 ret = drsOps->GetUint32(node, "deviceIndex", &config->deviceIndex, 0); in ClockTestReadConfig()
|
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/include/ |
H A D | input_parse.h | 50 int32_t deviceIndex { 0 };
|
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/src/ |
H A D | input_parse.cpp | 223 << ",deviceIndex:" << deviceIndex in ToString() 256 GetJsonData(deviceInfo, "deviceIndex", deviceItem.deviceIndex); in DataInit()
|
H A D | manage_inject_device.cpp | 39 uint16_t devIndex = item.deviceIndex; in TransformJsonData()
|
/ohos5.0/docs/zh-cn/application-dev/media/camera/ |
H A D | camera-foldable-display.md | 297 let deviceIndex = cameraArray.findIndex((cameraDevice: camera.CameraDevice) => { 300 if (deviceIndex === -1) { 301 deviceIndex = 0; 304 this.curCameraDevice = cameraArray[deviceIndex];
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/clock/ |
H A D | clock_core.h | 35 uint32_t deviceIndex; member
|
/ohos5.0/docs/en/application-dev/media/camera/ |
H A D | camera-foldable-display.md | 297 let deviceIndex = cameraArray.findIndex((cameraDevice: camera.CameraDevice) => { 300 if (deviceIndex === -1) { 301 deviceIndex = 0; 304 this.curCameraDevice = cameraArray[deviceIndex];
|
/ohos5.0/drivers/peripheral/audio/supportlibs/adm_adapter/src/ |
H A D | audio_interface_lib_capture.c | 491 const struct AudioHwCaptureParam *handleData, int32_t deviceIndex) in AudioCtlCaptureSceneSelectSBuf() argument 497 if (deviceIndex < 0 || deviceIndex > PATHPLAN_COUNT - 1) { in AudioCtlCaptureSceneSelectSBuf() 505 … handleData->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].deviceSwitch; in AudioCtlCaptureSceneSelectSBuf() 506 …e.value[0] = handleData->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].value; in AudioCtlCaptureSceneSelectSBuf()
|
H A D | audio_interface_lib_render.c | 425 const int32_t deviceIndex) in AudioCtlRenderSceneSelectSBuf() argument 431 if (deviceIndex < 0 || deviceIndex > PATHPLAN_COUNT - 1) { in AudioCtlRenderSceneSelectSBuf() 439 handleData->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].deviceSwitch; in AudioCtlRenderSceneSelectSBuf() 441 handleData->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].value; in AudioCtlRenderSceneSelectSBuf()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | pa_capturer_stream_impl.cpp | 392 uint32_t deviceIndex = pa_stream_get_device_index(stream); // pa_context_get_sink_info_by_index in PAStreamMovedCb() local 399 streamIndex, deviceIndex, res); in PAStreamMovedCb()
|
H A D | pa_renderer_stream_impl.cpp | 735 uint32_t deviceIndex = pa_stream_get_device_index(stream); // pa_context_get_sink_info_by_index in PAStreamMovedCb() local 742 streamIndex, deviceIndex, res); in PAStreamMovedCb()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/hdmi/ |
H A D | hdmi_core.h | 207 uint32_t deviceIndex; member
|