Home
last modified time | relevance | path

Searched refs:devices (Results 1 - 25 of 36) sorted by relevance

12

/base/startup/init/services/init/standard/
H A Dinit_firststage.c57 char **devices = (char **)calloc(num, sizeof(char *)); in GetRequiredDevices() local
58 INIT_ERROR_CHECK(devices != NULL, return NULL, "Failed calloc err=%d", errno); in GetRequiredDevices()
64 devices[i] = strdup(item->deviceName); in GetRequiredDevices()
65 INIT_ERROR_CHECK(devices[i] != NULL, FreeStringVector(devices, num); return NULL, in GetRequiredDevices()
80 return devices; in GetRequiredDevices()
100 char **devices = (fstab != NULL) ? GetRequiredDevices(*fstab, &requiredNum) : NULL; in MountRequiredPartitions() local
101 if (devices != NULL && requiredNum > 0) { in MountRequiredPartitions()
102 int ret = StartUeventd(devices, requiredNum); in MountRequiredPartitions()
106 FreeStringVector(devices, requiredNu in MountRequiredPartitions()
[all...]
/base/startup/init/ueventd/
H A Dueventd.c175 static void HandleRequiredBlockDeviceNodes(const struct Uevent *uevent, char **devices, int num) in HandleRequiredBlockDeviceNodes() argument
179 if (strstr(devices[i], uevent->deviceName) != NULL) { in HandleRequiredBlockDeviceNodes()
180 INIT_LOGI("%s match with required partition %s success, now handle it", devices[i], uevent->deviceName); in HandleRequiredBlockDeviceNodes()
184 } else if (strstr(devices[i], uevent->partitionName) != NULL || in HandleRequiredBlockDeviceNodes()
200 static void HandleUeventRequired(const struct Uevent *uevent, char **devices, int num) in HandleUeventRequired() argument
202 INIT_ERROR_CHECK(devices != NULL && num > 0, return, "Fault parameters"); in HandleUeventRequired()
208 HandleRequiredBlockDeviceNodes(uevent, devices, num); in HandleUeventRequired()
290 void ProcessUevent(int sockFd, char **devices, int num) in ProcessUevent() argument
302 if (devices != NULL && num > 0) { in ProcessUevent()
303 HandleUeventRequired(&uevent, devices, nu in ProcessUevent()
310 DoTrigger(const char *ueventPath, int sockFd, char **devices, int num) DoTrigger() argument
337 Trigger(const char *path, int sockFd, char **devices, int num) Trigger() argument
377 RetriggerUevent(int sockFd, char **devices, int num) RetriggerUevent() argument
[all...]
H A Dueventd_main.c70 ProcessUevent(ueventSockFd, NULL, 0); // Not require boot devices in PollUeventdSocketTimeout()
87 RetriggerUevent(ueventSockFd, NULL, 0); // Not require boot devices in UeventdRetrigger()
113 RetriggerUevent(ueventSockFd, NULL, 0); // Not require boot devices in UeventdDaemon()
122 ProcessUevent(ueventSockFd, NULL, 0); // Not require boot devices in UeventdDaemon()
136 char *devices[] = { in UeventdEarlyBoot() local
141 RetriggerUevent(ueventSockFd, devices, 2); in UeventdEarlyBoot()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_distributed_options.cpp36 void NotificationDistributedOptions::SetDevicesSupportDisplay(const std::vector<std::string> &devices) in SetDevicesSupportDisplay() argument
38 devicesSupportDisplay_ = devices; in SetDevicesSupportDisplay()
46 void NotificationDistributedOptions::SetDevicesSupportOperate(const std::vector<std::string> &devices) in SetDevicesSupportOperate() argument
48 devicesSupportOperate_ = devices; in SetDevicesSupportOperate()
/base/startup/init/ueventd/include/
H A Dueventd.h77 void RetriggerUevent(int sockFd, char **devices, int num);
79 void ProcessUevent(int sockFd, char **devices, int num);
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_distributed_options.h32 * @param dvsDisplay Indicates the devices that support display.
33 * @param dvsOperate Indicates the devices that support operate.
55 * @brief Sets devices that support display.
57 * @param devices Indicates the devices that support display.
59 void SetDevicesSupportDisplay(const std::vector<std::string> &devices);
62 * @brief Obtains the devices that support display.
64 * @return Returns the devices that support display.
69 * @brief Sets devices that support operate.
71 * @param devices Indicate
[all...]
H A Dnotification_request.h719 * devices.
727 * devices.This method takes effect only for notifications published by calling
1070 * @brief Sets devices that support display.
1072 * @param devices Indicates the devices that support display.
1074 void SetDevicesSupportDisplay(const std::vector<std::string> &devices);
1077 * @brief Sets devices that support operate.
1079 * @param devices Indicates the devices that support operate.
1081 void SetDevicesSupportOperate(const std::vector<std::string> &devices);
[all...]
/base/security/access_token/services/tokensyncmanager/src/service/
H A Dtoken_sync_manager_service.cpp121 std::vector<DeviceInfo> devices = DeviceInfoRepository::GetInstance().ListDeviceInfo(); in DeleteRemoteHapTokenInfo() local
123 for (const DeviceInfo& device : devices) { in DeleteRemoteHapTokenInfo()
146 std::vector<DeviceInfo> devices = DeviceInfoRepository::GetInstance().ListDeviceInfo(); in UpdateRemoteHapTokenInfo() local
148 for (const DeviceInfo& device : devices) { in UpdateRemoteHapTokenInfo()
/base/telephony/ril_adapter/services/hril_hdf/src/
H A Dhril_hdf.c96 struct udev_list_entry *devices, *devListEntry; in GetUsbDeviceInfo() local
112 devices = udev_enumerate_get_list_entry(enumerate); in GetUsbDeviceInfo()
113 udev_list_entry_foreach(devListEntry, devices) { in GetUsbDeviceInfo()
/base/usb/usb_manager/services/native/src/
H A Dusb_service.cpp511 std::map<std::string, UsbDevice *> devices; in GetDevices() local
517 usbHostManager_->GetDevices(devices); in GetDevices()
518 USB_HILOGI(MODULE_USB_SERVICE, "list size %{public}zu", devices.size()); in GetDevices()
519 for (auto it = devices.begin(); it != devices.end(); ++it) { in GetDevices()
1438 std::map<std::string, UsbDevice *> devices; in ExecuteManageInterfaceType() local
1439 usbHostManager_->GetDevices(devices); in ExecuteManageInterfaceType()
1440 for (auto it = devices.begin(); it != devices.end(); ++it) { in ExecuteManageInterfaceType()
1454 for (auto it = devices in ExecuteManageInterfaceType()
1514 std::map<std::string, UsbDevice *> devices; ExecuteManageDevicePolicy() local
1677 std::vector<std::string> devices; InitUsbRight() local
2046 std::map<std::string, UsbDevice *> devices; UnLoadSelf() local
2152 std::map<std::string, UsbDevice *> devices; ManageGlobalInterfaceImpl() local
2194 std::map<std::string, UsbDevice *> devices; ManageDeviceImpl() local
2244 std::map<std::string, UsbDevice *> devices; ManageInterfaceTypeImpl() local
2301 std::map<std::string, UsbDevice *> devices; ManageDeviceTypeImpl() local
[all...]
H A Dusb_mass_storage_notification.cpp229 void UsbMassStorageNotification::CancelNotification(const std::map<std::string, UsbDevice *> &devices, in CancelNotification() argument
236 for (auto it : devices) { in CancelNotification()
H A Dusb_host_manager.cpp84 void UsbHostManager::GetDevices(MAP_STR_DEVICE &devices) in GetDevices() argument
86 devices = devices_; in GetDevices()
H A Dusb_right_manager.cpp498 int32_t UsbRightManager::CleanUpRightExpired(std::vector<std::string> &devices) in CleanUpRightExpired() argument
500 USB_HILOGD(MODULE_USB_SERVICE, "clean up expired right: size=%{public}zu", devices.size()); in CleanUpRightExpired()
501 size_t len = devices.size(); in CleanUpRightExpired()
504 std::string dev = devices.at(i); in CleanUpRightExpired()
/base/print/print_fwk/frameworks/ohscan/src/
H A Dohscan.cpp57 static inline void FreeDeviceListMemory(Scan_ScannerDevice** devices, int32_t deviceCount) in FreeDeviceListMemory() argument
60 DELETE_AND_NULLIFY(devices[i]) in FreeDeviceListMemory()
62 DELETE_ARRAY_AND_NULLIFY(devices) in FreeDeviceListMemory()
73 Scan_ScannerDevice** devices = new (std::nothrow) Scan_ScannerDevice* [deviceCount];
74 if (devices == nullptr) {
75 SCAN_HILOGE("devices is a nullptr");
79 if (memset_s(devices, devicesMemSize, 0, devicesMemSize) != 0) {
81 FreeDeviceListMemory(devices, 0);
88 SCAN_HILOGE("devices is a nullptr");
102 devices[
[all...]
/base/security/device_auth/services/data_manager/src/
H A Ddata_manager.c79 TlvDeviceVec devices; member
114 TLV_MEMBER(TlvDeviceVec, devices, 0x6003)
123 DeviceEntryVec devices; member
400 FOR_EACH_HC_VECTOR(db->devices.data, index, device) { in LoadDevices()
435 if (!LoadDevices(&dbv1, &info->devices)) { in ReadInfoFromParcel()
521 info.devices = CreateDeviceEntryVec(); in LoadOsAccountDb()
524 DestroyDeviceEntryVec(&info.devices); in LoadOsAccountDb()
532 ClearDeviceEntryVec(&info.devices); in LoadOsAccountDb()
589 ClearDeviceEntryVec(&deleteInfo.devices); in RemoveOsAccountTrustedInfo()
654 newInfo.devices in GetTrustedInfoByOsAccountId()
1612 const DeviceEntryVec *devices = &db->devices; DumpDb() local
[all...]
/base/usb/usb_manager/services/native/include/
H A Dusb_mass_storage_notification.h35 void CancelNotification(const std::map<std::string, UsbDevice *> &devices,
H A Dusb_host_manager.h43 void GetDevices(MAP_STR_DEVICE &devices);
H A Dusb_right_manager.h52 int32_t CleanUpRightExpired(std::vector<std::string> &devices);
/base/telephony/call_manager/services/bluetooth/src/
H A Dbluetooth_connection.cpp64 std::vector<Bluetooth::BluetoothRemoteDevice> devices; in Init() local
70 int32_t result = profile->GetConnectedDevices(devices); in Init()
72 TELEPHONY_LOGE("get connected devices fail"); in Init()
75 for (auto device : devices) { in Init()
/base/print/print_fwk/frameworks/ohscan/include/
H A Dohscan.h138 * @brief Scanner devices discovery callback, register by {@link OH_Scan_StartScannerDiscovery}.
139 * The memory of {@link devices} will be released when the callback function ends.
141 * @param devices List of all discovered scanner devices.
145 typedef void (*Scan_ScannerDiscoveryCallback)(Scan_ScannerDevice** devices, int32_t deviceCount);
162 * @brief This API starts discovering scanners, Register a callback to handle discovered scanner devices.
176 * @brief This API connects to scanner devices.
/base/print/print_fwk/test/fuzztest/scancapi_fuzzer/
H A Dscancapi_fuzzer.cpp28 void DiscoveryCallBack(Scan_ScannerDevice** devices, int32_t deviceCount) {} in DiscoveryCallBack() argument
/base/telephony/call_manager/services/distributed_call/include/
H A Ddistributed_call_manager.h75 void NotifyOnlineDCallDevices(std::vector<std::string> devices);
/base/telephony/call_manager/services/distributed_call/src/
H A Ddistributed_call_manager.cpp235 void DistributedCallManager::NotifyOnlineDCallDevices(std::vector<std::string> devices) in NotifyOnlineDCallDevices() argument
237 TELEPHONY_LOGI("notify online dcall devices start, size: %{public}d", static_cast<int32_t>(devices.size())); in NotifyOnlineDCallDevices()
238 for (auto item : devices) { in NotifyOnlineDCallDevices()
242 TELEPHONY_LOGI("notify online dcall devices end."); in NotifyOnlineDCallDevices()
/base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/
H A Dthread_sampler_test.cpp83 std::string devices; in GetMMapSizeAndName() local
86 iss >> addrs >> permissions >> offset >> devices >> inode >> pathname; in GetMMapSizeAndName()
/base/msdp/device_status/intention/cooperate/plugin/include/
H A Dcooperate_events.h217 std::vector<std::shared_ptr<IDevice>> devices; member

Completed in 18 milliseconds

12