2649 Commits

Author SHA1 Message Date
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
Jeff Brown
9df6e7a926 Initial commit of InputManager and keyboard layout API.
Added a new InputManager service for interacting with input
devices and configuring them.  This will be the focus of
an upcoming refactoring.

Added an API for registering keyboard layouts with the system
based on the use of a broadcast receiver.  Applications can
register their own keyboard layouts simply by declaring a
broadcast receiver in their manifests.

Added the skeleton of a package that will ultimately contain
the keyboard layouts and other input device related resources
that are part of the base system.

Bug: 6110399
Change-Id: Ie01b0ef4adbd5198f6f012e73964bdef3c51805c
2012-04-05 14:42:10 -07:00
Dianne Hackborn
f87d19621d Clean up status bar, system bar, navigation bar management.
The status bar and navigation bar are two completely separate
elements, with their own semantics.  The system bar now classifies
itself as a navigation bar, since that is really how it behaves.

This required rewriting the HDMI resizing code, so that it is
all done by PhoneWindowManager since that is what is responsible
for the size of the navigation bar (and thus now system bar).  This
actually gets rid of a fair amount of code, and means we can also
do the same thing for a pure navigation bar.

Likewise the system bar now has the navigation bar ability to be
hidden when requested by system UI flags.  To get the behavior
we want on Xoom, we only allow the nav bar to be hidden when it
will help provide a better aspect ratio for showing widescreen
videos.

Finally the nav/system bar now animates when hidden and shown.

Change-Id: Ie927154b68376a0b61802f99171ff56b8da92e7a
2012-04-04 16:00:45 -07:00
Michael Jurka
16ad29d508 Merge "Fix bugs with popup menu in Recent Applications" 2012-04-04 01:55:00 -07:00
Michael Jurka
e16c93a5a3 Merge "Reducing height of scroll fade in Recents on phone" 2012-04-04 01:54:40 -07:00
Michael Jurka
cb46643f90 Fix bugs with popup menu in Recent Applications
Don't allow user to drag thumbnails when popup menu is showing
Bug: 5144612

Dismiss popup menu when hitting home button
Bug: 6163724

Change-Id: I4ae1fd118d1a26562832affcd75a8ab1cc53a665
2012-04-03 07:04:58 -07:00
Michael Jurka
55a25faa6f Reducing height of scroll fade in Recents on phone
Bug: 5149089
Change-Id: I163d3e9b888501999e812cff00d015bed36ca0d6
2012-04-03 04:40:35 -07:00
Daniel Sandler
0424716328 Merge "Show action buttons in expanded notifications." 2012-04-02 05:27:03 -07:00
Daniel Sandler
96fd7c1c1a Show action buttons in expanded notifications.
Any notification with at least one action will now have an
expanded form by default. BigPicture/BigText can have
actions, too, of course.

Change-Id: I6f54cac65d9a9f335d8038c2105cd2c674f991ff
2012-03-30 22:18:06 -04:00
Dianne Hackborn
3a3a6cfd8e Add new feature to let apps layout over status bar / system bar.
The main change is a few new flags you can supply to
View.setSystemUiVisibility().  One is a new visibility mode,
SYSTEM_UI_FLAG_FULLSCREEN, which is basically the same as
the global FLAG_FULLSCREEN option for windows, but driven as
part of the system UI state.

There are also three new flags for telling the framework that you
would like to have your application's UI ignore screen
decorations -- SYSTEM_UI_FLAG_LAYOUT_NO_NAVIGATION for going
behind the navigation bar and SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
for ignoring full screen decorations (that is the status bar).

In combination with this you can use SYSTEM_UI_FLAG_LAYOUT_STABLE
to have the framework report consistent insets to your application.

When using NO_NAVIGATION, when the user taps the screen we now
also automatically clear ONLY_CONTENT, so that we atomically show
both UI elements.  This should make it easy for apps like video
players that want to move between fully full-screen and regular
modes.

The ActionBar has also been extended when in overlay mode so
that it will adjust the system window insets to also account
for its space, and allow it to be hidden using the new
SYSTEM_UI_FLAG_FULLSCREEN.

Change-Id: Ic8db1adec49a0f420bfe40c1d92eb21307856d0b
2012-03-30 15:22:04 -07:00
Michael Jurka
ecc395a510 Fix the build
Change-Id: Ib4ea7df5459d025903d00361eb0e9477be299c85
2012-03-30 05:31:46 -07:00
Michael Jurka
50c69b5d8a Merge "Preload recents on phones with hard nav keys" 2012-03-30 05:02:57 -07:00
Daniel Sandler
34461ef196 Merge "Fix NPE on tablets." 2012-03-29 09:03:34 -07:00
Daniel Sandler
6cf14a02bf Fix NPE on tablets.
Change-Id: I2128daac06988e4bae25ec48a874901ba731ebf9
2012-03-29 11:50:51 -04:00
Michael Jurka
7f2668c846 Preload recents on phones with hard nav keys
Also refactor recents code across Phone/Tablet

Change-Id: Id557c5cb0f7d9378f81c40b20511a5d98bf4078e
2012-03-29 06:28:42 -07:00
Daniel Sandler
f3b7343246 The beginning of expanded notifications.
There are now two "rebuilder" classes, each of which
consumes a Notification.Builder and modifies its behavior.
(Inheritance in Builder classes is...not advisable.)

- BigPictureStyle: includes a large Bitmap above the usual
  notification strip.

- BigTextStyle: shows the contentText in a large, wrapping
  TextView instead of truncating to one line.

As for SystemUI, the notification panel now shows the
expanded form if it is available, otherwise the usual
contentView is shown.

(Note that the structure of largeIcon notifications has
changed a bit: The largeIcon is no longer handled by the
status bar at all; it's entirely inside the template now.
Not only does this make the code simpler, and make large
notifications possible, but it fixes the longstanding
irritation that tapping on a largeIcon doesn't highlight the
whole notification row. Man, that feels good.)

Change-Id: I2b9d8a6ea4385659d8cb1ed467c1caf5e12628dd
2012-03-29 00:42:15 -04:00
Daniel Sandler
fa7887bebf Intruder alerts with actions and swipe-to-cancel.
Change-Id: I1d8c7d32bcbf4d3910bb866431e92a8639e4e28b
2012-03-27 22:28:53 -04:00
Daniel Sandler
c1ebee40b6 Turn off logspew.
Change-Id: I54757796de109d12649d4b0f74fbd07a6d360bf8
2012-03-26 19:39:46 -04:00
Craig Mautner
d5f2374e13 Merge "Reset layout needed at each animation step." 2012-03-23 16:20:47 -07:00
Craig Mautner
bb1449b392 Reset layout needed at each animation step.
The member variable WindowAnimator.mPendingLayoutChanges was never
being reset to 0. Consequently once it was set it was causing endless
calls to the layout method.

Fixes bug 6208114, 6220403, 6219546.

Fixed NPE in RecentsPanelView.

Change-Id: Ie529b8f31e535543cb5ae0af9447146306b14eeb
2012-03-23 16:11:14 -07:00
Dianne Hackborn
7cf4640e81 Merge "Add new thumbnail animation." 2012-03-23 15:00:59 -07:00
Eric Fischer
a7b4ad46ec Merge "Import translations. DO NOT MERGE" 2012-03-23 14:20:57 -07:00
Eric Fischer
6379312c04 Merge "Import translations. DO NOT MERGE" 2012-03-23 14:20:45 -07:00
Dianne Hackborn
8078d8c8a2 Add new thumbnail animation.
Use it for recent tasks switching.

Not perfect yet by far, but something.

Also fix issue #6186758: Twitter crashes after tapping on a tweet on JRM75D

Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
2012-03-23 14:13:13 -07:00
Jeff Brown
47847f3f4d Support enabling WAL using a flag when DB is opened.
Using enableWriteAheadLogging() to enable WAL is inefficient because
we previously disabled WAL mode when the database was opened.
Switching from WAL to PERSIST then back to WAL is inefficient
and could slow down application launch time.  It would be better
to leave the database in WAL mode when we open it to begin with.

To do that, we need to know ahead of time whether we will want to
have WAL enabled for the newly opened database.

Using this flag also reduces the chance that we will encounter
an error enabling WAL mode due to there being other open connections
to the database.

Bug: 6124556
Change-Id: I38ec7a528baeda9f1ef77e25e88b3ca4b6296200
2012-03-23 13:26:26 -07:00
Eric Fischer
3a2d7ee26d Import translations. DO NOT MERGE
Change-Id: I04b64fd35f290123b9bf81d550fa31f144097811
2012-03-23 13:06:57 -07:00
Eric Fischer
e68159ae74 Import translations. DO NOT MERGE
Change-Id: Iaa68a41570f03ee73c3f36502862477746c474a3
2012-03-23 13:04:55 -07:00
Eric Fischer
7bf371e200 Import translations. DO NOT MERGE
Change-Id: Ie99a723075c6e17d413dc055bc52feb81b1db73f
2012-03-21 12:49:52 -07:00
Daniel Sandler
0b83efb64a Merge "Make navbar deadzone silent in touch exploration." 2012-03-20 12:37:05 -07:00
Daniel Sandler
e97a776e9c Make navbar deadzone silent in touch exploration.
Bug: 5827342
Change-Id: Id93ab35f488a6aa48318b0f17dc510c443800aff
2012-03-19 22:56:42 -04:00
Glenn Kasten
252030b79c Fix priority constants in RecentTasksLoader
These constants should be priority values, not scheduling group values,
for use with this API.

Change-Id: If2ba1feffd20fff2f93295816fa8a724196d978e
2012-03-16 09:19:50 -07:00
Daniel Sandler
336a1bc30f Allow the quick settings panel to fully dim the display.
Bug: 5745968
Change-Id: I81bdfa0c1a53026c31bce3cdd81d4d95c94fd460
2012-03-15 22:39:26 -04:00
Eric Fischer
55baedbea0 Import translations. DO NOT MERGE
Change-Id: Ifae737940ed904103eb4177dcb0fe6256f1f1fbb
2012-03-13 14:17:47 -07:00
Eric Fischer
bdc5afeee5 Merge "Import translations. DO NOT MERGE" 2012-03-12 15:17:37 -07:00
Eric Fischer
e7ee9a0504 Import translations. DO NOT MERGE
Change-Id: I183552feb00f1764db73bf6c7f16d5f5ef0f3b0f
2012-03-12 14:45:39 -07:00
Eric Fischer
dded0cb35d Merge "Import translations. DO NOT MERGE" 2012-03-12 14:30:21 -07:00
Eric Fischer
852ac0ed07 Import translations. DO NOT MERGE
Change-Id: Ic90318a02d8cc5ba9974ec78b47d156b721ee795
2012-03-12 13:58:55 -07:00
Michael Jurka
a5d0ddba60 Fix back button state issue
Back button / down chevron button (eg when you have an IME visible)
was not getting synced on rotation changes

Bug: 6133831
Change-Id: Iefaf3babf92898fcc87a0b14c10b037de04d84e2
2012-03-09 17:41:41 -08:00
Andrew Flynn
c5bad6956e am 36fde268: am dfc87c82: Merge "Use a different width for nav icons in sw600dp-port." into ics-scoop
* commit '36fde2688bc32ddd5ed5de834a39ce3c7cd2b6cf':
  Use a different width for nav icons in sw600dp-port.
2012-03-09 11:43:53 -08:00
Andrew Flynn
36fde2688b am dfc87c82: Merge "Use a different width for nav icons in sw600dp-port." into ics-scoop
* commit 'dfc87c82e4a5e77e89c464f7074e50238525913d':
  Use a different width for nav icons in sw600dp-port.
2012-03-09 11:03:00 -08:00
Andrew Flynn
1d9af30b74 Use a different width for nav icons in sw600dp-port.
Change-Id: I6c4024e9f60e14c072d7c01f29fabc89fc51dfb8
2012-03-08 15:56:10 -08:00
Eric Fischer
ae4e6d8d4b Import translations. DO NOT MERGE
Change-Id: I02d61de9903b0c96622dc4d670658c8cd92fa67e
2012-03-08 12:51:06 -08:00
Eric Fischer
94828c3f3b Merge "Import translations. DO NOT MERGE" 2012-03-07 15:02:24 -08:00
Eric Fischer
83ba2df45d Merge "Import translations. DO NOT MERGE" 2012-03-07 14:53:07 -08:00
Eric Fischer
6ff1f4fa5d Import translations. DO NOT MERGE
Change-Id: I7cfb3eeb7743f4db15ff591826d16cc316e2d915
2012-03-07 14:03:43 -08:00
Eino-Ville Talvala
d5f0799082 Merge "NEW_API: Rework CameraSound into MediaActionSound, and unhide it." 2012-03-07 13:54:43 -08:00