988 Commits

Author SHA1 Message Date
Daniel Sandler
298a2a816a Disable peeking at individual notifications.
Now tapping anywhere on the notification/clock/status end of
the system bar will bring up the notification panel.
Swiping up anywhere in that region works as well.

This change also adds visual touch feedback to the panel
trigger area.

Bug: 4723688
Change-Id: I5e24fea1231b798c41ddd48c0c42c283c92ebe65
2011-08-11 16:25:57 -04:00
Daniel Sandler
294a6199bd Merge "Subtract the navigation bar from DisplayMetrics." 2011-08-10 18:54:20 -07:00
Winson Chung
9a79680bde Merge "Fixing screenshot timestamp (5147168)" 2011-08-10 16:23:52 -07:00
Winson Chung
930facd20e Fixing screenshot timestamp (5147168)
Change-Id: I28ce2431bdfe7025191d9a6780ba0a59175c8047
2011-08-10 16:02:59 -07:00
Daniel Sandler
36412a7e7c Subtract the navigation bar from DisplayMetrics.
Its region is now treated like the system bar: inaccessible
to applications and therefore not worth reporting as part of
the display.

(Note that using setSystemUiVisibility you can gain
temporary access to the navigation bar region, unlike the
sempiternal system bar.)

The navigation bar is now considerably less in control of
its own behavior (the window manager assumes it will be a
certain size and in a certain position in landscape and
portrait). This change also fixes the navbar so that it
becomes GONE instead of merely INVISIBLE (allowing
underlying windows to expand in size accordingly).

Bug: 5052456 // the feature
Bug: 5067627 // notification shade falling behind the navbar
Bug: 4959805 // fix third-party apps relying on DisplayMetrics
Change-Id: I60257fc5c858e0edcaba8cfc1f8d58dd99a68258
2011-08-10 16:10:59 -04:00
Daniel Sandler
cf336e10c0 Forcibly recalculate size of the notification expanded view.
This helps avoid a race condition that can sometimes leave
the status bar handle untouchable (read: hiding behind the
expanded view's transparent window, which is too large
because the close handle's height has not yet been
calculated) on first boot.

Bug: 5122306
Change-Id: I5fa2595798a66289c2c33d7c78dd16f9db066ede
2011-08-09 15:50:03 -04:00
Daniel Sandler
d309056d36 Add settings button to notification panel.
Also move date to panel in place of carrier name.

Bug: 5076789
Change-Id: I498dc1e29581829c123b3cc0a8c81551ac8bdbe2
2011-08-09 15:49:39 -04:00
Eric Fischer
9b3ef020f0 Merge "Import revised translations." 2011-08-08 15:07:58 -07:00
Daniel Sandler
2dbf1b76b9 Merge "Don't show network type if no SIM." 2011-08-08 07:11:40 -07:00
Daniel Sandler
1f1304a84e Don't show network type if no SIM.
Bug: 5127932
Change-Id: Ib29bfe3372b2c40618480691d65cc4c74d02f8fd
2011-08-07 16:36:39 -04:00
Dianne Hackborn
9ea3163973 Fix issue #5108980 Wallpaper is not restored after upgrade from IRK32B to IRK33B
Take care of updating from old component name, and don't let this happen
again.

Also tweak how we switch between static wallpapers to avoid introducing
a 4MB allocation in the system UI process when this happens -- we now
stop the current wallpaper service and start a new one, so we get a
brand new surface that we can draw only one time in to.

Change-Id: I6fc8a42b8a46bba79759bd68fb7d0684b5d897b7
2011-08-05 19:22:25 -07:00
Eric Fischer
380dcb4d3f Import revised translations.
Change-Id: Id1dc8ed9e570a81fe25088df3bca5e206f04b1ad
2011-08-05 16:55:39 -07:00
Daniel Sandler
6cf602cd1d Fix crash in log message.
Bug: 5126593
Change-Id: I2214e48de4d0f858b9b23c431bdf91078cc0ccd6
2011-08-05 13:20:53 -04:00
Daniel Sandler
319d1e3b28 Stop popping up the compatibility mode dialog all the time.
(The check for whether the dialog had already been shown was
accidentally removed in change I1c1bd12.)

Bug: 5069310
Change-Id: I2ea35c5891667922e78d7919132ffe599411f851
2011-08-05 11:35:47 -04:00
Daniel Sandler
c803422bed Merge "Clear all notifications on tablet actually works now." 2011-08-05 04:46:09 -07:00
Daniel Sandler
69ecb0a08a Merge "Instrumentation to track notification panel touch bugs." 2011-08-05 04:45:53 -07:00
Ken Wakasa
bd391ba1f2 Suppress the IME switcher icon by default on tablet
bug: 5001205
Change-Id: I8c983808078d984d1d25e985e23ab036b869332e
2011-08-05 18:17:30 +09:00
Daniel Sandler
06a0d4b5c3 Clear all notifications on tablet actually works now.
Also, the panel is no longer buried below the screen edge
when there are no notifications.

Bug: 5115158
Change-Id: I01bc8a65ceebd64143a4c4c52d63641dc3cd1c77
2011-08-05 00:29:58 -04:00
Daniel Sandler
96e61c3c86 Instrumentation to track notification panel touch bugs.
Bug: 5122306
Bug: 5105599
Change-Id: I2ca677d71daf9c6d5931ae933b3ab496620ab564
2011-08-04 22:49:06 -04:00
Daniel Sandler
f48fd822e0 Fix another NPE.
Bug: 5122306
Change-Id: I6877528325d30bb725f8692c86a8752263b5344e
2011-08-04 15:57:39 -04:00
Daniel Sandler
d3ffa270e0 Merge "Log some signal condition diagnostics for now." 2011-08-04 09:56:53 -07:00
Daniel Sandler
f91f0905e4 Merge "Fix NPE on first-ever boot if display has rotated." 2011-08-04 08:46:20 -07:00
Daniel Sandler
8d77e7714b Merge "Restore DISABLE_NOTIFICATION_ICONS." 2011-08-04 08:44:51 -07:00
Daniel Sandler
96f3b6f010 Fix NPE on first-ever boot if display has rotated.
Bug: 5116154
Change-Id: I8c91fa9eae24c6cb25f4431da00dc4b527124ae3
2011-08-03 21:45:28 -04:00
Mike Lockwood
e2e7b1e2dc Merge "Add support for localizing order of day of week and date in status bar date view" 2011-08-03 18:35:23 -07:00
Daniel Sandler
60b3e9c157 Log some signal condition diagnostics for now.
Bug: 5103241
Change-Id: Id780a3e535270c53e5f1b531c761ca5010291040
2011-08-03 21:26:03 -04:00
Mike Lockwood
ec9a50bccf Add support for localizing order of day of week and date in status bar date view
In Japanese, the day of week should follow the date

Bug: 4606219

Change-Id: If385b3f9989bbe5f1b4bc21293d9be651e187c1f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-03 15:29:02 -04:00
Daniel Sandler
8e41f3158d Restore DISABLE_NOTIFICATION_ICONS.
Bug: 5054828
Change-Id: I621f5ef9281eb9593525faf7dd7be42def653970
2011-08-03 14:08:12 -04:00
Dianne Hackborn
59aed3885e Put back the status bar animations.
Change-Id: I9b326e8da9fa17878dde8a83c6551e9eb600bb7e
2011-08-02 22:53:31 -07:00
Dianne Hackborn
f4461fc5a6 Merge "Reduce memory usage of status bar expanded view." 2011-08-02 22:48:16 -07:00
Dianne Hackborn
1dacf2772d Reduce memory usage of status bar expanded view.
It was configuring this to have its width follow the display size
but height be a fixed amount.  As a result, during a rotation we
would end up with a surface that is 800x712, which uses a lot more
memory.

The fix is to just always set the window to a fixed size, changing
it when the display size changes.

Also the expanded view was setting itself to use a hardware layer
for no reason -- it is a top view so there is no point in this,
and anyway it is doesn't even use hw rendering.  This saves 1.5MB
of the layer bitmap.

This change also fixes the returned problem where the expanded
view would flicker when pulling it down in landscape.

Change-Id: If57420b0bc3fdc2706d2d3b36cb2d287b5fc9e27
2011-08-02 22:37:42 -07:00
Dianne Hackborn
5857bceaea Merge "Clear the bitmap from the canvas in a lot of places." 2011-08-02 16:57:50 -07:00
Dianne Hackborn
6311d0a079 Clear the bitmap from the canvas in a lot of places.
Change-Id: I6b2071ac7b348c473b9bdd1b972d095aebbb4fb3
2011-08-02 16:37:58 -07:00
Eric Fischer
147200b2c4 Merge "Import revised translations." 2011-08-02 15:24:05 -07:00
Eric Fischer
5a4e75e2e2 Import revised translations.
Change-Id: If420bd92ac6f84a7ecfa57b48477815ac392cb3f
2011-08-02 11:06:38 -07:00
Daniel Sandler
2124ef9ebe Merge "Refresh tablet notification drawer." 2011-08-02 04:39:46 -07:00
Daniel Sandler
da2089695e Merge "Merging ongoing + latest notifications on phone UI to match tablets." 2011-08-02 04:39:35 -07:00
Daniel Sandler
1347c30824 Refresh tablet notification drawer.
* New "X" button appears in the system bar, allowing the
    user to clear all notifications. Only appears when the
    notifications list is showing and there are clearable
    items. (Note: the textual button on phones has also been
    replaced with an X.)

  * Updated panel background artwork and positioning.

  * Removed a bunch of old art.

Bug: 4970588
Bug: 4974043
Bug: 3509407 (regression)

Change-Id: Ibadb638cd18c4faa751cd1f311d73ceda65cb3ca
2011-08-02 01:38:55 -04:00
Daniel Sandler
7c3e39de22 Merging ongoing + latest notifications on phone UI to match tablets.
Change-Id: Ie8ee72137e9eeb6740f3d113d5331e8cba629ab2
2011-08-01 23:26:21 -04:00
Dianne Hackborn
ba39839444 Move ImageWallpaper to SystemUI process.
Nice to not load 4MB bitmaps in the system process.

Also, hey, with how we are now scrolling the surface instead of
the bitmap, there is no reason to keep that 4MB bitmap loaded in
to memory.  So don't.

Unfortunately it looks like for some reason the VM is still
holding on to the bitmap.  I'll need to figure out why.  Later.

Change-Id: Ib3503756144502fc5c8d5e294248c2417c4fe8c8
2011-08-01 17:55:54 -07:00
Brett Chabot
9101a02963 Merge "Add functional test for screenshots." 2011-08-01 15:07:01 -07:00
Daniel Sandler
2fb30a92d5 Quick fix for NPE in updateNotification().
When the "ongoing"/"latest" split is removed, this will be
replaced with something less odious.

Bug: 5090331
Change-Id: Ib804de66985ff5f5df2e1df3c85437a1e31f1c49
2011-07-29 12:50:06 -04:00
Daniel Sandler
f3f2011285 Fix NPE for devices with hardware navigation.
Bug: 5095974
Change-Id: I4d8c39fbff6feb7b65055938ac0f725faaa6e6a3
2011-07-29 12:41:54 -04:00
Daniel Sandler
dfab18171c Protect animation methods from Proguard.
Bug: 5096417
Change-Id: I5546dfe0092747c311836bb2134b52be58d77b98
2011-07-29 12:41:25 -04:00
Daniel Sandler
94eea0b26e Merge "Bring the shiny navigation button animations to phones." 2011-07-29 06:48:43 -07:00
Daniel Sandler
53f2531ba7 Merge "The fullest of fullscreen modes." 2011-07-29 05:45:55 -07:00
Daniel Sandler
5298582717 Bring the shiny navigation button animations to phones.
Also fix the accessibility descriptions (bad merge?).

Bug: 4541219
Change-Id: I8a8e2a14e5557c45af0b9e74b0bd654ff804aab9
2011-07-29 08:44:09 -04:00
Daniel Sandler
cdbb950afe Merge "New richly-appointed navigation buttons." 2011-07-29 04:52:44 -07:00
Daniel Sandler
a375c94fca New richly-appointed navigation buttons.
- Beautiful new touch feedback animations
 - Romantic icon dimming
 - Supple Corinthian leather

Bug: 4541219
Change-Id: I8c4e1ec73aba910a17001795d2b03200c5af1788
2011-07-29 00:38:55 -04:00
Brett Chabot
caf30a18b5 Add functional test for screenshots.
Change-Id: Ice2cbc656f9814da7d0634644a250c1af9243ad1
2011-07-28 19:52:49 -07:00