187829 Commits

Author SHA1 Message Date
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
Tim Murray
5352411a8c Merge "Move cache dir to its own class." 2015-04-07 20:34:21 +00:00
Tim Murray
e1e6c66198 Move cache dir to its own class.
This prevents us from loading the RS static initializer all the time.

Change-Id: I8cea7540e50251aba8c2f199f06f344f991e7d7f
2015-04-07 13:24:14 -07:00
Quddus Chong
a9f6a9b769 Fixed broken link in UiAutomation.setRunAsMonkey() method description.
bug: 19711873

Change-Id: I4ebb50e03e6e979486ebd3a7c15f21358734574e
2015-04-07 13:04:39 -07:00
George Mount
6ad2715911 Fix merge error. 2015-04-07 13:00:54 -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
Nancy Chen
1df9429b6b Hide and make systemapi visual voicemail-related apis.
Since there are no third-party apps expected to be using the visual
voicemail related apps at the moment, best to keep these hidden for now.

Bug: 19236241
Change-Id: I86f622208efcc89fab523f03d2bb70c244cdf867
2015-04-07 12:21:36 -07:00
Quddus Chong
4559d6aefb am 90bf99b1: am 922946ea: am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
* commit '90bf99b163866020140ac872aa704163fafddae1':
  docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
2015-04-07 19:19:48 +00:00
Ronghua Wu
76477a25fa Merge "media: add undocumented exceptions to MediaCodec api." 2015-04-07 19:15:19 +00:00
Quddus Chong
90bf99b163 am 922946ea: am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
* commit '922946ea75e0b387d900bb20c55759c6343ac4b5':
  docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
2015-04-07 19:09:13 +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
Quddus Chong
0c7f94365c am 47c1835a: am 868c795d: am 0307acf9: Merge "docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293" into lmp-docs
* commit '47c1835a45321cc327dfd9fc97b3d22305d3fa5e':
  docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293
2015-04-07 19:03:01 +00:00
Svetoslav
8aa6100002 Merge "Enable runtime permissions" 2015-04-07 18:59:07 +00:00
Eric Gilmore
4480bdad95 Fixing date.
Change-Id: Ia406bec97cda0ae309abbb8c538ad4ea3b4e9d42
2015-04-07 11:58:52 -07:00
Quddus Chong
922946ea75 am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
* commit 'a0c887c67e5d925247fcb77d714ccc3383c0d0da':
  docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
2015-04-07 18:58:07 +00:00
John Spurlock
3665abaa81 Merge "ZenTile: Don't broadcast intents in-process." 2015-04-07 18:54:05 +00:00
Joe Fernandez
2e567682a2 am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
* commit '038fe2deab06ff4fb72db1f5d5012ddf35c5d04d':
  docs: Small fix for Android Dashboard
2015-04-07 18:53:01 +00:00
Quddus Chong
47c1835a45 am 868c795d: am 0307acf9: Merge "docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293" into lmp-docs
* commit '868c795dd253ff31999962f84299be27e4d5828f':
  docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293
2015-04-07 18:51:22 +00:00
Jorim Jaggi
25ff0646ca Merge "Add Camera prewarm intent." 2015-04-07 18:50:54 +00:00
Quddus Chong
a0c887c67e docs: Fixed typo in Implementing In-app Billing guide.
bug: 19961296

Change-Id: If170b58feb6d7160790591b540cdb91d7c23d6e5
2015-04-07 11:48:30 -07:00
Joe Fernandez
5861b5b618 am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
* commit '911e4c508ca3061bbf8d13e78350636f1b3ef52e':
  docs: April 2015 Android Dashboard update
2015-04-07 18:41:32 +00:00
Quddus Chong
868c795dd2 am 0307acf9: Merge "docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293" into lmp-docs
* commit '0307acf90773a16faa6b33dad12b14b95708a3cc':
  docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293
2015-04-07 18:40:32 +00:00
Joe Fernandez
038fe2deab am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
* commit '19a57761b4aec17c907d271e58ae4c20da40a039':
  docs: Small fix for Android Dashboard
2015-04-07 18:40:22 +00:00
Alex Klyubin
1620a65d32 resolved conflicts for merge of 06adabdb to master
Change-Id: Ifb09e2e6242f79cabe76e95eacc982f6cc7e1a6c
2015-04-07 11:39:51 -07:00
Adam Lesinski
e08af19fcc Adding per UID WiFi power distribution.
Change-Id: I88c539074607d7261f6c5cf1dbae47c3cf53f253
2015-04-07 11:37:10 -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
Quddus Chong
0307acf907 Merge "docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293" into lmp-docs 2015-04-07 18:31:45 +00:00
Joe Fernandez
911e4c508c am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
* commit 'ab8828564c5a121ce341710b362bb8f090995885':
  docs: April 2015 Android Dashboard update
2015-04-07 18:31:12 +00:00
Joe Fernandez
19a57761b4 am 95c39774: docs: Small fix for Android Dashboard
* commit '95c39774d245921be04b2a6f0f221f86545f8ac6':
  docs: Small fix for Android Dashboard
2015-04-07 18:31:03 +00:00
Quddus Chong
31864381d3 docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this.
bug: 20077293

Change-Id: Ie1148e751b9d22e5e7a1abad819c19a4c0b9c6b7
2015-04-07 11:30:09 -07: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
Joe Fernandez
ab8828564c am b1a6bd01: docs: April 2015 Android Dashboard update
* commit 'b1a6bd01bc278f4f6c6a656925e37b998d93f143':
  docs: April 2015 Android Dashboard update
2015-04-07 18:18:55 +00:00
Joe Fernandez
95c39774d2 docs: Small fix for Android Dashboard
Change-Id: I33f3b8b4a7b7abdf16bb5fc4964c51f2809f6c3d
2015-04-07 11:18:00 -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
Joe Fernandez
b1a6bd01bc docs: April 2015 Android Dashboard update
Change-Id: I7ddd526209cb41cc8944ea5bd99a32021ab343fa
2015-04-07 11:07:53 -07:00
Romain Guy
b3a9bc038d Prevent possible memory leak in SpanSet
If SpanSet.init() is called several times in a row with different
values, it is possible to change "numberOfSpans" in a way that
will prevent SpanSet.recycle() from nulling out all the spans.

This can lead to memory leaks of large objects through spans
references. User @piwai reported this leak:

     com.squareup.marketfont.MarketSpan
     `-[1] of array android.text.style.CharacterStyle[]
       `-spans of object android.text.SpanSet
         `-mCharacterStyleSpanSet of object android.text.TextLine
           `-[1] of array android.text.TextLine[]
             `-sCached of class android.text.TextLine

The MarketSpan instance is kept alive through a recycled TextLine
which itself contains a SpanSet.

Change-Id: Idfb2233ca16895dbe735c312662eaf0b4a2ecd65
2015-04-07 11:07:05 -07:00
Fyodor Kupolov
6a17f60166 Merge "Unnecessary dexopt in installPackageLI" 2015-04-07 18:03:35 +00:00
George Mount
4ec064dff1 Use layout path for the tag on bound layout roots.
Change-Id: I6bda5d5716e749251b27c112865da066ba908509
2015-04-07 11:02:11 -07: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