1713 Commits

Author SHA1 Message Date
Amith Yamasani
b0a20e47dd Merge "Volume panel changes." 2011-08-02 11:51:57 -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
Amith Yamasani
42722bfa13 Volume panel changes.
Combined volume panel only in tablets. On phones show active volume.
Added dummy assets for ring+notification icon.

Deprecated the NOTIFICATION_USES_RING_VOLUME. Now they are always
tied together. Audio manager changes still required to ensure that.

Initialize all feedback sounds to true.

Change-Id: I3ad7890c9be9334eedb5f3b709a4b6995fe24638
2011-08-01 16:45:28 -07:00
Brett Chabot
9101a02963 Merge "Add functional test for screenshots." 2011-08-01 15:07:01 -07:00
Christopher Tate
e0fe39387a Merge "Require the current backup pw in all backup/restore operations" 2011-07-29 11:20:45 -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
Christopher Tate
728a1c4d5e Require the current backup pw in all backup/restore operations
Specifically, we now also require the current password to confirm any
restore operation.

Bug 4901637

Change-Id: I39ecce7837f70cd05778cb7e0e6390ad8f6fe3f3
2011-07-28 18:04:07 -07:00
Christopher Tate
0a779813e1 Merge "Support full-backup encryption and global backup password" 2011-07-28 16:28:21 -07:00
Christopher Tate
2efd2dbbac Support full-backup encryption and global backup password
If the user has supplied a backup password in Settings, that password
is validated during the full backup process and is used as an encryption
key for encoding the backed-up data itself.  This is the fundamental
mechanism whereby users can secure their data even against malicious
parties getting physical unlocked access to their device.

Technically the user-supplied password is not used as the encryption
key for the backed-up data itself.  What is actually done is that a
random key is generated to use as the raw encryption key.  THAT key,
in turn, is encrypted with the user-supplied password (after random
salting and key expansion with PBKDF2).  The encrypted master key
and a checksum are stored in the backup header.  At restore time,
the user supplies their password, which allows the system to decrypt
the master key, which in turn allows the decryption of the backup
data itself.

The checksum is part of the archive in order to permit validation
of the user-supplied password.  The checksum is the result of running
the user-supplied password through PBKDF2 with a randomly selected
salt.  At restore time, the proposed password is run through PBKDF2
with the salt described by the archive header.  If the result does
not match the archive's stated checksum, then the user has supplied
the wrong decryption password.

Also, suppress backup consideration for a few packages whose
data is either nonexistent or inapplicable across devices or
factory reset operations.

Bug 4901637

Change-Id: Id0cc9d0fdfc046602b129f273d48e23b7a14df36
2011-07-28 16:01:20 -07:00
Svetoslav Ganov
7434fe8be4 Merge "Updaing the database version" 2011-07-28 15:57:25 -07:00
Michael Jurka
265bfede6b Merge "Dismiss Recent Apps when Back is pressed" 2011-07-28 13:24:14 -07:00
Svetoslav Ganov
97c3311bb8 Updaing the database version
Change-Id: Iff671a152ac8c96d4136f0f268167c1b60842bb5
2011-07-28 12:45:06 -07:00
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