Searched refs:maxPower (Results 1 - 4 of 4) sorted by relevance
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
H A D | usb_config.h | 32 USBConfig(uint32_t id, uint32_t attributes, std::string name, uint32_t maxPower, in USBConfig() argument 37 this->maxPower_ = static_cast<int32_t>(maxPower); in USBConfig() 49 maxPower_ = GetIntValue(config, "maxPower"); in USBConfig() 116 // 2 represent maxPower units in GetMaxPower() 155 void SetMaxPower(int32_t maxPower) in SetMaxPower() argument 157 this->maxPower_ = maxPower; in SetMaxPower() 167 << "maxPower=" << maxPower_ << "; "; in ToString() 201 cJSON_AddNumberToObject(config, "maxPower", static_cast<double>(maxPower_)); in getJsonString()
|
/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_http_server_manager_test.cpp | 50 R"("isSelfPowered":true,"maxPower":1,"name":" "}],"devAddress":5,"manufacturerName":" ","name":"2-5",)"\
|
H A D | print_usb_manager_test.cpp | 48 R"("isSelfPowered":true,"maxPower":1,"name":" "}],"devAddress":5,"manufacturerName":" ","name":"2-5",)"\ 54 R"("isSelfPowered":true,"maxPower":0,"name":" "}],"devAddress":4,"manufacturerName":"Microchip Tech\u0000\u0000)"\
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
H A D | usb_info.cpp | 135 NapiUtil::SetValueInt32(env, "maxPower", usbConfig.GetMaxPower(), obj); in CtoJSUsbConfig() 370 int32_t maxPower = 0; in ParseConfigObj() local 371 NapiUtil::JsObjectToInt(env, configObj, "maxPower", maxPower); in ParseConfigObj() 386 config = USBConfig(id, attributes, name, maxPower, interfaces); in ParseConfigObj()
|
Completed in 5 milliseconds