OSDN Git Service

android-x86/frameworks-base.git
7 years agoDiscover primary service by UUID for PTS tests (4/4)
Jakub Pawlowski [Tue, 16 May 2017 17:56:35 +0000 (10:56 -0700)]
Discover primary service by UUID for PTS tests (4/4)

Bug: 38123054
Test: manual
Change-Id: I89e088e60f4325f1ece59d22efda0c907a3b716a
(cherry picked from commit fe2bf16a2b287c3c748cd6fa7c14026becfe83ff)

7 years agoMerge "Always add the instant app installer" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 20:39:39 +0000 (20:39 +0000)]
Merge "Always add the instant app installer" into oc-dev

7 years agoMerge "Fix broken retaildemo tests" into oc-dev
Christine Franks [Tue, 16 May 2017 20:34:35 +0000 (20:34 +0000)]
Merge "Fix broken retaildemo tests" into oc-dev

7 years agoMerge "Check for mAttachInfo nullness when getting the autofillable drawable." into...
TreeHugger Robot [Tue, 16 May 2017 19:38:32 +0000 (19:38 +0000)]
Merge "Check for mAttachInfo nullness when getting the autofillable drawable." into oc-dev

7 years agoMerge "Optimize hot launching recents" into oc-dev
Jorim Jaggi [Tue, 16 May 2017 19:34:45 +0000 (19:34 +0000)]
Merge "Optimize hot launching recents" into oc-dev

7 years agoAlways add the instant app installer
Todd Kennedy [Mon, 15 May 2017 17:25:02 +0000 (10:25 -0700)]
Always add the instant app installer

Even if we filter out an instant app because the caller doesn't
have access to it, always make sure to add the installer when
we have the possibility of an instant app.

NOTE: This does not have CTS tests since it's impossible to test
without involving the resolver. CTS tests will be added in MR1+
when we can make changes to the APIs and add the necessary methods
to mock out the resolver service.

Change-Id: I92c88eb04520c0c5e0c58db6d668ed0a0e552a35
Fixes: 38268052
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest

7 years agoMerge "Remove deprecated recommendation request code." into oc-dev
TreeHugger Robot [Tue, 16 May 2017 18:44:23 +0000 (18:44 +0000)]
Merge "Remove deprecated recommendation request code." into oc-dev

7 years agoMerge "catch USER_ALL in badging check" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 18:43:55 +0000 (18:43 +0000)]
Merge "catch USER_ALL in badging check" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 18:42:22 +0000 (18:42 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 18:39:54 +0000 (18:39 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoFix broken retaildemo tests
Christine Franks [Tue, 9 May 2017 18:10:31 +0000 (11:10 -0700)]
Fix broken retaildemo tests

Bug: 38162695
Test: runtest frameworks-services -c
com.android.server.retaildemo.RetailDemoModeServiceTest &&
runtest frameworks-services -c
com.android.server.retaildemo.PreloadAppsInstallerTest

Change-Id: Iac60202414753b3e04e89cb29271cbd150a3acdd

7 years agoMerge "ignore IllegalArgumentException during uninstall" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 18:26:14 +0000 (18:26 +0000)]
Merge "ignore IllegalArgumentException during uninstall" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 18:19:23 +0000 (18:19 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoCheck for mAttachInfo nullness when getting the autofillable drawable.
Felipe Leme [Tue, 16 May 2017 17:37:33 +0000 (10:37 -0700)]
Check for mAttachInfo nullness when getting the autofillable drawable.

Test: manual verification on Caviar (automated test will be added later)
Test: CtsAutoFillServiceTestCases pass

Bug: 38341498
Fixes:  38323841

Change-Id: I15cc792de87987cc19a229c2ab2dfc317877f7ec

7 years agocatch USER_ALL in badging check
Chris Wren [Fri, 12 May 2017 19:02:06 +0000 (15:02 -0400)]
catch USER_ALL in badging check

Bug: 38264652
Test: runtest systemui-notification
Change-Id: Id482ed4984eef83ad0e9876acda5addb65aca5f9

7 years agoMerge "Invoke BLKSECDISCARD to securely delete sensitive data" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 16:26:43 +0000 (16:26 +0000)]
Merge "Invoke BLKSECDISCARD to securely delete sensitive data" into oc-dev

7 years agoMerge "Also add starting window when activity is not alive" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 16:13:17 +0000 (16:13 +0000)]
Merge "Also add starting window when activity is not alive" into oc-dev

7 years agoignore IllegalArgumentException during uninstall
Todd Kennedy [Tue, 16 May 2017 16:10:07 +0000 (09:10 -0700)]
ignore IllegalArgumentException during uninstall

It's expected and normal to throw an IllegalArgumentException when
trying to uninstall a package that doesn't exist. Ignore it if it
gets thrown.

Bug: 38197362
Test: bit FrameworksCoreTests:android.content.pm.PackageManagerTests#testFlagFManifestI
Change-Id: Ie0d90010678b09c91747f6e5c4655691951ad3a9

7 years agoMerge "Remove internal listener when cloning" into oc-dev
Aurimas Liutikas [Tue, 16 May 2017 15:43:44 +0000 (15:43 +0000)]
Merge "Remove internal listener when cloning" into oc-dev

7 years agoOptimize hot launching recents
Jorim Jaggi [Fri, 12 May 2017 15:27:46 +0000 (17:27 +0200)]
Optimize hot launching recents

Rearrange how we generate the transition specs, which involves
creating a thumbnail on the mainthread (about 10ms on large
devices): First, we put launching the activity onto a handler
thread (with default priority), to free up the main thread. Then,
we immediately start generating the thumbnail such that when the
future calls us we have the generated spec already handy.

For that we need to be able to supply a specs future into
ActivityOptions, to avoid race conditions. Furthermore we need to
make sure not to call into WM while creating specs, to avoid WM
lock contention.

Test: App -> Recents -> Same app, inspect app transition logs
Test: Double tap recents for quick switching

Bug: 32668632
Change-Id: I6001e29145f8e56deb9c4ead46c53c87c9191436
Merged-In: Ic6ec65c2560f67cade3b5ddde9f79ee13e9ba32c

7 years agoMerge "Fix spinning TaskPersister" into oc-dev
Jorim Jaggi [Tue, 16 May 2017 15:13:28 +0000 (15:13 +0000)]
Merge "Fix spinning TaskPersister" into oc-dev

7 years agoMerge "Immediately report drawing" into oc-dev
Jorim Jaggi [Tue, 16 May 2017 15:01:29 +0000 (15:01 +0000)]
Merge "Immediately report drawing" into oc-dev

7 years agoMerge "Fix back stack problems due to postponed transitions" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 14:22:00 +0000 (14:22 +0000)]
Merge "Fix back stack problems due to postponed transitions" into oc-dev

7 years agoMerge "Fixes crash (race cond) when using toast that is immediately cancelled" into...
TreeHugger Robot [Tue, 16 May 2017 14:15:57 +0000 (14:15 +0000)]
Merge "Fixes crash (race cond) when using toast that is immediately cancelled" into oc-dev

7 years agoAlso add starting window when activity is not alive
Jorim Jaggi [Sun, 14 May 2017 22:05:54 +0000 (00:05 +0200)]
Also add starting window when activity is not alive

The fact whether the process is running or not is not necessarily
a reason to not show a starting window. Sometimes the process with
an activity gets killed, but later gets restarted because of some
broadcast or service without recreating the activity. In this
case, we still need a splash screen to hide the recreation delay,
which is usually as expensive as if the process is not running.

Test: Open Calendar, kill `pid calendar`, reopen it, make sure
starting window is shown.
Test: As above but with a couple of other apps - with and widhout
trampoline activities.
Test: Boot freshly and open a couple of apps from recents

Change-Id: I8c4f928fca77b5446cab55c89bc69adbaaaa8da3
Fixes: 37951698

7 years agoImmediately report drawing
Jorim Jaggi [Sat, 13 May 2017 00:00:31 +0000 (02:00 +0200)]
Immediately report drawing

No need to wait on the next relayout - this can only delay the
transition. Makes hot launches a lot more consistent.

However, this made it too fast! We then hit a race condition when
the app transition was already starting but no other layout was
done yet. When another layout was executed we noticed that we need
to report resized for the starting window, clearing it's drawn
state, which set startingDisplayed=false, which jumped the app
window animation to the end.

To fix this, make sure not to report another resized immediately
after the initial layout, as the client already knows the latest
(because it calls relayout at some point before it starts drawing).

Also fix "animating" async systrace for better analysis.

Test: Open/close size-mismatching task snapshot 100 times, ensure
no animation skipped.
Test: Look at app transition logs, ensure more consistent.
Test: Overall system sanity testing (open a couple of apps/dialogs
etc).

Bug: 32668632
Change-Id: Id795cd6a84f22e6a619089cb9554fc5033477ad2

7 years agoInvoke BLKSECDISCARD to securely delete sensitive data
Rubin Xu [Thu, 27 Apr 2017 16:01:05 +0000 (17:01 +0100)]
Invoke BLKSECDISCARD to securely delete sensitive data

Bug: 34600579
Test: manual - change device lock under synthetic password, verify
      old data on disk is erased.

Change-Id: I247bd1f095dd27335e671981f9e2d77e149af84f
Merged-In: I247bd1f095dd27335e671981f9e2d77e149af84f

7 years agoFix spinning TaskPersister
Jorim Jaggi [Tue, 16 May 2017 12:03:08 +0000 (14:03 +0200)]
Fix spinning TaskPersister

Wait on the lock if the queue is paused instead of
just spin-looping.

Test: Close app, make sure screenshot gets persisted.
Bug: 36631902
Change-Id: Id7940468391d6cdfc74bb9341c1639f72d469387

7 years agoFix broken DUN evaluation logic
Erik Kline [Mon, 15 May 2017 12:11:47 +0000 (21:11 +0900)]
Fix broken DUN evaluation logic

Test: as follows
    - built
    - booted
    - flashed
    - runtest frameworks-net passes
Bug: 32163131
Bug: 38152109
Bug: 38186915
Merged-In: Ib9a469b16a598c47b615a15fc7cce420bfe4b8b7
Merged-In: I293b4cd57dcd1968c2b38f4e92e24cc0d2e135a9
Change-Id: Id4803504e825290d62c0b51a2b9bd664dcef30b1
(cherry picked from commit 54f2f3704e4ccf2c70ff61aab4e7ea9d59918e46)

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 16 May 2017 07:22:41 +0000 (00:22 -0700)]
Import translations. DO NOT MERGE

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

7 years agoFixes crash (race cond) when using toast that is immediately cancelled
Svet Ganov [Tue, 16 May 2017 06:45:03 +0000 (23:45 -0700)]
Fixes crash (race cond) when using toast that is immediately cancelled

Running cancel after toast is shown and adding some UI stress (or sleep
on UI thread) causes a crash from toast when trying to add the toast
window to the display. The toast must be triggered from app that is
above N MR1 (25).

The steps that crash the app are:
1. Show toast (Toast.makeText(...).show()), window token is created
2. Immediately cancel toast (Toast.cancel()), window token is removed
3. Stall UI thread (Thread.sleep, heavy task), both show and cancel
events are queued to UI thread from window manager
4. Crash trying to add toast but no window token exists

In Toast:handleShow(), the mNextView is required to add the toast to
display, if the mNextView is null before posting to window manager, then
when handleShow() runs later, it will ignore adding the toast to
display. The issue before is that mNextView is set to null after cancel
runs back from window manager in UI thread but the show post will always
happen first. Therefore set mNextView to null at the beginning of
cancel will ignore adding the toast to display and avoid the crash.

Bug: 37606432

Test: manual - write an app to Toast.show(), Toast.cancel(), then
Thread.sleep(), set app's sdk usage above 25 (N MR1) and show the
toast

Change-Id: I352e296c47b1b8776c78b6b0943b1dc809963026

7 years agoMerge "MediaBrowser: Allow to connect while disconnecting" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 06:28:04 +0000 (06:28 +0000)]
Merge "MediaBrowser: Allow to connect while disconnecting" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 16 May 2017 03:38:18 +0000 (20:38 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Revert "Revert "O is API 26""" into oc-dev
Ian Pedowitz [Tue, 16 May 2017 03:32:56 +0000 (03:32 +0000)]
Merge "Revert "Revert "O is API 26""" into oc-dev

7 years agoMerge "Revert "Revert "Resource ID fixup.""" into oc-dev
Ian Pedowitz [Tue, 16 May 2017 03:32:29 +0000 (03:32 +0000)]
Merge "Revert "Revert "Resource ID fixup.""" into oc-dev

7 years agoMerge "Revert "Tweak test app makefile with extra resources"" into oc-dev
Kirill Grouchnikov [Tue, 16 May 2017 01:43:27 +0000 (01:43 +0000)]
Merge "Revert "Tweak test app makefile with extra resources"" into oc-dev

7 years agoRevert "Tweak test app makefile with extra resources"
Kirill Grouchnikov [Tue, 16 May 2017 01:34:15 +0000 (01:34 +0000)]
Revert "Tweak test app makefile with extra resources"

This reverts commit f0435e183906dc39432fb4c937854d3737de3adc.

Bug: 30240339
Change-Id: I6cc03188d5666eded5869c583db76e02b6f90794

7 years agoMerge "Update TimePicker mode switch icon." into oc-dev
TreeHugger Robot [Tue, 16 May 2017 01:13:57 +0000 (01:13 +0000)]
Merge "Update TimePicker mode switch icon." into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 16 May 2017 00:38:22 +0000 (17:38 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Support recursive static shared lib dependency" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 23:48:58 +0000 (23:48 +0000)]
Merge "Support recursive static shared lib dependency" into oc-dev

7 years agoMerge "Preserve non-floating state when entering pinned stack." into oc-dev
Rob Carr [Mon, 15 May 2017 23:17:30 +0000 (23:17 +0000)]
Merge "Preserve non-floating state when entering pinned stack." into oc-dev

7 years agoMerge "Tweak test app makefile with extra resources" into oc-dev
Kirill Grouchnikov [Mon, 15 May 2017 23:11:00 +0000 (23:11 +0000)]
Merge "Tweak test app makefile with extra resources" into oc-dev

7 years agoMerge "Require targetSdkVersion>=O for updated graphics driver packages" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 23:01:59 +0000 (23:01 +0000)]
Merge "Require targetSdkVersion>=O for updated graphics driver packages" into oc-dev

7 years agoUpdate TimePicker mode switch icon.
Aurimas Liutikas [Mon, 15 May 2017 22:24:16 +0000 (15:24 -0700)]
Update TimePicker mode switch icon.

Previously the icon was an event icon, but a clock icon is
more appropriate so we are switching to that instead.

Bug: 37351390
Test: Open time picker
Change-Id: I47e6caf3c341c10264168004628288fd00e4601a

7 years agoMerge "Changed alert window notifications to use single channel" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 22:25:38 +0000 (22:25 +0000)]
Merge "Changed alert window notifications to use single channel" into oc-dev

7 years agoSupport recursive static shared lib dependency
Svet Ganov [Mon, 15 May 2017 21:07:17 +0000 (14:07 -0700)]
Support recursive static shared lib dependency

Test: Updated the static shared lib CTS tests to verify that
      All static shared lib CTS tests pass

bug:35359862

Change-Id: Id4a0dabbc9d8e98962e92b6f537f6ffffa63b585

7 years agoRequire targetSdkVersion>=O for updated graphics driver packages
Jesse Hall [Mon, 8 May 2017 18:28:01 +0000 (11:28 -0700)]
Require targetSdkVersion>=O for updated graphics driver packages

In O, graphics drivers are loaded into a new restricted linker
namespace. Drivers built for previous versions of the OS may not work
under those restrictions, so require an updated driver package to
declare compatibility by setting targetSdkVersion >= O.

Bug: 34228255
Test: manually construct packages with and without
      targetSdkVersion >= O, confirm driver is used/not-used as
      expected.
Change-Id: I4518360433a6de5c6e1e792a6eedddf8c6bf4394

7 years agoMerge "Don't request account access for apps if it is explictly made not visible...
TreeHugger Robot [Mon, 15 May 2017 21:07:35 +0000 (21:07 +0000)]
Merge "Don't request account access for apps if it is explictly made not visible to them." into oc-dev

7 years agoMerge "Post setSwitchingUser to main thread" into oc-dev
Evan Rosky [Mon, 15 May 2017 20:52:40 +0000 (20:52 +0000)]
Merge "Post setSwitchingUser to main thread" into oc-dev

7 years agoMerge "Keyguard shouldn't listen to FP if bouncer showing and keyguard dismissing...
TreeHugger Robot [Mon, 15 May 2017 20:52:21 +0000 (20:52 +0000)]
Merge "Keyguard shouldn't listen to FP if bouncer showing and keyguard dismissing" into oc-dev

7 years agoFix back stack problems due to postponed transitions
George Mount [Mon, 15 May 2017 20:45:22 +0000 (13:45 -0700)]
Fix back stack problems due to postponed transitions

Bug 38277003

The back stack was being moved while executing operations and
then again when the postponed transaction was executed. It should
only be done once.

Test: Ie47e1f2f158325b9cfd6edb5c40c65d764ff9056
Support Lib Change: I3159c2345a7b77fa82f1c602f4639f51b5a47980

Change-Id: I3b7a032e7e8a9aec565157d42dcaa7232b256ae8

7 years agoMerge "Center switch vertically with primary text" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 20:10:58 +0000 (20:10 +0000)]
Merge "Center switch vertically with primary text" into oc-dev

7 years agoChanged alert window notifications to use single channel
Wale Ogunwale [Mon, 15 May 2017 15:02:18 +0000 (08:02 -0700)]
Changed alert window notifications to use single channel

Per UX request.

Change-Id: Iefe1be52743519af5ee1481b59613c87f16bdf7d
Fixes: 37422870
Test: Verify alert window notification channel.

7 years agoMerge "Fix drm hal resource leaks" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 19:54:09 +0000 (19:54 +0000)]
Merge "Fix drm hal resource leaks" into oc-dev

7 years agoMerge "Ensure that we check against the pending state while suspended." into oc-dev
Winson Chung [Mon, 15 May 2017 19:31:06 +0000 (19:31 +0000)]
Merge "Ensure that we check against the pending state while suspended." into oc-dev

7 years agoKeyguard shouldn't listen to FP if bouncer showing and keyguard dismissing
Kevin Chyn [Thu, 4 May 2017 05:24:31 +0000 (22:24 -0700)]
Keyguard shouldn't listen to FP if bouncer showing and keyguard dismissing

There's a race condition if user unlocks from bouncer and an app underneath
uses FP does onResume()

If a user has an application that's authenticating via FP underneath
keyguard and the user dismisses keyguard via bouncer, the app underneath
will get kicked out since onKeyguardVisibilityChanged(false) calls
shouldListenForFingerprint() during this race.

Keyguard shouldn't listen to FP if bouncer is showing but keyguard is
dismissing

Fixes: 37967985
Test: 1) open FP settings
2) enter keyguard and go to bouncer
3) unlock keyguard via pin/pattern/password (NON FP method)
4) tap any finger on sensor (should vibrate)

Merged-In: Ie38d55e6a1ec9b49f9df0c7520d0bc451315c161
Change-Id: Ie38d55e6a1ec9b49f9df0c7520d0bc451315c161

7 years agoMerge "Map isolated processes to correct uid" into oc-dev
Amith Yamasani [Mon, 15 May 2017 17:36:30 +0000 (17:36 +0000)]
Merge "Map isolated processes to correct uid" into oc-dev

7 years agoMerge "Fix Shortcut crash due to invalid Icon type (e.g., all adaptive bitmap shortcu...
Hyunyoung Song [Mon, 15 May 2017 17:36:09 +0000 (17:36 +0000)]
Merge "Fix Shortcut crash due to invalid Icon type (e.g., all adaptive bitmap shortcuts)" into oc-dev

7 years agoFix Shortcut crash due to invalid Icon type (e.g., all adaptive bitmap shortcuts)
Hyunyoung Song [Mon, 15 May 2017 17:12:11 +0000 (10:12 -0700)]
Fix Shortcut crash due to invalid Icon type (e.g., all adaptive bitmap shortcuts)

b/38304824
Test: cts tests in ag/2262246 and also full build and tried the system image.

Change-Id: I8f021aa2bb1a0e99597bc00064ab1e9d85569bcb

7 years agoPost setSwitchingUser to main thread
Evan Rosky [Thu, 11 May 2017 00:47:45 +0000 (17:47 -0700)]
Post setSwitchingUser to main thread

touching view hierarchy should only occur on UI thread

Bug: 37167272
Test: keyguard still works, used Log to see that switching
      still gets called
Change-Id: I45ed9894a8f08c38da40de44f84e99cddb683014

7 years agoMerge "Add null check to a11y call." into oc-dev
Phil Weaver [Mon, 15 May 2017 16:56:24 +0000 (16:56 +0000)]
Merge "Add null check to a11y call." into oc-dev

7 years agoMerge "Use placeholderCount-1 if using default layout." into oc-dev
Sumir Kataria [Mon, 15 May 2017 16:35:26 +0000 (16:35 +0000)]
Merge "Use placeholderCount-1 if using default layout." into oc-dev

7 years agoFix drm hal resource leaks
Jeff Tinker [Tue, 9 May 2017 02:22:06 +0000 (19:22 -0700)]
Fix drm hal resource leaks

bug:36408047
test: manual testing to verify leaks are fixed
Change-Id: Ic6a29572874a9fe30f36e7fdabb68d2ddeffb278

7 years agoMerge "Fix a deadlock in LockSettingsService" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 16:01:51 +0000 (16:01 +0000)]
Merge "Fix a deadlock in LockSettingsService" into oc-dev

7 years agoCenter switch vertically with primary text
Geoffrey Pitsch [Fri, 12 May 2017 18:19:29 +0000 (14:19 -0400)]
Center switch vertically with primary text

Fixes: 38248336
Test: manual
Change-Id: I48bfb244abff47c16ca1f24c0027448a2a238015

7 years agoMerge "Fix number of channels in inline notification settings" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 14:18:17 +0000 (14:18 +0000)]
Merge "Fix number of channels in inline notification settings" into oc-dev

7 years agoFix broken MenuItem coretests
Peeyush Agarwal [Thu, 11 May 2017 13:19:22 +0000 (14:19 +0100)]
Fix broken MenuItem coretests

- Fix MenuItemImpl setShortcut bug caused when method signature was
changed after API review
- Remove outdated MenuItem coretests and move others to CTS

Bug: 38114634
Test: Run `cts-tradefed run cts-dev -m CtsViewTestCases -t
android.view.cts.MenuTest`

Change-Id: Iebb7e314cbb3f812fcfeb3f95797f1cf1bcfbae2
(cherry picked from commit d70d2e6efccf186af08289eb5dc5fe1835b753ed)

7 years agoFix a deadlock in LockSettingsService
Rubin Xu [Mon, 15 May 2017 10:50:09 +0000 (11:50 +0100)]
Fix a deadlock in LockSettingsService

Order of taking locks in LSS: mSeparateChallengeLock -> mSpManager -> this.
Since getGateKeeperService().getSecureUserId() will end up calling
getSeparateProfileChallengeEnabled() which tries to acquire mSeparateChallengeLock
, we shouldn't be holding this lock while calling getSecureUserId()
Also spell out the order of taking locks in a comment.

Test: while device lockscreen is being changed, run "adb shell dumpsys lock_settings"
      and verify device is not locked up.
Bug: 37663848

Change-Id: I6b780ab5d1e33b07392f0ab0df29ecc3956f89ff

7 years agoMerge "Hadler USER_ALL when uninstalling static shared lib" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 13:13:46 +0000 (13:13 +0000)]
Merge "Hadler USER_ALL when uninstalling static shared lib" into oc-dev

7 years agoMerge "Query for static shared libs as well when needed" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 11:13:51 +0000 (11:13 +0000)]
Merge "Query for static shared libs as well when needed" into oc-dev

7 years agoHadler USER_ALL when uninstalling static shared lib
Svet Ganov [Mon, 15 May 2017 09:48:22 +0000 (02:48 -0700)]
Hadler USER_ALL when uninstalling static shared lib

Test: manual - cannot uninstall an lib with cross user dependency
       All static shared lib CTS tests pass

bug:36632264

Change-Id: Idd11405b27ccd8cacc2a50814e1317356689b7d1

7 years agoMerge "Relayout before creating surface" into oc-dev
Jorim Jaggi [Mon, 15 May 2017 10:24:44 +0000 (10:24 +0000)]
Merge "Relayout before creating surface" into oc-dev

7 years agoRelayout before creating surface
Jorim Jaggi [Fri, 12 May 2017 23:24:31 +0000 (01:24 +0200)]
Relayout before creating surface

Since we create starting window surfaces immediately (instead of
waiting for app visibility), we hit a weird corner case in which
the surface was created before the window was laid out. Thus, a
little bit later, we had to call SurfaceControl.setSize, which
made the whole transaction blocking, meaning that we blocked until
the next vsync before returning to the client (starting window).

Fix this by running a layout if the window wasn't laid out yet.

Test: Open hot app, see latency go down by an average of 8ms (up
to 16ms better!)

Bug: 32668632
Change-Id: I9817afc72127e32d7f8f4e497e0dccd7f180a9c0

7 years agoQuery for static shared libs as well when needed
Svet Ganov [Mon, 15 May 2017 08:17:05 +0000 (01:17 -0700)]
Query for static shared libs as well when needed

System components can see static shared libs but have to
explicitly request that. This change explicitly requests
static shared libs as well in the package manager shell
command, the package installer and the package manager
where needed.

Test: Static shared lib CTS tests pass

bug:36632271

Change-Id: I26804571be327888b830e2f6bccdcbaa820f763c

7 years agoMerge "Clear calling identity before binding instant app resolver" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 09:18:22 +0000 (09:18 +0000)]
Merge "Clear calling identity before binding instant app resolver" into oc-dev

7 years agoMediaBrowser: Allow to connect while disconnecting
Sungsoo [Thu, 20 Apr 2017 07:51:31 +0000 (16:51 +0900)]
MediaBrowser: Allow to connect while disconnecting

Bug: 37241378
Test: manual, passed MediaBrowserTest and MediaBrowserServiceTest
Change-Id: I8428c4fcb9855f1a4d898419d7f1bb09495eb8d9

7 years agoMerge "CaptivePortal: login activity UI improvements" into oc-dev
Hugo Benichi [Mon, 15 May 2017 04:35:41 +0000 (04:35 +0000)]
Merge "CaptivePortal: login activity UI improvements" into oc-dev

7 years agoMerge "Fix MediaSessionManager.Callback to be called with the media button session...
TreeHugger Robot [Mon, 15 May 2017 04:28:05 +0000 (04:28 +0000)]
Merge "Fix MediaSessionManager.Callback to be called with the media button session" into oc-dev

7 years agoMerge "Launch voice assistant by the KEYCODE_MEDIA_PLAY_PAUSE" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 04:27:32 +0000 (04:27 +0000)]
Merge "Launch voice assistant by the KEYCODE_MEDIA_PLAY_PAUSE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Mon, 15 May 2017 04:23:58 +0000 (04:23 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoCaptivePortal: login activity UI improvements
Hugo Benichi [Thu, 11 May 2017 00:58:14 +0000 (09:58 +0900)]
CaptivePortal: login activity UI improvements

Similarly to commit 2e0915f14384901f25a41d698b39ef0add201550 for the
carrier portal login, this patch changes the default settings of the
webview used for the system captive portal login activity to allow
better user experience on "wide" login pages designed for desktop.

Test: manually tested with captive portals.
Bug: 318139361922894636532213
Change-Id: Ib84fd351e47e951d24f297bc7de1b035b51cf24f
Merged-In: I2579994da37f3b0f4c08e24e59c81f31835ab832

(cherry picked from commit f7eea406c950e447608c6f62de05158334682365)

7 years agoMerge "Fixed and improved (for reuse) PendingRequest lifecycle." into oc-dev
TreeHugger Robot [Sun, 14 May 2017 20:50:40 +0000 (20:50 +0000)]
Merge "Fixed and improved (for reuse) PendingRequest lifecycle." into oc-dev

7 years agoStart a new session on manual request after session is "gone".
Felipe Leme [Thu, 11 May 2017 17:10:49 +0000 (10:10 -0700)]
Start a new session on manual request after session is "gone".

When the autofill service returns a null FillResponse, the session is marked
"gone" because the service cannot autofill it. But there might be cases where
the view structure change and it's now autofillable, so need to allow users
to manually request autofill again in such cases.

Fixes: 38205945
Test: CtsAutoFillServiceTestCases pass
Test: LoginActivityTest.testAutofillManuallyAfterServiceReturnedNoDatasets()
Test: LoginActivityTest.testAutofillManuallyAndSaveAfterServiceReturnedNoDatasets()

Change-Id: I9b23c255e563dd0646bf266d31ddb10dcc4f7f6d

7 years agoMerge "Don't print sensitive data on AssistStructure.dump()" into oc-dev
TreeHugger Robot [Sun, 14 May 2017 03:45:18 +0000 (03:45 +0000)]
Merge "Don't print sensitive data on AssistStructure.dump()" into oc-dev

7 years agoDon't print sensitive data on AssistStructure.dump()
Felipe Leme [Fri, 12 May 2017 00:46:36 +0000 (17:46 -0700)]
Don't print sensitive data on AssistStructure.dump()

Test: manual verification

Bug: 38205945
Change-Id: Ic184ee6da313a2c0f8e0dd11979f6985d8023140

7 years agoMerge "Fix issue #38210653: Few more tweaks of job scheduler" into oc-dev
Dianne Hackborn [Sat, 13 May 2017 20:08:19 +0000 (20:08 +0000)]
Merge "Fix issue #38210653: Few more tweaks of job scheduler" into oc-dev

7 years agoMerge "Fix the status icon colors in QS" into oc-dev
Jason Monk [Sat, 13 May 2017 13:10:52 +0000 (13:10 +0000)]
Merge "Fix the status icon colors in QS" into oc-dev

7 years agoMerge changes I7b5504d0,I10c263dc into oc-dev
TreeHugger Robot [Sat, 13 May 2017 12:57:18 +0000 (12:57 +0000)]
Merge changes I7b5504d0,I10c263dc into oc-dev

* changes:
  Get rid of a lot of binder calls
  Fix recents entry delay

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 13 May 2017 11:11:12 +0000 (04:11 -0700)]
Import translations. DO NOT MERGE

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

7 years agoGet rid of a lot of binder calls
Jorim Jaggi [Fri, 12 May 2017 14:32:58 +0000 (16:32 +0200)]
Get rid of a lot of binder calls

Lead to delays when entering recents.

Test: Open recents
Bug: 32668632
Change-Id: I7b5504d0c11208d9c4d55de2eace6407d186f25c

7 years agoFix recents entry delay
Jorim Jaggi [Fri, 12 May 2017 13:40:43 +0000 (15:40 +0200)]
Fix recents entry delay

- Start loading things after we drew our first frame.
- Don't load high res task until low res tasks have been loaded:
In case the snapshot is already in cache in system_server the
low-res task loader will load the full res snapshot, leading to
GC pressure due to registerNativeAlloc. Now, if both task loader
load the same snapshot at the same time we are very likely
to trigger a blocking GC alloc.

Test: Open recents, look at systrace
Change-Id: I10c263dc8929742611ad9fbb32f65bc8ac3100bd
Fixes: 36851903
Bug: 32668632

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 13 May 2017 06:39:13 +0000 (06:39 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Couple autofill fixes." into oc-dev
TreeHugger Robot [Sat, 13 May 2017 03:54:18 +0000 (03:54 +0000)]
Merge "Couple autofill fixes." into oc-dev

7 years agoMerge "Allow users to quickly focus the minute field in TimePicker." into oc-dev
TreeHugger Robot [Sat, 13 May 2017 03:37:35 +0000 (03:37 +0000)]
Merge "Allow users to quickly focus the minute field in TimePicker." into oc-dev

7 years agoMerge "Fix recent apps in system UI for Skia pipeline" into oc-dev
TreeHugger Robot [Sat, 13 May 2017 01:41:53 +0000 (01:41 +0000)]
Merge "Fix recent apps in system UI for Skia pipeline" into oc-dev

7 years agoMerge "Introduce result ranges for activity start return results." into oc-dev
Bryce Lee [Sat, 13 May 2017 01:41:32 +0000 (01:41 +0000)]
Merge "Introduce result ranges for activity start return results." into oc-dev

7 years agoRemove internal listener when cloning
Doris Liu [Sat, 13 May 2017 01:32:54 +0000 (18:32 -0700)]
Remove internal listener when cloning

BUG: 38270215
Test:  adb shell am instrument -w
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ia80d5f8958e320ad7d51ef7a08168763c8988146

7 years agoMerge "OMS: Setup state for users on boot and when added" into oc-dev
TreeHugger Robot [Sat, 13 May 2017 00:35:39 +0000 (00:35 +0000)]
Merge "OMS: Setup state for users on boot and when added" into oc-dev

7 years agoMerge "Add new reason code for IMS Call ended during conference merge process" into...
Jayachandran Chinnakkannu [Sat, 13 May 2017 00:35:05 +0000 (00:35 +0000)]
Merge "Add new reason code for IMS Call ended during conference merge process" into oc-dev

7 years agoMerge "Revert "Respect PopupWindow.setOverlapAnchor when above anchor"" into oc-dev
TreeHugger Robot [Sat, 13 May 2017 00:34:34 +0000 (00:34 +0000)]
Merge "Revert "Respect PopupWindow.setOverlapAnchor when above anchor"" into oc-dev