Home
last modified time | relevance | path

Searched refs:vendorName (Results 1 - 25 of 30) sorted by relevance

12

/base/print/print_fwk/services/print_service/include/
H A Dvendor_manager.h36 virtual bool RemoveVendorPrinterFromCups(const std::string &vendorName, const std::string &printerId) = 0;
45 static std::string GetGlobalVendorName(const std::string &vendorName);
57 bool UnloadVendorDriver(const std::string &vendorName);
61 int32_t AddPrinterToDiscovery(const std::string &vendorName, const PrinterInfo &printerInfo) override;
62 int32_t UpdatePrinterToDiscovery(const std::string &vendorName, const PrinterInfo &printerInfo) override;
63 int32_t RemovePrinterFromDiscovery(const std::string &vendorName, const std::string &printerId) override;
64 int32_t AddPrinterToCupsWithPpd(const std::string &vendorName, const std::string &printerId,
66 int32_t RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) override;
67 bool OnPrinterStatusChanged(const std::string &vendorName, const std::string &printerId,
69 bool OnPrinterPpdQueried(const std::string &vendorName, cons
[all...]
H A Dvendor_driver_base.h47 virtual int32_t AddPrinterToDiscovery(const std::string &vendorName, const PrinterInfo &printerInfo) = 0;
48 virtual int32_t UpdatePrinterToDiscovery(const std::string &vendorName, const PrinterInfo &printerInfo) = 0;
49 virtual int32_t RemovePrinterFromDiscovery(const std::string &vendorName, const std::string &printerId) = 0;
50 virtual int32_t AddPrinterToCupsWithPpd(const std::string &vendorName, const std::string &printerId,
52 virtual int32_t RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) = 0;
53 virtual bool OnPrinterStatusChanged(const std::string &vendorName, const std::string &printerId,
55 virtual bool OnPrinterPpdQueried(const std::string &vendorName, const std::string &printerId,
/base/print/print_fwk/services/print_service/src/
H A Dvendor_manager.cpp38 std::string VendorManager::GetGlobalVendorName(const std::string &vendorName) in GetGlobalVendorName() argument
40 return VENDOR_MANAGER_PREFIX + vendorName; in GetGlobalVendorName()
134 bool VendorManager::UnloadVendorDriver(const std::string &vendorName) in UnloadVendorDriver() argument
137 auto iter = vendorMap.find(vendorName); in UnloadVendorDriver()
236 int32_t VendorManager::AddPrinterToDiscovery(const std::string &vendorName, const PrinterInfo &printerInfo) in AddPrinterToDiscovery() argument
243 if (!printServiceAbility->AddVendorPrinterToDiscovery(GetGlobalVendorName(vendorName), printerInfo)) { in AddPrinterToDiscovery()
251 int32_t VendorManager::UpdatePrinterToDiscovery(const std::string &vendorName, const PrinterInfo &printerInfo) in UpdatePrinterToDiscovery() argument
258 std::string globalVendorName = GetGlobalVendorName(vendorName); in UpdatePrinterToDiscovery()
266 int32_t VendorManager::RemovePrinterFromDiscovery(const std::string &vendorName, const std::string &printerId) in RemovePrinterFromDiscovery() argument
273 if (!printServiceAbility->RemoveVendorPrinterFromDiscovery(GetGlobalVendorName(vendorName), printerI in RemovePrinterFromDiscovery()
281 AddPrinterToCupsWithPpd(const std::string &vendorName, const std::string &printerId, const std::string &ppdData) AddPrinterToCupsWithPpd() argument
298 RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) RemovePrinterFromCups() argument
314 OnPrinterPpdQueried(const std::string &vendorName, const std::string &printerId, const std::string &ppdData) OnPrinterPpdQueried() argument
337 OnPrinterStatusChanged(const std::string &vendorName, const std::string &printerId, const PrinterVendorStatus &status) OnPrinterStatusChanged() argument
350 std::string vendorName = ExtractVendorName(globalVendorName); FindDriverByPrinterId() local
358 FindDriverByVendorName(const std::string &vendorName) FindDriverByVendorName() argument
441 std::string vendorName = ExtractVendorName(globalVendorName); MonitorPrinterStatus() local
[all...]
H A Dvendor_bsuni_driver.cpp139 std::string vendorName = g_driverWrapper->GetVendorName(); in AddPrinterToCups() local
140 if (g_driverWrapper->vendorManager->UpdatePrinterToDiscovery(vendorName, info) != EXTENSION_ERROR_NONE) { in AddPrinterToCups()
144 return g_driverWrapper->vendorManager->AddPrinterToCupsWithPpd(vendorName, info.GetPrinterId(), ppdContent); in AddPrinterToCups()
/base/print/print_fwk/test/unittest/fwk_vendor_manager_test/
H A Dvendor_manager_test.cpp57 std::string vendorName = "test.vendor"; in HWTEST_F() local
59 std::string globalVendorName = VendorManager::GetGlobalVendorName(vendorName); in HWTEST_F()
61 EXPECT_STREQ(VendorManager::ExtractVendorName(globalVendorName).c_str(), vendorName.c_str()); in HWTEST_F()
122 std::string vendorName = vendorIppEverywhere->GetVendorName(); in HWTEST_F() local
123 std::string globalVendorName = VendorManager::GetGlobalVendorName(vendorName); in HWTEST_F()
147 vendorManager.UnloadVendorDriver(vendorName); in HWTEST_F()
159 std::string vendorName = vendorIppEverywhere->GetVendorName(); in HWTEST_F() local
160 std::string globalVendorName = VendorManager::GetGlobalVendorName(vendorName); in HWTEST_F()
207 std::string vendorName = vendorIppEverywhere->GetVendorName(); in HWTEST_F() local
208 std::string globalVendorName = VendorManager::GetGlobalVendorName(vendorName); in HWTEST_F()
243 std::string vendorName = vendorIppEverywhere->GetVendorName(); HWTEST_F() local
[all...]
/base/sensors/sensor/frameworks/native/src/
H A Dnative_sensor.cpp60 result = strcpy_s(sensors[i]->vendorName, NAME_MAX_LEN, sensorInfo[i].vendorName); in OH_Sensor_GetInfos()
120 int32_t OH_SensorInfo_GetVendorName(Sensor_Info* sensor, char *vendorName, uint32_t *length) in OH_SensorInfo_GetVendorName() argument
122 if (sensor == nullptr || vendorName == nullptr || length == nullptr) { in OH_SensorInfo_GetVendorName()
126 uint32_t nameLen = strlen(sensor->vendorName); in OH_SensorInfo_GetVendorName()
131 errno_t result = strcpy_s(vendorName, *length, sensor->vendorName); in OH_SensorInfo_GetVendorName()
/base/print/print_fwk/frameworks/helper/print_helper/src/
H A Dprint_extension_info_helper.cpp23 static constexpr const char *PARAM_EXTINFO_VENDOR_NAME = "vendorName";
50 std::string vendorName = NapiPrintUtils::GetStringPropertyUtf8(env, jsValue, PARAM_EXTINFO_VENDOR_NAME); in BuildFromJs() local
55 nativeObj->SetVendorName(vendorName); in BuildFromJs()
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/adapter/src/
H A Dcompatible_connection.cpp51 const std::string vendorName(sensorInfos[i].vendorName); in GetSensorList()
58 sensor.SetVendor(vendorName.c_str()); in GetSensorList()
H A Dhdi_connection.cpp87 const std::string vendorName(sensorInfos[i].vendorName); in GetSensorList()
94 sensor.SetVendor(vendorName.c_str()); in GetSensorList()
/base/sensors/sensor/services/hdi_connection/adapter/src/
H A Dcompatible_connection.cpp52 const std::string vendorName(sensorInfos[i].vendorName); in GetSensorList()
64 sensor.SetVendorName(vendorName); in GetSensorList()
H A Dhdi_connection.cpp105 sensor.SetVendorName(sensorInfos[i].vendorName); in GetSensorList()
/base/sensors/sensor/frameworks/native/include/
H A Dnative_sensor_impl.h24 char vendorName[NAME_MAX_LEN]; /**< Sensor vendor */ member
/base/print/print_fwk/frameworks/models/print_models/src/
H A Dprint_extension_info.cpp55 void PrintExtensionInfo::SetVendorName(const std::string &vendorName) in SetVendorName() argument
57 vendorName_ = vendorName; in SetVendorName()
/base/print/print_fwk/frameworks/models/print_models/include/
H A Dprint_extension_info.h34 void SetVendorName(const std::string &vendorName);
/base/sensors/sensor_lite/interfaces/kits/native/include/
H A Dsensor_agent_type.h114 char vendorName[SENSOR_NAME_MAX_LEN]; /**< Sensor vendor */ member
/base/sensors/medical_sensor/interfaces/native/include/
H A Dmedical_native_type.h82 char vendorName[AFE_NAME_MAX_LEN2]; /**< Sensor vendor */ member
/base/sensors/sensor/utils/common/src/
H A Dsensor.cpp78 void Sensor::SetVendorName(const std::string &vendorName) in SetVendorName() argument
80 vendorName_ = vendorName; in SetVendorName()
188 SEN_HILOGE("Failed, write vendorName failed"); in Marshalling()
/base/print/print_fwk/test/unittest/fwk_print_service_ability_test/
H A Dprint_service_ability_test.cpp2052 std::string vendorName = "fwk.driver"; in HWTEST_F() local
2056 EXPECT_TRUE(service->AddVendorPrinterToDiscovery(vendorName, info)); in HWTEST_F()
2057 EXPECT_TRUE(service->AddVendorPrinterToDiscovery(vendorName, info)); in HWTEST_F()
2058 EXPECT_TRUE(service->UpdateVendorPrinterToDiscovery(vendorName, info)); in HWTEST_F()
2059 EXPECT_TRUE(service->RemoveVendorPrinterFromDiscovery(vendorName, printerId)); in HWTEST_F()
2065 std::string vendorName = "fwk.driver"; in HWTEST_F() local
2070 std::string globalId = VendorManager::GetGlobalPrinterId(vendorName, printerId); in HWTEST_F()
2072 EXPECT_TRUE(service->UpdateVendorPrinterToDiscovery(vendorName, info)); in HWTEST_F()
2073 EXPECT_TRUE(service->AddVendorPrinterToDiscovery(vendorName, info)); in HWTEST_F()
2075 EXPECT_TRUE(service->RemoveVendorPrinterFromDiscovery(vendorName, printerI in HWTEST_F()
2085 std::string vendorName = "fwk.driver"; HWTEST_F() local
2123 std::string vendorName = "fwk.driver"; HWTEST_F() local
[all...]
/base/sensors/sensor/frameworks/cj/include/
H A Dcj_sensor_ffi.h63 char *vendorName; member
/base/sensors/sensor/utils/common/include/
H A Dsensor.h37 void SetVendorName(const std::string &vendorName);
/base/sensors/sensor/test/unittest/interfaces/kits/
H A Dsensor_native_test.cpp150 char vendorName[SENSOR_NAME_LENGTH_MAX] = {}; in HWTEST_F() local
152 ret = OH_SensorInfo_GetVendorName(sensors[i], vendorName, &length); in HWTEST_F()
166 SEN_HILOGI("sensorType:%{public}d, sensorName:%{public}s, vendorName:%{public}s," in HWTEST_F()
168 static_cast<int32_t>(sensorType), sensorName, vendorName, in HWTEST_F()
272 char vendorName[SENSOR_NAME_LENGTH_MAX] = {}; in HWTEST_F() local
281 ret = OH_SensorInfo_GetVendorName(sensors1[0], vendorName, &length); in HWTEST_F()
291 ret = OH_SensorInfo_GetVendorName(sensors[0], vendorName, length1); in HWTEST_F()
/base/sensors/sensor/interfaces/kits/c/
H A Doh_sensor_type.h229 * @param vendorName - Pointer to the vendor name.
235 int32_t OH_SensorInfo_GetVendorName(Sensor_Info* sensor, char *vendorName, uint32_t *length);
/base/sensors/sensor/interfaces/inner_api/
H A Dsensor_agent_type.h115 char vendorName[NAME_MAX_LEN]; /**< Sensor vendor */ member
/base/sensors/sensor_lite/interfaces/kits/native/test/performance/src/
H A Dsensor_lite_test_performance.cpp84 (sensorInfo + i)->sensorName, (sensorInfo + i)->vendorName, in HWTEST_F()
/base/sensors/sensor/frameworks/cj/src/
H A Dcj_sensor_impl.cpp94 out.vendorName = MallocCString(in.vendorName); in Transform2CSensor()

Completed in 16 milliseconds

12