/hardware/interfaces/health/aidl/default/ |
D | ChargerUtils.cpp | 23 return service_->ShouldKeepScreenOn(); in ChargerShouldKeepScreenOn() 40 return service_->OnInit(hal_health_loop_sp.get(), config); in ChargerInitConfig() 60 : service_(service), charger_(std::make_unique<::android::Charger>(charger_callback)) {} in LoopCallback() 63 service_->OnHeartbeat(); in OnHeartbeat() 68 int timeout1 = service_->OnPrepareToWait(); in OnPrepareToWait() 86 service_->OnHealthInfoChanged(health_info); in OnHealthInfoChanged() 90 std::shared_ptr<Health> service_; member in aidl::android::hardware::health::charger::LoopCallback
|
D | HalHealthLoop.cpp | 40 if (auto res = service_->update(); !res.isOk()) { in ScheduleBatteryUpdate() 46 auto res = service_->getHealthInfo(&health_info); in ScheduleBatteryUpdate()
|
D | LinkedCallback.cpp | 38 ret->service_ = service; in Make() 46 auto service_sp = service_.lock(); in service()
|
D | LinkedCallback.h | 48 std::weak_ptr<Health> service_; variable
|
/hardware/interfaces/health/utils/libhealthshim/ |
D | shim.cpp | 93 HealthShim::HealthShim(const sp<HidlHealth>& service) : service_(service) {} in HealthShim() 99 return ReturnResultToStatus(service_->registerCallback(shim)); in registerCallback() 110 return ReturnResultToStatus(service_->unregisterCallback(shim)); in unregisterCallback() 114 return ReturnResultToStatus(service_->update()); in update() 119 auto ret = service_->getChargeCounter([out, &out_result](auto result, auto value) { in getChargeCounterUah() 129 auto ret = service_->getCurrentNow([out, &out_result](auto result, auto value) { in getCurrentNowMicroamps() 139 auto ret = service_->getCurrentAverage([out, &out_result](auto result, auto value) { in getCurrentAverageMicroamps() 149 auto ret = service_->getCapacity([out, &out_result](auto result, auto value) { in getCapacity() 159 auto ret = service_->getEnergyCounter([out, &out_result](auto result, auto value) { in getEnergyCounterNwh() 169 auto ret = service_->getChargeStatus([out, &out_result](auto result, auto value) { in getChargeStatus() [all …]
|
/hardware/interfaces/health/2.1/vts/functional/ |
D | VtsHalHealthV2_1TargetTest.cpp | 77 service_ = IHealth::getService(GetParam()); in SetUp() 78 ASSERT_NE(nullptr, service_.get()) << "Instance '" << GetParam() << "'' is not available."; in SetUp() 81 sp<IHealth> service_; member in android::hardware::health::V2_1::HealthHidlTest 183 EXPECT_TRUE(TestCallbacks<Callback_2_0>(service_)); in TEST_P() 187 EXPECT_TRUE(TestCallbacks<Callback_2_1>(service_)); in TEST_P() 204 EXPECT_TRUE(TestUnregisterNonExistentCallback<Callback_2_0>(service_)); in TEST_P() 208 EXPECT_TRUE(TestUnregisterNonExistentCallback<Callback_2_1>(service_)); in TEST_P() 229 EXPECT_TRUE(IsOk(service_->getHealthInfo_2_1([](auto result, const auto& value) { in TEST_P() 251 EXPECT_TRUE(IsOk(service_->getHealthConfig([](auto result, const auto&) { in TEST_P() 257 EXPECT_TRUE(IsOk(service_->shouldKeepScreenOn([](auto result, const auto&) { in TEST_P()
|
/hardware/interfaces/fastboot/aidl/fastbootshim/ |
D | fastbootshim.cpp | 48 FastbootShim::FastbootShim(const sp<HidlFastboot>& service) : service_(service) {} in FastbootShim() 58 auto ret = service_->getPartitionType(partition, [&](auto type, auto& result) { in getPartitionType() 73 auto ret = service_->doOemCommand(oemCmdArgs, [&](auto& result) { in doOemCommand() 84 auto ret = service_->getVariant([&](auto& variant, auto& result) { in getVariant() 95 auto ret = service_->getOffModeChargeState([&](auto state, auto& result) { in getOffModeChargeState() 106 auto ret = service_->getBatteryVoltageFlashingThreshold([&](auto batteryVoltage, auto& result) { in getBatteryVoltageFlashingThreshold() 116 auto ret = service_->doOemSpecificErase([&](auto& result) { out_result = result; }); in doOemSpecificErase()
|
/hardware/interfaces/health/utils/libhealth2impl/include/health2impl/ |
D | HalHealthLoop.h | 36 : instance_name_(name), service_(service) {} in HalHealthLoop() 51 const sp<IHealth>& service() const { return service_; } in service() 59 sp<IHealth> service_; variable
|
/hardware/interfaces/health/utils/libhealth2impl/ |
D | HalHealthLoop.cpp | 42 service_->getHealthConfig([config](auto res, const auto& health_config) { in Init() 62 Result res = service_->update(); in ScheduleBatteryUpdate() 67 service_->getHealthInfo_2_1([this](auto res, const auto& health_info) { in ScheduleBatteryUpdate()
|
/hardware/interfaces/power/stats/1.0/vts/functional/ |
D | VtsHalPowerStatsV1_0TargetTest.cpp | 58 service_ = IPowerStats::getService(GetParam()); in SetUp() 59 ASSERT_NE(service_, nullptr); in SetUp() 71 sp<IPowerStats> service_; member in android::power::stats::vts::PowerStatsHidlTest 76 Return<void> ret = service_->getPowerEntityInfo([&status, &infos](auto rInfos, auto rStatus) { in getInfos() 94 Return<void> ret = service_->getPowerEntityStateInfo( 113 Return<void> ret = service_->getPowerEntityStateResidencyData( 346 Return<void> ret = service_->getRailInfo(cb); in TEST_P() 360 Return<void> ret = service_->getRailInfo(cb); in TEST_P() 402 Return<void> ret = service_->getEnergyData(hidl_vec<uint32_t>(), cb); in TEST_P() 411 Return<void> ret = service_->getEnergyData(hidl_vec<uint32_t>(), cb); in TEST_P() [all …]
|
/hardware/interfaces/health/aidl/default/include/health-impl/ |
D | ChargerUtils.h | 32 ChargerCallback(const std::shared_ptr<Health>& service) : service_(service) {} in ChargerCallback() 44 std::shared_ptr<Health> service_;
|
D | HalHealthLoop.h | 49 : service_(std::move(service)), callback_(std::move(callback)) {} in HalHealthLoop() 62 std::shared_ptr<IHealth> service_;
|
/hardware/interfaces/fastboot/aidl/fastbootshim/include/ |
D | fastbootshim.h | 43 ::android::sp<HidlFastboot> service_;
|
/hardware/interfaces/health/utils/libhealthshim/include/health-shim/ |
D | shim.h | 53 ::android::sp<HidlHealth> service_;
|