Searched refs:globalId (Results 1 - 6 of 6) sorted by relevance
/base/print/print_fwk/frameworks/models/print_models/src/ |
H A D | print_utils.cpp | 52 std::string PrintUtils::GetExtensionId(const std::string &globalId) in GetExtensionId() argument 54 auto pos = globalId.find(GLOBAL_ID_DELIMITER); in GetExtensionId() 58 return globalId.substr(0, pos); in GetExtensionId() 66 std::string PrintUtils::GetLocalId(const std::string& globalId, const std::string& extensionId) in GetLocalId() argument 68 auto pos = globalId.find(GLOBAL_ID_DELIMITER); in GetLocalId() 73 if (globalId.substr(0, pos) != extensionId) { in GetLocalId() 76 return globalId.substr(pos + 1); in GetLocalId()
|
/base/print/print_fwk/frameworks/helper/scan_helper/src/ |
H A D | napi_scan_utils.cpp | 340 std::string NapiScanUtils::GetExtensionId(const std::string &globalId) in GetExtensionId() argument 342 auto pos = globalId.find(GLOBAL_ID_DELIMITER); in GetExtensionId() 346 return globalId.substr(0, pos); in GetExtensionId() 354 std::string NapiScanUtils::GetLocalId(const std::string& globalId, const std::string& extensionId) in GetLocalId() argument 356 auto pos = globalId.find(GLOBAL_ID_DELIMITER); in GetLocalId() 361 if (globalId.substr(0, pos) != extensionId) { in GetLocalId() 364 return globalId.substr(pos + 1); in GetLocalId()
|
/base/print/print_fwk/frameworks/models/print_models/include/ |
H A D | print_utils.h | 40 static std::string GetExtensionId(const std::string &globalId); 42 static std::string GetLocalId(const std::string &globalId, const std::string &extensionId);
|
/base/print/print_fwk/frameworks/helper/scan_helper/include/ |
H A D | napi_scan_utils.h | 87 static std::string GetExtensionId(const std::string &globalId);
89 static std::string GetLocalId(const std::string& globalId, const std::string& extensionId);
|
/base/print/print_fwk/test/fuzztest/scanhelper_fuzzer/ |
H A D | scanhelper_fuzzer.cpp | 602 std::string globalId = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestGetExtensionIdInterface() local 603 NapiScanUtils::GetExtensionId(globalId); in TestGetExtensionIdInterface() 608 std::string globalId = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestGetGlobalIdInterface() local 610 NapiScanUtils::GetGlobalId(globalId, localId); in TestGetGlobalIdInterface() 615 std::string globalId = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestGetLocalIdInterface() local 617 NapiScanUtils::GetLocalId(globalId, extensionId); in TestGetLocalIdInterface() 622 std::string globalId = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in TestEncodeExtensionCidInterface() local 624 NapiScanUtils::EncodeExtensionCid(globalId, callbackId); in TestEncodeExtensionCidInterface()
|
/base/print/print_fwk/test/unittest/fwk_print_service_ability_test/ |
H A D | print_service_ability_test.cpp | 2070 std::string globalId = VendorManager::GetGlobalPrinterId(vendorName, printerId); in HWTEST_F() local 2071 EXPECT_EQ(service->QueryVendorPrinterInfo(globalId, info2), E_PRINT_INVALID_PRINTER); in HWTEST_F() 2074 EXPECT_EQ(service->QueryVendorPrinterInfo(globalId, info2), E_PRINT_INVALID_PRINTER); in HWTEST_F() 2079 EXPECT_EQ(service->QueryVendorPrinterInfo(globalId, info2), E_PRINT_NONE); in HWTEST_F()
|
Completed in 9 milliseconds