OSDN Git Service
Phil Weaver [Wed, 17 May 2017 18:53:43 +0000 (18:53 +0000)]
Merge "Stop system process crash in TouchExplorer" into oc-dev
TreeHugger Robot [Wed, 17 May 2017 18:15:37 +0000 (18:15 +0000)]
Merge "Optimize App -> Recents" into oc-dev
Roshan Pius [Wed, 17 May 2017 18:14:30 +0000 (18:14 +0000)]
Merge "WifiP2pWfdInfo: Only pass the wfd info to WifiNative" into oc-dev
TreeHugger Robot [Wed, 17 May 2017 18:09:47 +0000 (18:09 +0000)]
Merge "Fix TimePicker crash on rotation." into oc-dev
TreeHugger Robot [Wed, 17 May 2017 16:18:57 +0000 (16:18 +0000)]
Merge "Fix broken LoaderLifecycleTest#loaderIdentityTest" into oc-dev
Phil Weaver [Tue, 16 May 2017 23:23:18 +0000 (16:23 -0700)]
Stop system process crash in TouchExplorer
We need to straighten out this state machine so we can
fix bugs in it without a high risk of creating others
(b/
38246304). In the meantime, catching this exception at
least allows the device to keep operating.
Bug:
37338581
Test: Reproduced the conditions of the crash. Verified that
we now print the log message.
Change-Id: I1f4f84b5529b2bf638e225d474808e3d42484e78
Selim Cinek [Wed, 17 May 2017 15:59:03 +0000 (15:59 +0000)]
Merge changes I858017b8,Ife32b600 into oc-dev
* changes:
Improved the media color extraction algorithm
Fixed broken coretests
TreeHugger Robot [Wed, 17 May 2017 15:32:03 +0000 (15:32 +0000)]
Merge "PackageManager: Change post-install GC request" into oc-dev
Aurimas Liutikas [Wed, 17 May 2017 15:17:09 +0000 (08:17 -0700)]
Fix TimePicker crash on rotation.
We were using two different types of layouts in landscape and portrait.
I unintentionally changed it from RelativeLayout to LinearLayout originally,
without even removing relative layout params.
Bug:
37650833
Test: Manual check that TimePicker no longer crashes on device rotation
Change-Id: If951e83c32377c0ed52d553ceb80683c4fba8b85
Charles He [Wed, 17 May 2017 12:58:15 +0000 (12:58 +0000)]
Merge "Fingerprint: call onRemovalSucceeded with # of remaining templates." into oc-dev
Jorim Jaggi [Sat, 13 May 2017 21:16:44 +0000 (23:16 +0200)]
Optimize App -> Recents
- Use same strategy to draw thumbnail bitmap by moving
startActivity off from the main thread and start caching the future
when AM is busy executing startActivity.
- Move some binder calls off the main thread.
- Add some trace points for better analysis in the future.
- Make toggleRecentApps asynchronous so we don't have to wait on
the next app-vsync - it's totally not needed.
Test: com.android.apptransition.tests.LatencyTests
Fixes:
32668632
Change-Id: Id6483e26e9d6c1e319bceaa8268da976cedfbca3
Merged-In: I15db41f2e821779972ab3b430033c70aa1dfd907
TreeHugger Robot [Wed, 17 May 2017 04:29:00 +0000 (04:29 +0000)]
Merge "Revert "Fix recent apps in system UI for Skia pipeline"" into oc-dev
TreeHugger Robot [Wed, 17 May 2017 03:13:23 +0000 (03:13 +0000)]
Merge "Set notification channel to MTP notification." into oc-dev
TreeHugger Robot [Wed, 17 May 2017 02:16:56 +0000 (02:16 +0000)]
Merge "Add more JSDoc about ErrnoException" into oc-dev
Daichi Hirono [Fri, 12 May 2017 08:56:08 +0000 (17:56 +0900)]
Set notification channel to MTP notification.
Bug:
38252594
Test: Manually connect MTP device to Android
Change-Id: Ib7ab12b2401d36dbb4cca2fd9c18cbd3505ed9ef
Andy Hung [Wed, 17 May 2017 01:34:11 +0000 (01:34 +0000)]
Merge "AudioEffect: return DEAD_OBJECT for FAILED_TRANSACTION" into oc-dev
Dianne Hackborn [Wed, 17 May 2017 00:50:43 +0000 (00:50 +0000)]
Merge "Fix issue #
38244875: Bring back testChargingConstraintFails" into oc-dev
John Reck [Tue, 16 May 2017 22:02:36 +0000 (22:02 +0000)]
Revert "Fix recent apps in system UI for Skia pipeline"
This reverts commit
625dd56a45bfe95c5f1baa1891529503ff3374a9.
Reason for revert: Caused a memory leak, b/
38330767
Bug:
38136140
Bug:
38330767
Test: manual, verified memory isn't leaking doing the steps in b/
38330767
Change-Id: I998bea04788d58ba6bad71c1691d5a3b33190c1b
Merged-In: I98b2dfd750be57a15785808e2d5723616e2ce20a
Winson Chung [Tue, 16 May 2017 23:41:09 +0000 (23:41 +0000)]
Merge "Updating Overview to work with PiP" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 22:53:42 +0000 (22:53 +0000)]
Merge "Discover primary service by UUID for PTS tests (4/4)" into oc-dev
Jorim Jaggi [Tue, 16 May 2017 22:52:57 +0000 (22:52 +0000)]
Merge "Use ArrayList as children" into oc-dev
Jeff Sharkey [Tue, 16 May 2017 22:42:03 +0000 (22:42 +0000)]
Merge "Don't specify screen orientation for ReceiverActivity." into oc-dev
TreeHugger Robot [Tue, 16 May 2017 22:34:35 +0000 (22:34 +0000)]
Merge "Specify behavior around DocumentsProvider#openDocument()." into oc-dev
TreeHugger Robot [Tue, 16 May 2017 22:25:04 +0000 (22:25 +0000)]
Merge "ViewRootImpl: Guard against null in performMeasure" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 22:14:17 +0000 (22:14 +0000)]
Merge "Fixed leak of app token in exiting list." into oc-dev
TreeHugger Robot [Tue, 16 May 2017 21:59:49 +0000 (21:59 +0000)]
Merge "Fix interaction of magnification and Final-crop." into oc-dev
TreeHugger Robot [Tue, 16 May 2017 21:56:09 +0000 (21:56 +0000)]
Merge "Restrict access to instant app data in usage stats" into oc-dev
TreeHugger Robot [Tue, 16 May 2017 21:51:24 +0000 (21:51 +0000)]
Merge "SurfaceView: Reset window stopped state when attaching to window." into oc-dev
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)
TreeHugger Robot [Tue, 16 May 2017 20:39:39 +0000 (20:39 +0000)]
Merge "Always add the instant app installer" into oc-dev
Christine Franks [Tue, 16 May 2017 20:34:35 +0000 (20:34 +0000)]
Merge "Fix broken retaildemo tests" into oc-dev
George Mount [Tue, 16 May 2017 20:07:51 +0000 (13:07 -0700)]
Fix broken LoaderLifecycleTest#loaderIdentityTest
Bug
37994415
We have a preemptive check for getLoaderManager() to ensure that
the host is set before returning a value. In this test, the host
was not set because the fragment was restored and on the back stack.
The solution is to pop the back stack to ensure that it is added
so that it comes up to the proper state before getting the loader
manager.
Test: ran the broken test
Change-Id: Ic91cc5ca9468da22bdfef28cda1d4488b2f737f0
Dianne Hackborn [Tue, 16 May 2017 20:14:37 +0000 (13:14 -0700)]
Fix issue #
38244875: Bring back testChargingConstraintFails
- Add new "get-job-state" shell command that the tests can use
to find out what is going on with a job.
- Fix an issue in the battery controller where it would not
immediately stop with a "battery not low" constraint when
the battery becomes low.
- Also an optimization to rescheduling jobs, for every scheduled
job that is not ready don't look to see if it is active.
Instead, go through the active jobs and see if any are no
longer ready.
Test: bit -t CtsJobSchedulerTestCases:*
Change-Id: I5611886653258ca337eee97c5ee1b9b3dfdb6d85
Garfield Tan [Mon, 15 May 2017 21:19:11 +0000 (14:19 -0700)]
Specify behavior around DocumentsProvider#openDocument().
Add supported modes and contracts on receiving unsupported modes.
Test: Builds.
Bug:
11279339
Change-Id: I8c403f6168baadb354813d4c1e630bb8662ddb34
Wale Ogunwale [Tue, 16 May 2017 15:56:37 +0000 (08:56 -0700)]
Fixed leak of app token in exiting list.
- Remove app token from exiting list when it's last window is removed.
- Remove app token from exiting list when it's removal isn't delayed.
Test: Launch a few apps and press back and make sure the exit app to
list dump is empty.
Fixes:
38337456
Change-Id: Ia2f22c6f1add5f867e25583ec38ffccc71217ee7
Jorim Jaggi [Tue, 16 May 2017 15:11:18 +0000 (17:11 +0200)]
Use ArrayList as children
Such that traversal is O(n) instead of O(n²)
Test: WindowContainerTests
Bug:
32668632
Change-Id: Ie52026a76a0f65c71ff6bd35d13b3d0c5d44bb3f
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
Jorim Jaggi [Tue, 16 May 2017 19:34:45 +0000 (19:34 +0000)]
Merge "Optimize hot launching recents" into oc-dev
Andy Hung [Tue, 16 May 2017 19:32:27 +0000 (12:32 -0700)]
AudioEffect: return DEAD_OBJECT for FAILED_TRANSACTION
Test: CTS AudioSecurityTest
Bug:
38346284
Change-Id: I96b4995c2d11b4a33c4b2fa6987922e26c91d336
Makoto Onuki [Mon, 15 May 2017 16:29:34 +0000 (09:29 -0700)]
Restrict access to instant app data in usage stats
- Events are obfuscated based on whether the app was instant or not at
the time each event was logged.
- UsageStats are obfuscated based on whether each app is instant or
not at the moment.
Bug
38202133
Test: Manual test using UsageStatsTest and instant apps
Change-Id: I3c74309196b88d010d317cb0dd6749bf4624e876
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
TreeHugger Robot [Tue, 16 May 2017 18:44:23 +0000 (18:44 +0000)]
Merge "Remove deprecated recommendation request code." 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
TreeHugger Robot [Tue, 16 May 2017 18:42:22 +0000 (18:42 +0000)]
Merge "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
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
TreeHugger Robot [Tue, 16 May 2017 18:26:14 +0000 (18:26 +0000)]
Merge "ignore IllegalArgumentException during uninstall" 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
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
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
Andreas Gampe [Tue, 16 May 2017 16:45:28 +0000 (09:45 -0700)]
PackageManager: Change post-install GC request
Only run a blocking GC when updating. Otherwise, only request a
concurrent GC to clean up.
Bug:
38259387
Test: m
Test: Device boots
Test: Install works
Change-Id: Id1a0e956f26e166d927f833075bc4807f32b94f7
TreeHugger Robot [Tue, 16 May 2017 16:26:43 +0000 (16:26 +0000)]
Merge "Invoke BLKSECDISCARD to securely delete sensitive data" into oc-dev
Roshan Pius [Tue, 16 May 2017 16:17:37 +0000 (09:17 -0700)]
WifiP2pWfdInfo: Only pass the wfd info to WifiNative
WifiP2pWfdInfo.getDeviceInfoHex() is used to set the WFD info in
wpa_supplicant. The length of this WFD info will be calculated and
prepended by the HIDL interface itself, so there is no need for this
length to prepended in the framework. So, get rid of it.
Bug:
38222615
Test: Compiles
Change-Id: If8ff6e558dad974a053265e0a8c8222943065823
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
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
Aurimas Liutikas [Tue, 16 May 2017 15:43:44 +0000 (15:43 +0000)]
Merge "Remove internal listener when cloning" into oc-dev
Charles He [Tue, 16 May 2017 13:55:35 +0000 (14:55 +0100)]
Fingerprint: call onRemovalSucceeded with # of remaining templates.
The onRemoved() callback from fingerprint daemon provides a "remaining"
parameter which contains the number of fingerprint templates yet to be
removed in the current removal operation. This is especially useful when
a group is removed, as remaining == 0 indicates the end of the group
removal.
In this CL, we wire up FingerprintManager so that the "remaining"
parameter gets passed to RemovalCallback#onRemovalSucceeded(). This
would allow clients like Settings to make use of the information.
Bug:
37938345
Test: manual, both with and without work profile
Change-Id: Idf46ef42e1d178cd3dc267aaf4219f03e27be766
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
Jorim Jaggi [Tue, 16 May 2017 15:13:28 +0000 (15:13 +0000)]
Merge "Fix spinning TaskPersister" into oc-dev
Jorim Jaggi [Tue, 16 May 2017 15:01:29 +0000 (15:01 +0000)]
Merge "Immediately report drawing" 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
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
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
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
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
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
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)
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
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
TreeHugger Robot [Tue, 16 May 2017 06:28:04 +0000 (06:28 +0000)]
Merge "MediaBrowser: Allow to connect while disconnecting" into oc-dev
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
Ian Pedowitz [Tue, 16 May 2017 03:32:56 +0000 (03:32 +0000)]
Merge "Revert "Revert "O is API 26""" 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
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
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
Selim Cinek [Fri, 12 May 2017 23:07:31 +0000 (16:07 -0700)]
Improved the media color extraction algorithm
The color extraction algorithm is tuned further:
We're now regarding more colors as white when
it comes to the background selection.
For muted color swatches we also factor in the popuplation.
Finally, we also factor in the mostdominant color to overtake the text
color in case it is very dominant.
Test: runtest systemui
Bug:
38168152
Change-Id: I858017b83559255ead48c3ab6c3bc16ed110e57c
TreeHugger Robot [Tue, 16 May 2017 01:13:57 +0000 (01:13 +0000)]
Merge "Update TimePicker mode switch icon." into oc-dev
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
Robert Carr [Tue, 16 May 2017 00:21:38 +0000 (17:21 -0700)]
ViewRootImpl: Guard against null in performMeasure
In particular we are seeing this in the call sites from performTraversals
in monkey crashes. I don't have exact repro but it seems like a feasible
state to get in to...for example...WindowManagerGlobal#addView can trigger
removal of a dying view immediately without respect for the mIsInTraversal
flag when it calls doDie(). This means we can dispatch detached from window
setting mView == null while performing a traversal. There's some question
about why this doDie is even required but...seems a little nerve wrecking
to change at the moment and it seems best to just guard against null for now.
Test: Monkeys will test.
Bug:
37343098
Change-Id: I94f2569c1ef70819c083f2b2b34b59622e6c6260
Robert Carr [Mon, 15 May 2017 23:45:50 +0000 (16:45 -0700)]
Fix interaction of magnification and Final-crop.
In the case of magnification we simulate a transformation to screen space
by transforming all windows with the MagnificationSpec values. This means
we need to transform other values which are in "real screen-space" as well,
like final crop.
Bug:
36129852
Bug:
38322835
Test: Manual
Change-Id: I3215ffb75ba66a29135a79bcb23da51c828739fc
TreeHugger Robot [Mon, 15 May 2017 23:48:58 +0000 (23:48 +0000)]
Merge "Support recursive static shared lib dependency" 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
Kirill Grouchnikov [Mon, 15 May 2017 23:11:00 +0000 (23:11 +0000)]
Merge "Tweak test app makefile with extra resources" 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
Robert Carr [Mon, 15 May 2017 22:49:17 +0000 (15:49 -0700)]
SurfaceView: Reset window stopped state when attaching to window.
We may be stopped, removed from the view hierarchy, and then only
attached again after the activity has been restarted, missing
our WindowStopped callback to set mWindowStopped=false. At this point
we are being added to a visible view, or in ViewRoot#performTraversals
so we can assume we are not stopped.
Test: Manual from bug.
Bug:
37682805
Change-Id: Idf8e061fb7f83b00992a274c7dd704f9e0fcff5f
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
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
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
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
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
Evan Rosky [Mon, 15 May 2017 20:52:40 +0000 (20:52 +0000)]
Merge "Post setSwitchingUser to main thread" into oc-dev
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
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
TreeHugger Robot [Mon, 15 May 2017 20:10:58 +0000 (20:10 +0000)]
Merge "Center switch vertically with primary text" into oc-dev
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.
TreeHugger Robot [Mon, 15 May 2017 19:54:09 +0000 (19:54 +0000)]
Merge "Fix drm hal resource leaks" 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
Selim Cinek [Fri, 12 May 2017 18:39:54 +0000 (11:39 -0700)]
Fixed broken coretests
The MessagingLinearLayout and the ImageFloatingTextView tests were
broken.
Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/widget/MessagingLinearLayoutTest.java
Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/widget/ImageFloatingTextViewTest.java
Change-Id: Ife32b600e2082400a8ee2f86310a51fd88c1b80c
Fixes:
38182087
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
Amith Yamasani [Mon, 15 May 2017 17:36:30 +0000 (17:36 +0000)]
Merge "Map isolated processes to correct uid" into oc-dev