Lines Matching defs:power
70 * Displays a list of apps and subsystems that consume power, ordered by how much power was
458 double power = 0;
461 //mUsageList.add(new AppUsage(u.getUid(), new double[] {power}));
493 Log.i(TAG, String.format("process %s, cpu power=%.2f",
496 power += processPower;
514 power /= 1000;
515 if (DEBUG && power != 0) Log.i(TAG, String.format("total cpu power=%.2f", power));
535 power += p;
536 if (DEBUG && p != 0) Log.i(TAG, String.format("wakelock power=%.2f", p));
542 power += p;
543 if (DEBUG && p != 0) Log.i(TAG, String.format("tcp power=%.2f", p));
550 power += p;
551 if (DEBUG && p != 0) Log.i(TAG, String.format("wifi running power=%.2f", p));
557 power += p;
558 if (DEBUG && p != 0) Log.i(TAG, String.format("wifi scanning power=%.2f", p));
585 power += p;
587 Log.i(TAG, String.format("sensor %s power=%.2f", sensor.toString(), p));
591 if (DEBUG) Log.i(TAG, String.format("UID %d total power=%.2f", u.getUid(), power));
593 // Add the app to the list if it is consuming power
596 if (power != 0 || u.getUid() == 0) {
599 new double[] {power});
627 if (power != 0) {
629 mWifiPower += power;
631 mBluetoothPower += power;
635 userPower = power;
637 userPower += power;
641 if (power > mMaxPower) mMaxPower = power;
642 mTotalPower += power;
656 double power = (wakeTimeMillis
658 if (DEBUG) Log.i(TAG, "OS wakeLockTime " + wakeTimeMillis + " power " + power);
660 osApp.value += power;
661 osApp.values[0] += power;
663 mTotalPower += power;
677 double power = 0;
679 power += screenOnTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_ON);
686 power += screenBinPower * brightnessTime;
688 Log.i(TAG, "Screen bin power = " + (int) screenBinPower + ", time = "
692 power /= 1000; // To seconds
694 R.drawable.ic_settings_display, power);
698 double power = 0;
703 power += strengthTimeMs / 1000
708 power += scanningTimeMs / 1000 * mPowerProfile.getAveragePower(
712 signalTimeMs, R.drawable.ic_settings_cell_standby, power);
743 if (DEBUG) Log.i(TAG, "WIFI power=" + wifiPower + " from procs=" + mWifiPower);
790 double power = mUserPower.get(userId);
791 BatterySipper bs = addEntry(name, DrainType.USER, 0, 0, power);
837 addIdleUsage(uSecNow); // Not including cellular idle power
845 double power) {
846 if (power > mMaxPower) mMaxPower = power;
847 mTotalPower += power;
849 label, drainType, iconId, null, new double[] {power});