History log of /frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c4938fd6190e04a454e8a10d4cba95ab6b805e71 28-Apr-2010 Amith Yamasani <yamasani@google.com> Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681

The SimpleDateFormat was being cached and new timezone not being applied. Make sure
to apply the new timezone to the format object as soon as it changes.

Change-Id: I72abfef2e14cf5db5a6e8cb71b053380b695495c
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
c210b65cd2619ef462bd860c7197ddcb1c39c75c 19-Apr-2010 Daniel Sandler <dsandler@android.com> Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)

Previously, this status icon reflected just the incoming
call behavior:
- gone for audible (with or without vibrate),
- wiggling phone for vibrate,
- silent (speaker + X) for no audible ring or vibrate.

Now that silent mode has changed (see VIBRATE_IN_SILENT),
you can easily get into a state where this icon is
confusing by setting the incoming call ringer to *never*
vibrate but setting the overall device silent state to allow
vibration (VIBRATE_IN_SILENT=true). In this case, rocking
the volume all the way down would show a wiggling phone
(because the device is in vibrate-only mode) but the status
bar would show speaker+X (because the incoming call would
neither ring nor vibrate).

Now these two icons are consistent. This means, however,
that if this special condition is set by the user (device
vibrates in silent mode, but incoming calls should never
vibrate) and the device is in silent mode, the status bar
will show a wiggling phone even though incoming calls will
not vibrate the device. This puts the ringer on a more even
footing with other apps on the device, which may elect not
to vibrate even if VIBRATE_IN_SILENT=true overall.

Bug: 2598014
Change-Id: Ib942f68738d77ab0d9b9da4fac718ae5957c133c
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
56c2d2ff27536a1d8edf0037cd41ff3ea3272fd9 07-Apr-2010 John Wang <johnwang@google.com> Add emergencyOnly indicator in ServiceState.

For bug 2536842 to show signal strength in Emergency mode.

The STATE_EMERGENCY_ONLY of ServiceState is not in-use.

So add a hide interface to indicate Emergency mode.

Change-Id: I19398ac5e73a722dcaaf744347f961d1fa7513ac
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
ee63e47940d5a3bf6f1001153750e885ac3a7dcd 18-Mar-2010 jsh <jsh@google.com> Update signal strength mapping for GSM/UMTS.

b/2480975

New mapping:
4 bars: >= 12 asu
3 bars: >= 8 asu
2 bars: >= 5 asu
1 bar: >= 3 asu
0 bars: <= 2 asu

Change-Id: I73dcc8e490d039ec392f027fc96f95dc951ca793
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
8a9b22056b13477f59df934928c00c58b5871c95 27-Feb-2010 Joe Onorato <joeo@android.com> Switch the services library to using the new Slog
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
ec2c88d835dac156be0d14bd2b73cf3825e2e164 20-Feb-2010 Daniel Sandler <dsandler@google.com> Move new sound effects to the system stream.

Change-Id: I11cfa6495abeb0193b1a3929ec54f0386cfe9ed2
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
0e9d2af2d60b381ba52d0c25e583b3d2a9906051 25-Jan-2010 Daniel Sandler <dsandler@google.com> New user interface sound effects:

- Low battery. (http://b/2320026)
- Dock/undock events.
- Keyguard lock/unlock events.

New system settings have been created to turn these on/off
and to specify the relevant sound files.

[Production notes: The provided low battery sound and dock
sounds were synthesized; the lock screen sounds are
processed samples of a ballpoint pen click mechanism.]

Bug: 2320026
Change-Id: I374285b0f94f59c7555bb8816580f5a8c802e90d
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
4154c07c5cabc74029a2df379075391d782a682c 10-Feb-2010 San Mehat <san@google.com> StorageNotification: Move notification / usb storage activity into StatusBarPolicy

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
63ce8e817c9b800b4f08b64c343e533783961b6e 18-Jan-2010 Joe Onorato <joeo@android.com> Make the space between the time and the AM/PM smaller by putting preceding whitespace inside the
span.

Also cache the SimpleDateFormat object because those are relatively expensive.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
36e136c2c86f39f03cdd4275f07deb30dc2c95aa 15-Jan-2010 Eric Fischer <enf@google.com> Make the "AM" or "PM" in the status bar clock be in a smaller font size.

Bug 1146468
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
084c665421502b13271e94bd0a342b0ddbbaa7ca 07-Dec-2009 Jaikumar Ganesh <jaikumar@google.com> Fix updating Bluetooth icon on status bar and for Wifi.

Status bar uses the SINK_STATE_CHANGE intent to determine the icon.
This intent also has the device. Thus, we can get this intent for any
device and we update the icon wrongly. The same problem is with Wifi.

This was not commonly observed till now, but with the car dock changes
its easy to reproduce as we can get an incoming connection from the
car's bluetooth system. For Wifi, this will cause coexistance issues
especially with desk docks.

Dr No: Eastham
Bug: 2133530
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
98e0b146b80670b52805b4b210ef5582dad6bb68 09-Oct-2009 Robert Greenwalt <robdroid@android.com> Make PhoneStateListeners not call TelephonyManager

Since the StatusBarPolicy is run in the System Process and shouldn't therefore call into
the Telephony process we decided to make sure all the needed info was passed along with the
original notifications.

bug: 2173053
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
33e21fcc99dd91061ea245984c4e9a1544cb943f 08-Oct-2009 John Wang <johnwang@google.com> Control H icon display in Status bar.

Bug 2138275. Add a config setting to control if status bar
should show different icons for UMTS and HSPA connnection.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
568cae571a3d74d1992176a21722e07b44e9a3c4 08-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2171460: Turn off background blurring of power dialog

Change-Id: I521629e0ccd0116acf149eeb7476c8474fc7c74a
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
f242b7b931898856bcbcb7ec36cacf43098ba544 08-Oct-2009 Nick Pelly <npelly@google.com> Introduce BluetoothAdapter.getDefaultAdapter().

This is the main entry point to the Bluetooth APIs, and returns the default
local Bluetooth adapter.

It replaces context.getSystemService(Context.BLUETOOTH_SERVICE). This was
never in a public SDK release.

DrNo: eastham
Bug: 2158765
Joke: Why can't you play cards in the jungle? Because there's too many cheetas!
Change-Id: Ieed8be009ee5aba621cb69090ee8c8a9c19c840d
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
bd0a81ff1c0e92e80e05e2f12bb1805c7d081e94 04-Oct-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2163789: Way too much logging

Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
1336a563684ff2226d4daf340ab5ef299e19870b 28-Sep-2009 John Michelau <john.michelau@motorola.com> Fix EVDO SNR signal bar calculation

Bug: 2149249
Change-Id: I27009b083fab7a8cae7d3b74046f50235458dde0
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
d81b1f41e5e7bf0ccd3e4c08838d65eacdc8dda0 25-Sep-2009 Mike Lockwood <lockwood@android.com> BatteryService: Specify low battery levels in resources.

Also trigger low battery when battery reaches the specified level
rather than when it drops below the level.

Fixes bug b/1788656

Change-Id: I81f5cbb9892fc6574320d92e153211f83c69f415
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
005b228cdfb369d9b3b325884c0337ba5968bf8c 10-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.

This is a large batch, and covers:

-- Bluetooth Device Discovery --
BluetoothAdapter.ACTION_DISCOVERY_STARTED
BluetoothAdapter.ACTION_DISCOVERY_FINISHED
BluetoothAdapter.startDiscovery()
BluetoothAdapter.cancelDiscovery()
BluetoothAdapter.isDiscovering()

-- Bluetooth bonding (pairing) --
BluetoothAdapter.getBondedDevices()
BluetoothDevice.ACTION_BOND_STATE_CHANGED
BluetoothDevice.EXTRA_BOND_STATE
BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE
BluetoothDevice.BOND_NONE
BluetoothDevice.BOND_BONDING
BluetoothDevice.BOND_BONDED
BluetoothDevice.getBondState()
BluetoothDevice.createBond()
BluetoothDevice.cancelBondProcess()
BluetoothDevice.removeBond()

-- BluetoothClass --
BluetoothDevice.ACTION_CLASS_CHANGED
BluetoothDevice.EXTRA_CLASS
BluetoothDevice.getBluetoothClass()
BluetoothClass.Service.*
BluetoothClass.Device.Major.*
BluetoothClass.Device.*
BluetoothClass.getDeviceClass()
BluetoothClass.getMajorDeviceClass()
BluetoothClass.hasService()

-- Misc BluetoothDevice --
BluetoothDevice.ACTION_ACL_CONNECTED
BluetoothDevice.ACTION_ACL_DISCONNECTED_REQUESTED
BluetoothDevice.ACTION_ACL_DISCONNECTED
BluetoothDevice.ACTION_DISCOVERED
BluetoothDevice.ACTION_NAME_CHANGED
BluetoothDevice.EXTRA_DEVICE
BluetoothDevice.EXTRA_NAME
BluetoothDevice.EXTRA_RSSI

-- Misc BluetoothAdapter --
BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED
BluetoothAdapter.EXTRA_LOCAL_NAME
BluetoothAdapter.checkBluetoothAddress()

I deprecated BluetoothIntent and moved each intent into the class it relates
to.

Change-Id: I877b1280428ab46278b2bc25668bb44cda22dc36
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
b24e11baac589fe16426f2d243b460ab84991c7b 09-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE

Deprecate BluetoothError.java.

I spent a lot of time experimenting with a class BluetoothError to enumerate
the many error codes returned by the Bluetooth API. But at the end of the day
they were never used. The vast majority of method calls only really need a
true/false error value, and often not even that.

Methods which do need more detailed error enumeration (for example, bonding
failures) can have there own enumerated error codes. But there is no need
for a common set of error codes.

Also change the IPC failed warnings in BluetoothA2dp to Log.e. These indicate
a very serious error.

Introduce BluetoothAdapter.ERROR and BluetoothDevice.ERROR as helper sentinel
values.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
de893f550301a60274e87aa8168225e7a7a42184 08-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE

Another round of Bluetooth API clean up, javadoc'ing and unhide'ing.

-- Symbols for getting/setting bluetooth state --
BluetoothAdapter.ACTION_STATE_CHANGED
BluetoothAdapter.EXTRA_STATE
BluetoothAdapter.EXTRA_PREVIOUS_STATE
BluetoothAdapter.STATE_OFF
BluetoothAdapter.STATE_TURNING_ON
BluetoothAdapter.STATE_ON
BluetoothAdapter.STATE_TURNING_OFF
BluetoothAdapter.isEnabled()
BluetoothAdapter.getState()
BluetoothAdapter.enable()
BluetoothAdapter.disable()

-- Symbols for getting/setting scan mode --
BluetoothAdapter.ACTION_SCAN_MODE_CHANGED
BluetoothAdapter.EXTRA_SCAN_MODE
BluetoothAdapter.EXTRA_PREVIOUS_SCAN_MODE
BluetoothAdapter.SCAN_MODE_NONE
BluetoothAdapter.SCAN_MODE_CONNECTABLE
BluetoothAdapter.SCAN_MODE_DISCOVERABLE
BluetoothAdapter.getScanMode()
BluetoothAdapter.setScanMode()

-- Symbols for getting address/names --
BluetoothAdapter.getAddress()
BluetoothAdapter.getName()
BluetoothAdapter.setName()
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
9f87cb2f8d796f57054c1c0f0ce4b9bef9414642 26-Aug-2009 johnwang <johnwang@google.com> Simplify data icons of CDMA in status bar.

Use 3G icons when connect to EvDO, use 1x icons when connected to 1x, and remove dormant state display.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
347c5a22a915df5aa180573573adf6b2213a35dc 25-Aug-2009 johnwang <johnwang@google.com> Simplify CDMA Status Bar icons

Update the RSSI display policy in CDMA.
1. Use single RSSI icon instead of two icons
2. If 3G(EV) and 1x network are available than 3G should be displayed, Displayed RSSI should be from the EV side.
3. If a voice call is made then RSSI should switch to 1x.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
ebe66345e7099ca6fc95e8aa4d31a5b5cbbd6224 14-Aug-2009 Li Zhe <jqc837@motorola.com> Framework changes to support HSDPA/HSUPA/HSPA
HSDPA: High-Speed Downlink Packet Access
HSUPA: High-Speend Uplink Packet Access
HSPA: High-Speed Packet Access

Add support for HSDPA/HSUPA/HSPA:
1) extend TelephonyManager.NETWORK_TYPE for HSDPA/HSUPA/HSPA
2) extend ServiceState.RADIO_TECHNOLOGY for HSDPA/HSUPA/HSPA
3) set radioTechnology into ServiceState in GsmServiceStateTracker
4) change the implementation of TelephonyManager.getNetworkType to
solve the competition timing issue between the time of setting
system property and the time of receiving notification through
PhoneStateListener
4.1) add a getNetworkType interface in ITelephony.aidl
5) add icons resources for HSDPA/HSUPA/HSPA
6) make use of HSDPA/HSUPA/HSPA icons in StatusBarPolicy
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
bd022f423a33f0794bb53e5b0720da2d67e4631c 15-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: API change.

Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
(pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
69eb0bfcce7ec68a9771dbcf53434dfbca183d0c 02-Aug-2009 Mike Lockwood <lockwood@android.com> Close the "Please connect charger" alert after a charger is connected.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
96f2747dd6fabd998619524bcff4a44502a64bbd 23-Jul-2009 Yong Zhang <yzhang@motorola.com> Fix wrong Singal Strength interpretation.

The issue this change fixes is that phone status bar shows full
signal strength bar even when phone is in bad signal area. The
root cause is that the signal strenth is incorrectly interpreted.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
3f41673265dcaaef058703311c5481e8a51fd8be 02-Jul-2009 Jiafa Liu <pbx376@motorola.com> frameworks/base: Add PBAP support

- Update according to comments
- Add aidl support in frameworks for Settings to retrieve current
PBAP transaction status.
- Add status bar support for PBAP
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
8ec5b83fc8f8aa68805c4d5987f8f75bb28250ca 02-Jul-2009 Dianne Hackborn <hackbod@google.com> Merge commit '1dac277f' into manualmerge

Required rewriting the okay battery broadcast stuff.

Conflicts:
services/java/com/android/server/status/StatusBarPolicy.java
1dac277f93a80c53a870b8924508dd2af81293de 27-Jun-2009 Dianne Hackborn <hackbod@google.com> Implement issue #1943927 (need notification in status bar when adb is active)

This is a little hacky -- we just assume that if adb is enabled and power
is connected through usb, then it is active.

The icons and text are temporary until final design is provided.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
c13713519dd92f0008415bef8499d85bd7e3edb4 19-Jun-2009 Dianne Hackborn <hackbod@google.com> am 3d74bb4a: Add "why?" button to low battery dialog.

Merge commit '3d74bb4ab27ae9601f5c9c3706fad287845fb672'

* commit '3d74bb4ab27ae9601f5c9c3706fad287845fb672':
Add "why?" button to low battery dialog.
3d74bb4ab27ae9601f5c9c3706fad287845fb672 19-Jun-2009 Dianne Hackborn <hackbod@google.com> Add "why?" button to low battery dialog.

This takes the user to the power usage activity.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
8d3002e04755c0e7d0d1ed6c8f872c4bb2201f8e 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 35feec46: Merge change 2761 into donut

Merge commit '35feec46d90d434a2439765d127a9e8f68a52340'

* commit '35feec46d90d434a2439765d127a9e8f68a52340':
TODO's from Teleca with modifications from wink.
f315238a2b07c7e84f6ade800e504f520d262e66 01-Jun-2009 Wink Saville <wink@google.com> TODO's from Teleca with modifications from wink.
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
ad8195bb0ea9ed087519d899402571c8608c0b48 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2f11599e: Merge change 1579 into donut

Merge commit '2f11599eb317887a8cca14d8e66bfc485e5169e7'

* commit '2f11599eb317887a8cca14d8e66bfc485e5169e7':
Teleca 2b changes
e9b06d754af03faf27012fbed1e7559ec1ba7c79 19-May-2009 Wink Saville <wink@google.com> Teleca 2b changes
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
a82842f98d64897e92e1012404863f940bd03d26 29-Apr-2009 Mihai Preda <preda@google.com> Move ACTION_BATTERY_LOW logic to BatteryService (bug 1630733).
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
04e71b3db84fd5f7fc4eefb49a33154ea91ec9fc 02-Apr-2009 Wink Saville <> AI 144245: Fix merge conflict for megering in the CDMA changes in to master from donutburger.

Automated import of CL 144245
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
767a662ecde33c3979bf02b793d392aca0403162 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
4840e143df9804e3399a4e0341c0601f80d65d6e 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@142348,142348
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
627bba736d022c39696b7c582a6af5592d2b8c33 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@142347,142347
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java