Home
last modified time | relevance | path

Searched refs:devicePath (Results 1 - 7 of 7) sorted by relevance

/base/update/updater/services/ui/driver/
H A Dsurface_dev.cpp55 bool isFbDevice = std::find_if(fbDeviceList_.begin(), fbDeviceList_.end(), [] (auto &devicePath) { in GetDevType()
56 if (access(devicePath.c_str(), 0) != 0) { in GetDevType()
57 LOG(WARNING) << devicePath << " not existed"; in GetDevType()
93 void SurfaceDev::AddFbDevice(const std::string &devicePath) in AddFbDevice() argument
95 fbDeviceList_.push_back(devicePath); in AddFbDevice()
H A Dsurface_dev.h39 static void AddFbDevice(const std::string &devicePath);
/base/telephony/ril_adapter/services/vendor/src/
H A Dvendor_adapter.c339 const char *devicePath = DEVICE_PATH; in EventListeners() local
344 devicePath = atTtyPath; in EventListeners()
347 TELEPHONY_LOGI("opening AT interface %{public}s", devicePath); in EventListeners()
351 if (devicePath != NULL) { in EventListeners()
352 g_fd = open(devicePath, O_RDWR); in EventListeners()
357 } else if (!memcmp(devicePath, DEVICE_PATH_DEFAULT, sizeof(DEVICE_PATH_DEFAULT) - 1)) { in EventListeners()
/base/startup/init/test/unittest/innerkits/
H A Dinnerkits_unittest.cpp214 char devicePath[MAX_BUFFER_LEN] = {0}; in HWTEST_F() local
215 EXPECT_EQ(GetBlockDevicePath("/vendor", devicePath, MAX_BUFFER_LEN), 0); in HWTEST_F()
216 EXPECT_EQ(GetBlockDevicePath("/misc", devicePath, MAX_BUFFER_LEN), 0); in HWTEST_F()
217 EXPECT_EQ(GetBlockDevicePath("/invalid", devicePath, MAX_BUFFER_LEN), -1); in HWTEST_F()
219 EXPECT_EQ(GetBlockDevicePath("/invalid", devicePath, MAX_BUFFER_LEN), -1); in HWTEST_F()
/base/startup/init/ueventd/
H A Dueventd_device_handler.c167 const char *devicePath = dirname(deviceNodeBuffer); in CreateDeviceNode() local
169 if (STRINGEQUAL(devicePath, ".") || STRINGEQUAL(devicePath, "/")) { in CreateDeviceNode()
174 rc = MakeDirRecursive(devicePath, DIRMODE); in CreateDeviceNode()
176 INIT_LOGE("Create path \" %s \" failed", devicePath); in CreateDeviceNode()
/base/update/sys_installer/services/module_update/include/
H A Dmodule_loop.h63 bool ConfigureReadAhead(const std::string &devicePath);
/base/update/sys_installer/services/module_update/src/
H A Dmodule_loop.cpp138 bool ConfigureReadAhead(const string &devicePath) in ConfigureReadAhead() argument
140 if (!StartsWith(devicePath, DEVICE_PREFIX)) { in ConfigureReadAhead()
141 LOG(ERROR) << "invalid device path " << devicePath; in ConfigureReadAhead()
144 string path(devicePath); in ConfigureReadAhead()

Completed in 4 milliseconds