187554 Commits

Author SHA1 Message Date
John Reck
662fa7daa4 Merge "Add stat collection start time" 2015-04-07 21:30:30 +00:00
Wale Ogunwale
37c905e646 Merge "Fixed glitch in NuPlayer when surface size changes" 2015-04-07 20:50:25 +00:00
Wale Ogunwale
20fee4f657 Fixed glitch in NuPlayer when surface size changes
When VideoView calls setFixedSize(), the SurfaceControl.setSize()
gets called from WindowStateAnimator.setSurfaceBoundariesLocked,
but setSurfaceBoundariesLocked only updates the size, not the
transform matrix/scaling factor.

The after some time, SurfaceControl.setMatrix gets called by
WindowStateAnimator.prepareSurfaceLocked. It updates both size and
matrix (size update is skipped since it's already updated by
setSurfaceBoundariesLocked earlier). This corrects the transform
matrix, and restores video rendering.

We now call setMatrix() in setSurfaceBoundariesLocked() to avoid
the glitch.

Bug: 18773834
Change-Id: I5e8de38495fabe54eefa8bd3003627d11392c0f1
2015-04-07 13:35:25 -07:00
Fyodor Kupolov
75bff7cca0 Unnecessary dexopt in installPackageLI
When a new package is created, installNewPackageLI does not need to call
dexopt, since it has already been made.

Bug: 19550105
Bug: 20087446
Change-Id: If6b05bea590eea5f95efebb22a67ccd8cdf632c2
2015-04-07 13:34:40 -07:00
Xiaohui Chen
5ac3e1f48a Merge "fix a potential race condition" 2015-04-07 20:00:29 +00:00
Jorim Jaggi
21af1bc845 Merge "Fix build" 2015-04-07 19:55:59 +00:00
Yang Ni
922346c0b2 Merge "Add a name to ScriptGroup2.Builder.create method" 2015-04-07 19:54:31 +00:00
Jorim Jaggi
4ac9c8078b Fix build
Change-Id: I1c748fd9fea6f5d4baf2c9cb29d1f3dc9f3a7082
2015-04-07 12:53:37 -07:00
Jeff Brown
b4140e4251 Merge "Fix animation start jank due to expensive layout operations." 2015-04-07 19:28:57 +00:00
Jeff Brown
c42b28dda4 Fix animation start jank due to expensive layout operations.
The Choreographer carefully schedules animation updates to occur
after input but before traversals occur.  This ensures that the
effects of animations are perceived immediately in the next frame.
The start time of animation is usually set the moment the animator
first runs.  The start time serves as a reference for timing the
remainder of the animation.

Setting the start time during the animation callback works well except
when traversals take a long time to complete.  In that case, we may
end up drawing the initial frame of the animation then skipping several
following frames (because a lot of time has already passed since the
animation start time was set), effectively shortening the duration
of the animation.

To resolve this issue, we introduce a new COMMIT phase within the
Choreographer.  The COMMIT callback runs after traversals complete
and may provide an updated frame time that more accurately reflects
the time when the frame finished drawing.

In the case where an animation is just starting, we note the fact
that its initial start time has not yet been committed (the user
hasn't actually seen anything on screen yet).  Then, during the
COMMIT phase, we adjust the animation start time to better reflect
the time when the animation's first frame was drawn, effectively
causing the animation actually start after the expensive traversal
operations occurred such that no frames will be skipped.

Bug: 17258911
Change-Id: I279603d01fd4ed1de8f51a77c62f4fec5e9b746a
2015-04-07 12:27:17 -07:00
Ronghua Wu
76477a25fa Merge "media: add undocumented exceptions to MediaCodec api." 2015-04-07 19:15:19 +00:00
Fyodor Kupolov
e15db17462 am 88d9797a: (-s ours) am 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
* commit '88d9797aa815b1addfe8421885424a1219b96d45':
  Unnecessary dexopt in installPackageLI
2015-04-07 19:09:08 +00:00
Svetoslav
8aa6100002 Merge "Enable runtime permissions" 2015-04-07 18:59:07 +00:00
John Spurlock
3665abaa81 Merge "ZenTile: Don't broadcast intents in-process." 2015-04-07 18:54:05 +00:00
Jorim Jaggi
25ff0646ca Merge "Add Camera prewarm intent." 2015-04-07 18:50:54 +00:00
Alex Klyubin
1620a65d32 resolved conflicts for merge of 06adabdb to master
Change-Id: Ifb09e2e6242f79cabe76e95eacc982f6cc7e1a6c
2015-04-07 11:39:51 -07:00
Fyodor Kupolov
88d9797aa8 am 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
* commit '77e46d214db035f150e8522fad03edec913939e8':
  Unnecessary dexopt in installPackageLI
2015-04-07 18:35:10 +00:00
Fyodor Kupolov
77e46d214d am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
* commit '6a17f60166082227a5a644f9114db46a0ade73f0':
  Unnecessary dexopt in installPackageLI
2015-04-07 18:24:55 +00:00
Jorim Jaggi
a86790bf23 Add Camera prewarm intent.
Also adds a test app for testing this intent. In addition, the secure
camera gets launched in the background to fix jank while sending the
intent.

Bug: 20016619
Change-Id: I7bb7e22ddaf5dc67fc09b9e63e5f3d10fe8e3ee4
2015-04-07 11:24:05 -07:00
Dmitriy Ivanov
068907be97 resolved conflicts for merge of f838b76f to master
Change-Id: I2ee8f2cc15f16b1e98112955d196dba96c38ef20
2015-04-07 11:17:19 -07:00
John Spurlock
cd863ad094 ZenTile: Don't broadcast intents in-process.
Bug: 20091931
Change-Id: Id35691a56c9fd279a9fb271525e193cefdc44c7f
2015-04-07 14:15:40 -04:00
Alex Klyubin
06adabdbec am 4b79bbea: am 558184f5: Merge "Make the new AndroidKeyStore API conformant."
* commit '4b79bbeaa3c6a8820fe83aa75179b6cae550320f':
  Make the new AndroidKeyStore API conformant.
2015-04-07 18:07:53 +00:00
Fyodor Kupolov
6a17f60166 Merge "Unnecessary dexopt in installPackageLI" 2015-04-07 18:03:35 +00:00
Olawale Ogunwale
5c86c1f3e9 am e97118c8: am bde7e467: am d229f442: Merge "Add a timeout state to frozen windows"
* commit 'e97118c84d0a093ee2eb6adbcb45841c0f3bf8db':
  Add a timeout state to frozen windows
2015-04-07 17:59:53 +00:00
Wale Ogunwale
9581c4bc2c Merge "Revert "fix the flash caused by missing setMatrix() when surface size changes"" 2015-04-07 17:59:31 +00:00
Alex Klyubin
4b79bbeaa3 am 558184f5: Merge "Make the new AndroidKeyStore API conformant."
* commit '558184f52fa7822a0bde230a93e552f137ac91a4':
  Make the new AndroidKeyStore API conformant.
2015-04-07 17:58:00 +00:00
Dmitriy Ivanov
f838b76f75 am aa94389b: am d95e58cb: Merge "Load libraries directly from apk"
* commit 'aa94389ba2f848a98c74b439da6ea8c3329668ce':
  Load libraries directly from apk
2015-04-07 17:57:03 +00:00
Wale Ogunwale
4c8b7953f9 Revert "fix the flash caused by missing setMatrix() when surface size changes"
This reverts commit 7f97af11fba6a18ee6bc022f7197319ce54fa46f.
Change broke screen_on functionality when an alarm goes off.

Bug: 20096335
Bug: 18773834
2015-04-07 10:49:40 -07:00
Dmitriy Ivanov
aa94389ba2 am d95e58cb: Merge "Load libraries directly from apk"
* commit 'd95e58cb609228c4c4b231e00d6bb648e9dcaf71':
  Load libraries directly from apk
2015-04-07 17:49:12 +00:00
Olawale Ogunwale
e97118c84d am bde7e467: am d229f442: Merge "Add a timeout state to frozen windows"
* commit 'bde7e467acf61516706c98a05edc23d25275b7ff':
  Add a timeout state to frozen windows
2015-04-07 17:45:41 +00:00
Alex Klyubin
558184f52f Merge "Make the new AndroidKeyStore API conformant." 2015-04-07 17:39:08 +00:00
Olawale Ogunwale
bde7e467ac am d229f442: Merge "Add a timeout state to frozen windows"
* commit 'd229f442d5b8c2e600eaa4daeec0e771631ed83d':
  Add a timeout state to frozen windows
2015-04-07 17:35:53 +00:00
Xiaohui Chen
ab7f01d51b fix a potential race condition
Currently worker threads in computeBestConfiguration may NOT completely
finish before timeout.  But the code will start using the result while
the worker threads are still working on the same object.  This may
cause exceptions.

b/19966623

Change-Id: I62ffcb796d648891ee339b6a978f575ebad8352b
2015-04-07 10:34:36 -07:00
Dmitriy Ivanov
d95e58cb60 Merge "Load libraries directly from apk" 2015-04-07 17:28:15 +00:00
Dmitriy Ivanov
dec4688f40 Load libraries directly from apk
Introduced new 'extractNativeLibs' attribute to manifest/application.
 Setting it to false prevents installer from extracting library from apk.

 The default value for extractNativeLibs is true.

Bug: 8076853
(cherry picked from commit ff193d642eea7128faad837d19e347cd25212c27)
Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1
2015-04-07 17:25:23 +00:00
Alan Viverette
61cbc1f74f Merge "Add accessibility action for scrolling to a collection position" 2015-04-07 17:21:08 +00:00
Olawale Ogunwale
d229f442d5 Merge "Add a timeout state to frozen windows" 2015-04-07 17:14:32 +00:00
Jean-Michel Trivi
7f7e1d13c0 Merge "Log dump time of MediaFocusControl" 2015-04-07 17:00:47 +00:00
Jean-Michel Trivi
545fcf8d11 Log dump time of MediaFocusControl
Add time at which the audio focus stack was dumped to help read
  bugreports.

Change-Id: I31a8220308770e597a328b1a546d4bcc0f7ae226
2015-04-07 09:45:35 -07:00
Yang Ni
1709856238 Add a name to ScriptGroup2.Builder.create method
The name is not used in any meaningful way yet, but would be used
to name the file for generated code for fused kernels in other
coming CLs.

A script group name cannot be null or empty, or longer than 100
characters. It can only contain letters, digits, '-', or '_'.

Change-Id: I95fdbf58e6689da91ca98c2057dfa1a803d3b27b
2015-04-07 09:37:50 -07:00
Alex Klyubin
c46e9e7da4 Make the new AndroidKeyStore API conformant.
This makes the new AndroidKeyStore API conform with the latest
Keymaster API changes as well as the latest Android framework API
design guidelines.

Keymaster changes:
* Multiple paddings, block modes, and digests can be set on a key.
* "max uses per boot" and "min seconds between use" restrictions will
  not be exposed in the framework API.
* Padding scheme ZERO will not be exposed.

Changes due to Android framework design guidelines:
* Sets of enum values have been replaced with bitsets represented as
  ints.
* Integer has been replaced with int, with null being represented
  with a special value (e.g., -1 or 0) where possible.

Bug: 18088752
Change-Id: Ib21739aa9b42d48895cb7a681e836a5c6d972ac6
2015-04-07 09:18:00 -07:00
Craig Mautner
30b8984903 Merge "No longer unlock activity manager to test whitelist" 2015-04-07 16:17:57 +00:00
Craig Mautner
e56007786a No longer unlock activity manager to test whitelist
In order to check the DevicePolicyManagerService locktask whitelist
the activity manager had to release its lock preserving internal
state. That is undesirable and not scalable now that we need to check
the whitelist at startup for bug 19995702.

This change causes DPMS to update activity manager with the whitelist
whenever it changes so that activity manager can check the whitelist
without releasing the acitivty manager lock.

Change-Id: I3ed6eb5ceae2cd7e7ae3280abd708d5ce43a2851
2015-04-07 09:15:41 -07:00
Craig Mautner
3aacbbc025 Add a timeout state to frozen windows
When an activity stops drawing following a rotation the rotation
screenshot would become stuck on top of all the other windows. The
timeout was being acknowledged but mWindowsFreezingScreen was set to
true which kept stopFreezingDisplayLocked() from dismissing the
screen rotation animation.

By changing mWindowsFreezingScreen from a two state variable to a
three state variable, including a timeout state we allow
stopFreezingDisplayLocked() to continue and dismiss the screen
rotation animtion.

This change also reduces the APP_FREEZING_TIMOEOUT from 5 seconds to
2 seconds.

Bug: 15664090

Change-Id: Ida5aca002a82ec8fe1ea99f0ced814c5c8f01a95
2015-04-07 09:14:36 -07:00
George Mount
b6d8a84336 Merge "Fix NPE in getForegroundTintList" 2015-04-07 15:52:59 +00:00
Olawale Ogunwale
8d1db149b6 am 5b652282: am a9418c24: am 8928c727: Merge "[ActivityManager] Improve task order of getRunningTasks."
* commit '5b65228224e941b5c26f985d6d0e0ce61068b6d6':
  [ActivityManager] Improve task order of getRunningTasks.
2015-04-07 13:22:56 +00:00
Olawale Ogunwale
5b65228224 am a9418c24: am 8928c727: Merge "[ActivityManager] Improve task order of getRunningTasks."
* commit 'a9418c241fffbe5f70cc9044dd759026d14113e3':
  [ActivityManager] Improve task order of getRunningTasks.
2015-04-07 13:12:51 +00:00
Narayan Kamath
9d1878674c Merge "Don't set userSetLocale from Configuration.setLocale." 2015-04-07 13:08:18 +00:00
Olawale Ogunwale
a9418c241f am 8928c727: Merge "[ActivityManager] Improve task order of getRunningTasks."
* commit '8928c7271bee4b31e94b3d9e8e6e756d5aa2bcff':
  [ActivityManager] Improve task order of getRunningTasks.
2015-04-07 13:02:37 +00:00
Clara Bayarri
9b8178719b Merge "Create the Process Text Intent Action and Extra" 2015-04-07 12:52:31 +00:00