OSDN Git Service

android-x86/frameworks-base.git
9 years agoUse default theme for StandaloneActivity (DocumentsUI).
Tomasz Mikolajewski [Wed, 8 Apr 2015 11:35:33 +0000 (20:35 +0900)]
Use default theme for StandaloneActivity (DocumentsUI).

Change-Id: I41841702e0b68123cb73ff1203ca6e6fe5eae320

9 years agoMerge "Add an initial version for a StubProvider for DocumentsUI."
Tomasz Mikolajewski [Wed, 8 Apr 2015 04:19:39 +0000 (04:19 +0000)]
Merge "Add an initial version for a StubProvider for DocumentsUI."

9 years agoAdd an initial version for a StubProvider for DocumentsUI.
Tomasz Mikolajewski [Wed, 8 Apr 2015 00:21:08 +0000 (09:21 +0900)]
Add an initial version for a StubProvider for DocumentsUI.

It will be used for testing as well as for development.

Change-Id: I1556836e1070d9e4483d2574bba40aa2fdfde229

9 years agoam d242647a: am 1fb61c46: am b1044aaf: am 8ba1380f: am a4f72eb0: am aac938a8: Merge...
Eric Gilmore [Wed, 8 Apr 2015 02:15:51 +0000 (02:15 +0000)]
am d242647a: am 1fb61c46: am b1044aaf: am 8ba1380f: am a4f72eb0: am aac938a8: Merge "Fixing date." into lmp-docs

* commit 'd242647afa201cb160db1582ac53dec074292446':
  Fixing date.

9 years agoMerge "Fix Google app crash"
Selim Gurun [Wed, 8 Apr 2015 01:54:42 +0000 (01:54 +0000)]
Merge "Fix Google app crash"

9 years agoam 1fb61c46: am b1044aaf: am 8ba1380f: am a4f72eb0: am aac938a8: Merge "Fixing date...
Eric Gilmore [Wed, 8 Apr 2015 01:49:50 +0000 (01:49 +0000)]
am 1fb61c46: am b1044aaf: am 8ba1380f: am a4f72eb0: am aac938a8: Merge "Fixing date." into lmp-docs

* commit '1fb61c4688c37677020c66b96f067074b1dab3b4':
  Fixing date.

9 years agoFix Google app crash
Selim Gurun [Wed, 8 Apr 2015 01:40:14 +0000 (18:40 -0700)]
Fix Google app crash

Bug: 20110378

Until chromium imlementation lands, use the base implementation.

Change-Id: Icd8e83503770471219718fb38a131938b1bbf0c2

9 years agoam b1044aaf: am 8ba1380f: am a4f72eb0: am aac938a8: Merge "Fixing date." into lmp...
Eric Gilmore [Wed, 8 Apr 2015 01:29:10 +0000 (01:29 +0000)]
am b1044aaf: am 8ba1380f: am a4f72eb0: am aac938a8: Merge "Fixing date." into lmp-docs

* commit 'b1044aaf29227b2075e08098b6f5ed5eaf7cf2c0':
  Fixing date.

9 years agoMerge "Fix 64-bit build."
Ying Wang [Wed, 8 Apr 2015 01:05:28 +0000 (01:05 +0000)]
Merge "Fix 64-bit build."

9 years agoFix 64-bit build.
Ying Wang [Wed, 8 Apr 2015 01:03:31 +0000 (18:03 -0700)]
Fix 64-bit build.

Change-Id: I9f2e2edf276f98864b65708b746bf938a4a3c8d6

9 years agoMerge "Fix broken tests in DocumentsUI."
Tomasz Mikolajewski [Wed, 8 Apr 2015 00:55:50 +0000 (00:55 +0000)]
Merge "Fix broken tests in DocumentsUI."

9 years agoFix broken tests in DocumentsUI.
Tomasz Mikolajewski [Tue, 7 Apr 2015 09:52:06 +0000 (18:52 +0900)]
Fix broken tests in DocumentsUI.

Change-Id: Ia41eda4d9f500882ca7eb62b13a4bca60978bc33

9 years agoam 8ba1380f: am a4f72eb0: am aac938a8: Merge "Fixing date." into lmp-docs
Eric Gilmore [Wed, 8 Apr 2015 00:53:50 +0000 (00:53 +0000)]
am 8ba1380f: am a4f72eb0: am aac938a8: Merge "Fixing date." into lmp-docs

* commit '8ba1380fb59d3b7adec7e99f354eccabcead65b6':
  Fixing date.

9 years agoam a4f72eb0: am aac938a8: Merge "Fixing date." into lmp-docs
Eric Gilmore [Wed, 8 Apr 2015 00:43:41 +0000 (00:43 +0000)]
am a4f72eb0: am aac938a8: Merge "Fixing date." into lmp-docs

* commit 'a4f72eb079938bed57e8183e8110da044fe03429':
  Fixing date.

9 years agoam aac938a8: Merge "Fixing date." into lmp-docs
Eric Gilmore [Wed, 8 Apr 2015 00:33:07 +0000 (00:33 +0000)]
am aac938a8: Merge "Fixing date." into lmp-docs

* commit 'aac938a8597efb8d71ce7dc124779f1d268510eb':
  Fixing date.

9 years agoMerge "Add IntentFilter auto verification - part 3"
Fabrice Di Meglio [Wed, 8 Apr 2015 00:30:35 +0000 (00:30 +0000)]
Merge "Add IntentFilter auto verification - part 3"

9 years agoAdd IntentFilter auto verification - part 3
Fabrice Di Meglio [Tue, 7 Apr 2015 02:41:28 +0000 (19:41 -0700)]
Add IntentFilter auto verification - part 3

- add private API PackageManager.getAllIntentFilters(String)
for getting all IntentFilters from a given package
- update IntentFilterVerificationInfo to use an ArrayList<String>
for domains instead of a String[]
- if you make an App a default domain handler then make the
others as non default
- create an IntentVerificationInfo even if the App IntentFilters
do not need to be verified. This would be done only if the App
has some domain URLs defined and would allow to make it the
default handler for a domain
- a few code optimizations here and there

Change-Id: I4535372a0bb1a2c8e662e1485be8ca700003e9b3

9 years agoMerge "Fixing date." into lmp-docs
Eric Gilmore [Wed, 8 Apr 2015 00:05:27 +0000 (00:05 +0000)]
Merge "Fixing date." into lmp-docs

9 years agoMerge "Adding per UID WiFi power distribution."
Adam Lesinski [Tue, 7 Apr 2015 23:51:14 +0000 (23:51 +0000)]
Merge "Adding per UID WiFi power distribution."

9 years agoMerge "Constrain 'touch modal' behavior to the activity stack."
Vladislav Kaznacheev [Tue, 7 Apr 2015 23:32:06 +0000 (23:32 +0000)]
Merge "Constrain 'touch modal' behavior to the activity stack."

9 years agoConstrain 'touch modal' behavior to the activity stack.
Vladislav Kaznacheev [Thu, 19 Mar 2015 17:13:31 +0000 (10:13 -0700)]
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

9 years agoMerge "heapdump: use appendable file descriptor"
Nick Kralevich [Tue, 7 Apr 2015 23:28:30 +0000 (23:28 +0000)]
Merge "heapdump: use appendable file descriptor"

9 years agoheapdump: use appendable file descriptor
Nick Kralevich [Tue, 7 Apr 2015 23:22:46 +0000 (16:22 -0700)]
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

9 years agoam 5dd10bd1: am e2e945a8: am 40c4021a: Merge "third part apps can disable the secret...
Jim Miller [Tue, 7 Apr 2015 23:18:57 +0000 (23:18 +0000)]
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

9 years agoam e2e945a8: am 40c4021a: Merge "third part apps can disable the secret lockscreen"
Jim Miller [Tue, 7 Apr 2015 23:08:05 +0000 (23:08 +0000)]
am e2e945a8: am 40c4021a: Merge "third part apps can disable the secret lockscreen"

* commit 'e2e945a8871310ab900dbe33b587e522446b9a6d':
  third part apps can disable the secret lockscreen

9 years agoMerge "Fixed issue with prematurely removing display for child activities."
Wale Ogunwale [Tue, 7 Apr 2015 23:02:58 +0000 (23:02 +0000)]
Merge "Fixed issue with prematurely removing display for child activities."

9 years agoam 40c4021a: Merge "third part apps can disable the secret lockscreen"
Jim Miller [Tue, 7 Apr 2015 22:58:53 +0000 (22:58 +0000)]
am 40c4021a: Merge "third part apps can disable the secret lockscreen"

* commit '40c4021a70c56bcc4d6f6569d795dff52ab4e369':
  third part apps can disable the secret lockscreen

9 years agoMerge "Fix hours in clock"
Alan Viverette [Tue, 7 Apr 2015 22:54:47 +0000 (22:54 +0000)]
Merge "Fix hours in clock"

9 years agoMerge "third part apps can disable the secret lockscreen"
Jim Miller [Tue, 7 Apr 2015 22:41:17 +0000 (22:41 +0000)]
Merge "third part apps can disable the secret lockscreen"

9 years agoFix hours in clock
Alan Viverette [Tue, 7 Apr 2015 22:37:30 +0000 (15:37 -0700)]
Fix hours in clock

Bug: 20096871
Change-Id: Ib4f155f6b6221bd2a41af86a018d42ddea372950

9 years agoam 66a51c70: am da1bc605: am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout...
Adam Powell [Tue, 7 Apr 2015 22:02:48 +0000 (22:02 +0000)]
am 66a51c70: am da1bc605: am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"

* commit '66a51c7080f26219652f84ae8d10b1e4d63409af':
  Fixed memory leak in ExtractEditLayout finish()

9 years agoam f401d637: am 947b5029: am 8391e03b: Merge "ProgressBar: Fix error of process bar...
Adam Powell [Tue, 7 Apr 2015 22:02:38 +0000 (22:02 +0000)]
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.

9 years agoam a30020f8: am ef2f390f: am 4559d6ae: am 90bf99b1: am 922946ea: am a0c887c6: docs...
Quddus Chong [Tue, 7 Apr 2015 22:02:29 +0000 (22:02 +0000)]
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

9 years agoam e7c79398: am d8cf94d7: am 0c7f9436: am 47c1835a: am 868c795d: am 0307acf9: Merge...
Quddus Chong [Tue, 7 Apr 2015 22:02:20 +0000 (22:02 +0000)]
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

9 years agoam de35df74: am 617181bc: am 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs...
Joe Fernandez [Tue, 7 Apr 2015 22:02:12 +0000 (22:02 +0000)]
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

9 years agoam 7e2b9599: am f545618f: am 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs...
Joe Fernandez [Tue, 7 Apr 2015 22:02:01 +0000 (22:02 +0000)]
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

9 years agoam da1bc605: am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"
Adam Powell [Tue, 7 Apr 2015 21:50:03 +0000 (21:50 +0000)]
am da1bc605: am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"

* commit 'da1bc6057417e0ee6faa1cdd08a0be346a27659a':
  Fixed memory leak in ExtractEditLayout finish()

9 years agoam 947b5029: am 8391e03b: Merge "ProgressBar: Fix error of process bar cannot update...
Adam Powell [Tue, 7 Apr 2015 21:49:58 +0000 (21:49 +0000)]
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.

9 years agoam ef2f390f: am 4559d6ae: am 90bf99b1: am 922946ea: am a0c887c6: docs: Fixed typo...
Quddus Chong [Tue, 7 Apr 2015 21:49:53 +0000 (21:49 +0000)]
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

9 years agoMerge "resolved conflicts for merge of 764f08ad to master"
Stephen Hines [Tue, 7 Apr 2015 21:49:47 +0000 (21:49 +0000)]
Merge "resolved conflicts for merge of 764f08ad to master"

9 years agoam d8cf94d7: am 0c7f9436: am 47c1835a: am 868c795d: am 0307acf9: Merge "docs: Removed...
Quddus Chong [Tue, 7 Apr 2015 21:49:49 +0000 (21:49 +0000)]
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

9 years agoam 617181bc: am 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs: Small fix...
Joe Fernandez [Tue, 7 Apr 2015 21:49:45 +0000 (21:49 +0000)]
am 617181bc: am 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard

* commit '617181bcfabcc45c031dad74f1c1aaf1be380b85':
  docs: Small fix for Android Dashboard

9 years agoam f545618f: am 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015...
Joe Fernandez [Tue, 7 Apr 2015 21:49:41 +0000 (21:49 +0000)]
am f545618f: am 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update

* commit 'f545618fd2c0199d05c4a9b4bd70a5c693983858':
  docs: April 2015 Android Dashboard update

9 years agoresolved conflicts for merge of 764f08ad to master
Stephen Hines [Tue, 7 Apr 2015 21:47:32 +0000 (14:47 -0700)]
resolved conflicts for merge of 764f08ad to master

Change-Id: I0a22225b2d26b6d806de2dcc70ffba29c96865b3

9 years agoMerge "Implement IntentFilter verification service."
Joseph Wen [Tue, 7 Apr 2015 21:44:22 +0000 (21:44 +0000)]
Merge "Implement IntentFilter verification service."

9 years agoMerge "AudioTrack: update javadoc for missing DEAD_OBJECT return code"
Jean-Michel Trivi [Tue, 7 Apr 2015 21:42:08 +0000 (21:42 +0000)]
Merge "AudioTrack: update javadoc for missing DEAD_OBJECT return code"

9 years agoFixed issue with prematurely removing display for child activities.
Wale Ogunwale [Tue, 7 Apr 2015 21:23:14 +0000 (14:23 -0700)]
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

9 years agoMerge "Add stat collection start time"
John Reck [Tue, 7 Apr 2015 21:30:27 +0000 (21:30 +0000)]
Merge "Add stat collection start time"

9 years agoam 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"
Adam Powell [Tue, 7 Apr 2015 21:23:58 +0000 (21:23 +0000)]
am 7a3c8c70: Merge "Fixed memory leak in ExtractEditLayout finish()"

* commit '7a3c8c70a6c745aa2559a7f769528774021b62a6':
  Fixed memory leak in ExtractEditLayout finish()

9 years agoam 8391e03b: Merge "ProgressBar: Fix error of process bar cannot update on some condi...
Adam Powell [Tue, 7 Apr 2015 21:23:50 +0000 (21:23 +0000)]
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.

9 years agoam 4559d6ae: am 90bf99b1: am 922946ea: am a0c887c6: docs: Fixed typo in Implementing...
Quddus Chong [Tue, 7 Apr 2015 21:18:23 +0000 (21:18 +0000)]
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

9 years agoam 0c7f9436: am 47c1835a: am 868c795d: am 0307acf9: Merge "docs: Removed instruction...
Quddus Chong [Tue, 7 Apr 2015 21:18:03 +0000 (21:18 +0000)]
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

9 years agoam 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
Joe Fernandez [Tue, 7 Apr 2015 21:17:55 +0000 (21:17 +0000)]
am 2e567682: am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard

* commit '2e567682a2802170a3f5fd7f621296178a397541':
  docs: Small fix for Android Dashboard

9 years agoam 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboar...
Joe Fernandez [Tue, 7 Apr 2015 21:17:49 +0000 (21:17 +0000)]
am 5861b5b6: am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update

* commit '5861b5b618cf891ae490c1832f15b101e6b4a090':
  docs: April 2015 Android Dashboard update

9 years agoam d782c57d: am 5352411a: Merge "Move cache dir to its own class."
Tim Murray [Tue, 7 Apr 2015 21:12:59 +0000 (21:12 +0000)]
am d782c57d: am 5352411a: Merge "Move cache dir to its own class."

* commit 'd782c57d376f27e511692ac6259759dd5a0bdced':
  Move cache dir to its own class.

9 years agoam 5352411a: Merge "Move cache dir to its own class."
Tim Murray [Tue, 7 Apr 2015 20:59:39 +0000 (20:59 +0000)]
am 5352411a: Merge "Move cache dir to its own class."

* commit '5352411a8c41dd1c3c51a28cdd0b09f42e246b33':
  Move cache dir to its own class.

9 years agoImplement IntentFilter verification service.
Joseph Wen [Wed, 25 Feb 2015 19:00:39 +0000 (14:00 -0500)]
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

9 years agoMerge "Fixed memory leak in ExtractEditLayout finish()"
Adam Powell [Tue, 7 Apr 2015 20:56:47 +0000 (20:56 +0000)]
Merge "Fixed memory leak in ExtractEditLayout finish()"

9 years agoMerge "ProgressBar: Fix error of process bar cannot update on some condition."
Adam Powell [Tue, 7 Apr 2015 20:56:33 +0000 (20:56 +0000)]
Merge "ProgressBar: Fix error of process bar cannot update on some condition."

9 years agoMerge "Fixed glitch in NuPlayer when surface size changes"
Wale Ogunwale [Tue, 7 Apr 2015 20:50:24 +0000 (20:50 +0000)]
Merge "Fixed glitch in NuPlayer when surface size changes"

9 years agoFixed glitch in NuPlayer when surface size changes
Wale Ogunwale [Tue, 7 Apr 2015 18:32:17 +0000 (11:32 -0700)]
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

9 years agoUnnecessary dexopt in installPackageLI
Fyodor Kupolov [Tue, 7 Apr 2015 02:04:08 +0000 (19:04 -0700)]
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

9 years agoMerge "Move cache dir to its own class."
Tim Murray [Tue, 7 Apr 2015 20:33:33 +0000 (20:33 +0000)]
Merge "Move cache dir to its own class."

9 years agoMove cache dir to its own class.
Tim Murray [Tue, 7 Apr 2015 20:24:14 +0000 (13:24 -0700)]
Move cache dir to its own class.

This prevents us from loading the RS static initializer all the time.

Change-Id: I8cea7540e50251aba8c2f199f06f344f991e7d7f

9 years agoMerge "fix a potential race condition"
Xiaohui Chen [Tue, 7 Apr 2015 20:00:23 +0000 (20:00 +0000)]
Merge "fix a potential race condition"

9 years agoMerge "Fix build"
Jorim Jaggi [Tue, 7 Apr 2015 19:55:54 +0000 (19:55 +0000)]
Merge "Fix build"

9 years agoMerge "Add a name to ScriptGroup2.Builder.create method"
Yang Ni [Tue, 7 Apr 2015 19:54:29 +0000 (19:54 +0000)]
Merge "Add a name to ScriptGroup2.Builder.create method"

9 years agoFix build
Jorim Jaggi [Tue, 7 Apr 2015 19:53:37 +0000 (12:53 -0700)]
Fix build

Change-Id: I1c748fd9fea6f5d4baf2c9cb29d1f3dc9f3a7082

9 years agoMerge "Fix animation start jank due to expensive layout operations."
Jeff Brown [Tue, 7 Apr 2015 19:28:53 +0000 (19:28 +0000)]
Merge "Fix animation start jank due to expensive layout operations."

9 years agoFix animation start jank due to expensive layout operations.
Jeff Brown [Tue, 7 Apr 2015 02:49:02 +0000 (19:49 -0700)]
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

9 years agoam 90bf99b1: am 922946ea: am a0c887c6: docs: Fixed typo in Implementing In-app Billin...
Quddus Chong [Tue, 7 Apr 2015 19:19:48 +0000 (19:19 +0000)]
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

9 years agoMerge "media: add undocumented exceptions to MediaCodec api."
Ronghua Wu [Tue, 7 Apr 2015 19:15:18 +0000 (19:15 +0000)]
Merge "media: add undocumented exceptions to MediaCodec api."

9 years agoam 922946ea: am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide....
Quddus Chong [Tue, 7 Apr 2015 19:09:13 +0000 (19:09 +0000)]
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

9 years agoam 88d9797a: (-s ours) am 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in install...
Fyodor Kupolov [Tue, 7 Apr 2015 19:09:08 +0000 (19:09 +0000)]
am 88d9797a: (-s ours) am 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"

* commit '88d9797aa815b1addfe8421885424a1219b96d45':
  Unnecessary dexopt in installPackageLI

9 years agoam 47c1835a: am 868c795d: am 0307acf9: Merge "docs: Removed instruction to add gms...
Quddus Chong [Tue, 7 Apr 2015 19:03:01 +0000 (19:03 +0000)]
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

9 years agoMerge "Enable runtime permissions"
Svetoslav [Tue, 7 Apr 2015 18:59:00 +0000 (18:59 +0000)]
Merge "Enable runtime permissions"

9 years agoFixing date.
Eric Gilmore [Tue, 7 Apr 2015 18:58:52 +0000 (11:58 -0700)]
Fixing date.

Change-Id: Ia406bec97cda0ae309abbb8c538ad4ea3b4e9d42

9 years agoam a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
Quddus Chong [Tue, 7 Apr 2015 18:58:07 +0000 (18:58 +0000)]
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

9 years agoMerge "ZenTile: Don't broadcast intents in-process."
John Spurlock [Tue, 7 Apr 2015 18:54:02 +0000 (18:54 +0000)]
Merge "ZenTile: Don't broadcast intents in-process."

9 years agoam 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
Joe Fernandez [Tue, 7 Apr 2015 18:53:01 +0000 (18:53 +0000)]
am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard

* commit '038fe2deab06ff4fb72db1f5d5012ddf35c5d04d':
  docs: Small fix for Android Dashboard

9 years agoam 868c795d: am 0307acf9: Merge "docs: Removed instruction to add gms version in...
Quddus Chong [Tue, 7 Apr 2015 18:51:22 +0000 (18:51 +0000)]
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

9 years agoMerge "Add Camera prewarm intent."
Jorim Jaggi [Tue, 7 Apr 2015 18:50:49 +0000 (18:50 +0000)]
Merge "Add Camera prewarm intent."

9 years agodocs: Fixed typo in Implementing In-app Billing guide.
Quddus Chong [Tue, 7 Apr 2015 18:37:34 +0000 (11:37 -0700)]
docs: Fixed typo in Implementing In-app Billing guide.
bug: 19961296

Change-Id: If170b58feb6d7160790591b540cdb91d7c23d6e5

9 years agoam 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
Joe Fernandez [Tue, 7 Apr 2015 18:41:32 +0000 (18:41 +0000)]
am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update

* commit '911e4c508ca3061bbf8d13e78350636f1b3ef52e':
  docs: April 2015 Android Dashboard update

9 years agoam 0307acf9: Merge "docs: Removed instruction to add gms version in manifest during...
Quddus Chong [Tue, 7 Apr 2015 18:40:32 +0000 (18:40 +0000)]
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

9 years agoam 19a57761: am 95c39774: docs: Small fix for Android Dashboard
Joe Fernandez [Tue, 7 Apr 2015 18:40:22 +0000 (18:40 +0000)]
am 19a57761: am 95c39774: docs: Small fix for Android Dashboard

* commit '19a57761b4aec17c907d271e58ae4c20da40a039':
  docs: Small fix for Android Dashboard

9 years agoresolved conflicts for merge of 06adabdb to master
Alex Klyubin [Tue, 7 Apr 2015 18:39:51 +0000 (11:39 -0700)]
resolved conflicts for merge of 06adabdb to master

Change-Id: Ifb09e2e6242f79cabe76e95eacc982f6cc7e1a6c

9 years agoAdding per UID WiFi power distribution.
Adam Lesinski [Wed, 25 Mar 2015 23:42:59 +0000 (16:42 -0700)]
Adding per UID WiFi power distribution.

Change-Id: I88c539074607d7261f6c5cf1dbae47c3cf53f253

9 years agoam 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
Fyodor Kupolov [Tue, 7 Apr 2015 18:35:10 +0000 (18:35 +0000)]
am 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"

* commit '77e46d214db035f150e8522fad03edec913939e8':
  Unnecessary dexopt in installPackageLI

9 years agoMerge "docs: Removed instruction to add gms version in manifest during Google Play...
Quddus Chong [Tue, 7 Apr 2015 18:31:44 +0000 (18:31 +0000)]
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

9 years agoam ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
Joe Fernandez [Tue, 7 Apr 2015 18:31:12 +0000 (18:31 +0000)]
am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update

* commit 'ab8828564c5a121ce341710b362bb8f090995885':
  docs: April 2015 Android Dashboard update

9 years agoam 95c39774: docs: Small fix for Android Dashboard
Joe Fernandez [Tue, 7 Apr 2015 18:31:03 +0000 (18:31 +0000)]
am 95c39774: docs: Small fix for Android Dashboard

* commit '95c39774d245921be04b2a6f0f221f86545f8ac6':
  docs: Small fix for Android Dashboard

9 years agodocs: Removed instruction to add gms version in manifest during Google Play services...
Quddus Chong [Tue, 7 Apr 2015 18:16:38 +0000 (11:16 -0700)]
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

9 years agoam 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
Fyodor Kupolov [Tue, 7 Apr 2015 18:24:55 +0000 (18:24 +0000)]
am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"

* commit '6a17f60166082227a5a644f9114db46a0ade73f0':
  Unnecessary dexopt in installPackageLI

9 years agoAdd Camera prewarm intent.
Jorim Jaggi [Thu, 2 Apr 2015 23:32:29 +0000 (16:32 -0700)]
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

9 years agoam b1a6bd01: docs: April 2015 Android Dashboard update
Joe Fernandez [Tue, 7 Apr 2015 18:18:55 +0000 (18:18 +0000)]
am b1a6bd01: docs: April 2015 Android Dashboard update

* commit 'b1a6bd01bc278f4f6c6a656925e37b998d93f143':
  docs: April 2015 Android Dashboard update

9 years agodocs: Small fix for Android Dashboard
Joe Fernandez [Tue, 7 Apr 2015 18:18:00 +0000 (11:18 -0700)]
docs: Small fix for Android Dashboard

Change-Id: I33f3b8b4a7b7abdf16bb5fc4964c51f2809f6c3d

9 years agoresolved conflicts for merge of f838b76f to master
Dmitriy Ivanov [Tue, 7 Apr 2015 18:17:19 +0000 (11:17 -0700)]
resolved conflicts for merge of f838b76f to master

Change-Id: I2ee8f2cc15f16b1e98112955d196dba96c38ef20

9 years agoZenTile: Don't broadcast intents in-process.
John Spurlock [Tue, 7 Apr 2015 18:01:28 +0000 (14:01 -0400)]
ZenTile: Don't broadcast intents in-process.

Bug: 20091931
Change-Id: Id35691a56c9fd279a9fb271525e193cefdc44c7f

9 years agoam 4b79bbea: am 558184f5: Merge "Make the new AndroidKeyStore API conformant."
Alex Klyubin [Tue, 7 Apr 2015 18:07:53 +0000 (18:07 +0000)]
am 4b79bbea: am 558184f5: Merge "Make the new AndroidKeyStore API conformant."

* commit '4b79bbeaa3c6a8820fe83aa75179b6cae550320f':
  Make the new AndroidKeyStore API conformant.