Home
last modified time | relevance | path

Searched refs:devicePath (Results 1 – 3 of 3) sorted by relevance

/base/telephony/ril_adapter/services/vendor/src/
Dvendor_adapter.c327 const char *devicePath = DEVICE_PATH; in EventListeners() local
332 devicePath = atTtyPath; in EventListeners()
335 TELEPHONY_LOGI("opening AT interface %{public}s", devicePath); in EventListeners()
339 if (devicePath != NULL) { in EventListeners()
340 g_fd = open(devicePath, O_RDWR); in EventListeners()
345 } else if (!memcmp(devicePath, DEVICE_PATH_DEFAULT, sizeof(DEVICE_PATH_DEFAULT) - 1)) { in EventListeners()
/base/startup/init/ueventd/
Dueventd_device_handler.c155 const char *devicePath = dirname(deviceNodeBuffer); in CreateDeviceNode() local
157 if (STRINGEQUAL(devicePath, ".") || STRINGEQUAL(devicePath, "/")) { in CreateDeviceNode()
162 rc = MakeDirRecursive(devicePath, DIRMODE); in CreateDeviceNode()
164 INIT_LOGE("Create path \" %s \" failed", devicePath); in CreateDeviceNode()
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp209 char devicePath[MAX_BUFFER_LEN] = {0}; variable
210 EXPECT_EQ(GetBlockDevicePath("/vendor", devicePath, MAX_BUFFER_LEN), 0);
211 EXPECT_EQ(GetBlockDevicePath("/misc", devicePath, MAX_BUFFER_LEN), 0);
212 EXPECT_EQ(GetBlockDevicePath("/invalid", devicePath, MAX_BUFFER_LEN), -1);
214 EXPECT_EQ(GetBlockDevicePath("/invalid", devicePath, MAX_BUFFER_LEN), -1);