diff options
author | Amith Yamasani <yamasani@google.com> | 2009-10-01 13:39:27 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-10-01 13:39:27 -0700 |
commit | 5161a7b13d09b477404867971ca093fa5b533e28 (patch) | |
tree | aa5436c80887848e976d52cb9815ea3ff87b71ef | |
parent | dacd552d035cc84be90db92d1af6c84922dff1f5 (diff) | |
parent | 7c8a08d51389e1c2c0411a1a4a12646880199e01 (diff) | |
download | packages_apps_settings-5161a7b13d09b477404867971ca093fa5b533e28.zip packages_apps_settings-5161a7b13d09b477404867971ca093fa5b533e28.tar.gz packages_apps_settings-5161a7b13d09b477404867971ca093fa5b533e28.tar.bz2 |
am 7c8a08d5: am ee52bed5: Merge change I39527366 into eclair
Merge commit '7c8a08d51389e1c2c0411a1a4a12646880199e01'
* commit '7c8a08d51389e1c2c0411a1a4a12646880199e01':
Use a custom system icon for native processes.
-rw-r--r-- | res/drawable-hdpi/ic_settings_bluetooth.png | bin | 0 -> 6356 bytes | |||
-rw-r--r-- | res/drawable-hdpi/ic_settings_cell_standby.png | bin | 0 -> 5821 bytes | |||
-rw-r--r-- | res/drawable-hdpi/ic_settings_display.png | bin | 0 -> 6462 bytes | |||
-rw-r--r-- | res/drawable-hdpi/ic_settings_phone_idle.png | bin | 0 -> 6170 bytes | |||
-rw-r--r-- | res/drawable-hdpi/ic_settings_voice_calls.png | bin | 0 -> 6037 bytes | |||
-rw-r--r-- | res/drawable-hdpi/ic_settings_wifi.png | bin | 0 -> 6204 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_settings_bluetooth.png | bin | 0 -> 3815 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_settings_cell_standby.png | bin | 0 -> 3554 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_settings_display.png | bin | 0 -> 3907 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_settings_phone_idle.png | bin | 0 -> 3748 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_settings_voice_calls.png | bin | 0 -> 3630 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_settings_wifi.png | bin | 0 -> 3720 bytes | |||
-rwxr-xr-x | res/drawable/ic_power_system.png | bin | 0 -> 6870 bytes | |||
-rw-r--r-- | src/com/android/settings/fuelgauge/PowerUsageSummary.java | 14 |
14 files changed, 8 insertions, 6 deletions
diff --git a/res/drawable-hdpi/ic_settings_bluetooth.png b/res/drawable-hdpi/ic_settings_bluetooth.png Binary files differnew file mode 100644 index 0000000..3d9015f --- /dev/null +++ b/res/drawable-hdpi/ic_settings_bluetooth.png diff --git a/res/drawable-hdpi/ic_settings_cell_standby.png b/res/drawable-hdpi/ic_settings_cell_standby.png Binary files differnew file mode 100644 index 0000000..262a860 --- /dev/null +++ b/res/drawable-hdpi/ic_settings_cell_standby.png diff --git a/res/drawable-hdpi/ic_settings_display.png b/res/drawable-hdpi/ic_settings_display.png Binary files differnew file mode 100644 index 0000000..20568d2 --- /dev/null +++ b/res/drawable-hdpi/ic_settings_display.png diff --git a/res/drawable-hdpi/ic_settings_phone_idle.png b/res/drawable-hdpi/ic_settings_phone_idle.png Binary files differnew file mode 100644 index 0000000..fd66f84 --- /dev/null +++ b/res/drawable-hdpi/ic_settings_phone_idle.png diff --git a/res/drawable-hdpi/ic_settings_voice_calls.png b/res/drawable-hdpi/ic_settings_voice_calls.png Binary files differnew file mode 100644 index 0000000..3cb7e49 --- /dev/null +++ b/res/drawable-hdpi/ic_settings_voice_calls.png diff --git a/res/drawable-hdpi/ic_settings_wifi.png b/res/drawable-hdpi/ic_settings_wifi.png Binary files differnew file mode 100644 index 0000000..b8c3eaa --- /dev/null +++ b/res/drawable-hdpi/ic_settings_wifi.png diff --git a/res/drawable-mdpi/ic_settings_bluetooth.png b/res/drawable-mdpi/ic_settings_bluetooth.png Binary files differnew file mode 100644 index 0000000..8cf80c0 --- /dev/null +++ b/res/drawable-mdpi/ic_settings_bluetooth.png diff --git a/res/drawable-mdpi/ic_settings_cell_standby.png b/res/drawable-mdpi/ic_settings_cell_standby.png Binary files differnew file mode 100644 index 0000000..0ac7b5d --- /dev/null +++ b/res/drawable-mdpi/ic_settings_cell_standby.png diff --git a/res/drawable-mdpi/ic_settings_display.png b/res/drawable-mdpi/ic_settings_display.png Binary files differnew file mode 100644 index 0000000..b676b85 --- /dev/null +++ b/res/drawable-mdpi/ic_settings_display.png diff --git a/res/drawable-mdpi/ic_settings_phone_idle.png b/res/drawable-mdpi/ic_settings_phone_idle.png Binary files differnew file mode 100644 index 0000000..7734b09 --- /dev/null +++ b/res/drawable-mdpi/ic_settings_phone_idle.png diff --git a/res/drawable-mdpi/ic_settings_voice_calls.png b/res/drawable-mdpi/ic_settings_voice_calls.png Binary files differnew file mode 100644 index 0000000..89d04d7 --- /dev/null +++ b/res/drawable-mdpi/ic_settings_voice_calls.png diff --git a/res/drawable-mdpi/ic_settings_wifi.png b/res/drawable-mdpi/ic_settings_wifi.png Binary files differnew file mode 100644 index 0000000..e8f3129 --- /dev/null +++ b/res/drawable-mdpi/ic_settings_wifi.png diff --git a/res/drawable/ic_power_system.png b/res/drawable/ic_power_system.png Binary files differnew file mode 100755 index 0000000..cce5187 --- /dev/null +++ b/res/drawable/ic_power_system.png diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java index a41cbf4..fecd1438 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java +++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java @@ -411,7 +411,7 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { double phoneOnPower = mPowerProfile.getAveragePower(PowerProfile.POWER_RADIO_ACTIVE) * phoneOnTimeMs / 1000; addEntry(getString(R.string.power_phone), DrainType.PHONE, phoneOnTimeMs, - android.R.drawable.ic_menu_call, phoneOnPower); + R.drawable.ic_settings_voice_calls, phoneOnPower); } private void addScreenUsage(long uSecNow) { @@ -432,7 +432,7 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { } power /= 1000; // To seconds addEntry(getString(R.string.power_screen), DrainType.SCREEN, screenOnTimeMs, - android.R.drawable.ic_menu_view, power); + R.drawable.ic_settings_display, power); } private void addRadioUsage(long uSecNow) { @@ -447,7 +447,7 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { } BatterySipper bs = addEntry(getString(R.string.power_cell), DrainType.CELL, signalTimeMs, - android.R.drawable.ic_menu_sort_by_size, power); + R.drawable.ic_settings_cell_standby, power); if (signalTimeMs != 0) { bs.noCoveragePercent = mStats.getPhoneSignalStrengthTime(0, uSecNow, mStatsType) / 1000 * 100.0 / signalTimeMs; @@ -461,7 +461,7 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { * mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_ON) + runningTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_ON)) / 1000; addEntry(getString(R.string.power_wifi), DrainType.WIFI, runningTimeMs, - R.drawable.ic_wifi_signal_4, wifiPower); + R.drawable.ic_settings_wifi, wifiPower); } private void addIdleUsage(long uSecNow) { @@ -469,7 +469,7 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { double idlePower = (idleTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE)) / 1000; addEntry(getString(R.string.power_idle), DrainType.IDLE, idleTimeMs, - android.R.drawable.ic_lock_power_off, idlePower); + R.drawable.ic_settings_phone_idle, idlePower); } private void addBluetoothUsage(long uSecNow) { @@ -481,7 +481,7 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { * mPowerProfile.getAveragePower(PowerProfile.POWER_BLUETOOTH_AT_CMD)) / 1000; addEntry(getString(R.string.power_bluetooth), DrainType.BLUETOOTH, btOnTimeMs, - com.android.internal.R.drawable.ic_volume_bluetooth_in_call, btPower); + R.drawable.ic_settings_bluetooth, btPower); } private double getAverageDataCost() { @@ -619,6 +619,8 @@ public class PowerUsageSummary extends PreferenceActivity implements Runnable { } else if ("mediaserver".equals(name)) { name = getResources().getString(R.string.process_mediaserver_label); } + iconId = R.drawable.ic_power_system; + icon = getResources().getDrawable(iconId); return; } else { //name = packages[0]; |