187619 Commits

Author SHA1 Message Date
Adam Lesinski
98aa3ad6e4 Add PNG and 9-patch support
Change-Id: I9ecdfdf82b82d59084490da518e167e256afd5f2
2015-04-09 17:19:06 -07:00
Adam Lesinski
0dfd7fba38 Merge "Adding per UID WiFi power distribution." 2015-04-07 23:51:17 +00:00
Vladislav Kaznacheev
17494017a6 Merge "Constrain 'touch modal' behavior to the activity stack." 2015-04-07 23:32:10 +00:00
Vladislav Kaznacheev
c7ad0a0cb0 Constrain 'touch modal' behavior to the activity stack.
Currently a 'touch modal' window grabs drag events
from the entire screen. Since 'touch modal' is the
default, this makes dragging between apps impossible.

This change allows such grabbing behavior only for
events that are still over the same activity stack.

Bug:19548858
Change-Id: I7d48b58e7fcb620521361e17cb70914913afae03
2015-04-07 16:30:06 -07:00
Nick Kralevich
550a901ce1 Merge "heapdump: use appendable file descriptor" 2015-04-07 23:28:32 +00:00
Nick Kralevich
8b0c61d378 heapdump: use appendable file descriptor
For heapdump functionality, there's no need to give apps
readable/writable file descriptors. An append-only file descriptor
is sufficient.

Bug: 20073185
Change-Id: Ib2c42a72b2704db5f1b919c24e33609f7a45e57a
2015-04-07 16:22:46 -07:00
Jim Miller
c68b9d6acc am 5dd10bd1: am e2e945a8: am 40c4021a: Merge "third part apps can disable the secret lockscreen"
* commit '5dd10bd11a524e224a88615444bf8b52b1ec11d6':
  third part apps can disable the secret lockscreen
2015-04-07 23:18:57 +00:00
Jim Miller
5dd10bd11a am e2e945a8: am 40c4021a: Merge "third part apps can disable the secret lockscreen"
* commit 'e2e945a8871310ab900dbe33b587e522446b9a6d':
  third part apps can disable the secret lockscreen
2015-04-07 23:08:05 +00:00
Wale Ogunwale
07e1967cfc Merge "Fixed issue with prematurely removing display for child activities." 2015-04-07 23:03:02 +00:00
Jim Miller
e2e945a887 am 40c4021a: Merge "third part apps can disable the secret lockscreen"
* commit '40c4021a70c56bcc4d6f6569d795dff52ab4e369':
  third part apps can disable the secret lockscreen
2015-04-07 22:58:53 +00:00
Alan Viverette
7f9f68f8a0 Merge "Fix hours in clock" 2015-04-07 22:54:49 +00:00
Jim Miller
40c4021a70 Merge "third part apps can disable the secret lockscreen" 2015-04-07 22:41:19 +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