OSDN Git Service

android-x86/frameworks-base.git
7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Mar 2017 07:34:50 +0000 (00:34 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iacdf71ff60d8b5419e40bbb2e3930c5b83dd5cee
Auto-generated-cl: translation import

7 years agoMerge "Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps"
TreeHugger Robot [Wed, 22 Mar 2017 23:50:35 +0000 (23:50 +0000)]
Merge "Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps"

7 years agoMerge "Don't bind incorrect services."
Julia Reynolds [Wed, 22 Mar 2017 23:47:05 +0000 (23:47 +0000)]
Merge "Don't bind incorrect services."

7 years agoMerge "Fix launching installer on missing split"
TreeHugger Robot [Wed, 22 Mar 2017 23:41:34 +0000 (23:41 +0000)]
Merge "Fix launching installer on missing split"

7 years agoMerge "Notification cleanup"
TreeHugger Robot [Wed, 22 Mar 2017 23:28:05 +0000 (23:28 +0000)]
Merge "Notification cleanup"

7 years agoMerge "SoundTriggerTestApp: also unload on error conditions"
TreeHugger Robot [Wed, 22 Mar 2017 22:31:44 +0000 (22:31 +0000)]
Merge "SoundTriggerTestApp: also unload on error conditions"

7 years agoMerge "Amend "Fix various flashes when..." CL"
Rob Carr [Wed, 22 Mar 2017 22:31:21 +0000 (22:31 +0000)]
Merge "Amend "Fix various flashes when..." CL"

7 years agoMerge "Update AccountManager JavaDoc."
TreeHugger Robot [Wed, 22 Mar 2017 22:26:19 +0000 (22:26 +0000)]
Merge "Update AccountManager JavaDoc."

7 years agoMerge "Hooked-up options menu closing"
Evan Rosky [Wed, 22 Mar 2017 22:12:54 +0000 (22:12 +0000)]
Merge "Hooked-up options menu closing"

7 years agoMerge "Revert "Update display contents when metrics change""
Andrii Kulian [Wed, 22 Mar 2017 21:57:27 +0000 (21:57 +0000)]
Merge "Revert "Update display contents when metrics change""

7 years agoMerge "Add skia/src/codec to core/jni include dirs"
TreeHugger Robot [Wed, 22 Mar 2017 21:51:51 +0000 (21:51 +0000)]
Merge "Add skia/src/codec to core/jni include dirs"

7 years agoRevert "Update display contents when metrics change"
Andrii Kulian [Wed, 22 Mar 2017 21:50:24 +0000 (21:50 +0000)]
Revert "Update display contents when metrics change"

This reverts commit eddb7c0985e1fac8bdbeaaed40c678c0dc9da321.

Reason for revert: b/36518752

Bug: 36518752
Change-Id: I39773db7b8d02aec360ca80d02b3c161ccf02786

7 years agoMerge "Do not check targetSdkVersion if only one package"
TreeHugger Robot [Wed, 22 Mar 2017 21:48:50 +0000 (21:48 +0000)]
Merge "Do not check targetSdkVersion if only one package"

7 years agoFix launching installer on missing split
Todd Kennedy [Wed, 22 Mar 2017 21:42:38 +0000 (14:42 -0700)]
Fix launching installer on missing split

Bonehead mistake; we were applying the post-resolution filters twice.
Don't do that!

Test: build and see that the installer runs when trying to launch a split that's not on the device
Change-Id: Ice65cdd7cc85d0394422009ba42f388f0ec2595c

7 years agoExpose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps
Chad Brubaker [Wed, 22 Mar 2017 21:36:37 +0000 (14:36 -0700)]
Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps

Instant Apps wont be started by these broadcasts, but if they're running
it gives them a chance to be good citizens on the device and help out
with a space crunch.

Test: manual
Bug: 33350280
Change-Id: I1700153b1c698a29e1e35535f64062544d071cab

7 years agoMerge "Adding source bounds hint to support better PiP transition."
TreeHugger Robot [Wed, 22 Mar 2017 21:27:36 +0000 (21:27 +0000)]
Merge "Adding source bounds hint to support better PiP transition."

7 years agoMerge "AccountManagerService send pkg uid when creating notification channel"
Geoffrey Pitsch [Wed, 22 Mar 2017 21:15:59 +0000 (21:15 +0000)]
Merge "AccountManagerService send pkg uid when creating notification channel"

7 years agoMerge "Prevent downgrade of targetSandboxVersion"
TreeHugger Robot [Wed, 22 Mar 2017 21:14:00 +0000 (21:14 +0000)]
Merge "Prevent downgrade of targetSandboxVersion"

7 years agoMerge "Added concurrency test"
Fyodor Kupolov [Wed, 22 Mar 2017 21:02:08 +0000 (21:02 +0000)]
Merge "Added concurrency test"

7 years agoSoundTriggerTestApp: also unload on error conditions
Chris Thornton [Wed, 22 Mar 2017 20:50:04 +0000 (13:50 -0700)]
SoundTriggerTestApp: also unload on error conditions

When the service is killed/going down, it should unload all the sound
models it has running as part of being a good citizen.

Test: Kill/stop the service and see that the models are evicted from the
HAL

Change-Id: I6f88c8327682df5870b381d5bafda79e67fb7079

7 years agoMerge "Logging to track #36406078"
Amith Yamasani [Wed, 22 Mar 2017 20:49:27 +0000 (20:49 +0000)]
Merge "Logging to track #36406078"

7 years agoAccountManagerService send pkg uid when creating notification channel
Geoffrey Pitsch [Wed, 22 Mar 2017 20:42:43 +0000 (16:42 -0400)]
AccountManagerService send pkg uid when creating notification channel

AccountManager needs to pass the app's uid explicitly in order for the
channel lookup to not fail. Requires separate API that only system can
call.

Bug: 36511867
Test: Install Clankium and reboot device, observe Notification
Change-Id: I6ddd87d755b4b2129565dd275e799b0349a80936

7 years agoLogging to track #36406078
Amith Yamasani [Wed, 22 Mar 2017 20:37:15 +0000 (13:37 -0700)]
Logging to track #36406078

Bug: 36406078
Test: N/A
Change-Id: I9724fa8511686a342bf25d1979c17c0a4700e292

7 years agoMerge "AVRCP version interop pereference (3/3)"
TreeHugger Robot [Wed, 22 Mar 2017 20:37:44 +0000 (20:37 +0000)]
Merge "AVRCP version interop pereference (3/3)"

7 years agoAmend "Fix various flashes when..." CL
Robert Carr [Tue, 21 Mar 2017 02:04:30 +0000 (19:04 -0700)]
Amend "Fix various flashes when..." CL

Missing cosmetic changes from last patch set due to
a rebase error on my part.

Test: Cosmetic
Change-Id: I3a8a68e8cecd1947cd9e54d5fcfe8bb4a792265b

7 years agoMerge "SurfaceView: Fix Surface leak when changing format."
Rob Carr [Wed, 22 Mar 2017 20:26:36 +0000 (20:26 +0000)]
Merge "SurfaceView: Fix Surface leak when changing format."

7 years agoNotification cleanup
Julia Reynolds [Wed, 22 Mar 2017 14:52:11 +0000 (10:52 -0400)]
Notification cleanup

- remove EXTRA_ORIGINATING_USER_ID
- deprecate two icon extra fields; use the getters instead
- rename badge icon methods
- update some unclear documentation

Test: make, cts
Fixes: 33666468
Fixes: 36128288
Change-Id: Ic477259aab5f267fb72ab715d72195d6364cedae

7 years agoMerge "PlayerBase: more general exception catching in release"
TreeHugger Robot [Wed, 22 Mar 2017 20:04:20 +0000 (20:04 +0000)]
Merge "PlayerBase: more general exception catching in release"

7 years agoDo not check targetSdkVersion if only one package
Fyodor Kupolov [Wed, 22 Mar 2017 19:57:04 +0000 (12:57 -0700)]
Do not check targetSdkVersion if only one package

Bug: 36485175
Test: AccountManagerServiceTest
Change-Id: Icef2a292dbf5119a5c2bb184aa2da7bcf8e7bd11

7 years agoAdding source bounds hint to support better PiP transition.
Winson Chung [Thu, 2 Mar 2017 23:40:51 +0000 (15:40 -0800)]
Adding source bounds hint to support better PiP transition.

Bug: 35396882
Test: Start a transition with source bounds hint.
Change-Id: I4897242af84744bc05a093111a15ea52e49815e8

7 years agoAdded concurrency test
Fyodor Kupolov [Wed, 22 Mar 2017 00:16:17 +0000 (17:16 -0700)]
Added concurrency test

Test 2 threads repeatedly calling getAccounts while 1 thread calls
setAuthToken.

Example output:
I AccountManagerServiceTest: readTotalTime=1468 avg=36.7
I AccountManagerServiceTest: writeTotalTime=813 avg=40

Bug: 36485175
Test: AccountManagerServiceTest
Change-Id: Iee66339ceeb8f149eb9fc0906c537db60465d475

7 years agoMerge "Update “don’t snooze” in expanded snooze menu to cancel"
TreeHugger Robot [Wed, 22 Mar 2017 19:25:14 +0000 (19:25 +0000)]
Merge "Update “don’t snooze” in expanded snooze menu to cancel"

7 years agoMerge "cherry-pick from nyc-mr1-dev docs: Removing Android docs from Gerrit Original...
TreeHugger Robot [Wed, 22 Mar 2017 19:21:09 +0000 (19:21 +0000)]
Merge "cherry-pick from nyc-mr1-dev docs: Removing Android docs from Gerrit Original Change-Id: I5331cdc968be817ff70ba32dd03fce76493a6ab8 Test: make ds-docs"

7 years agoAdd skia/src/codec to core/jni include dirs
Matt Sarett [Wed, 22 Mar 2017 19:12:25 +0000 (15:12 -0400)]
Add skia/src/codec to core/jni include dirs

This should allow a jpeg encoding change in Skia to land:
https://skia-review.googlesource.com/c/10011/

Test: NA

Change-Id: If2474a548c9e22c5a13bf14fd38bd344355ac29a

7 years agoMerge "Removing per-user PiP component."
Winson Chung [Wed, 22 Mar 2017 18:56:02 +0000 (18:56 +0000)]
Merge "Removing per-user PiP component."

7 years agoMerge "Update FontFamily_Delegate following Change Ia23ee6a7"
Jerome Gaillard [Wed, 22 Mar 2017 18:55:07 +0000 (18:55 +0000)]
Merge "Update FontFamily_Delegate following Change Ia23ee6a7"

7 years agoMerge "Fix crash on user switch."
TreeHugger Robot [Wed, 22 Mar 2017 18:41:57 +0000 (18:41 +0000)]
Merge "Fix crash on user switch."

7 years agoAVRCP version interop pereference (3/3)
Ajay Panicker [Mon, 20 Mar 2017 21:20:52 +0000 (14:20 -0700)]
AVRCP version interop pereference (3/3)

Add a mechanism to allow the user to select the AVRCP version broadcasted
through SDP in the developer options. This helps solve some interoperability
issues such as with Honda Carkits where broadcasting AVRCP version 1.6 causes
media metadata to fail.

Bug: 35956792
Test: Select AVRCP version through developer option
Change-Id: Ibc271063058b6324b1a0517c6b853f8d7e6eb0f3

7 years agoMerge "Give shell the CHANGE_DEVICE_IDLE_TEMP_WHITELIST permission"
Chris Tate [Wed, 22 Mar 2017 18:07:43 +0000 (18:07 +0000)]
Merge "Give shell the CHANGE_DEVICE_IDLE_TEMP_WHITELIST permission"

7 years agoMerge "Do not allow Tasks to influence orientation under some conditions."
Bryce Lee [Wed, 22 Mar 2017 18:07:20 +0000 (18:07 +0000)]
Merge "Do not allow Tasks to influence orientation under some conditions."

7 years agoMerge "Revive old method to prevent crash internal app."
TreeHugger Robot [Wed, 22 Mar 2017 18:03:40 +0000 (18:03 +0000)]
Merge "Revive old method to prevent crash internal app."

7 years agoMerge "Add test configs to apct tests under frameworks/base"
Dan Shi [Wed, 22 Mar 2017 17:55:53 +0000 (17:55 +0000)]
Merge "Add test configs to apct tests under frameworks/base"

7 years agoMerge "disable versioning for objectAnimator to support path motion"
Tenghui Zhu [Wed, 22 Mar 2017 17:34:25 +0000 (17:34 +0000)]
Merge "disable versioning for objectAnimator to support path motion"

7 years agoMerge "Autofill a manual request directly when it only has one dataset."
TreeHugger Robot [Wed, 22 Mar 2017 17:33:55 +0000 (17:33 +0000)]
Merge "Autofill a manual request directly when it only has one dataset."

7 years agoMerge "Don't call setAutofillId() when populating virtual structure for Assit."
TreeHugger Robot [Wed, 22 Mar 2017 17:20:51 +0000 (17:20 +0000)]
Merge "Don't call setAutofillId() when populating virtual structure for Assit."

7 years agoMerge "Add support for tinting icon menus"
Kirill Grouchnikov [Wed, 22 Mar 2017 17:07:29 +0000 (17:07 +0000)]
Merge "Add support for tinting icon menus"

7 years agoUpdate AccountManager JavaDoc.
Dmitry Dementyev [Mon, 20 Mar 2017 17:57:01 +0000 (10:57 -0700)]
Update AccountManager JavaDoc.

Test: none.
Change-Id: Ib996d9c995c75adc4ec755a4fbd359eddbf43e70

7 years agoMerge "When snapshots are disabled, fill it with single color."
Jorim Jaggi [Wed, 22 Mar 2017 17:02:55 +0000 (17:02 +0000)]
Merge "When snapshots are disabled, fill it with single color."

7 years agoUpdate “don’t snooze” in expanded snooze menu to cancel
Mady Mellor [Wed, 22 Mar 2017 16:57:35 +0000 (09:57 -0700)]
Update “don’t snooze” in expanded snooze menu to cancel

Test: manual - snooze notification, expand menu, note ‘cancel’ option
Bug: 36249627
Change-Id: I6ea834df0b0f93ed89b5b26dc54cc404402cd962

7 years agoUpdate FontFamily_Delegate following Change Ia23ee6a7
Jerome Gaillard [Wed, 22 Mar 2017 16:55:04 +0000 (16:55 +0000)]
Update FontFamily_Delegate following Change Ia23ee6a7

Test: layoutlib tests
Change-Id: I8815060f9bab65f913a0272e439f6c86a63acbcf

7 years agoFix crash on user switch.
Anthony Chen [Wed, 22 Mar 2017 16:54:37 +0000 (09:54 -0700)]
Fix crash on user switch.

Recent changes in SystemUI expects taht the navigation bar have a parent
view that is not the WindowManager. Inflate navigation_bar_window as the
parent view for the CarNavigationBar as this is the view that the
default StatusBar users.

Test: verified that user switching no longer results in a crash
Bug: 36070562
Change-Id: I3e9c2efd4caa7b36478e621bc2dd6f7e41ad7fbd

7 years agoMerge "Add API to disable snapshotting of activities"
Jorim Jaggi [Wed, 22 Mar 2017 16:42:52 +0000 (16:42 +0000)]
Merge "Add API to disable snapshotting of activities"

7 years agoDo not allow Tasks to influence orientation under some conditions.
Bryce Lee [Fri, 10 Mar 2017 22:14:03 +0000 (14:14 -0800)]
Do not allow Tasks to influence orientation under some conditions.

When all AppWindowTokens belonging to a Task are closing, it should
not be considered for orientation. Likewise, if a task is moving to
the bottom, it should also not be considered.

Change-Id: Ie387457c413d5360afbb0ac8edb112f81feab81b
Fixes: 35699615
Test: bit FrameworksServicesTests:com.android.server.wm.TaskStackTests#testClosingAppDifferentStackOrientation
Test: bit FrameworksServicesTests:com.android.server.wm.TaskStackTests#testMoveTaskToBackDifferentStackOrientation
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testTaskCloseRestoreOrientation
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testTaskMoveToBackOrientation

7 years agoMerge "Use only official pdfium APIs"
Philip P. Moltmann [Wed, 22 Mar 2017 16:20:35 +0000 (16:20 +0000)]
Merge "Use only official pdfium APIs"

7 years agoRevive old method to prevent crash internal app.
Seigo Nonaka [Wed, 22 Mar 2017 16:14:33 +0000 (09:14 -0700)]
Revive old method to prevent crash internal app.

Bug: 36509029
Test: N/A
Change-Id: I4e04847de7b61a790323257c09da9a960a6689d5

7 years agoMerge "Don't unlock the work profile if it is turned off."
TreeHugger Robot [Wed, 22 Mar 2017 16:11:42 +0000 (16:11 +0000)]
Merge "Don't unlock the work profile if it is turned off."

7 years agoRemoving per-user PiP component.
Winson Chung [Wed, 22 Mar 2017 05:16:42 +0000 (22:16 -0700)]
Removing per-user PiP component.

- This was added in ag/923778 for TV, where the TV recents activity, which
  is started per-user, needed to reference the PiP bounds to coordinate the
  layout of the PiP UI in recents.  As a result of that change, the PiP
  manager for both phones and TV was being instantiated multiple times,
  once for the primary user, and another for secondary/managed users.  With
  each instantiation of the PipManager, we were re-registering the input
  consumer, and once the process was killed, the input consumer was not
  being cleaned up correctly and it not longer was registered with the
  primary SystemUI which drives the PiP.

  As of ag/1964066, the TV recents code is removed, so we can now safely
  remove the PipUI component for secondary users as well, ensuring only a
  single PipManager/InputConsumerController instance.

  This does not prevent PiP from working in secondary users, but only
  leaves the input consumer and menu controller in the primary user's
  SystemUI.
- Fix some crashes when interacting with the PiP in a secondary user,
  all communication between the menu controller and the menu activity
  should be done in a parcelable way as the menu activity runs per-user
- Adding exception when the PipUI component is not created for the primary
  user
- Initial changes to dump input consumers in WM to be able to correlate
  them with SysUI's state

Bug: 35792308
Test: Ensure PiP component is not started for secondary user, verify that
      it still works on secondary users

Change-Id: I3df10860227498bc37799ad296f0a4b71b87d30e
Signed-off-by: Winson Chung <winsonc@google.com>
7 years agoDon't bind incorrect services.
Julia Reynolds [Tue, 21 Mar 2017 21:34:25 +0000 (17:34 -0400)]
Don't bind incorrect services.

It's possible for system apps to put the wrong types of managed
services in a managed services setting; guard against that better
to prevent log spam.

Test: cts verifier, while setting is in a bad state.
Change-Id: Id836df1a2dbb29426bcb304e379c1cc5bb3dc485

7 years agoMerge "Unhide Typeface construction APIs."
TreeHugger Robot [Wed, 22 Mar 2017 15:40:11 +0000 (15:40 +0000)]
Merge "Unhide Typeface construction APIs."

7 years agoPlayerBase: more general exception catching in release
Jean-Michel Trivi [Wed, 22 Mar 2017 15:39:42 +0000 (08:39 -0700)]
PlayerBase: more general exception catching in release

When stopping AppOps watching in the player release, catch
  any exception to be safer.

Test: see bug repro steps
Bug: 36240191
Change-Id: I8e11cfc12c305878699dc57131e35e2a98eb7b16

7 years agoWhen snapshots are disabled, fill it with single color.
Jorim Jaggi [Tue, 14 Mar 2017 17:21:40 +0000 (18:21 +0100)]
When snapshots are disabled, fill it with single color.

Test: Launch DisableScreenshotsActivity, go to recents, make sure
content is blue. Reopen activity from home, make sure starting
window is blue.

Bug: 31339431
Change-Id: I29689774c3cdcb784d8f5bfa4f947a6f35b91e01

7 years agoDon't call setAutofillId() when populating virtual structure for Assit.
Felipe Leme [Wed, 22 Mar 2017 15:26:29 +0000 (08:26 -0700)]
Don't call setAutofillId() when populating virtual structure for Assit.

Change-Id: Ia96b5fd6ed7b8f7909b9df59cee57f606a0b37da
Fixes: 36503715
Test: manual verification

7 years agoMerge "Null check! Now with a test"
TreeHugger Robot [Wed, 22 Mar 2017 15:20:31 +0000 (15:20 +0000)]
Merge "Null check! Now with a test"

7 years agoMerge "Move global actions to sysui and add plugin interface"
TreeHugger Robot [Wed, 22 Mar 2017 15:06:42 +0000 (15:06 +0000)]
Merge "Move global actions to sysui and add plugin interface"

7 years agoAdd support for tinting icon menus
Kirill Grouchnikov [Tue, 21 Mar 2017 17:52:09 +0000 (13:52 -0400)]
Add support for tinting icon menus

Test: CTS tests in separate CL (same topic)
Bug: 31545315
Change-Id: I8877c77dab9b7b229b4246012b9380beadeb4790

7 years agoAdd API to disable snapshotting of activities
Jorim Jaggi [Wed, 22 Feb 2017 15:45:48 +0000 (16:45 +0100)]
Add API to disable snapshotting of activities

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotControllerTest
Test: Launch DisableScreenshotsActivity, go to recents, make sure
content is white.
Bug: 31339431

Change-Id: I329925d2fca389e561da3389a67fe888b5bb1033

7 years agoMerge "Move Accounts NotificationChannel earlier, before clearCallingIdentity"
TreeHugger Robot [Wed, 22 Mar 2017 14:51:24 +0000 (14:51 +0000)]
Merge "Move Accounts NotificationChannel earlier, before clearCallingIdentity"

7 years agoMerge "Allow the Instant App installer to be dynamic"
Todd Kennedy [Wed, 22 Mar 2017 14:27:38 +0000 (14:27 +0000)]
Merge "Allow the Instant App installer to be dynamic"

7 years agoMerge "Allow channels to have a user visible description."
TreeHugger Robot [Wed, 22 Mar 2017 14:03:56 +0000 (14:03 +0000)]
Merge "Allow channels to have a user visible description."

7 years agoMove global actions to sysui and add plugin interface
Jason Monk [Wed, 22 Mar 2017 00:33:59 +0000 (20:33 -0400)]
Move global actions to sysui and add plugin interface

 - Move default global actions ui to sysui
 - Add fallback legacy interface in case sysui breaks
 - Switch to fallback if sysui dies or isn't responding

Test: Long-press power
Change-Id: I943522611de5dbbee61e66c67cf3a56379091e97

7 years agoMerge "XML Support for non system font providers"
TreeHugger Robot [Wed, 22 Mar 2017 13:22:36 +0000 (13:22 +0000)]
Merge "XML Support for non system font providers"

7 years agoMerge "Explicitly rebind to a transport after timeout"
TreeHugger Robot [Wed, 22 Mar 2017 13:18:31 +0000 (13:18 +0000)]
Merge "Explicitly rebind to a transport after timeout"

7 years agoDon't unlock the work profile if it is turned off.
Andrew Scull [Fri, 3 Mar 2017 15:38:48 +0000 (15:38 +0000)]
Don't unlock the work profile if it is turned off.

Test: Turn off work, lock and unlock device with PIN/password/pattern,
turn on work and now you get a screen lock prompt.
Test: runtest frameworks-services -c com.android.server.LockSettingsServiceTests

Change-Id: I0c6946af4ffb1546ffbd4d80c11fa4b8ab5555bc

7 years agoXML Support for non system font providers
Clara Bayarri [Tue, 21 Feb 2017 18:19:11 +0000 (18:19 +0000)]
XML Support for non system font providers

The certs needed to identify non preinstalled providers
can now be declared in XML, using a resources array.

Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
runtest --path frameworks/base/core/tests/coretests/src/android/content/res/FontResourcesParserTest.java
Bug: 35025705
Change-Id: Ibf12ad409aa5a873ddb32b1383c147728e664c23

7 years agoExplicitly rebind to a transport after timeout
Michal Karpinski [Mon, 6 Mar 2017 17:24:57 +0000 (17:24 +0000)]
Explicitly rebind to a transport after timeout

When a TransportConnection received onServiceDisconnected() we give automatic rebinding
a chance, but if it doesn't happen within a few minutes we take matters into our hands
and attempt to rebind explicitly.
The timeout is significantly lower if the device is still unprovisioned - this is to increase
chances of proper transport binding during the setup process.

Bug: 34464359
Bug: 30964151
Test: manual, by crashing gms and gms.persistent process with "adb shell cmd activity crash #pid"
      and waiting for timeout to kick in
Change-Id: Ia7e5b0e54faf48ba8566f50057a3cae8bb3ab137

7 years agoMerge "Use getPackageInfoAsUser in requestBufferForProcess"
TreeHugger Robot [Wed, 22 Mar 2017 09:46:44 +0000 (09:46 +0000)]
Merge "Use getPackageInfoAsUser in requestBufferForProcess"

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc...
Daichi Hirono [Wed, 22 Mar 2017 08:04:27 +0000 (08:04 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc am: 42d6843aa4
am: 654d7c498c  -s ours

Change-Id: I43e6660d0578dcb8f8d9f741466b0b51a8f40605

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc
Daichi Hirono [Wed, 22 Mar 2017 07:59:54 +0000 (07:59 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data." am: 7b26041ccc
am: 42d6843aa4

Change-Id: Idc1b507555415d467669c7e1d1c9035b449de763

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data."
Daichi Hirono [Wed, 22 Mar 2017 07:55:57 +0000 (07:55 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data."
am: 7b26041ccc

Change-Id: Ie747a28fe588c15789d965d6274cb717ea9a5fb0

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data."
Treehugger Robot [Wed, 22 Mar 2017 07:47:19 +0000 (07:47 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data."

7 years agoMerge "Remove mediacodec from NATIVE_STACKS_OF_INTEREST."
TreeHugger Robot [Wed, 22 Mar 2017 06:15:34 +0000 (06:15 +0000)]
Merge "Remove mediacodec from NATIVE_STACKS_OF_INTEREST."

7 years agoStop holding mProxyLock while downloading PAC script data.
Daichi Hirono [Fri, 17 Mar 2017 00:12:12 +0000 (09:12 +0900)]
Stop holding mProxyLock while downloading PAC script data.

Holding PacManager#mProxyLock for long time eventually causes ANR when
launching new applications.

1. ActivityThread#handleBindApplication blocks until

   ActivityThread#handleBindApplication
   -> ConnectivityService#getProxyForNetwork()
   -> ConnectivityService#getDefaultProxy()

  obtains the lock of ConnectivityService#mProxyLock

2. ConnectivityService#mProxyLock can be held by
   ConnectivityService#setGlobalProxy() running on another thread until

   ConnectivityService#setGlobalProxy()
   -> ConnectivityService#sendProxyBroadcast()
   -> PacManager#setCurrentProxyScriptUrl()

  obtains the lock of PacManager#mProxyLock

3. Before the CL, PacManager#mProxyLock could be held by
   mPacDownloader#run() on mNetThread until downloading a PAC script
   completed.

The CL fixes the step 3 so that mPacDownloader#run does not keep the
lock of PacManager#mProxyLock. It eventually fixes long blocking at
ActivityThread#handleBindApplication and ANR when launching an
application.

Bug: 36317236
Test: Build succeeded
Merged-In: I864e41e1142178681f8f1b4fb7750d37e3ab2076
Change-Id: I864e41e1142178681f8f1b4fb7750d37e3ab2076

7 years agoMerge "Revert "Move expensive TextClock operations to onAttach""
TreeHugger Robot [Wed, 22 Mar 2017 05:42:53 +0000 (05:42 +0000)]
Merge "Revert "Move expensive TextClock operations to onAttach""

7 years agoMerge "Stop holding mProxyLock while downloading PAC script data."
TreeHugger Robot [Wed, 22 Mar 2017 05:09:02 +0000 (05:09 +0000)]
Merge "Stop holding mProxyLock while downloading PAC script data."

7 years agoStop holding mProxyLock while downloading PAC script data.
Daichi Hirono [Fri, 17 Mar 2017 00:12:12 +0000 (09:12 +0900)]
Stop holding mProxyLock while downloading PAC script data.

Holding PacManager#mProxyLock for long time eventually causes ANR when
launching new applications.

1. ActivityThread#handleBindApplication blocks until

   ActivityThread#handleBindApplication
   -> ConnectivityService#getProxyForNetwork()
   -> ConnectivityService#getDefaultProxy()

  obtains the lock of ConnectivityService#mProxyLock

2. ConnectivityService#mProxyLock can be held by
   ConnectivityService#setGlobalProxy() running on another thread until

   ConnectivityService#setGlobalProxy()
   -> ConnectivityService#sendProxyBroadcast()
   -> PacManager#setCurrentProxyScriptUrl()

  obtains the lock of PacManager#mProxyLock

3. Before the CL, PacManager#mProxyLock could be held by
   mPacDownloader#run() on mNetThread until downloading a PAC script
   completed.

The CL fixes the step 3 so that mPacDownloader#run does not keep the
lock of PacManager#mProxyLock. It eventually fixes long blocking at
ActivityThread#handleBindApplication and ANR when launching an
application.

Bug: 36317236
Test: Build succeeded and manually set PAC script
Change-Id: I864e41e1142178681f8f1b4fb7750d37e3ab2076

7 years agoMerge "Explicitly call out email in "social" category."
TreeHugger Robot [Wed, 22 Mar 2017 04:22:15 +0000 (04:22 +0000)]
Merge "Explicitly call out email in "social" category."

7 years agoMerge "Generalize min/max docs."
TreeHugger Robot [Wed, 22 Mar 2017 04:21:40 +0000 (04:21 +0000)]
Merge "Generalize min/max docs."

7 years agoMerge "Block CE SharedPreferences access before unlocked."
TreeHugger Robot [Wed, 22 Mar 2017 03:58:32 +0000 (03:58 +0000)]
Merge "Block CE SharedPreferences access before unlocked."

7 years agoMerge "Deprecate EXTRA_STREAM."
TreeHugger Robot [Wed, 22 Mar 2017 03:51:54 +0000 (03:51 +0000)]
Merge "Deprecate EXTRA_STREAM."

7 years agoMerge "Better ContentProvider error messages."
TreeHugger Robot [Wed, 22 Mar 2017 03:16:57 +0000 (03:16 +0000)]
Merge "Better ContentProvider error messages."

7 years agoMerge "Update PageViewCursor to correctly load window."
TreeHugger Robot [Wed, 22 Mar 2017 02:57:14 +0000 (02:57 +0000)]
Merge "Update PageViewCursor to correctly load window."

7 years agoUnhide Typeface construction APIs.
Seigo Nonaka [Wed, 22 Mar 2017 02:49:00 +0000 (19:49 -0700)]
Unhide Typeface construction APIs.

These APIs are necessary to construct Typeface from various combination
TTC index, variation settings, etc.

Bug: 33062398
Test: android.graphics.cts.TypefaceTest passes
Change-Id: Ie069700ed4f67efbec55331bef867f94d58e2a61

7 years agoGeneralize min/max docs.
Jeff Sharkey [Wed, 22 Mar 2017 02:47:56 +0000 (20:47 -0600)]
Generalize min/max docs.

Test: builds, boots
Bug: 35854472
Change-Id: Ic2505978f5872322affdc1a1ec23d84c7f1a1522

7 years agoMerge "Fix logic errors when checking the caller."
TreeHugger Robot [Wed, 22 Mar 2017 02:44:32 +0000 (02:44 +0000)]
Merge "Fix logic errors when checking the caller."

7 years agoBlock CE SharedPreferences access before unlocked.
Jeff Sharkey [Wed, 22 Mar 2017 02:31:51 +0000 (20:31 -0600)]
Block CE SharedPreferences access before unlocked.

Otherwise we'll end up "loading" an empty XML file because the errno
is ignored, and then we'll overwrite the real XML data later once
the user is unlocked.

Test: builds, boots
Bug: 36252783
Change-Id: If185e552f661894f79842afaa4e56ab4d796ce2c

7 years agoDeprecate EXTRA_STREAM.
Jeff Sharkey [Wed, 22 Mar 2017 02:23:36 +0000 (20:23 -0600)]
Deprecate EXTRA_STREAM.

ClipData is much more flexible, and it should be used instead of
EXTRA_STREAM moving forward.  To ensure that legacy apps continue
working, the OS will offer to promote/demote the ClipData value
from/to EXTRA_STREAM.  (We already had the promotion logic, but we
were missing the demotion logic.)

Test: builds, boots
Bug: 35293781
Change-Id: I82cd0b95cf021292282649290ab046cc310fe160

7 years agoMerge "Implement runtime account update notifications."
TreeHugger Robot [Wed, 22 Mar 2017 02:19:23 +0000 (02:19 +0000)]
Merge "Implement runtime account update notifications."

7 years agoMerge "Should use getApplicationInfoAsUser instead"
TreeHugger Robot [Wed, 22 Mar 2017 02:13:46 +0000 (02:13 +0000)]
Merge "Should use getApplicationInfoAsUser instead"

7 years agoRevert "Move expensive TextClock operations to onAttach"
Ian Pedowitz [Wed, 22 Mar 2017 02:09:13 +0000 (02:09 +0000)]
Revert "Move expensive TextClock operations to onAttach"

This reverts commit dffe6fdfe1e25e3bad52c00ff6c978deb0327852.

Bug: 36472151
Change-Id: I98ba047bd4225d82414425a40e9a2e50c4473bf9

7 years agoMerge "Declare privileged permissions of Live TV app"
TreeHugger Robot [Wed, 22 Mar 2017 01:56:34 +0000 (01:56 +0000)]
Merge "Declare privileged permissions of Live TV app"