2494 Commits

Author SHA1 Message Date
Dianne Hackborn
8238e717df Add new signature-level permission to get details of tasks.
Third party apps now can't get access to the extras of the
intents associated with tasks, to keep private data in them
from leaking out.

Change-Id: I95af9e181ac42557bc8b981807e7ddd266a88d0e
2012-04-24 14:27:02 -07:00
Eric Fischer
d671a43887 Import translations. DO NOT MERGE
Change-Id: Ib2edd737c39db1a06e846d3863cbc52eab2777ab
2012-04-24 12:49:19 -07:00
Chris Wren
77e42defdd Merge "animate the notification glows in and out" 2012-04-24 09:41:29 -07:00
Daniel Sandler
e6f410e984 Remove unneeded sw600dp assets; clean up the needed ones.
These are still FPO, but now they've all been downscaled
from xhdpi.

Change-Id: I02371ea8b9e449fd0f024d034ee0f9f802fda32d
2012-04-23 22:32:42 -04:00
Jeff Brown
a8d6ddee98 Merge "More work on international keyboards." 2012-04-23 16:53:28 -07:00
Daniel Sandler
8d98200650 Merge "Expand hit rectangles of main navigation buttons." 2012-04-23 16:40:13 -07:00
Jeff Brown
8bca94ad83 More work on international keyboards.
Changed the English US keymaps to implement a strict US key map
with no additional ALT functions.

Fixed a bug copying the alias in the InputDevice copy constructor.

Added support for end of line comments in KCM and KL files.

Added the German keyboard layout.

Sorted the keys in the keyboard layout files by physical arrangement
to make it easier to maintain them.

Bug: 6110399
Change-Id: If44d83de5b98f2bf0016cbb8e12264387b286aaa
2012-04-23 16:12:32 -07:00
Daniel Sandler
6ae7b5807a Expand hit rectangles of main navigation buttons.
There's now no dead space between them. Also, increase the
visual size of the nav icons by 30% (just a quick resample
of the current artwork, to be replaced by custom-drawn
graphics at 130%).

The background glow looks kind of comical right now.

Bug: 6381833
Change-Id: I03ef0ea64a9e953f9f2b29cc03097d250ff52134
2012-04-23 17:15:15 -04:00
Jeff Sharkey
258783e09b Merge "Grant external storage permissions to SystemUI." 2012-04-23 13:33:28 -07:00
Jeff Sharkey
81d94335fb Grant external storage permissions to SystemUI.
Used for taking screenshots and playing notification ringtones.

Bug: 6381589
Change-Id: Ib1a5ad17edbeab984bbab25168d81eb99deba952
2012-04-23 13:32:00 -07:00
Eric Fischer
25f26e76be Merge "Import translations. DO NOT MERGE" 2012-04-23 12:36:04 -07:00
Eric Fischer
e8e25e22ac Import translations. DO NOT MERGE
Change-Id: Ib5fcdfa63b7d2049f9e5ee236a8dd394d48da22b
2012-04-23 12:31:22 -07:00
Jeff Sharkey
f913d002a6 Merge "Expose statfs() through IMediaContainerService." 2012-04-23 10:08:01 -07:00
Jeff Sharkey
9cbe986a44 Expose statfs() through IMediaContainerService.
Bug: 6346248
Change-Id: I03ae02578f546fc9f19652cbdece56e2e0ab6a1c
2012-04-22 18:56:43 -07:00
Daniel Sandler
4a066c5c77 Update SystemUI for sw600dp devices.
Devices between 600 and 719dp will now use the two-bar
(phone) SystemUI layout, or something like it, derived from
PhoneStatusBar. Devices above 720dp will use the system bar
from TabletStatusBar.

However, this distinction is not to be made based on dp, at
least, not by the SystemUI; the goal is to drive most of
this switch from the window manager. Therefore most of
SystemUI's sw600dp resources have been folded into the main
set of resources (renaming them to avoid collisions where
appropriate). This allows SystemUI to choose which set of
resources to use entirely by switching status bar
components, entirely independent of Configuration.

(For some resources, particularly around recents, it seemed
more expeditious to keep relying on the device
configuration, so those resources have been bumped up to
sw720dp.)

Bug: 6297838
Change-Id: I3f5414a6a718bdc83f51930d6878cdf97df48c9c
2012-04-21 00:19:47 -04:00
Chris Wren
ba925e8ecd animate the notification glows in and out
Change-Id: I9d43f01dcae9a896fc981e35434001e916bcf21b
2012-04-20 16:46:43 -04:00
Eric Fischer
0a732ad527 Merge "Import translations. DO NOT MERGE" 2012-04-20 13:28:33 -07:00
Eric Fischer
46c629d5fa Import translations. DO NOT MERGE
Change-Id: Id52413abf313dabc666037b09e191b374f11bf22
2012-04-20 12:56:08 -07:00
Daniel Sandler
c2dd1d1192 Copy new resources to other densities.
Bug: 6372775
Change-Id: Ifea79db30878ba71243c0dfffb9494b0d517db7c
2012-04-20 13:49:26 -04:00
Chris Wren
80a76276dc Add visual feedback for notification expandability.
Change-Id: I0b82a465a126a6d0ec6cf6af87dc56817765b995
2012-04-20 12:45:02 -04:00
Chris Wren
d84e593746 fix press feedback on notification rows
Change-Id: I50de2f4d6142c2553428abc853c820f4354d0640
Bug: 6362246
2012-04-20 09:40:11 -07:00
Jeff Sharkey
875f064316 Merge "Move SystemUI out of system UID." 2012-04-19 15:59:20 -07:00
Eric Fischer
abf5df26b5 Import translations. DO NOT MERGE
Change-Id: I76fa7c707eaf80c47b36d7e9145a26ec9c1670e4
2012-04-19 12:53:14 -07:00
Jeff Sharkey
35be756030 Move SystemUI out of system UID.
Add permissions for various things it pokes.  Create new permission
to control launching non-exported activities from recents.  Hidden
API to relax WallpaperService checks.

Change-Id: I547fdcd7c213dd153ae101533ce7c56cd8f86a0d
2012-04-19 11:54:34 -07:00
Daniel Sandler
0da673f02e Notifications may now be disabled on a per-package basis.
When a package's ability to post notifications is disabled,
all outstanding notifications from that package are
immediately canceled, and the score of any future
notification from that package is set so low that the
notification manager won't even send it to the status bar.

No UI for this yet, but you can try it out:

  adb shell service call notification 8 s16 $PKG i32 (1|0)

Bug: 5547401

Change-Id: Ieccac5746b40f60debd902a45d1dedbc91dcdc89
2012-04-19 11:39:49 -04:00
Daniel Sandler
f7a1956b06 Long-press a notification to find out who sent it.
Bug: 5547401
Change-Id: I8d5d73723b3f03f5b0f8717faaca826b1530df7a
2012-04-19 11:39:49 -04:00
Daniel Sandler
3dfc82b567 Merge "Expand too-small notifications to fill 64dp." 2012-04-19 07:01:37 -07:00
Daniel Sandler
bc5559f192 Expand too-small notifications to fill 64dp.
Also fix NotificationTestList so it runs again.

Change-Id: I2fb28cd9cfad25a7a1b17ccef9ccd741c3aa99b0
2012-04-19 01:08:15 -04:00
Daniel Sandler
6b31880838 Remove intruder alert APIs from JB.
Change-Id: I27042d604fbe15879e7b7aaaac860db2d1efa47f
2012-04-18 20:53:24 -07:00
Eric Fischer
d97e3ea1f3 Import translations. DO NOT MERGE
Change-Id: Ie7fff3835aff72ad821dec9db5053061186b9100
2012-04-18 13:38:51 -07:00
Daniel Sandler
6a858c347f Gestures for expanding notifications.
Change-Id: I104c157ffcc2d60b3f0a95c59d4322b07103b69f
2012-04-18 11:21:19 -04:00
Jeff Brown
6957b60378 Merge "Add Dvorak keyboard layout." 2012-04-17 19:21:34 -07:00
Jeff Brown
4a3862f6b0 Add Dvorak keyboard layout.
Added support for mapping both scan codes and HID usages to
KeyLayoutMap and KeyCharacterMap.  Keyboard overlays can
now influence how key events are mapped to key codes.

Bug: 6110399
Change-Id: I6619fd2d3e1337c55928f89869dbc45b535c7ccf
2012-04-17 18:50:05 -07:00
Jeff Brown
420489ca1f Merge "Support loading keyboard layout overlays from resources." 2012-04-17 17:59:03 -07:00
Jeff Brown
6ec6f79e1a Support loading keyboard layout overlays from resources.
Added the concept of a keyboard layout overlay, which is
a key character map file that has "type OVERLAY".

Added support for loading keyboard layout overlays from
resources dynamically.  The layouts are reloaded whenever they
are changed in the Settings application or an application
is installed.  This is somewhat more aggressive than necessary
so we might want to optimize it later.

Before system-ready, the input system uses just the generic
keyboard layouts that are included on the device system image.
After system-ready, it considers the user's selected keyboard
layout overlay and attempts to load it as necessary.  We need to
wait until system-ready before doing this because we need to
be in a state where it is safe to start applications or access
their resources.

Bug: 6110399
Change-Id: Iae0886d3356649b0d2440aa00910a888cedd8323
2012-04-17 17:56:32 -07:00
Eric Fischer
9488700933 Import translations. DO NOT MERGE
Change-Id: I040b3101c38af0ae31039893863012eccc035381
2012-04-16 13:38:47 -07:00
Eric Fischer
ba9d0e1b9f Merge "Import translations. DO NOT MERGE" 2012-04-13 17:08:44 -07:00
Eric Fischer
5cc53a3f80 Import translations. DO NOT MERGE
Change-Id: I0e4e1a2f1e2af07143ea621cb4f35f1df5190484
2012-04-13 12:56:38 -07:00
Christopher Tate
a23b343299 Fix full backup/restore detection of encrypted devices
The confirmation UI did not request the needed permission, so was failing
to communicate with the mount service; as a "safe" failure mode, it was
assuming the device was encrypted.  Fixed; now it presents the correct
prompt text for the device's encryption state.

Bug 5958195

Change-Id: Ic03db16673b89d3377e0362a09cf51bfb572d78b
2012-04-12 17:52:03 -07:00
Eric Fischer
f320645b6d Import translations. DO NOT MERGE
Change-Id: I165a1adbaf48551ff98259bf3878de6373b7f9af
2012-04-11 12:57:23 -07:00
satok
8d33d39d68 Merge "Show physical keyboard control button on the input method switch dialog" 2012-04-11 00:12:59 -07:00
satok
01038492ff Show physical keyboard control button on the input method switch dialog
Bug: 5240095
Change-Id: Ica768083f95c33dc1e494a28ba7d8b6eb989b0ef
2012-04-11 15:49:35 +09:00
Jeff Brown
9f25b7fdf2 Request key maps from input manager service.
Instead of each application loading the KeyCharacterMap from
the file system, get them from the input manager service as
part of the InputDevice object.

Refactored InputManager to be a proper singleton instead of
having a bunch of static methods.

InputManager now maintains a cache of all InputDevice objects
that it has loaded.  Currently we never invalidate the cache
which can cause InputDevice to return stale motion ranges if
the device is reconfigured.  This will be fixed in a future change.

Added a fake InputDevice with ID -1 to represent the virtual keyboard.

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
2012-04-10 18:23:58 -07:00
Craig Mautner
592647ee2e Merge "Fix IndexOutOfBoundsException." 2012-04-10 14:23:10 -07:00
Craig Mautner
93a035cce1 Fix IndexOutOfBoundsException.
This fix resolves an exception thrown when the snapshot ArrayList has
no entries.

Fixes bug 6311207.

Change-Id: I84383417116a4a62eb2842792ed04096aebc8ee2
2012-04-10 13:19:35 -07:00
Daniel Sandler
84920cc56e Fix notifications transitioning from small->big.
We'll have to go back and tweak this when we add a more
sophisticated switch from contentView to bigContentView, but
for now, this ought to detect that the notification has
gotten bigger (or smaller).

Change-Id: I3816fe8ed321569d1ce07d8a62cb08a434e55c2d
2012-04-09 14:17:57 -04:00
Jeff Brown
ac14351e16 Move some APIs from window manager to input manager.
Simplified input injection API down to just one call.

Removed all input state reading API.  It was only used by the
window manager policy and required a permission that applications
could not obtain.  READ_INPUT_STATE is now unused and deprecated.

Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
2012-04-05 19:33:11 -07:00
Dianne Hackborn
e8644b695d Merge "Fix so that status bar doesn't resize when hiding nav bar." 2012-04-05 19:03:37 -07:00
Dianne Hackborn
9801435820 Fix so that status bar doesn't resize when hiding nav bar.
The status bar now extends behind the nav bar, and uses
fitsSystemWindows to ensure its content is not covered.  We
always report a stable content insets (as if the nav bar is
visible) even if the nav bar is hidden, so the content doesn't
jump when transitioing.  This does mean that if you only hide
the nav bar (and not the status bar), when in landscape you
will end up with a status bar whose right side still leaves
room for the nav bar.  But why the hell would you want to do
that?

Also improve documentation on setSystemUiVisibility().

Change-Id: I8087d875f1214ef0085a91b5ed5c2f35ff2fc1b3
2012-04-05 18:31:41 -07:00
Jeff Brown
23b871d714 Merge "Initial commit of InputManager and keyboard layout API." 2012-04-05 15:29:24 -07:00