Searched refs:devicePath (Results 1 – 5 of 5) sorted by relevance
| /base/telephony/ril_adapter/services/vendor/src/ |
| D | vendor_adapter.c | 332 const char *devicePath = DEVICE_PATH; in EventListeners() local 337 devicePath = atTtyPath; in EventListeners() 340 TELEPHONY_LOGI("opening AT interface %{public}s", devicePath); in EventListeners() 344 if (devicePath != NULL) { in EventListeners() 345 g_fd = open(devicePath, O_RDWR); in EventListeners() 350 } else if (!memcmp(devicePath, DEVICE_PATH_DEFAULT, sizeof(DEVICE_PATH_DEFAULT) - 1)) { in EventListeners()
|
| /base/update/sys_installer/services/module_update/src/ |
| D | module_loop.cpp | 121 bool ConfigureReadAhead(const string &devicePath) in ConfigureReadAhead() argument 123 if (!StartsWith(devicePath, DEVICE_PREFIX)) { in ConfigureReadAhead() 124 LOG(ERROR) << "invalid device path " << devicePath; in ConfigureReadAhead() 127 string path(devicePath); in ConfigureReadAhead()
|
| /base/update/sys_installer/services/module_update/include/ |
| D | module_loop.h | 63 bool ConfigureReadAhead(const std::string &devicePath);
|
| /base/startup/init/ueventd/ |
| D | ueventd_device_handler.c | 167 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/startup/init/test/unittest/innerkits/ |
| D | innerkits_unittest.cpp | 210 char devicePath[MAX_BUFFER_LEN] = {0}; variable 211 EXPECT_EQ(GetBlockDevicePath("/vendor", devicePath, MAX_BUFFER_LEN), 0); 212 EXPECT_EQ(GetBlockDevicePath("/misc", devicePath, MAX_BUFFER_LEN), 0); 213 EXPECT_EQ(GetBlockDevicePath("/invalid", devicePath, MAX_BUFFER_LEN), -1); 215 EXPECT_EQ(GetBlockDevicePath("/invalid", devicePath, MAX_BUFFER_LEN), -1);
|