75064 Commits

Author SHA1 Message Date
Brian Colonna
c169366f2c Moved biometric sensor selected check into LPKV
This change moves all of the mBiometricUnlock.installedAndSelected()
checks from inside the biometric sensor implementation to
LockPatternKeyguardView.  There are several reasons for this change:

1) Instead of constructing a BiometricUnlock object and asking it if
it's enabled, LPKV can check this for itself and not even bother
constructing it if it's not enabled.

2) Since mBiometricUnlock will not be constructed if biometric unlock
isn't enabled, LPKV can simply do null checks to see if it should call
biometric unlock functions.  So it serves the dual-purpose of ensuring
there will be no null-pointer exceptions with regards to using the
biometric unlock.

3) This greatly reduces the chance of bugs being introduced into
non-biometric unlock methods because no biometric unlock calls will be
attempted if biometric unlock is not enabled.  Previously, the calls
would be made and then the biometric unlock would check if it was
enabled and return, which was not only bug-prone, but also
inefficient.

4) This simplifies the biometric unlock interface by removing an
unnecessary function call.

5) The biometric unlock implementations do not have to check if they
are installed every time they do something, which greatly cleans up
biometric unlock implementations.  It makes much more sense for the
biometric unlock functions to be able to assume that they aren't
being called unless they should be.

6) Eventually when there is more than one possible biometric unlock
method, it will make much more sense for LPKV to be in charge of
what is constructed and what isn't.

Change-Id: I5437ac05d8ceb2b182fe372cd6c75ad944ade28f
2012-04-19 22:07:30 -04:00
Brian Colonna
8c44c181de Merge "Fix: refreshBatteryInfo was uncovering backup" 2012-04-19 18:22:17 -07:00
Adam Powell
53c5fa8a2f Merge "Fix some smooth scrolling bugs in lists and update on the animation timer." 2012-04-19 18:19:26 -07:00
Dirk Dougherty
902414c42f am 69e67195: am 2a73a218: Doc change: Add link target for developer video block.
* commit '69e67195fdb3805b76031e259b4b27a01b3e7cea':
  Doc change: Add link target for developer video block.
2012-04-19 18:18:34 -07:00
Dirk Dougherty
69e67195fd am 2a73a218: Doc change: Add link target for developer video block.
* commit '2a73a2189b2a592727d2e698d7dc09a973ffa273':
  Doc change: Add link target for developer video block.
2012-04-19 18:15:50 -07:00
Adam Powell
1fa179ef41 Fix some smooth scrolling bugs in lists and update on the animation
timer.

Change-Id: I0cb03c6da204a34c9e942c3953b87287c3d4763d
2012-04-19 18:15:09 -07:00
Dianne Hackborn
5dd32fbcbf Merge "Fix issue #4499996: LiveWallpaperPreview activity intent filter" 2012-04-19 18:12:05 -07:00
Dirk Dougherty
2a73a2189b Doc change: Add link target for developer video block.
Change-Id: I24cd78a5c76029e9bf9425775d82944322c60f63
2012-04-19 18:11:09 -07:00
Svetoslav Ganov
bac7ef0be1 Merge "UI test automation cannot get the root node and gets null children." 2012-04-19 18:06:34 -07:00
Dianne Hackborn
7df7d2022d Fix issue #4499996: LiveWallpaperPreview activity intent filter
Change-Id: I5fc71503d2c59c907da954dbda3587394e6405bf
2012-04-19 18:00:04 -07:00
Dirk Dougherty
7728c68e0c am 7367ebc8: am 3e6b20be: Doc change: update links to developer video.
* commit '7367ebc8b698c4163c4a80b310544287e81f0bf4':
  Doc change: update links to developer video.
2012-04-19 17:27:12 -07:00
Dirk Dougherty
7367ebc8b6 am 3e6b20be: Doc change: update links to developer video.
* commit '3e6b20be5c7e05b85947e40f2099189ef9b5bf79':
  Doc change: update links to developer video.
2012-04-19 17:24:18 -07:00
Svetoslav Ganov
749e796eb3 UI test automation cannot get the root node and gets null children.
1. The AccessibilityInteractionController was using an incorrect
   looper i.e. not the UI thread looper which was causing getting
   the root node to fail.

2. The AccessibilityNodeInfo was populated by a ViewGroup with the
   children for accessibility without checking whether these children
   are really displayed.

bug:6362875

Change-Id: I7906d89571eb9d57d10f971639f88632926dd077
2012-04-19 17:13:51 -07:00
Dirk Dougherty
3e6b20be5c Doc change: update links to developer video.
Change-Id: I8c12f7b144308f53ba687713084d56ed14b3ac45
2012-04-19 17:10:10 -07:00
Selim Gurun
caf7f3d1fc Merge "Add websettings API for file origin policy." 2012-04-19 17:01:21 -07:00
Selim Gurun
0ea6dad65e Add websettings API for file origin policy.
Bug: 6212665

Add the API and change the default behavior for Jelly Bean+.

Change-Id: I9a83f510675023c36e2e72c4a69ad082d8124a23
2012-04-19 16:38:18 -07:00
Michael Chan
f0c4c65848 Fix build
Change-Id: I929433778c465bc123d8aafe5e0bbd2fd43f7b53
2012-04-19 16:29:19 -07:00
John Reck
9dd4a6c7a4 Merge "Save and load snapshots async" 2012-04-19 16:18:31 -07:00
Jake Hamby
d65c2be548 Merge "Add ContentProvider for apps to read received SMS cell broadcasts." 2012-04-19 16:15:42 -07:00
Jeff Sharkey
875f064316 Merge "Move SystemUI out of system UID." 2012-04-19 15:59:20 -07:00
Michael Chan
27e2fa43db Merge "Added columns to store package name and uri to a custom app" 2012-04-19 15:52:17 -07:00
Michael Chan
37960c7f58 Added columns to store package name and uri to a custom app
that provides a richer experience for an event.

Bug: 6325441
Change-Id: I7497a1508d196ec4ef97c60100278a70c424d9e2
2012-04-19 15:43:45 -07:00
John Reck
ee3b562d86 Save and load snapshots async
Bug: 5416822
 The overload of webkitDraw is temporary, but this gets the plumbing
 in place and works correctly

Change-Id: Ib3e23b9a4a1862dd445c8dc68a3936590787a62b
2012-04-19 15:29:32 -07:00
Jeff Brown
59a422e900 Ensure that touch and hover targets are cleared when needed.
When views are removed from a view or a view is detached from
a window, we need to update the touch and hover targets appropriately.

Failing to do this resulted in a NPE while dispatching an
ACTION_HOVER_EXIT to a view that had previously been removed.
Removed views should not get input events.

Change-Id: I4af4f8e2c4028347d3f570894fd1b3b366d11455
2012-04-19 15:21:08 -07:00
Jeff Brown
00710e906b Make InputDevice.SOURCE_STYLUS meaningful.
Bug: 5424551
Change-Id: I415cb1842422e050cc41b17f5a1f13b4fab17a44
2012-04-19 15:21:08 -07:00
Irfan Sheriff
6ec0c6afaf Merge "Expose NO_SERVICE_REQUESTS error condition" 2012-04-19 15:12:35 -07:00
Dianne Hackborn
661f362a2c Merge "Add new API to find smallest/largest screen size." 2012-04-19 15:01:36 -07:00
Irfan Sheriff
232ebad9ed Expose NO_SERVICE_REQUESTS error condition
Change-Id: I45214557579fc82faa93a41d22c0890a218b091e
2012-04-19 15:01:18 -07:00
Dianne Hackborn
68c33ca7ce Add new API to find smallest/largest screen size.
Change-Id: I790801fceaf84ee2e3b1c9d32828285ad3231d0e
2012-04-19 14:55:13 -07:00
John Reck
675035d774 Merge "Remove code preventing scrollTo(0,0)" 2012-04-19 14:52:34 -07:00
Chet Haase
ad36d1e1f8 Merge "Always execute actions on the runQueue" 2012-04-19 14:41:22 -07:00
George Mount
cdfc8bc574 Merge "Fix stack overflow during animation of action bar." 2012-04-19 14:41:03 -07:00
George Mount
9caeb14572 Fix stack overflow during animation of action bar.
Bug 6366482
 The animation engine now notifies onAnimationStart() and
 onAnimationEnd() even when it does no action. This CL prevents
 the setVisiblity call from causing an infinite loop of triggering
 animation notifications.

Change-Id: I009217a42debf1a1495da222199ca8f599fa7bcf
2012-04-19 14:38:58 -07:00
Adam Powell
a131f4efee Merge "Adjust action bar tab policies" 2012-04-19 14:36:32 -07:00
John Grossman
09138a576c am be02f32c: (-s ours) TimedAudioTrack: Optimize the queue trim operation.
* commit 'be02f32cff3861ba5e7ec29344f5a6fc0049554f':
  TimedAudioTrack: Optimize the queue trim operation.
2012-04-19 14:33:09 -07:00
John Grossman
3ed9c812f4 am f609b661: (-s ours) TimedAudioTrack: Fix continuity threshold handling.
* commit 'f609b661a610c79f615036fd6b9547afb1b364d4':
  TimedAudioTrack: Fix continuity threshold handling.
2012-04-19 14:33:07 -07:00
Adam Powell
b8139af3dc Adjust action bar tab policies
Action bar tabs now stack in portrait mode on all screen sizes rather
than display embedded. This only affects apps with a targetSdkVersion
of JB or greater, as older apps may not be prepared for the different
measurement of the bar or have an appropriate stacked bar background
drawable.

Stacked action bar tabs now have a width limit. This prevents
super-wide tabs that can span the whole screen. The cluster of tabs
is centered if it does not span the full width.

Add ActionBarPolicy to give a single point to query for various action
bar measurements and behaviors that vary with configuration.

Change-Id: I01162ca009c14f6f0e712fc906b9db6382c738cd
2012-04-19 14:31:16 -07:00
Jeff Sharkey
40e8b8ad94 Merge "Log when /cache files are deleted." 2012-04-19 14:19:50 -07:00
Jeff Sharkey
4b49657c7f Log when /cache files are deleted.
Bug: 6362988
Change-Id: Ib8497453c45612be5b83035eeaf3abe6d716ccbf
2012-04-19 14:17:47 -07:00
James Dong
f3dbb59f1d Merge "Update javadoc for timed text / multiple audio track APIs" 2012-04-19 14:17:43 -07:00
Andreas Huber
0d1ba15056 Merge "DRM errors signaled by the CryptoPlugin are now visible to MediaCodec clients" 2012-04-19 13:51:10 -07:00
Eric Fischer
dca2e81b7d Merge "Import translations. DO NOT MERGE" 2012-04-19 13:47:52 -07:00
James Dong
831f0a90ca Update javadoc for timed text / multiple audio track APIs
o Throw runtime exception when selectTrack, unselectTrack, getTrackInfo fails
o remove redundant code for selectTrack and unselectTrack methods

o related-to-bug: 6110705,5542712

Change-Id: I59f0ed638e93d0365eccab1e33c9d50354a9c1ba
2012-04-19 13:46:23 -07:00
Andreas Huber
bfc56f497d DRM errors signaled by the CryptoPlugin are now visible to MediaCodec clients
through a custom exception "MediaCodec.CryptoException".

Change-Id: I30215e9e13bab68abad23e27dcead7c1accd07f1
related-to-bug: 6365261
2012-04-19 13:42:14 -07:00
Chet Haase
b78c284bd5 Always execute actions on the runQueue
A View that is not attached will place posted actions on the
ViewRoot's runQueue. Previously, this runQueue was only ever executed
during a layout (during performTraversals()). This works in most situations
(a View that is added to or removed from the hierarchy will force a layout
in general), but not in all cases. For example, a new View being added to
a ListView will not cause a layout, so any actions posted to that View
prior to its being attached will not be run until some indeterminate time
later when a layout happens to run.

The fix is to execute the (typically empty) runQueue on every traversal.

Issue #6366678 View.post() ignored when called on an unattached ListView item

Change-Id: I94e6fdd9da6bb57fd83b547f8d742cd0ddfecbd6
2012-04-19 13:39:50 -07:00
Eric Fischer
abf5df26b5 Import translations. DO NOT MERGE
Change-Id: I76fa7c707eaf80c47b36d7e9145a26ec9c1670e4
2012-04-19 12:53:14 -07:00
Eric Fischer
5b086eb543 Merge "Import translations. DO NOT MERGE" 2012-04-19 12:44:21 -07:00
Eric Fischer
6cb7e640aa Import translations. DO NOT MERGE
Change-Id: I6fada25138bbeda2cdaf4fd4e4b56bdb134fe33d
2012-04-19 12:42:24 -07:00
John Grossman
be02f32cff TimedAudioTrack: Optimize the queue trim operation.
DO NOT MERGE
this change must be hand-merged into master due to directory
restructuring.

Don't perform the end PTS calculation for each buffer during trimming.
Instead, only calculate the ending PTS of a buffer if there is no next
buffer in the queue.  This optimization assumes that the buffers being
queued are in monotonic media time order (a fair assumption for now)
and that the timestamps in the audio are contiguous (not a requirement
for this API, but a reality of how it is being used right now).

In the case where the audio is discontinuous on purpose, it is
that this optimization will cause the system hold one extra buffer
which it could have safely trimmed.  It should not be much of an issue
since in real life the audio is almost always contiguous, and as long
as the media clock is running and the mixer is mixing, the buffer will
be used up and discard as part of the normal flow anyway.

Change-Id: I00061e85ee7d5651fcf80751646c7d7415894a14
Signed-off-by: John Grossman <johngro@google.com>
2012-04-19 12:21:20 -07:00
John Grossman
f609b661a6 TimedAudioTrack: Fix continuity threshold handling.
DO NOT MERGE
this change must be hand-merged into master due to directory
restructuring.

Fix issues with continuity threshold handling; notably
+ If the steady-state continuity threshold is exceeded, be sure to
  clear the on-time flag.  Failure to do this will result in the
  system picking a new mix point which simply satisfies the
  steady-state continuity threshold instead of the startup threshold.
  Since we are putting a discontinuity in presentation anyway, we
  really want to pick a perfect point, not just an OK point.
+ Tighten the steady-state continuity threshold.  It was currently set
  to 100mSec which is enormous.  4mSec (the new setting) is much more
  appropriate.  On systems with a VCXO (like tungsten) this should
  never be wrong by more than a sample.  If TimedAudioTracks are ever
  to be used on VCXO-less systems, this threshold should probably be a
  a parameter configurable by applications on a track by track basis
  so they can make the tradeoff between allowed error and frequency of
  disruptive corrections.
+ Reset the on-time flag if the mixer provides no PTS during a mix
  operation.  This makes for a convenient way for the HAL to reset
  timed tracks when it makes changes for delay compensation across
  multiple outputs.

Change-Id: I2cb23de5a3d1f75618abc1c8ab903db883837aa8
Signed-off-by: John Grossman <johngro@google.com>
2012-04-19 12:21:02 -07:00