Home | History | Annotate | Download | only in healthd

Lines Matching refs:mHealthdConfig

184     if (!mHealthdConfig->batteryPresentPath.isEmpty())
185 props.batteryPresent = getBooleanField(mHealthdConfig->batteryPresentPath);
189 props.batteryLevel = getIntField(mHealthdConfig->batteryCapacityPath);
190 props.batteryVoltage = getIntField(mHealthdConfig->batteryVoltagePath) / 1000;
192 if (!mHealthdConfig->batteryCurrentNowPath.isEmpty())
193 props.batteryCurrentNow = getIntField(mHealthdConfig->batteryCurrentNowPath);
195 if (!mHealthdConfig->batteryChargeCounterPath.isEmpty())
196 props.batteryChargeCounter = getIntField(mHealthdConfig->batteryChargeCounterPath);
198 props.batteryTemperature = getIntField(mHealthdConfig->batteryTemperaturePath);
204 if (readFromFile(mHealthdConfig->batteryStatusPath, buf, SIZE) > 0)
207 if (readFromFile(mHealthdConfig->batteryHealthPath, buf, SIZE) > 0)
210 if (readFromFile(mHealthdConfig->batteryTechnologyPath, buf, SIZE) > 0)
255 if (!mHealthdConfig->batteryCurrentNowPath.isEmpty()) {
278 mHealthdConfig = hc;
306 if (mHealthdConfig->batteryStatusPath.isEmpty()) {
311 mHealthdConfig->batteryStatusPath = path;
314 if (mHealthdConfig->batteryHealthPath.isEmpty()) {
319 mHealthdConfig->batteryHealthPath = path;
322 if (mHealthdConfig->batteryPresentPath.isEmpty()) {
327 mHealthdConfig->batteryPresentPath = path;
330 if (mHealthdConfig->batteryCapacityPath.isEmpty()) {
335 mHealthdConfig->batteryCapacityPath = path;
338 if (mHealthdConfig->batteryVoltagePath.isEmpty()) {
343 mHealthdConfig->batteryVoltagePath = path;
349 mHealthdConfig->batteryVoltagePath = path;
353 if (mHealthdConfig->batteryCurrentNowPath.isEmpty()) {
358 mHealthdConfig->batteryCurrentNowPath = path;
361 if (mHealthdConfig->batteryChargeCounterPath.isEmpty()) {
366 mHealthdConfig->batteryChargeCounterPath = path;
369 if (mHealthdConfig->batteryTemperaturePath.isEmpty()) {
374 mHealthdConfig->batteryTemperaturePath = path;
380 mHealthdConfig->batteryTemperaturePath = path;
384 if (mHealthdConfig->batteryTechnologyPath.isEmpty()) {
389 mHealthdConfig->batteryTechnologyPath = path;
403 if (mHealthdConfig->batteryStatusPath.isEmpty())
405 if (mHealthdConfig->batteryHealthPath.isEmpty())
407 if (mHealthdConfig->batteryPresentPath.isEmpty())
409 if (mHealthdConfig->batteryCapacityPath.isEmpty())
411 if (mHealthdConfig->batteryVoltagePath.isEmpty())
413 if (mHealthdConfig->batteryTemperaturePath.isEmpty())
415 if (mHealthdConfig->batteryTechnologyPath.isEmpty())