Home
last modified time | relevance | path

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

/hardware/interfaces/camera/provider/2.4/default/
DExternalCameraProviderImpl_2_4.cpp47 constexpr int kPrefixLen = std::char_traits<char>::length(kPrefix); variable
48 constexpr int kDevicePrefixLen = std::char_traits<char>::length(kDevicePath) + kPrefixLen;
306 if (!strncmp(kPrefix, de->d_name, kPrefixLen)) { in threadLoop()
309 std::string deviceId(de->d_name + kPrefixLen); in threadLoop()
345 if (!strncmp(kPrefix, event->name, kPrefixLen)) { in threadLoop()
346 std::string deviceId(event->name + kPrefixLen); in threadLoop()
/hardware/interfaces/camera/provider/2.7/default/
DExternalCameraProviderImpl_2_7.cpp45 constexpr int kPrefixLen = std::char_traits<char>::length(kPrefix); variable
46 constexpr int kDevicePrefixLen = std::char_traits<char>::length(kDevicePath) + kPrefixLen;
138 if (!strncmp(kPrefix, de->d_name, kPrefixLen)) { in updateAttachedCameras()
141 std::string deviceId(de->d_name + kPrefixLen); in updateAttachedCameras()
339 if (!strncmp(kPrefix, event->name, kPrefixLen)) { in threadLoop()
340 std::string deviceId(event->name + kPrefixLen); in threadLoop()
/hardware/interfaces/camera/provider/default/
DExternalCameraProvider.cpp48 constexpr int kPrefixLen = sizeof(kPrefix) - 1; variable
49 constexpr int kDevicePrefixLen = sizeof(kDevicePath) + kPrefixLen - 1;
254 if (!strncmp(kPrefix, de->d_name, kPrefixLen)) { in updateAttachedCameras()
255 std::string deviceId(de->d_name + kPrefixLen); in updateAttachedCameras()
353 if (strncmp(kPrefix, event->name, kPrefixLen) != 0) { in threadLoop()
358 std::string deviceId = event->name + kPrefixLen; in threadLoop()