1939 Commits

Author SHA1 Message Date
Svetoslav Ganov
8cbe6e8f12 Merge "Updating the data base upgrade/creation code for the new touch exploraion setting." 2011-07-28 12:29:29 -07:00
Daniel Sandler
60ee25643e The fullest of fullscreen modes.
View.setSystemUiVisibility() now properly accepts a
bitfield, including:

  * SYSTEM_UI_FLAG_LOW_PROFILE: "lights out mode"
    (previously known, erroneously, as STATUS_BAR_HIDDEN)

  * SYSTEM_UI_FLAG_HIDE_NAVIGATION: for when you need every
    single pixel on a device that also has a navigation bar

These flags are painstakingly aggregated across the entire
view hierarchy and carefully delivered to the status bar
service, which in turn gently passes them along to the bar
implementation.

To really get access to the whole screen, you need to use
HIDE_NAVIGATION in conjunction with FLAG_FULLSCREEN and
FLAG_LAYOUT_IN_SCREEN. See development/samples/Overscan for
an example of how to do this.

Change-Id: I5fbfe009d9ceebbbf71db73f14a7008ea7c1d4da
2011-07-28 15:18:32 -04:00
Svetoslav Ganov
a28a16d1c2 Updating the data base upgrade/creation code for the new touch exploraion setting.
1. Update the database creation/upgrade code to take care of the new setting
   to enable touch exploration.

2. Made the tocuh exploration settings persistent to the cloud.

Change-Id: Ie24e9184b4a21869432d11d207cb6464fadbac3b
2011-07-28 11:26:02 -07:00
Michael Jurka
e9166ede07 Dismiss Recent Apps when Back is pressed
Change-Id: I17a1ee9683910113d822a084f804646580ab43cb
2011-07-28 10:45:10 -07:00
Daniel Sandler
6d96dd0140 Merge "Restore status icons to former size & opacity on tablets." 2011-07-27 16:36:11 -07:00
Kenny Root
4f35092af5 Merge "Move extract native libraries to JNI code" 2011-07-27 15:54:51 -07:00
Jeff Brown
3d5a703db8 Merge "Report the external display size to the input reader." 2011-07-27 15:54:50 -07:00
Daniel Sandler
88d6877223 Restore status icons to former size & opacity on tablets.
Bug: 5086130
Change-Id: Ie1d86f8d40882d0f8193a85295a5a45ce0fe53c5
2011-07-27 16:33:39 -04:00
Jeff Sharkey
41ff7ec824 Revise data limit notifs, watch kernel alerts.
Teach NetworkPolicy limits to "snooze" when requested by user, and
notify with both dialog and notification.  Register for network alerts
through NMS to trigger updates immediately instead of waiting for
next stats update.

Enforce that all NetworkPolicy are unique on a template basis, and
move SCREEN_ON/OFF broadcasts to background thread.  Launch SystemUI
and Settings directly instead of using actions, and include full
NetworkTemplate in extras.

Tests to verify notification and snooze behavior.

Bug: 5057979, 5023579, 4723336, 5045721
Change-Id: I03724beff94a7c0547cb5220431ba8d4cd44d077
2011-07-27 09:31:39 -07:00
Daniel Sandler
26c84b139f Smaller, darker notification icons.
(Still need to attempt to mipmap them but this will do for
now.)

Bug: 4691635
Change-Id: I8793d6a453fcbe0c2ce30b6349e4e5ef3f1a6e56
2011-07-27 00:09:40 -04:00
Mike Lockwood
7c0d89ac97 Merge "GlobalScreenshot: Set image file size in media database when taking screenshots" 2011-07-26 16:42:43 -07:00
Mike Lockwood
9837734b64 GlobalScreenshot: Set image file size in media database when taking screenshots
Otherwise the value would be left at zero since we are inserting
the database record before writing the file

Bug: 5064246

Change-Id: I54be6ff14a7f170994aaf586aaddb06c5b746e89
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-26 16:58:14 -04:00
Eric Fischer
821e7a65fa Merge "Import revised translations." 2011-07-26 13:12:58 -07:00
Daniel Sandler
070ce94b9f Merge "New phone statusbar handle." 2011-07-26 10:34:28 -07:00
Daniel Sandler
53ef499353 Merge "New stacked RSSI icons." 2011-07-26 10:34:21 -07:00
Daniel Sandler
4e69214f4d Merge "Play the low-battery sound only at certain discharge events." 2011-07-26 10:21:24 -07:00
Kenny Root
66269ea6f6 Move extract native libraries to JNI code
The built-in ZipFile class was quite a long time to find an unpack
libraries. Move everything to using the libutils ZipFileRO class that
goes quite a bit faster. Initial measurements are 6 times faster than
the Java code.

Also, read files off the disk and compare their CRC against the APK's
CRC to see if we need to write the new file to disk. This also cuts down
the bootup time by up to a second per APK that has native files.

Change-Id: Ic464a7969a17368fb6a6b81d026888c4136c7603
2011-07-26 10:14:58 -07:00
Daniel Sandler
e2234add84 Merge "Update large icon in changed status bar notifications." 2011-07-26 10:13:04 -07:00
Daniel Sandler
7198662bb3 Play the low-battery sound only at certain discharge events.
That is, only play it when the device is running on battery
and the remaining charge level descends into a new
low-battery regime:

* when the device hits the first threshold, for example 15%
  (the dialog is first shown at this time)
* when the device hits the second threshold, e.g. 4% (the
  dialog will be redisplayed if necessary)
* when the device has been charging but AC power is removed,
  returning the device to a low-battery regime (the dialog
  will be redisplayed if necessary)

The sound will no longer be replayed as the battery level
descends within these regimes (say, 4% --> 3%).

Bug: 4981280
Change-Id: I049d60f39ae556241a23f8664e61be3d70d937e5
2011-07-26 13:06:49 -04:00
Daniel Sandler
2b69735e01 New stacked RSSI icons.
The signal strength, network type & flow indicator, and
battery have all been moved out of the policy and into the
status bar implementation itself, mirroring the change on
tablets. This means that they no longer use status bar icon
slots but instead are bespoke layouts and views.

GPS has also been removed and will return as a notification
(again, as was done in the Honeycomb tablet UI).

Bug: 4691638
Change-Id: I60df4871209b64209bfc5b3bf398651cc2e77b24
2011-07-26 08:17:28 -04:00
Jeff Brown
bc68a59c02 Report the external display size to the input reader.
The input reader needs this information so that it knows how to
interpolate touches on an external touch screen.

Changed Display so that it asks the WindowManager what the real
display size is (as opposed to the raw display size).  This means
it now takes into the forced display size set by
adb shell am display-size.

Replaced all calls to getRealWidth() / getRealHeight() /
getRealMetrics() in the WindowManager and replaced them with direct
usages of the mCurDisplayWidth / mCurDisplayHeight so that the WM
doesn't end up making a reentrant Binder call into itself.

Fixed the table status bar HeightReceiver so that it updates the
height on all configuration changes since it is possible that the
display size changed independently of an external HDMI display
being plugged / unplugged.

Improved the Display class documentation to make the distinctions
betweeen the various sizes clearer.

Change-Id: I3f75de559d3ebffed532ab46c4ae52c5e7f1da2b
2011-07-25 20:10:12 -07:00
Daniel Sandler
975e689c34 New phone statusbar handle.
Bug: 4691638
Change-Id: I317d76bc093b56b639bf1d937fe6fb8dcbff109e
2011-07-25 21:31:41 -04:00
Eric Fischer
3a6c36fdd7 Import revised translations.
Change-Id: Ia9c97db0cd31b9d3163318b4193a328a614a7098
2011-07-25 17:36:41 -07:00
Daniel Sandler
d5b858639c Update large icon in changed status bar notifications.
Reapply fix from change I6bb72c0b to phones.

Bug: 5071157
Change-Id: I9da5ee6cf72b148e5fef4de6e1c9328ccb4b28b8
2011-07-25 20:28:41 -04:00
Winson Chung
eedc6f0d7d Merge "Using the filename as the media title for screenshots and changing filename format." 2011-07-25 17:20:19 -07:00
Winson Chung
753e40b147 Using the filename as the media title for screenshots and changing filename format.
- Fixes bugs 5075366 and 5076125

Change-Id: I985be1efa8ffad7203b1bbc8d97da2d4a7156adb
2011-07-25 17:13:31 -07:00
Michael Jurka
4c6a3d4bc9 Merge "Unifying swipe behavior for Recents and Notifications" 2011-07-25 13:38:48 -07:00
Winson Chung
d859fa3991 Preventing screenshots when waking from sleep.
- Fixing crash in SystemUI when trying to access external storage while it is not mounted

Change-Id: I3d9a05c155b83a2cc39915caebad4b7016025d09
2011-07-25 11:19:43 -07:00
Michael Jurka
07d4046ea9 Unifying swipe behavior for Recents and Notifications
Change-Id: Ibdbb7cc4ac2bcfcf6d6353a218b13c23caeca5b9
2011-07-23 13:34:40 -07:00
Daniel Sandler
af084803c6 Disable the number bubble overlay on notification icons.
Bug: 5042009
Change-Id: I3c69367de95624d723830bc58c9cbaeb025bf916
2011-07-22 13:02:07 -04:00
Michael Jurka
e224d4f0b7 Merge "Prevent notification swipes from getting canceled too soon." 2011-07-21 19:57:54 -07:00
Daniel Sandler
521efd8886 Prevent notification swipes from getting canceled too soon.
The scroll view was grabbing the gesture as soon as its dy
crossed the scroller's own slop threshold. Once we detect a
horizontal swipe-to-clear we request that the scroller no
longer activate until the gesture is over.

Bug: 4998677
Change-Id: If916fc00d155516e0e4bfe8c2df19827a2f16fe6
2011-07-21 22:37:09 -04:00
Michael Jurka
d4ae1de0d0 Fix crash in recents 2011-07-21 17:10:21 -07:00
Svetoslav Ganov
6179ea3196 Adding accessibility support to the Status Bar.
1. Added content description to pretty much all animals
   in the zoo including buttons in the navigation bar,
   notifications and status icons for battery, signal,
   data, etc.

2. Rectored to avoid ovelaying views since they block
   touch exploratino. In general overlaying views
   cause trouble for touch exploration and accessibility
   in general.

3. Avoid sending accessibility events in case the user is
   touching outside of the StatauBAr panels to avoid
   confusion.

4. Added records to accessibility events in the places where
   this would help the presentation. So the event comes from
   a given "leaf" view and its predecessor is adding a record
   to the event for itself to provide more cotext. It is up
   to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
2011-07-21 12:04:54 -07:00
Daniel Sandler
7d62990bad Merge "Fix dancing download notifications on phones." 2011-07-20 12:44:20 -07:00
Daniel Sandler
20cdb151c9 Fix dancing download notifications on phones.
There's always going to be some amount of visual noise when
notifications change order, and this can happen any time a
notification changes its "when" field (as is the case for
download progress bars). But in HC we added an optimization
that will reuse the current row if the download is the last
item in the list (so a fresher "when" will still put it at
the end), and that optimization is re-applied here.

Now, if you have multiple notifications all competing for
the top spot, I can't help you. But we had that problem
before (it just wasn't as egregious because we didn't have
the shiny animations).

Bug: 4971404
Change-Id: I5bcc905bdb19a8eb5b4494a6ba9825b4d5373caa
2011-07-20 14:41:41 -04:00
Eric Laurent
5531a3a3cf Merge "Fix issue 5012047: silent mode mutes music" 2011-07-20 11:04:18 -07:00
Daniel Sandler
6e47348392 Merge "Fix stacked notifications." 2011-07-19 17:14:51 -07:00
Eric Laurent
c1d4166289 Fix issue 5012047: silent mode mutes music
Implemented different silent mode behaviors for tablets and phones.
The behavior inherited from Honeycomb was for tablets only and
was muting music in silent mode.

Change-Id: Ib053e7b70ca02190debc87648ab8a163f9d39577
2011-07-19 14:46:32 -07:00
Daniel Sandler
942d92f68b Fix stacked notifications.
Bug: 5012006
Change-Id: I588f2b5376e644cbc37f884eec62ca44bac1dfaf
2011-07-19 16:41:23 -04:00
Todor Kalaydjiev
2d6080df99 Merge "Manually bring change Ie8fb8162 to master ("Add images to ERI icon list"). Fixes b/4604593." 2011-07-18 18:45:36 -07:00
Todor Kalaydjiev
a0c229d2ef Manually bring change Ie8fb8162 to master ("Add images to ERI icon list"). Fixes b/4604593.
Change-Id: I1d8233e898ee79a33fc765b9013fa8f77d9fe914
2011-07-18 17:55:24 -07:00
Chet Haase
c986b3598c Fix leftover artifacts from sliding Recents items out
When items were removed from the Recents list, the removeViewInLayout()
method was being called instead of removeView(). This avoided proper
layout and invalidation from occurring, which sometimes resulted in
detritus on the screen since the framework wasn't updating the area
last occupied by the item.

Change-Id: I43132d06df1714f00c399d34908e4d6dd0a8d5c6
2011-07-18 14:03:21 -07:00
Jim Miller
b5d4f97126 Merge "Fix 5023708,4689527: Add popups and overlays to recents. Misc bug fixes." 2011-07-18 12:59:36 -07:00
Jim Miller
c0d2731047 Fix 5023708,4689527: Add popups and overlays to recents. Misc bug fixes.
Adds selection overlay to recents to comply with UX design.
Adds longpress popup for removal and inspection of items.

Change-Id: Ic23c3f135b6ed107cc5156505d8f163daa94c52e
2011-07-18 12:57:40 -07:00
Eric Fischer
8d96f19692 Merge "Import revised translations." 2011-07-15 17:04:36 -07:00
Eric Fischer
67fa9f0d84 Import revised translations.
Change-Id: I6c9ed6cf456cdefc7fd062eaad0e53d5c64b91f9
2011-07-15 16:42:18 -07:00
Chia-chi Yeh
8f6fdf448c VpnDialogs: change paddings.
Change-Id: I46d949099778d1801ac1ca81b845b93936ceecb9
2011-07-15 15:21:44 -07:00
Chia-chi Yeh
339abf1fba VpnDialogs: enforce calling permissions.
Change-Id: I1bb3bd4616309f091ef653ee246b97b1a006a225
2011-07-15 12:10:48 -07:00
Dianne Hackborn
45ce864ef4 Move LoadAverageService to the SystemUI apk.
Change-Id: I442e264802d1e35cd7d27bae121ae75f932595b6
2011-07-14 16:10:16 -07:00