187607 Commits

Author SHA1 Message Date
Wale Ogunwale
07e1967cfc Merge "Fixed issue with prematurely removing display for child activities." 2015-04-07 23:03:02 +00:00
Alan Viverette
7f9f68f8a0 Merge "Fix hours in clock" 2015-04-07 22:54:49 +00:00
Alan Viverette
fc76a64be7 Fix hours in clock
Bug: 20096871
Change-Id: Ib4f155f6b6221bd2a41af86a018d42ddea372950
2015-04-07 15:37:30 -07:00
Adam Powell
a3f3a309cd am 66a51c70: am da1bc605: am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"
* commit '66a51c7080f26219652f84ae8d10b1e4d63409af':
  Fixed memory leak in ExtractEditLayout finish()
2015-04-07 22:02:48 +00:00
Adam Powell
20a2ef45e1 am f401d637: am 947b5029: am 8391e03b: Merge "ProgressBar: Fix error of process bar cannot update on some condition."
* commit 'f401d63796d9a7f81e8d1a4adf6ae2615faa7d91':
  ProgressBar: Fix error of process bar cannot update on some condition.
2015-04-07 22:02:38 +00:00
Quddus Chong
da7c854e1b am a30020f8: am ef2f390f: am 4559d6ae: am 90bf99b1: am 922946ea: am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
* commit 'a30020f8654a72a36e24a97e67865379e6145c2a':
  docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
2015-04-07 22:02:29 +00:00
Quddus Chong
d637d01202 am e7c79398: am d8cf94d7: am 0c7f9436: 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 'e7c79398dbfca11357fb6f244aff6fb76e1c8061':
  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 22:02:20 +00:00
Joe Fernandez
cab79e24fe am de35df74: am 617181bc: am 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
* commit 'de35df74344857690feb0f15e8f83355450a034a':
  docs: Small fix for Android Dashboard
2015-04-07 22:02:12 +00:00
Joe Fernandez
9064cc7fb4 am 7e2b9599: am f545618f: am 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
* commit '7e2b95997490a1beda28bbb93284b292e9c44e3c':
  docs: April 2015 Android Dashboard update
2015-04-07 22:02:01 +00:00
Adam Powell
66a51c7080 am da1bc605: am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"
* commit 'da1bc6057417e0ee6faa1cdd08a0be346a27659a':
  Fixed memory leak in ExtractEditLayout finish()
2015-04-07 21:50:03 +00:00
Adam Powell
f401d63796 am 947b5029: am 8391e03b: Merge "ProgressBar: Fix error of process bar cannot update on some condition."
* commit '947b5029e5fa3b08f79afd61e6bc0fb77bc6a10c':
  ProgressBar: Fix error of process bar cannot update on some condition.
2015-04-07 21:49:58 +00:00
Quddus Chong
a30020f865 am ef2f390f: am 4559d6ae: am 90bf99b1: am 922946ea: am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
* commit 'ef2f390fa670332d19a0d51b2d44693051fd8bb5':
  docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
2015-04-07 21:49:53 +00:00
Stephen Hines
e3a071c384 Merge "resolved conflicts for merge of 764f08ad to master" 2015-04-07 21:49:53 +00:00
Quddus Chong
e7c79398db am d8cf94d7: am 0c7f9436: 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 'd8cf94d7da723d7804b1b7545556e05b236b7cf7':
  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 21:49:49 +00:00
Joe Fernandez
de35df7434 am 617181bc: am 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
* commit '617181bcfabcc45c031dad74f1c1aaf1be380b85':
  docs: Small fix for Android Dashboard
2015-04-07 21:49:45 +00:00
Joe Fernandez
7e2b959974 am f545618f: am 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
* commit 'f545618fd2c0199d05c4a9b4bd70a5c693983858':
  docs: April 2015 Android Dashboard update
2015-04-07 21:49:41 +00:00
Stephen Hines
b6b17a575f resolved conflicts for merge of 764f08ad to master
Change-Id: I0a22225b2d26b6d806de2dcc70ffba29c96865b3
2015-04-07 14:47:32 -07:00
Joseph Wen
653f713847 Merge "Implement IntentFilter verification service." 2015-04-07 21:44:25 +00:00
Jean-Michel Trivi
9e62d31fd1 Merge "AudioTrack: update javadoc for missing DEAD_OBJECT return code" 2015-04-07 21:42:15 +00:00
Wale Ogunwale
73eba74d11 Fixed issue with prematurely removing display for child activities.
When relaunching a parent activity we finish all its children and set
a 2sec timeout to clean up their tasks/stacks/displays if we don't
hear anything back. This time might not be sufficient for the client
activity to respond back in time depending on what else is happening
on the system and we might end-up prematurely removing its display
which will cause it to crash. In this specfic case, the client
activity which wasn't the focus activity was been relaunched with a
bunch of other activities due to a configuration change.

Instead of having a timeout for the clean-up we now let the activity
go through the normal clean-up process that occurs as it changes
states which will eventually clean-up the right states in a max.
time of 10secs (on destroy timeout) or sooner. This is in line with
activity cycle expections.

Bug: 17702043
Change-Id: I484124e07ad32b9056f75ec41af1dd7718488335
2015-04-07 14:41:53 -07:00
John Reck
662fa7daa4 Merge "Add stat collection start time" 2015-04-07 21:30:30 +00:00
Adam Powell
da1bc60574 am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"
* commit '7a3c8c70a6c745aa2559a7f769528774021b62a6':
  Fixed memory leak in ExtractEditLayout finish()
2015-04-07 21:23:58 +00:00
Adam Powell
947b5029e5 am 8391e03b: Merge "ProgressBar: Fix error of process bar cannot update on some condition."
* commit '8391e03b7ef20f22ffc31da43e01b2fb8d1ec00a':
  ProgressBar: Fix error of process bar cannot update on some condition.
2015-04-07 21:23:50 +00:00
Quddus Chong
ef2f390fa6 am 4559d6ae: am 90bf99b1: am 922946ea: am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
* commit '4559d6aefb928edc68da5d0ed301db37bd8b30b7':
  docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
2015-04-07 21:18:23 +00:00
Quddus Chong
d8cf94d7da am 0c7f9436: 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 '0c7f94365c732ea6d1a4c383ed68005c0e67a619':
  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 21:18:03 +00:00
Joe Fernandez
617181bcfa am 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
* commit '2e567682a2802170a3f5fd7f621296178a397541':
  docs: Small fix for Android Dashboard
2015-04-07 21:17:55 +00:00
Joe Fernandez
f545618fd2 am 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
* commit '5861b5b618cf891ae490c1832f15b101e6b4a090':
  docs: April 2015 Android Dashboard update
2015-04-07 21:17:49 +00:00
Tim Murray
764f08ad84 am d782c57d: am 5352411a: Merge "Move cache dir to its own class."
* commit 'd782c57d376f27e511692ac6259759dd5a0bdced':
  Move cache dir to its own class.
2015-04-07 21:12:59 +00:00
Tim Murray
d782c57d37 am 5352411a: Merge "Move cache dir to its own class."
* commit '5352411a8c41dd1c3c51a28cdd0b09f42e246b33':
  Move cache dir to its own class.
2015-04-07 20:59:39 +00:00
Joseph Wen
6a34bb2d6a Implement IntentFilter verification service.
This commit adds a verifier that verifies a host delegates permission for
an app to handle Url for the host using the Statement protocol.

- Implements the Statement protocol
-- The protocol defines a file format that represents statements.
-- The protocol defines where each asset type should put their statement
declaration. For web asset, the statement file should be hosted at
<scheme>://<host>:<port>/.well-known/associations.json.

- Implements IntentFilterVerificationReceiver, an interface between
StatementService and PackageManager. PackageManager will send a
broadcast with action Intent.ACTION_INTENT_FILTER_NEEDS_VERIFICATION.
The service will process the request and returns the results by calling
PackageManager.verifyIntentFilter().

To verify an IntentFilter like this defined in Android app com.test.app
<intent-filter>
  <data android:scheme="https" />
  <data android:host="www.test.com" />
  <data android:pathPattern=".*"/>
</intent-filter>

The service will try to retrieve the statement file from
https://www.test.com:443/.well-known/associations.json and try to find
a JSON object equivalent to
{'relation': ['delegate_permission/common.handle_all_urls'],
 'target': {'namespace': 'android_app',
            'package_name': 'com.test.app',
            'sha256_cert_fingerprints': [APP_CERT_FP]}}
The entry should have the correct relation, package name, and
certificate sha256 fingerprint.

Because this implementation will send a HTTP request for each host
specified in the intent-filter in AndroidManifest.xml, to avoid overwhelming
the network at app install time, we limit the maximum number of hosts we will
verify for a single app to 10. Any app with more than 10 hosts in the
autoVerify=true intent-filter won't be auto verified.

Change-Id: I787c9d176e4110aa441eb5fe4fa9651a071c6610
2015-04-07 16:57:40 -04:00
Adam Powell
7a3c8c70a6 Merge "Fixed memory leak in ExtractEditLayout finish()" 2015-04-07 20:56:49 +00:00
Adam Powell
8391e03b7e Merge "ProgressBar: Fix error of process bar cannot update on some condition." 2015-04-07 20:56:36 +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
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
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
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
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