Home
last modified time | relevance | path

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

/hardware/interfaces/camera/provider/aidl/vts/
Dcamera_aidl_test.cpp64 bool parseProviderName(const std::string& serviceDescriptor, std::string* type /*out*/, in parseProviderName() argument
72 std::string::size_type slashIdx1 = serviceDescriptor.find('/'); in parseProviderName()
73 if (slashIdx1 == std::string::npos || slashIdx1 == serviceDescriptor.size() - 1) { in parseProviderName()
78 std::string::size_type slashIdx2 = serviceDescriptor.find('/', slashIdx1 + 1); in parseProviderName()
79 if (slashIdx2 == std::string::npos || slashIdx2 == serviceDescriptor.size() - 1) { in parseProviderName()
84 std::string typeVal = serviceDescriptor.substr(slashIdx1 + 1, slashIdx2 - slashIdx1 - 1); in parseProviderName()
88 int64_t idVal = strtol(serviceDescriptor.c_str() + slashIdx2 + 1, &endPtr, 10); in parseProviderName()
90 ADD_FAILURE() << "cannot parse provider id as an integer:" << serviceDescriptor.c_str() in parseProviderName()
94 if (endPtr != serviceDescriptor.c_str() + serviceDescriptor.size()) { in parseProviderName()
95 ADD_FAILURE() << "provider id has unexpected length " << serviceDescriptor.c_str(); in parseProviderName()
[all …]