Home
last modified time | relevance | path

Searched refs:devName (Results 1 - 25 of 42) sorted by relevance

12

/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/
H A Dfs_dm.c52 static int InitDmIo(struct dm_ioctl *io, const char *devName) in InitDmIo() argument
68 if (devName == NULL) { in InitDmIo()
72 err = strcpy_s(io->name, sizeof(io->name), devName); in InitDmIo()
74 BEGET_LOGE("cp devName, ret=%d", err); in InitDmIo()
81 static int CreateDmDevice(int fd, const char *devName) in CreateDmDevice() argument
86 rc = InitDmIo(&io, devName); in CreateDmDevice()
93 BEGET_LOGE("error, DM_DEV_CREATE failed for %s, ret=%d", devName, rc); in CreateDmDevice()
100 static int LoadDmDeviceTable(int fd, const char *devName, in LoadDmDeviceTable() argument
126 rc = InitDmIo(io, devName); in LoadDmDeviceTable()
159 BEGET_LOGE("error 0x%x, DM_TABLE_LOAD failed for %s", rc, devName); in LoadDmDeviceTable()
169 ActiveDmDevice(int fd, const char *devName) ActiveDmDevice() argument
190 GetDmDevPath(int fd, char **dmDevPath, const char *devName) GetDmDevPath() argument
230 FsDmCreateDevice(char **dmDevPath, const char *devName, DmVerityTarget *target) FsDmCreateDevice() argument
276 char *devName = NULL; FsDmInitDmDev() local
307 FsDmRemoveDevice(const char *devName) FsDmRemoveDevice() argument
339 DmGetDeviceName(int fd, const char *devName, char *outDevName, const uint64_t outDevNameLen) DmGetDeviceName() argument
382 FsDmCreateLinearDevice(const char *devName, char *dmBlkName, uint64_t dmBlkNameLen, DmVerityTarget *target) FsDmCreateLinearDevice() argument
[all...]
/base/telephony/call_manager/services/distributed_call/src/distributed_communication/
H A Ddistributed_device_switch_controller.cpp26 void DistributedDeviceSwitchController::OnDeviceOnline(const std::string &devId, const std::string &devName, in OnDeviceOnline() argument
31 std::string address = GetDevAddress(devId, devName); in OnDeviceOnline()
32 audioDeviceManager->AddAudioDeviceList(address, devType, devName); in OnDeviceOnline()
36 void DistributedDeviceSwitchController::OnDeviceOffline(const std::string &devId, const std::string &devName, in OnDeviceOffline() argument
41 std::string address = GetDevAddress(devId, devName); in OnDeviceOffline()
48 const std::string &devName, AudioDeviceType devType, int32_t devRole) in OnDistributedAudioDeviceChange()
53 std::string address = GetDevAddress(devId, devName); in OnDistributedAudioDeviceChange()
58 memcpy_s(targetDevice.deviceName, kMaxDeviceNameLen, devName.c_str(), devName.length()) != EOK) { in OnDistributedAudioDeviceChange()
108 std::string DistributedDeviceSwitchController::GetDevAddress(const std::string &devId, const std::string &devName) in GetDevAddress() argument
47 OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName, AudioDeviceType devType, int32_t devRole) OnDistributedAudioDeviceChange() argument
[all...]
H A Ddistributed_device_observer.cpp97 void DistributedDeviceObserver::OnDeviceOnline(const std::string &devId, const std::string &devName, in OnDeviceOnline() argument
103 callback->OnDeviceOnline(devId, devName, devType); in OnDeviceOnline()
108 void DistributedDeviceObserver::OnDeviceOffline(const std::string &devId, const std::string &devName, in OnDeviceOffline() argument
114 callback->OnDeviceOffline(devId, devName, devType); in OnDeviceOffline()
119 void DistributedDeviceObserver::OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName, in OnDistributedAudioDeviceChange() argument
125 callback->OnDistributedAudioDeviceChange(devId, devName, devType, devRole); in OnDistributedAudioDeviceChange()
140 int32_t DistributedDeviceCallback::OnDistributedDeviceOnline(const std::string &devId, const std::string &devName, in OnDistributedDeviceOnline() argument
152 distributedMgr->OnDeviceOnline(devId, devName, deviceType, devRole); in OnDistributedDeviceOnline()
156 int32_t DistributedDeviceCallback::OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName, in OnDistributedAudioDeviceChange() argument
170 deviceObserver->OnDistributedAudioDeviceChange(devId, devName, deviceTyp in OnDistributedAudioDeviceChange()
175 OnDistributedDeviceOffline(const std::string &devId, const std::string &devName, int32_t devType, int32_t devRole) OnDistributedDeviceOffline() argument
[all...]
/base/telephony/call_manager/test/unittest/distributed_communication_test/src/
H A Ddistributed_dev_observer_test.cpp48 std::string devName = "UnitTestDeviceName"; in HWTEST_F() local
60 ASSERT_NO_THROW(deviceObserver->OnDeviceOnline(devId, devName, deviceType)); in HWTEST_F()
61 ASSERT_NO_THROW(deviceObserver->OnDeviceOffline(devId, devName, deviceType)); in HWTEST_F()
67 int32_t ret = deviceCallback->OnDistributedAudioDeviceChange(devId, devName, devType, devRole); in HWTEST_F()
71 ret = deviceCallback->OnDistributedAudioDeviceChange(devId, devName, devType, devRole); in HWTEST_F()
94 std::string devName = "UnitTestDeviceName"; in HWTEST_F() local
97 int32_t ret = deviceCallback->OnDistributedDeviceOnline(devId, devName, devType, devRole); in HWTEST_F()
100 ret = deviceCallback->OnDistributedDeviceOffline(devId, devName, devType, devRole); in HWTEST_F()
104 ret = deviceCallback->OnDistributedDeviceOnline(devId, devName, devType, devRole); in HWTEST_F()
107 ret = deviceCallback->OnDistributedDeviceOffline(devId, devName, devTyp in HWTEST_F()
[all...]
H A Ddistributed_communication_manager_test.cpp103 std::string devName = "UnitTestDeviceName"; in HWTEST_F() local
108 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
113 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
120 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
133 std::string devName = "UnitTestDeviceName"; in HWTEST_F() local
137 ASSERT_NO_THROW(dcManager->OnDeviceOffline(devId, devName, deviceType, devRole)); in HWTEST_F()
141 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
144 ASSERT_NO_THROW(dcManager->OnDeviceOffline(devId, devName, deviceType, devRole)); in HWTEST_F()
157 std::string devName = "UnitTestDeviceName"; in HWTEST_F() local
162 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceTyp in HWTEST_F()
[all...]
H A Ddistributed_dev_switch_test.cpp41 std::string devName = "UnitTestDeviceName"; in HWTEST_F() local
45 ASSERT_NO_THROW(devSwitchController->OnDeviceOnline(devId, devName, deviceType)); in HWTEST_F()
46 ASSERT_NO_THROW(devSwitchController->OnDeviceOffline(devId, devName, deviceType)); in HWTEST_F()
47 ASSERT_NO_THROW(devSwitchController->OnDistributedAudioDeviceChange(devId, devName, in HWTEST_F()
/base/update/updater/services/flashd/
H A Dpartition.h29 explicit Partition(const std::string &devName) : devName_(devName) {} in Partition() argument
30 Partition(const std::string &devName, std::unique_ptr<FlashdWriter> writer) : devName_(devName), in Partition() argument
/base/telephony/call_manager/services/distributed_call/include/distributed_communication/
H A Ddistributed_device_observer.h31 int32_t OnDistributedDeviceOnline(const std::string &devId, const std::string &devName,
33 int32_t OnDistributedDeviceOffline(const std::string &devId, const std::string &devName,
35 int32_t OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName,
59 void OnDeviceOnline(const std::string &devId, const std::string &devName, AudioDeviceType devType);
60 void OnDeviceOffline(const std::string &devId, const std::string &devName, AudioDeviceType devType);
61 void OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName,
H A Ddistributed_device_switch_controller.h28 void OnDeviceOnline(const std::string &devId, const std::string &devName, AudioDeviceType devType) override;
29 void OnDeviceOffline(const std::string &devId, const std::string &devName, AudioDeviceType devType) override;
30 void OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName,
38 std::string GetDevAddress(const std::string &devId, const std::string &devName);
H A Di_distributed_device_callback.h27 virtual int32_t OnDistributedDeviceOnline(const std::string &devId, const std::string &devName,
29 virtual int32_t OnDistributedDeviceOffline(const std::string &devId, const std::string &devName,
31 virtual int32_t OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName,
H A Di_distributed_device_state_callback.h27 virtual void OnDeviceOnline(const std::string &devId, const std::string &devName, AudioDeviceType devType) = 0;
28 virtual void OnDeviceOffline(const std::string &devId, const std::string &devName, AudioDeviceType devType) = 0;
29 virtual void OnDistributedAudioDeviceChange(const std::string &devId, const std::string &devName,
H A Ddistributed_data_source_controller.h30 void OnDeviceOnline(const std::string &devId, const std::string &devName, AudioDeviceType devType) override;
31 void OnDeviceOffline(const std::string &devId, const std::string &devName, AudioDeviceType devType) override;
H A Ddistributed_data_sink_controller.h30 void OnDeviceOnline(const std::string &devId, const std::string &devName, AudioDeviceType devType) override {}
31 void OnDeviceOffline(const std::string &devId, const std::string &devName, AudioDeviceType devType) override {}
H A Ddistributed_communication_manager.h50 void OnDeviceOnline(const std::string &devId, const std::string &devName, AudioDeviceType deviceType,
52 void OnDeviceOffline(const std::string &devId, const std::string &devName, AudioDeviceType deviceType,
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include/
H A Dfs_dm.h38 int FsDmCreateDevice(char **dmDevPath, const char *devName, DmVerityTarget *target);
39 int FsDmRemoveDevice(const char *devName);
40 int FsDmCreateLinearDevice(const char *devName, char *dmBlkName, uint64_t dmBlkNameLen, DmVerityTarget *target);
/base/startup/init/test/unittest/fs_manager/
H A Dlibfs_hvb_unittest.cpp143 const char *devName = "test"; in HWTEST_F() local
146 int ret = FsHvbConstructVerityTarget(nullptr, devName, &cert); in HWTEST_F()
150 ret = FsHvbConstructVerityTarget(&target, devName, nullptr); in HWTEST_F()
155 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F()
159 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F()
165 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F()
176 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F()
180 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F()
/base/update/updater/utils/include/
H A Dpartition_utils.h26 explicit PartitionUtils(const std::string &devName) : devName_(devName) {} in PartitionUtils() argument
/base/update/sys_installer/services/module_update/src/
H A Dmodule_dm.cpp59 std::string devName = OHOS::ExtractFileName(deviceName); in CreateDmDevice() local
77 ret = FsDmCreateDevice(&devPath, devName.c_str(), &target); in CreateDmDevice()
104 std::string devName = OHOS::ExtractFileName(deviceName); in RemoveDmDevice() local
105 ret = FsDmRemoveDevice(devName.c_str()); in RemoveDmDevice()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
H A Dfs_hvb.c210 static int FsHvbGetCert(struct hvb_cert *cert, char *devName, struct hvb_verified_data *vd) in FsHvbGetCert() argument
213 size_t devNameLen = strlen(devName); in FsHvbGetCert()
222 if (memcmp(p->partition_name, devName, devNameLen) == 0) { in FsHvbGetCert()
228 BEGET_LOGE("error, can't found %s partition", devName); in FsHvbGetCert()
404 int FsHvbConstructVerityTarget(DmVerityTarget *target, const char *devName, struct hvb_cert *cert) in FsHvbConstructVerityTarget() argument
412 FS_HVB_RETURN_ERR_IF_NULL(devName); in FsHvbConstructVerityTarget()
424 ((strchr(devName, '/') == NULL) ? FS_HVB_PARTITION_PREFIX : ""), devName) == -1) { in FsHvbConstructVerityTarget()
480 static int FsHvbCreateVerityTarget(DmVerityTarget *target, char *devName, struct hvb_verified_data *vd) in FsHvbCreateVerityTarget() argument
485 rc = FsHvbGetCert(&cert, devName, v in FsHvbCreateVerityTarget()
512 char *devName = NULL; FsHvbSetupHashtree() local
[all...]
/base/update/updater/services/fs_manager/
H A Dpartitions.cpp211 const std::string devName = LastComponent(dev.devPath); in InitGeneric() local
212 std::string partSize = ReadPartitionFromSys(devName, "", "size", ""); in InitGeneric()
334 const std::string devName = LastComponent(dev.devPath); in NewPartition() local
336 if (devName == MMC_DEV) { in NewPartition()
337 if (snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%sp%d", devName.c_str(), partn) == -1) { in NewPartition()
342 if (devName != MMC_DEV && ((devName == SDA_DEV) || (devName == SDB_DEV)) && in NewPartition()
343 snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%s%d", devName.c_str(), partn) == -1) { in NewPartition()
348 std::string strstart = ReadPartitionFromSys(devName, partNam in NewPartition()
[all...]
/base/startup/init/ueventd/
H A Dueventd_device_handler.c399 const char *devName = NULL; in GetDeviceName() local
407 devName = basename((char *)deviceName); in GetDeviceName()
414 devName = basename(sysPath); in GetDeviceName()
416 devName = p; in GetDeviceName()
421 devName = basename(sysPath); in GetDeviceName()
423 return devName; in GetDeviceName()
483 const char *devName = GetDeviceName(sysPath, uevent->deviceName); in HandleBlockDeviceEvent() local
485 if (devPath == NULL || devName == NULL) { in HandleBlockDeviceEvent()
489 if (snprintf_s(deviceNode, DEVICE_FILE_SIZE, DEVICE_FILE_SIZE - 1, "%s/%s", devPath, devName) == -1) { in HandleBlockDeviceEvent()
513 const char *devName in HandleOtherDeviceEvent() local
[all...]
/base/startup/init/test/unittest/fs_manager/erofs/
H A Derofs_mount_unittest.cpp33 const char *devName = STARTUP_INIT_UT_PATH"/data/erofs/mount/rofs"; in HWTEST_F() local
34 AllocDmName(devName, nameRofs, MAX_BUFFER_LEN, nameExt4, MAX_BUFFER_LEN); in HWTEST_F()
/base/telephony/call_manager/services/distributed_call/include/dcall/
H A Ddcall_device_info.h39 char devName[kMaxDCallDevNameLen] = { 0 }; member
/base/startup/init/interfaces/innerkits/include/fs_manager/
H A Dfs_manager.h102 int MountOneWithFstabFile(const char *fstabFile, const char *devName, bool required);
103 int FsManagerDmRemoveDevice(const char *devName);
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/include/
H A Dfs_hvb.h61 int FsHvbConstructVerityTarget(DmVerityTarget *target, const char *devName, struct hvb_cert *cert);

Completed in 9 milliseconds

12