70 Commits

Author SHA1 Message Date
Daniel Sandler
fb970e9204 Notification.fullScreenIntent support.
Bug: 2911617
Change-Id: I1b4cd6ff0f760bad721a3a8eed61209b44b64c02
2010-08-20 10:57:52 -04:00
Daniel Sandler
05691455f5 Merge "Wi-Fi signal strength and status in the system bar & panel." 2010-08-19 06:13:04 -07:00
Daniel Sandler
d7db7b1eaf Wi-Fi signal strength and status in the system bar & panel.
Change-Id: I67b948b7c87650b51e5785471b66b4b2cca218ed
2010-08-19 01:26:21 -04:00
Daniel Sandler
5ecbbbfeae am e03e6d30: am 80810f86: Merge "Fix crash in status bar ticker." into gingerbread
Merge commit 'e03e6d3072592b2a49ee4a43c5977e7462bf9fd0'

* commit 'e03e6d3072592b2a49ee4a43c5977e7462bf9fd0':
  Fix crash in status bar ticker.
2010-08-16 15:19:33 -07:00
Daniel Sandler
f8d5809eee Fix crash in status bar ticker.
Bug: 2900850
Change-Id: Iaf71e093578501258a24cd43e5deaf624d28461e
2010-08-16 15:15:41 -04:00
Irfan Sheriff
72d54efd3d DO NOT MERGE Fix wifi status icon
Doing a setIcon makes the icon visible and overrides
setIconVisibility

Change-Id: I7a177cc07e46f211d421e4aa86203ece5936c3fb
2010-08-15 15:55:44 -07:00
Daniel Sandler
1e3ed8fc95 Battery meter now functioning in the system bar and settings panel.
Change-Id: I08881a597f166eaeabd01d550a59109661535639
2010-08-13 15:04:40 -04:00
Daniel Sandler
6425ef950c System bar settings panel: first pass.
Implemented: Clock, brightness, silent toggle, airplane mode
(although this seems not to be working well yet on the
device).

Unimplemented: Orientation lock, battery, wifi signal, date.

Change-Id: Iec9cc833103a68aecccf46cd6eeffc2128d64eea
2010-08-12 02:29:57 -04:00
Daniel Sandler
6327b957e0 Apparently people want to know what time it is.
Bug: 2897410
Change-Id: I8a9a995cf50d197f1f8894455372d0e325eb3eae
2010-08-11 11:45:22 -04:00
Daniel Sandler
dfa08db165 Incremental system bar improvements.
- scrolling list of notifications
 - fixed crashes when inserting notifications
 - new "expand" icon in prep for different touch behavior on
   notification icons
 - adjustments to the Ticker API in preparation for Kicker
   work

Change-Id: I18908cbb2bbbfb7969c7bb48dbda67697732c438
2010-08-10 16:19:33 -04:00
Daniel Sandler
7bff7e6e84 Fix startup crash on phones.
Bug: 2899243
Change-Id: I344fdd4cd3acce64f78cb9b71848b888f59fadfa
2010-08-06 15:06:18 -04:00
Daniel Sandler
0f0b11c871 Basic support for notification payloads in the panel.
Line-item veto is there, but allows you to cancel some
notifications you probably shouldn't be canceling. (Should
hide the "X" in those cases.)

No preference given to "sticky" notifications, because
there's no such thing yet.

Notifications are now limited to 4 visible icons, per spec.
The implementation is a total hack for now.

Change-Id: Ibdf433ae94189117f983c510fe5e0cff0bf5c44c
2010-08-05 09:34:50 -04:00
Daniel Sandler
b64ffdf0aa Merge "Cleaning up the notification data structures." 2010-08-04 13:12:15 -07:00
Gilles Debunne
ed3cfb5e1b Generated hdpi drawable size reduced
Change-Id: Id17bb27500ba8729c33613bbf457f1b3193ced38
2010-08-03 16:13:54 -07:00
Gilles Debunne
d1ce7496f1 Merge "frameworks/base/ : added scaled hdpi version of assets that were moved to drawable-mdpi" 2010-08-03 11:01:25 -07:00
Daniel Sandler
379020aec6 Cleaning up the notification data structures.
Change-Id: I2e39fee81a2bd99245b9de6edd2ce5c45bd733c7
2010-08-03 13:58:02 -04:00
Gilles Debunne
389878e49d frameworks/base/ : added scaled hdpi version of assets that were moved to drawable-mdpi
Change-Id: I95c7e6afb84af981867c32fe7f86b140f643b5b9
2010-08-03 10:47:05 -07:00
Gilles Debunne
8fbe89d2d1 Merge "Move pngs from drawable to drawable-mdpi in project frameworks/base" 2010-08-02 15:39:41 -07:00
Gilles Debunne
b0dde8e9b5 Move pngs from drawable to drawable-mdpi in project frameworks/base
After error during file transfer...

Change-Id: I21da694f81a4290e9af1f7647a8ceb6c6d3d806b
2010-08-02 15:21:27 -07:00
Daniel Sandler
1ab5cae8df Actually reference the fixed Proguard flags.
Bug: 2869888
Change-Id: I3277b51cd411c7933607c08b6022870ef83e9197
2010-08-02 14:53:16 -04:00
Dianne Hackborn
37b4a3c2f2 am f4e145fd: am 543f250d: Merge "Make the systemui process persistent." into gingerbread
Merge commit 'f4e145fd123a6941348e16a595107b155bd880e8'

* commit 'f4e145fd123a6941348e16a595107b155bd880e8':
  Make the systemui process persistent.
2010-07-31 12:19:39 -07:00
Daniel Sandler
aee242d3ec Fix Proguard flags causing crash in system bar.
Bug: 2869888
Change-Id: I32198676732a1f272b12154d87d7917f354bb91c
2010-07-30 22:01:34 -04:00
Dianne Hackborn
26755a347c Make the systemui process persistent.
This ensures that the system won't kill it for memory,
the user can't stop services inside of it, etc.

Change-Id: I923c376afa1133bccc000253f5bba851f9119a52
2010-07-30 17:24:38 -07:00
Daniel Sandler
571a629f29 Merge "Show notification icons in the system bar." 2010-07-29 12:45:15 -07:00
Daniel Sandler
3eebd1ffbf Show notification icons in the system bar.
Caveats:
 - Ongoing and normal are lumped together
 - Currently no limit on number of icons (should be 4)
 - Still can't see the notifications in the panel

Change-Id: I83ac474db6ff290207d37747b672a1a56788a238
2010-07-29 15:42:11 -04:00
Jeff Brown
bbda99d208 Fixed StatusBar ANRs due to input event injection on UI thread.
Added a new asynchronous injection mode and made the existing
synchronization mechanism more robust.

Change-Id: I0464f70ff5cbd519dbb02686b2cb5d810fe7dbb2
2010-07-29 12:19:08 -07:00
Daniel Sandler
0f3332d0d6 Tweak FPO art.
Change-Id: I3a0176adbebd43a2cbf1d54c0d5153d0d3f5b60c
2010-07-23 15:54:27 -04:00
Daniel Sandler
a9ef06955d Merge "Improvements to the system bar:" 2010-07-23 12:00:11 -07:00
Daniel Sandler
9120d55b80 Improvements to the system bar:
- dummy panels for the notification & system areas
 - dummy battery/wifi status indicators
 - new "whiteboard ui" temporary artwork
2010-07-23 14:58:40 -04:00
Irfan Sheriff
3bb46be774 Merge "Fix wifi status icon" 2010-07-22 18:57:55 -07:00
Irfan Sheriff
311912ef75 Fix wifi status icon
Doing a setIcon makes the icon visible and overrides
setIconVisibility

Change-Id: If71c9b727ace268f47121c2bf5f724481f592c8e
2010-07-22 12:07:34 -07:00
Daniel Sandler
a101f8f6ef Fix pressed states on system bar buttons.
Change-Id: Ie12958fee80d9e292e4ab8e6a267db47d91b10b1
2010-07-21 16:44:42 -04:00
Daniel Sandler
3a04ef0adb Move more of the system bar to the layout.
Change-Id: I2fd67e687b8048a48e2c6531ac896d33815ce615
2010-07-15 16:35:29 -04:00
Joe Onorato
808182dc87 checkpoint tablet status bar
Change-Id: Ia9089cce370ead4e685dffbca722fa8404a8f443
2010-07-12 14:29:15 -04:00
Daniel Sandler
ddfd24c329 am 4dc96b85: am f7d2b4a2: Use fullScreenIntent to show the USB mass storage dialog.
Merge commit '4dc96b8513ad3d3af54321716251f789769a11b4'

* commit '4dc96b8513ad3d3af54321716251f789769a11b4':
  Use fullScreenIntent to show the USB mass storage dialog.
2010-07-08 19:09:42 -07:00
Daniel Sandler
f7d2b4a2e0 Use fullScreenIntent to show the USB mass storage dialog.
Note that this is not a FLAG_HIGH_PRIORITY notification. In
immersive mode the UMS dialog will be suppressed entirely
(but an icon will still appear in the status bar).

Bug: 2821219
Change-Id: I21f910c8830aff8d0633deda4eb59dbda13262ed
2010-07-08 13:07:41 -04:00
Joe Onorato
a5b38cab74 top and bottom can't be the same thing
Change-Id: Ia5e4684db6dab390394f11182612c45818c7bcc0
2010-07-07 18:35:58 -04:00
Joe Onorato
52c1dc2fd9 buttons on the bottom
Change-Id: I52184ad2752c38bcc4c7646b404f3f305e0ac4b6
2010-07-07 18:33:14 -04:00
Joe Onorato
86f9bd2fd0 Add KeyButtonView
Change-Id: Ic32076c07bd45cbf2a6db25d8e8e933701fdf8b2
2010-07-07 18:33:14 -04:00
Joe Onorato
119a4015f0 add a button area
Change-Id: I78171b3d6cc44a5984e5f602565228909f3e1c00
2010-07-07 18:33:14 -04:00
Daniel Sandler
b59b94456b Fix icon size in intruder alerts.
(Updated test app to confirm the fix.)

Change-Id: Ife56cf07f282786162e2ebc5aaddbb24dac6cafd
2010-07-07 14:06:27 -04:00
Steve Howard
ce94584096 Log full exception when failing to inflate notification view
When inflating a notification's view fails, include the exception in
the log message.  Without this exception all we get is "couldn't
inflate view for notification <package>/<id>", which isn't very
helpful for tracking down the particular error in the view.

This exception used to be included in the log message, but it was
removed in 005847b03b2 -- any particular reason why?

Change-Id: I623b9e4c8291e4c035f26380e5f22ad6b65176a7
2010-07-01 17:54:16 -07:00
Joe Onorato
a2dd4c17bb put the status bar back in the system process
Change-Id: I401b0ac8e3c96b61e787eb18341d18be75b3761d
2010-07-01 07:51:04 -04:00
Joe Onorato
6be4739e1b quiet noisy debug spew
Change-Id: I55c3b16f58bbe0ec4c6547c525863a7d16f8263d
2010-07-01 07:47:08 -04:00
Daniel Sandler
294c9fb899 Improved graphics for the intruder alert.
Change-Id: I9aa6c8995da39f332b724fabe67ed5efe584552f
2010-06-30 15:32:26 -04:00
Daniel Sandler
27a8be4b35 Support for tapping on an immersive-mode priority notification.
When the user taps on an intruder alert (the priority
notification in immersive mode), the .contentIntent in the
Notification object will be sent, just as we handle tapping
on a normal Notification in the windowshade.

Change-Id: Ib6991837b0b2122fe138cddacf347fdbc426b99d
2010-06-29 15:19:54 -04:00
Joe Onorato
1c95ecb47a recombine StatusBarService and PhoneStatusBarService
Change-Id: I64178209985bfac283740d6a667211d2f962f71a
2010-06-29 11:00:04 -04:00
Joe Onorato
b54ef61434 Separate the status bar height from the icon size.
Change-Id: I9cc8c5e8ed2c48d03b7c1c89f1bf7f94cc119171
2010-06-29 09:45:54 -04:00
Daniel Sandler
5dbd05ed18 Intruder alert! (First try at the immersive-mode alert bar.)
When a FLAG_HIGH_PRIORITY notification is posted and the
foreground activity is immersive, this window will be shown
to the user. It disappears after a while (currently 10s,
which is far too long to be usable but is very handy for
testing) and can be dismissed by a tap.

Artwork is extremely rough; please ignore the aesthetics.

Still TODO:
  - sticky alerts for ongoing priority notifications
  - tap to launch PendingIntent associated with the
    notification

Change-Id: Ief4a98b84cc836d33359bd7d65de9909f5186317
2010-06-28 16:33:27 -04:00
Daniel Sandler
87160757e8 Basic handling of Notifications with fullScreenIntent.
If a Notification has a non-null fullScreenIntent AND the
topmost Activity is not immersive, that PendingIntent will
fire (presumably causing a nice dialog or full-screen
activity to appear).

Immersive mode handling for FLAG_HIGH_PRIORITY Notifications
is still unimplemented (although the fullScreenIntent will
be suppressed in immersive mode).

Note that currently your fullScreenIntent notification will
also get posted to the status bar, so you're responsible for
clearing it out (e.g. in onPause in your alert intent). See
forthcoming changes to StatusBarTest for an example.

Change-Id: Ie750d1b7bcc788bd29ee1d8626f971dd47fd2817
2010-06-24 22:09:35 -04:00