112259 Commits

Author SHA1 Message Date
Dianne Hackborn
6d8dfbd814 Fix issue #10848916: "Always" button is not working.
The problem was that the ResolverActivity filters some activities
out of the list it shows, but it uses that display list as the
list of components the preference is set against when ultimately
setting it on the package manager...  but that filtered list is *not*
the right component set, since it is not the same as the package
manager's view on it.

The fix here is to retain the original set of matching components
and use that when setting the preferred activity.  Note that this
does mean that in very unusual cases where filtering is happeing
(such as one of the activities not being exported but being seen
as a possible completion from another app), then you will be setting
the preference for the complete set.  Ultimately we probably need
to have the package manager apply these filtering rules up-front so
this is all consistent, but this is a very rare case so not that
important.

And then most of the change here is just improving the debug
output for intent resolution.

Change-Id: Ie35ac2c05a45946439951bbf41433c8b7de79c05
2013-09-24 14:16:38 -07:00
Chet Haase
cfdc0369f1 Merge "Disable ActionBar usage of transitions" into klp-dev 2013-09-24 20:58:40 +00:00
Svetoslav
0d38d0b42f Merge "Multiple printer discovery session instances and other bugs." into klp-dev 2013-09-24 20:37:59 +00:00
Jeff Sharkey
08df7d9137 Merge "Freshen restored stacks, more UX bug fixes." into klp-dev 2013-09-24 20:34:40 +00:00
Jeff Sharkey
deffadeb74 Freshen restored stacks, more UX bug fixes.
When restoring a persisted stack, such as last location or a location
where save occurred, freshen the DocumentStack to get the latest
details from backend, and ensure the path is still valid.

Filter Recent directories in create mode based on roots allowed by
incoming request.

Remember when user last picked an external app, and open drawer next
time user launches for GET_CONTENT.

Fix state list drawable ordering, and avoid clobbering Drawable
callback when wrapping in InsetDrawable; tricksy hobbitses!

Make grid items smaller to always fit two columns on phones.  Draw
grid items all the way to screen edge; don't clip to padding.  Better
error message when folder creation failed.  Show Recents in grid mode
when picking any visual content, not just images.

Bug: 10846100, 10903211, 10898993, 10892808, 10892058, 10892009, 10885012
Change-Id: Ia0f88d911abc6ea03645d6fd3e04271c21d5936a
2013-09-24 12:57:47 -07:00
Craig Mautner
9bf6c5cec8 Merge "Fix method for determining focused window." into klp-dev 2013-09-24 19:33:17 +00:00
Lajos Molnar
566d6b6534 Merge "WebVttRenderer: allow BOM at beginning of a WebVTT file." into klp-dev 2013-09-24 18:37:12 +00:00
Alan Viverette
e1cb9accf2 Merge "Update AdapterView.performItemClick() documentation" into klp-dev 2013-09-24 18:28:01 +00:00
Craig Mautner
254f5ffc47 Merge "Pause activities behind keyguard after boot." into klp-dev 2013-09-24 17:39:17 +00:00
Craig Mautner
2acc389d61 Pause activities behind keyguard after boot.
Following boot the initial activity was automatically resumed even if
a lockscreen is obscuring it. Refer to CL 363859 for why this breaks
things.

This fix pauses all activities the first time a lockscreen appears.

Completes the fix for bug 10732489.

Change-Id: I6fcac14b574c495aa0e16d798cddc1263c6b4c25
2013-09-24 10:36:05 -07:00
Lajos Molnar
283fe37aa2 WebVttRenderer: allow BOM at beginning of a WebVTT file.
This is part of the spec.

Change-Id: I61ccc259c0b9d3a2bc4273925665d107b0c89c62
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10900755
2013-09-24 10:13:43 -07:00
Craig Mautner
ac56514ea7 Fix method for determining focused window.
Method had been rewritten to be task-based and there were errors
when a task had no apptokens. New version is much easier to
maintain.

Maybe fixes bug 10689184.

Change-Id: I5e4c8447a33a4f5686296c20b9f9fe302c9ae49f
2013-09-24 09:01:48 -07:00
Jean-Michel Trivi
bc05918c88 Merge "Public API for peak and RMS monitoring through the Visualizer effect" into klp-dev 2013-09-24 15:44:56 +00:00
Baligh Uddin
891047901f Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-24 14:59:27 +00:00
Baligh Uddin
71a5f3cefe Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-24 14:59:07 +00:00
Baligh Uddin
87ac87a5e5 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-09-24 14:58:07 +00:00
Martin Kosiba
4e31b8046d Merge "Update WebView documentation section about zoom." into klp-dev 2013-09-24 09:49:22 +00:00
Svetoslav
b5f180608d Multiple printer discovery session instances and other bugs.
1. The fused printers provider was dropping on the floor received printers
    if it was not active. It is in fact a loaded and if not active it should compute
    the printers and not deliver them until activated. This fixes an issue where
    opening the print dialog, then enabling a print service results in the printers
    reported by the service not showing up in the print dialog.

2. Printer discovery session was created twice which leads to incorrect behavior
    as the pint system is designed around the contract that there is a single
    printer discovery session per service at a time. This was possible due to an
    incorrect initialization of a member variable resulting in double session creation
    when the print service is connected.

3. When a print service is enabled during discovery we did not use the correct
    condition to start printer discovery resulting in starting it all the time even if
    not needed. Also if some of the printers that had to be tracked are reported
    by the service just enabled (typically historical printers) we did not ask the
    service to start tracking them.

4. Removed some logging.

bug:10903343

Change-Id: I46c049471a4b099fc668df3aee2aaedc8d7786ac
2013-09-23 23:41:12 -07:00
Zhijun He
0d9fdc2451 Merge "Camera2: replace EDQUOT with EUSERS" into klp-dev 2013-09-24 02:28:22 +00:00
Jim Miller
89e1fec9af Merge "Fit and finish for navbar camera affordance" into klp-dev 2013-09-24 01:30:59 +00:00
Jim Miller
81f429e097 Merge "Enable RTL support in keyguard" into klp-dev 2013-09-24 00:08:05 +00:00
Jim Miller
4780058dd6 Enable RTL support in keyguard
Fixes bug 10799068

Change-Id: I353b135a2f5ea7cc061719414266cb47f1742db3
2013-09-23 17:03:12 -07:00
Jean-Michel Trivi
01b5743aee Public API for peak and RMS monitoring through the Visualizer effect
Public API to extend the capabilities of the Visualizer audio
  effect with measurements of peak and RMS values.

Bug 8413913

Change-Id: Ifc6646e013ec55fde3523fab685add1d043f1272
2013-09-23 16:41:53 -07:00
David Christie
fe538cb60e Merge "Fix broken method WorkSource.set (names aren't applied)." into klp-dev 2013-09-23 23:09:13 +00:00
Svetoslav Ganov
5dfccc3c0d Merge "The current is printer not refreshed when selected." into klp-dev 2013-09-23 23:04:32 +00:00
David Christie
dd3a021f4a Fix broken method WorkSource.set (names aren't applied).
Change-Id: I89273b99e312e48adc10debbb4e40d8684cceb23
2013-09-23 16:01:08 -07:00
Jean-Michel Trivi
e9b0dd899a Merge "Add audio level monitoring capabilities in Visualizer effect" into klp-dev 2013-09-23 22:58:54 +00:00
Svetoslav Ganov
307a0d4db2 The current is printer not refreshed when selected.
Every time a printer is selected we have to refresh it by telling
the print service to stop tracking the previously selected printer
if such and start tracking the current one. As a result of start
tracking the print service has to give us the capabilities too. A
previous patch caused a regression and we do not refresh printers
when needed.

bug:10898968

Change-Id: I9d5413e324fdb8856ef61849d36a161470eb204d
2013-09-23 15:51:06 -07:00
Dianne Hackborn
2d4eee3829 Merge "Implement issue #10895990: Better durations for proc stats" into klp-dev 2013-09-23 22:10:09 +00:00
Wink Saville
d38904965d Merge "Add RIL_REQUEST_SET_INITIAL_ATTACH_APN." into klp-dev 2013-09-23 21:56:43 +00:00
Wink Saville
e2181318d6 Add RIL_REQUEST_SET_INITIAL_ATTACH_APN.
Bug: 9626411
Change-Id: I0c278d9f4c6fd7e12c495c2411ab94ac87e1f316
2013-09-23 14:53:25 -07:00
Chet Haase
d8d7c38533 Disable ActionBar usage of transitions
Various artifacts across apps were coming from ActionBar's use of
the new transitions framework. Disabling transitions for now to get
things back to a more stable state.

Also, fixed some related bugs in transitions themselves, including
a change in TextChange to account for text selection, which was causing
errors in Keep's SearchView.

Issue #10860557 TextChange animator may old stale value
Issue #10819685 sometimes icons are lighter
Issue #10750525 Share and Settings icons overlap when stopping slideshow
Issue #10839551 Sometimes the search text box is right-aligned in Keep
Issue #10727484 Cursor incorrectly positioned after entering first letter during search action in keep app

Change-Id: Iad7cbf3297e18018308b8148b3519b032e63dace
2013-09-23 14:49:39 -07:00
Dianne Hackborn
6d9ef38b06 Implement issue #10895990: Better durations for proc stats
Reduce the batching down to 3 hours, so that we can show shorter
durations in the UI.

Change-Id: I46af674b0024b828595ed3cdad2b47fe47d71ed8
2013-09-23 14:39:23 -07:00
Jeff Sharkey
0156a379e2 Merge "Allow saving to Downloads." into klp-dev 2013-09-23 21:28:07 +00:00
Jeff Sharkey
b180a65d41 Allow saving to Downloads.
Uses new column to mark writability.  Also filter file selection in
create mode to only allow writable files.

Bug: 10667164, 10893268
Change-Id: I90f74efbb7ac634fbdb3cc02a904a96a434d3605
2013-09-23 14:23:45 -07:00
Amith Yamasani
85f77c2b8b Merge "Unmarshall PFDs properly when hand-crafting interface stubs" into klp-dev 2013-09-23 21:14:51 +00:00
Jean-Michel Trivi
badca26cb2 Add audio level monitoring capabilities in Visualizer effect
Extend the visualizer audio effect with the capability to query
 peak and RMS values for the currently playing audio.
Values are expressed in mB and are retrieved as an array of
 int values in the native layer, and written directly as
 object fields for the JNI.

Bug 8413913

Change-Id: I808075a18e61f85c566544a2bdaae10e5c4a644b
2013-09-23 14:03:39 -07:00
Katie McCormick
ba0fa9ce5e am 50756ccc: am 77364631: am a9fcf662: Merge "New Scheduling class." into jb-mr2-docs
* commit '50756cccc05b77be0d19506a891415d192282db7':
  New Scheduling class.
2013-09-23 13:50:39 -07:00
Katie McCormick
50756cccc0 am 77364631: am a9fcf662: Merge "New Scheduling class." into jb-mr2-docs
* commit '7736463172804b054e75a9a4911c061c30d00347':
  New Scheduling class.
2013-09-23 13:47:14 -07:00
Katie McCormick
7736463172 am a9fcf662: Merge "New Scheduling class." into jb-mr2-docs
* commit 'a9fcf6620d418268ab3e9ee8b13b37e85825e6f8':
  New Scheduling class.
2013-09-23 13:43:42 -07:00
Katie McCormick
a9fcf6620d Merge "New Scheduling class." into jb-mr2-docs 2013-09-23 20:40:46 +00:00
John Spurlock
fac17cc7b1 Merge "Introduce transparent bars to the keyguard." into klp-dev 2013-09-23 20:37:29 +00:00
Amith Yamasani
c2be0d6183 Unmarshall PFDs properly when hand-crafting interface stubs
ParcelFileDescriptors now carry an optional socket fd to communicate
close events. So, make sure that the correct creator is called when
reconstructing parceled PFDs.

Bug: 10759966
Change-Id: Ic6b9ffb8cb7af5f3a12440def595f74682231866
2013-09-23 13:35:46 -07:00
Zhijun He
9bd5f1e6df Camera2: replace EDQUOT with EUSERS
Bug: 10838065
Change-Id: Ib450fcfffecec210c7f11842bf024abd7889bad7
2013-09-23 13:07:57 -07:00
Ken Sumrall
d3fbba1579 Merge "Upload fsck logs to the dropbox when error found" into klp-dev 2013-09-23 20:07:10 +00:00
Dianne Hackborn
ba0abd0abd Merge "Fix issue #10876433: java.lang.IllegalStateException in..." into klp-dev 2013-09-23 20:05:45 +00:00
Dianne Hackborn
90007f7440 Fix issue #10876433: java.lang.IllegalStateException in...
...ActivityManagerService.updateLruProcessInternalLocked on bluetooth

Don't try to move process records associated with dead service
connections.

Technically we should probably be clearing the binding/service's
app entry so we don't get into this case, but the least intrusive
change for now is this check.

Change-Id: I6683e692eb5a8fa4f8ec1fa31bd63ec3d7f878ef
2013-09-23 13:01:43 -07:00
John Spurlock
257f283b0e Introduce transparent bars to the keyguard.
Driven by a new framework config bool. Tested on all layouts,
but disabled by default.  Can be enabled with a config overlay.

(Sliding/MultiPane)ChallengeLayout have custom measure/layout
logic that peeks at the root view's padding (!).  So we must keep
the root view's padding = system window insets. However, we need
the scrims + the fullscreen camera widget preview to use the entire
display size if the bars are transparent.

So the approach is to maintain the root view's
(KeyguardViewManager$ViewManagerHost) padding as before via
setFitsSystemWindows(true) but allow non KeyguardHostViews to
extend into the padding if bars are transparent via a custom
measure/draw on the root view.

KeyguardHostView background + challege scrims moved up to the
root view.

Also:
- Remove logspam line for fixed bug.

- Fix status bar staying opaque on interaction on secure keyguard.

Known issues:
- Nav bar blip dismissing global actions, keyguard app widget picker
bars are opaque.  Both will use the new inherit flag once it exists.

- Emergency dialer layout dance, will be fixed in the phone project.

Bug:10606085
Change-Id: I2648b4ee9a54a67324ce9dcbab976ad4da4bbcfa
2013-09-23 15:59:15 -04:00
Derek Sollenberger
5db1f5aaac Merge "Fix Java API error where requesting another style for a provided family fails" into klp-dev 2013-09-23 19:14:57 +00:00
Dianne Hackborn
4bf0fcef92 Merge "Work on issue #10759595: preferred tag doesn't prevent..." into klp-dev 2013-09-23 18:10:28 +00:00