/base/powermgr/battery_manager/test/benchmarktest/ |
H A D | battery_benchmark_test.cpp | 112 * @tc.name: GetVoltage 113 * @tc.desc: Testcase for testing "GetVoltage" function. 116 BENCHMARK_F(BatteryBenchmarkTest, GetVoltage)(benchmark::State& st) in BENCHMARK_F() 120 ASSERT_TRUE(g_batterySrvClient.GetVoltage() >= 0); in BENCHMARK_F() 123 BENCHMARK_REGISTER_F(BatteryBenchmarkTest, GetVoltage)
|
/base/powermgr/battery_lite/services/src/ |
H A D | battery_device.c | 155 .GetVoltage = GetVoltageImpl,
205 g_device.GetVoltage = g_batteryFeatureHandle->GetVoltage;
in GetBatteryDeviceMethods()
|
H A D | battery_manage_feature.c | 94 voltage = g_batteryDevice->GetVoltage();
in VoltageImpl()
|
/base/powermgr/battery_lite/services/include/ |
H A D | battery_device.h | 52 int32_t (*GetVoltage)(void);
member
|
H A D | ibattery.h | 50 int32_t (*GetVoltage)();
member
|
/base/powermgr/battery_manager/interfaces/inner_api/native/include/ |
H A D | ibattery_srv.h | 33 virtual int32_t GetVoltage() = 0;
|
H A D | battery_srv_client.h | 55 int32_t GetVoltage();
|
H A D | battery_info.h | 324 const int32_t& GetVoltage() const in GetVoltage() function in OHOS::PowerMgr::BatteryInfo 408 (voltage_ == info.GetVoltage()) && in operator ==()
|
/base/powermgr/battery_lite/frameworks/js/builtin/include/ |
H A D | battery_module.h | 32 static JSIValue GetVoltage(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
|
/base/powermgr/battery_manager/frameworks/native/src/ |
H A D | battery_srv_client.cpp | 117 int32_t BatterySrvClient::GetVoltage() in GetVoltage() function in OHOS::PowerMgr::BatterySrvClient 121 return proxy->GetVoltage(); in GetVoltage()
|
/base/powermgr/battery_manager/frameworks/cj/src/ |
H A D | battery_info_ffi.cpp | 60 int32_t voltage = g_battClient.GetVoltage(); in FfiBatteryInfoGetVoltage()
|
/base/powermgr/battery_manager/services/zidl/include/ |
H A D | battery_srv_proxy.h | 43 virtual int32_t GetVoltage() override;
|
/base/powermgr/battery_lite/frameworks/js/builtin/src/ |
H A D | battery_module.cpp | 109 JSIValue BatteryModule::GetVoltage(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum)
in GetVoltage() function in OHOS::ACELite::BatteryModule 164 JSI::SetModuleAPI(exports, "Voltage", BatteryModule::GetVoltage);
in InitBatteryModule()
|
/base/powermgr/battery_manager/test/unittest/src/interface_test/ |
H A D | battery_service_test.cpp | 88 * @tc.desc: Test functions GetVoltage 96 auto tempVoltage = g_service->GetVoltage(); in HWTEST_F() 98 auto voltage = g_service->GetVoltage(); in HWTEST_F() 102 auto voltage = g_service->GetVoltage(); in HWTEST_F()
|
H A D | battery_client_test.cpp | 216 * @tc.desc: Test IBatterySrv interface GetVoltage 224 auto tempVoltage = BatterySrvClient.GetVoltage(); in HWTEST_F() 226 auto voltage = BatterySrvClient.GetVoltage(); in HWTEST_F() 233 auto voltage = BatterySrvClient.GetVoltage(); in HWTEST_F()
|
/base/powermgr/battery_manager/services/native/include/ |
H A D | battery_service.h | 64 int32_t GetVoltage() override;
|
/base/powermgr/battery_manager/test/unittest/src/ |
H A D | battery_srv_proxy_mock_test.cpp | 246 * @tc.desc: test BatterySrvProxy::GetVoltage() when an exception is raised 253 int32_t voltage = g_proxy->GetVoltage(); in HWTEST_F()
|
/base/powermgr/battery_manager/test/systemtest/src/ |
H A D | battery_sttest.cpp | 530 * @tc.desc: Test IBatterySrv interface GetVoltage 540 auto tempVoltagenow = BatterySrvClient.GetVoltage(); in HWTEST_F() 543 auto voltage = BatterySrvClient.GetVoltage(); in HWTEST_F() 550 auto voltage = BatterySrvClient.GetVoltage(); in HWTEST_F()
|
/base/powermgr/battery_manager/services/native/src/ |
H A D | battery_service.cpp | 223 batteryInfo_.SetVoltage(GetVoltage()); in InitBatteryInfo() 287 batteryInfo_.GetVoltage(), batteryInfo_.GetTemperature(), batteryInfo_.GetHealthState(), in HandleBatteryInfo() 611 int32_t BatteryService::GetVoltage() in GetVoltage() function in OHOS::PowerMgr::BatteryService 619 iBatteryInterface_->GetVoltage(voltage); in GetVoltage()
|
H A D | battery_dump.cpp | 79 int32_t voltage = service->GetVoltage(); in GetBatteryInfo()
|
H A D | battery_notify.cpp | 187 want.SetParam(BatteryInfo::COMMON_EVENT_KEY_VOLTAGE, info.GetVoltage()); in PublishChangedEvent() 211 "LEVEL", capacity, "CHARGER", pluggedType, "VOLTAGE", info.GetVoltage(), in PublishChangedEvent()
|
/base/powermgr/battery_manager/frameworks/napi/src/ |
H A D | battery_info.cpp | 84 static napi_value GetVoltage(napi_env env, napi_callback_info info)
in GetVoltage() function 87 int32_t voltage = g_battClient.GetVoltage();
in GetVoltage() 572 DECLARE_NAPI_GETTER("voltage", GetVoltage),
in BatteryInit()
|
/base/powermgr/battery_manager/services/zidl/src/ |
H A D | battery_srv_stub.cpp | 123 int32_t ret = GetVoltage(); in GetVoltageStub()
|
H A D | battery_srv_proxy.cpp | 129 int32_t BatterySrvProxy::GetVoltage() in GetVoltage() function in OHOS::PowerMgr::BatterySrvProxy
|