OSDN Git Service
TreeHugger Robot [Thu, 15 Mar 2018 00:53:19 +0000 (00:53 +0000)]
Merge changes from topic "centralize-quick-3s" into pi-dev
* changes:
Fixes crash on navbar using 3rd party launchers
Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""
TreeHugger Robot [Thu, 15 Mar 2018 00:37:37 +0000 (00:37 +0000)]
Merge "Also apply prefix when dumping isAllowedToUseHiddenApi" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 23:52:38 +0000 (23:52 +0000)]
Merge changes I14df050f,I55c30f78,I269eae0f into pi-dev
* changes:
Frameworks: Refactor FileDescriptorTable errors
Frameworks: Add app name to zygote abort
Frameworks: Refactor zygote abort code
TreeHugger Robot [Wed, 14 Mar 2018 23:05:33 +0000 (23:05 +0000)]
Merge "Add stats from storage manager to dumpsys result" into pi-dev
Andrew Solovay [Wed, 14 Mar 2018 22:59:22 +0000 (22:59 +0000)]
Merge "docs: Javadoc typo fix" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 22:23:24 +0000 (22:23 +0000)]
Merge "Enable local search for instant apps" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 22:02:10 +0000 (22:02 +0000)]
Merge "Improved Application.getAutofillClient()" into pi-dev
Jorim Jaggi [Wed, 14 Mar 2018 21:55:07 +0000 (21:55 +0000)]
Merge "Add ability to filter remote animation adapter by activity type" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 21:31:32 +0000 (21:31 +0000)]
Merge "incidentd: cleaning up settings.proto" into pi-dev
Aseem Kumar [Wed, 14 Mar 2018 21:29:12 +0000 (21:29 +0000)]
Merge "Disable RecoverableKeyStoreManager for custom lockscreens." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 21:25:23 +0000 (21:25 +0000)]
Merge changes Iaf63b4e8,Ie76044d4 into pi-dev
* changes:
Change DND upgrade noti text and channel
Reevaluate volume settings toggle onShow.
Matthew Ng [Wed, 14 Mar 2018 19:26:14 +0000 (12:26 -0700)]
Fixes crash on navbar using 3rd party launchers
When using a 3rd party launcher, the touch service
connection from pixel launcher and system ui is
disconnecting causing the nav bar to crash when
tapping it because onTouchIntercept returns true
from a NavigationBarView and handles the
onTouchEvent that does not check for a valid
connection. Check for a valid connection to
launcher service in onTouchEvent and before
proxying data to prevent the crash.
Fixes:
74726495
Test: change to 3rd party launcher press nav bar
Change-Id: I6f7efe78599b0829fd90aa0436463e77ec51f634
Eric Schwarzenbach [Wed, 14 Mar 2018 21:05:43 +0000 (21:05 +0000)]
Merge "Add Duplex mode to ServiceState." into pi-dev
Matthew Ng [Wed, 14 Mar 2018 19:43:18 +0000 (19:43 +0000)]
Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""
This reverts commit
0e490d9208de480ed38fe31a12029fc59b0955e9.
Reason for revert: Will be merged with fix
Bug:
74726495
Test: manual
Change-Id: I36ea9c2702107b23eff4adb1f3ba9fdc1be12999
Yohei Yukawa [Wed, 14 Mar 2018 20:43:47 +0000 (13:43 -0700)]
Also apply prefix when dumping isAllowedToUseHiddenApi
This is a follow up CL to a CL [1] that added one more state dump from
ApplicationInfo regarding whether the app is exampted from the API
restriction but forgot to take care of prefix handling.
[1]: I01e837253d00c6ffa841a9e5c226204a3e11b827
974290b032b4d98603925d36851422986a5d7d0e
Bug:
64382372
Test: Ran the following command to see "isAllowedToUseHiddenApi"
is aligned with other outputs from ApplicationInfo.
adb shell ime list -a
Change-Id: I9c77d9b557245b7f3b51631140bd564feef601ce
Kelly Rossmoyer [Wed, 14 Mar 2018 20:43:14 +0000 (20:43 +0000)]
Merge "Increase size of BatteryStatsService stats buffer" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:32:32 +0000 (20:32 +0000)]
Merge "Start the webview_zygote at boot, but in the background." into pi-dev
Todd Kennedy [Wed, 14 Mar 2018 15:09:00 +0000 (08:09 -0700)]
Enable local search for instant apps
When getting the set of searchable activities, fetch instant
applications. But, this means that the set needs a final
filter to prevent leaking application existence.
Change-Id: I6b9daf031ce54061c4500d9edae1d738848158c4
Fixes:
68211791
Test: atest -it CtsAppSecurityHostTestCases:EphemeralTest#testGetSearchableInfo
(cherry picked from commit
8b9d664cae1681c6107bd6caf807e786f96190ca)
TreeHugger Robot [Wed, 14 Mar 2018 20:23:29 +0000 (20:23 +0000)]
Merge "Document the byte packing order of the current Bitmap.Configs" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:12:54 +0000 (20:12 +0000)]
Merge "Add API to get currently pinned slices" into pi-dev
Felipe Leme [Wed, 14 Mar 2018 19:33:58 +0000 (12:33 -0700)]
Improved Application.getAutofillClient()
- Fixed usage of activity instead of record.activity
- Added (optional) verbose logging
Bug:
74793485
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityTest#testAutofill_appContext\
CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest#testAutofill_appContext
Change-Id: I03721cab6428e580b13444bf045f33dc3d787a8d
yro [Wed, 14 Mar 2018 01:08:09 +0000 (18:08 -0700)]
Add stats from storage manager to dumpsys result
Bug:
74601313
Test: manual test, statsd_test
Change-Id: Ifdde6bb10d29f3983b0c27a66a6e30f1f40308ee
Winson Chung [Wed, 14 Mar 2018 19:42:13 +0000 (19:42 +0000)]
Merge "Revert "Centralized quick step/scrub/switch logic (1/2)"" into pi-dev
Winson Chung [Wed, 14 Mar 2018 16:08:43 +0000 (16:08 +0000)]
Revert "Centralized quick step/scrub/switch logic (1/2)"
This reverts commit
b06ae3bf131b0bd0ded398d3a06974a6a9d78a50.
Reason for revert: b/
74726495
Bug:
74726495
Change-Id: I4bce8df13f9fa9e1b420382f7a96f9855510196f
Andrew Solovay [Mon, 12 Mar 2018 22:11:50 +0000 (15:11 -0700)]
docs: Javadoc typo fix
Doc is staged to:
http://go/dac-stage/reference/android/webkit/WebView.html
Exempt-From-Owner-Approval: Doc-only change
Bug:
20926682
Test: make ds-docs
Change-Id: Ib966923b75c8a70da5415f38e4217caeecc44cbe
Merged-In: Ib966923b75c8a70da5415f38e4217caeecc44cbe
Aseem Kumar [Tue, 13 Mar 2018 01:05:16 +0000 (18:05 -0700)]
Disable RecoverableKeyStoreManager for custom lockscreens.
Bug:
74225107
Test: adb shell am instrument \
-w -e package com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I88fc0fe7fdb23439d781cac96632196465553a38
TreeHugger Robot [Wed, 14 Mar 2018 19:03:06 +0000 (19:03 +0000)]
Merge "Add wall clock timestamp for ConfigMetricsReport and gauge atoms." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 18:48:20 +0000 (18:48 +0000)]
Merge "Remove unused shared lib from statsd" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 18:42:38 +0000 (18:42 +0000)]
Merge "Removed redundant method ContentResolver.releasePersistableUriPermission()" into pi-dev
Alan Viverette [Wed, 14 Mar 2018 18:09:51 +0000 (18:09 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3 am:
f98157e2ba am:
4f83bad908 am:
a982645d5c skipped:
9d3e228729 am:
8a095b5f19 am:
0886b1a751
am:
25d38a56ae -s ours
Change-Id: I0bf700a857b7eba5aebf66e0c2f7970234d7ac00
Alan Viverette [Wed, 14 Mar 2018 17:58:15 +0000 (17:58 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3 am:
f98157e2ba am:
4f83bad908 am:
a982645d5c skipped:
9d3e228729 am:
8a095b5f19
am:
0886b1a751
Change-Id: I6fb6521317ef9d9e2d6afab056bc8993bed9720c
Alan Viverette [Wed, 14 Mar 2018 17:39:54 +0000 (17:39 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3 am:
f98157e2ba am:
4f83bad908 am:
a982645d5c skipped:
9d3e228729
am:
8a095b5f19
Change-Id: I6eb246ce670723e1f21ee4cf45d5c5e48b91f1ce
Andreas Gampe [Mon, 12 Mar 2018 21:53:34 +0000 (14:53 -0700)]
Frameworks: Refactor FileDescriptorTable errors
Surface error messages to the caller.
(cherry picked from commit
183a5d3cfa6bcdc817dfe6e5512fb6912bb44583)
Bug:
74531335
Test: m
Test: Device boots
Merged-In: I14df050feb7f5417bb08d190492c3050cdbb1c1d
Change-Id: I14df050feb7f5417bb08d190492c3050cdbb1c1d
Andreas Gampe [Mon, 12 Mar 2018 19:17:25 +0000 (12:17 -0700)]
Frameworks: Add app name to zygote abort
If possible, add the target process name to the zygote abort.
(cherry picked from commit
bf94c2c1d789cbe0be77a70536dc08d6f0bd7e5c)
Bug:
74531335
Test: m
Test: Device boots
Test: Manual - fake a failure
Merged-In: I55c30f78246876fdc1b822056351dbbb14c1247e
Change-Id: I55c30f78246876fdc1b822056351dbbb14c1247e
Andreas Gampe [Mon, 12 Mar 2018 19:08:55 +0000 (12:08 -0700)]
Frameworks: Refactor zygote abort code
Fail in the main fork function. This will simplify follow-ups that
will include more data in the abort.
(cherry picked from commit
b8aae1969c6b8f9ac420745166edcd6c9fe59717)
Bug:
74531335
Test: m
Test: Device boots
Merged-In: I269eae0fb15e96fb27d02d4b7c6fdf7e9e8e3346
Change-Id: I269eae0fb15e96fb27d02d4b7c6fdf7e9e8e3346
TreeHugger Robot [Wed, 14 Mar 2018 17:32:43 +0000 (17:32 +0000)]
Merge "Update comment for HAPTIC_FEEDBACK_ENABLED setting" into pi-dev
Derek Sollenberger [Wed, 14 Mar 2018 17:26:47 +0000 (13:26 -0400)]
Document the byte packing order of the current Bitmap.Configs
This CL documents the byte order for 585, 8888, and fp16 buffers.
Test: documenting existing behavior
Bug:
71518511
Change-Id: I128344db318eb4597b6eb00f0ae317e369145152
Winson Chung [Wed, 14 Mar 2018 17:28:46 +0000 (17:28 +0000)]
Merge "Update old stack check for finding recent task index to remove" into pi-dev
Fyodor Kupolov [Wed, 14 Mar 2018 17:16:12 +0000 (17:16 +0000)]
Merge "Added performance tests for SQLiteCursor iteration" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 17:00:51 +0000 (17:00 +0000)]
Merge "[AWARE] Minor fix to documentation for Aware + Discovery" into pi-dev
Torne (Richard Coles) [Tue, 13 Mar 2018 21:48:52 +0000 (17:48 -0400)]
Start the webview_zygote at boot, but in the background.
This reverts "Delay starting the webview_zygote until first use." but
instead wraps the start in a background task, to avoid blocking the
system server startup waiting for the zygote to be ready.
Bug:
73743583
Bug:
63749735
Bug:
74079433
Test: Verify webview_zygote already running after boot
Change-Id: Iacf968cc2d2857a92c6bacf4012dc88f098c6013
TreeHugger Robot [Wed, 14 Mar 2018 16:51:41 +0000 (16:51 +0000)]
Merge "Statsd: Remove storage of bucketNum" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 16:45:49 +0000 (16:45 +0000)]
Merge "Dump the stats for count/gauge/value metrics." into pi-dev
Yangster-mac [Mon, 12 Mar 2018 19:02:56 +0000 (12:02 -0700)]
Dump the stats for count/gauge/value metrics.
Bug: b/
74159560
Test: statsd test
Change-Id: I1410309ecfdfc2a5becf8d0c620c68a621ebc5fa
Jorim Jaggi [Fri, 9 Mar 2018 15:48:24 +0000 (16:48 +0100)]
Add ability to filter remote animation adapter by activity type
Such that Launcher can choose not to use the remote animation
for assistant.
Test: Open assistant, close it
Test: go/wm-smoke
Bug:
72702760
Change-Id: Ib97cb5dd076afe5535e4e7951f423ccf9e78e720
TreeHugger Robot [Wed, 14 Mar 2018 16:00:49 +0000 (16:00 +0000)]
Merge "Allow controlling SystemUI flags during RecentsAnimation" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 15:59:42 +0000 (15:59 +0000)]
Merge "Add new set of APIs to light grey." into pi-dev
Julia Reynolds [Wed, 14 Mar 2018 15:38:44 +0000 (11:38 -0400)]
Change DND upgrade noti text and channel
Test: manual
Bug:
74075050
Change-Id: Iaf63b4e8691ba42ac4d1ddccf8f2368bfc0b74d7
Julia Reynolds [Wed, 14 Mar 2018 14:46:04 +0000 (10:46 -0400)]
Reevaluate volume settings toggle onShow.
Test: manual, factory reset a device and check device when
unprovisioned and provisioned.
Fixes:
74727019
Change-Id: Ie76044d46d4e4fb0f8928f19fd3431b1524bce79
TreeHugger Robot [Wed, 14 Mar 2018 15:32:06 +0000 (15:32 +0000)]
Merge "Cutout: add runtime switch for screenshotting screen decorations" into pi-dev
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:33 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3 am:
f98157e2ba am:
4f83bad908 am:
a982645d5c skipped:
9d3e228729
Change-Id: I1ce639a3ea40693d82501861d4b81afd3506b37d
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:27 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3 am:
f98157e2ba am:
4f83bad908 am:
a982645d5c
Change-Id: I329294b80015cbfb2c498c0752b340cbaf527735
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:17 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3 am:
f98157e2ba am:
4f83bad908
Change-Id: I927087da2df9ad993b449d8ec9b90bd641088d75
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:12 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3 am:
f98157e2ba
Change-Id: I7204eee21fc2620f70dc8bc534aa0160d947ab7e
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:06 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4 am:
e32e8229b3
Change-Id: I916228fb05914dbb89551a27418f746305a01ed6
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:46 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352 skipped:
93f8bfa5c4
Change-Id: Ie516029e98d07f4ebb6916d75af625c92e711fde
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:39 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97 am:
d0fcb49352
Change-Id: Ib890ce7495c1d5e64968cc9177ce3785bcfdedde
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:32 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab am:
1b6f3f9a97
Change-Id: I49de968aa0daa18b60921af1a381f77d13a8ff0e
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:19 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am:
f3c2e0b3ab
Change-Id: I87dcb4ce2fc52e0ed6ce5f79d15ab49084d088e3
Alan Viverette [Tue, 13 Mar 2018 17:56:24 +0000 (13:56 -0400)]
DO NOT MERGE Fix build with SDK 24-like implementation of constructor
Bug:
71992105
Test: manual
Change-Id: I106760ada9c85adde29fd143e5dfcd924fd95f54
Chavi Weingarten [Wed, 14 Mar 2018 15:19:01 +0000 (15:19 +0000)]
Merge "Set options on startingActivity instead of topActivity" into pi-dev
Bryce Lee [Wed, 14 Mar 2018 14:37:48 +0000 (14:37 +0000)]
Merge "Check if last resumed activity is null before resuming." into pi-dev
Jorim Jaggi [Fri, 9 Mar 2018 16:29:48 +0000 (17:29 +0100)]
Allow controlling SystemUI flags during RecentsAnimation
Such that the bars can flip from light/dark depending on animation
progress.
Test: go/wm-smoke
Test: Swipe up from light bar app
Test: WindowStateTests
Bug:
73498721
Change-Id: Ie4b99c75840474a01225720fcd7372191f035a3e
TreeHugger Robot [Wed, 14 Mar 2018 13:44:51 +0000 (13:44 +0000)]
Merge "Add PrintRecommendationService to hidden API package whitelist" into pi-dev
Annie Meng [Wed, 14 Mar 2018 13:40:46 +0000 (13:40 +0000)]
Merge "DO NOT MERGE Create a key value settings observer for backup parameters" into pi-dev
Adrian Roos [Thu, 8 Mar 2018 22:22:19 +0000 (23:22 +0100)]
Cutout: add runtime switch for screenshotting screen decorations
Bug:
65689439
Test: adb shell setprop debug.screenshot_rounded_corners true && adb shell kill `pid systemui` && adb exec-out screencap -p > out.png
Change-Id: Ibd2e8c94c0f1ad58b2357e8db1b20846588b1cce
Nicolas Geoffray [Wed, 14 Mar 2018 10:58:42 +0000 (10:58 +0000)]
Add new set of APIs to light grey.
bug:
64382372
Test: m
Change-Id: I2ba92e8a7c04dca9c77f8ce58c5b9e85726c52d8
(cherry picked from commit
ba0be3aaedf45b0f1cf4a589acfcea17fd65cd64)
TreeHugger Robot [Wed, 14 Mar 2018 12:14:39 +0000 (12:14 +0000)]
Merge "Add more uses of hidden APIs into light greylist" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 11:34:13 +0000 (11:34 +0000)]
Merge "Don't re-inflate bouncer" into pi-dev
David Brazdil [Tue, 13 Mar 2018 16:14:03 +0000 (16:14 +0000)]
Add PrintRecommendationService to hidden API package whitelist
This app builds directly against the platform. Add it to the whitelist.
Bug:
64382372
Test: make
Test: device boots
Change-Id: I16574374d2c233221cd1305f031f78aca1947f05
(cherry picked from commit
06c8a439f7641b59e3648f691ae1a1921244c68e)
Jaewan Kim [Wed, 14 Mar 2018 10:18:22 +0000 (10:18 +0000)]
Merge "MediaSession2: Refactor incoming binder calls to the MediaSession2Stub" into pi-dev
David Brazdil [Wed, 14 Mar 2018 09:37:55 +0000 (09:37 +0000)]
Add more uses of hidden APIs into light greylist
Uses from tests and common apps.
Bug:
64382372
Bug:
73094390
Bug:
74575101
Bug:
74525273
Bug:
74340334
Test: make
Change-Id: I51ab73184b34b0240afccfebcb166687d14b94ae
Benjamin Franz [Wed, 14 Mar 2018 08:36:11 +0000 (08:36 +0000)]
Merge "Disable immersive mode confirmation when device is in lock task mode" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 05:35:03 +0000 (05:35 +0000)]
Merge "Add vendor-logged stats to statsd." into pi-dev
Andrew Chant [Thu, 22 Feb 2018 23:17:05 +0000 (15:17 -0800)]
Add vendor-logged stats to statsd.
Add atoms to statsd that are logged by code residing in /vendor.
These atoms are reported from code in /vendor, and
rely on a vendor-provided /system daemon to log the atoms to statslogd.
Test: Built & reported manually.
Bug:
74261180
Bug:
74261750
Bug:
74258154
Bug:
74260998
Change-Id: I858a1266c4c212808fb63276439f1dd6cf2a387e
TreeHugger Robot [Wed, 14 Mar 2018 05:12:36 +0000 (05:12 +0000)]
Merge "Additional log for when power is pressed" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 04:54:24 +0000 (04:54 +0000)]
Merge "Centralized quick step/scrub/switch logic (1/2)" into pi-dev
Dianne Hackborn [Wed, 14 Mar 2018 03:02:20 +0000 (03:02 +0000)]
Merge "Fix issue #
62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 02:48:57 +0000 (02:48 +0000)]
Merge "Display shortcut modifiers in menu" into pi-dev
Bryce Lee [Wed, 14 Mar 2018 02:23:03 +0000 (19:23 -0700)]
Check if last resumed activity is null before resuming.
Previous implementation did not encounter this issue as the resumed
activity was simply assigned to the stack member variable. Since we
now rely on a callback from the activity record, we must check to
see if the record is null before invoking #setState on it.
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.SessionLifecycleTest#testDatasetVisibleWhileAutofilledAppIsLifecycled
Bug:
74604879
Change-Id: Icead81d44a826260145f72549a9caa0fb62d6af3
Fyodor Kupolov [Wed, 14 Mar 2018 01:32:01 +0000 (18:32 -0700)]
Added performance tests for SQLiteCursor iteration
Tests forward/backfards iteration when dataset exceeds default
window size.
Test: atest frameworks/base/apct-tests/perftests/core/src/android/database/SQLiteDatabasePerfTest.java
Bug:
37095915
Bug:
64262688
Change-Id: Icc4e4864de0d2c510f7f3da55a6ebf526d5a4506
Jaewan Kim [Tue, 13 Mar 2018 10:15:59 +0000 (19:15 +0900)]
MediaSession2: Refactor incoming binder calls to the MediaSession2Stub
This CL refactors methods in MediaSession2Stub that handles incoming
binder calls from the controller by adding methods to do followings
in one place.
1. Check if the session hasn't closed.
2. Check if the controller is allowed for the command
3. Call SessionCallback#onCommandRequest() for APIs that would be
sent directly to the MediaPlayerBase or MediaPlaylistAgent if
allowed.
This CL also adds missing command code for setRating().
Bug:
74581821
Test: Run CTS tests with MediaComponents/runcts.sh
Change-Id: I9b96e26b7644cff3c54269773590c73ff30f956c
TreeHugger Robot [Wed, 14 Mar 2018 00:49:26 +0000 (00:49 +0000)]
Merge "Allow apps in /odm/app and /odm/priv-app (2/2)" into pi-dev
Hall Liu [Wed, 14 Mar 2018 00:37:37 +0000 (00:37 +0000)]
Merge "Add IntDef for MBMS download result" into pi-dev
Winson Chung [Tue, 13 Mar 2018 23:57:55 +0000 (16:57 -0700)]
Update old stack check for finding recent task index to remove
- The recents task list was previously checking the stack of the task to
optimize finding similar tasks to remove. In P, each task generally has
its own stack, so this check is invalid. Instead, we should check the
activity type to skip early if the activity types don't match.
- Add another test to ensure that when a new multiple-task non-document
task is added, that it will replace any existing matching task
Bug:
72476837
Test: atest FrameworksServicesTests:RecentTasksTest
Change-Id: I457fd5b2cd6dd1eb5e2533912df7e3948e0366b1
Signed-off-by: Winson Chung <winsonc@google.com>
Matthew Ng [Wed, 7 Mar 2018 22:23:04 +0000 (14:23 -0800)]
Centralized quick step/scrub/switch logic (1/2)
Moved all the logic for quick step/scrub/switch to QuickStepController
so touch events can be used for deciding which gesture is used. Once a
gesture is decided, the rest will not handle the other gestures.
Quickstep will trigger when passing a touch slop on navigation bar. The
event onQuickStep (with a motion event) will be sent to launcher when
this occurs telling it that systemui is not handling anymore motion
events. During quickstep motion events will still be proxied.
Used raw X and Y motion events for Opalayout and KeyButtonView so that
the moving over the touch slop can be detected to ignore button (long)
press state.
Fixes:
73971902
Fixes:
74456391
Test: swipe up
Change-Id: I40b931aa0a9f123b810ff9206c9b1ce040a68a56
TreeHugger Robot [Wed, 14 Mar 2018 00:10:33 +0000 (00:10 +0000)]
Merge "Differentiate between automatic and manual brightness in metrics." into pi-dev
chaviw [Tue, 13 Mar 2018 21:15:51 +0000 (14:15 -0700)]
Set options on startingActivity instead of topActivity
When an activity is starting, it may not be the top activity yet.
If that occurs, the options are set on the wrong activity when
moveTaskToFrontLocked is called. Therefore, when the options on
the correct activity are consumed and cleared, the options are
still set on the incorrect activity. This can lead to incorrect
behavior.
Specifically, this was causing issues when a RemoteAnimation was
set for a starting activity. The activity that was previously on
top was also getting the options and expecting a RemoteAnimation.
This caused no animation to execute when the next expected animation
was a WindowAnimation because it was still waiting on the
RemoteAnimation
Fixes:
74611027
Test: Launch activity then background. Open second activity from
notification. When pressing back, window animation should start.
Change-Id: I2198d8e2a0b14fb060c71a265cc98f24ce018ef9
Ari Hausman-Cohen [Tue, 13 Mar 2018 23:09:51 +0000 (23:09 +0000)]
Merge "audioservice: add more properties for volume steps and default volumes" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 23:00:53 +0000 (23:00 +0000)]
Merge "DO NOT MERGE Fix French locale % escaping" into pi-dev
Qingxi Li [Tue, 13 Mar 2018 23:00:10 +0000 (23:00 +0000)]
Merge "Add API to check extended APDU Supported" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 22:54:30 +0000 (22:54 +0000)]
Merge "Fix NPE with null app window." into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 22:44:21 +0000 (22:44 +0000)]
Merge "Revert "Camera: SessionConfiguration should use Executors"" into pi-dev
Lucas Dupin [Tue, 13 Mar 2018 22:30:41 +0000 (15:30 -0700)]
Don't re-inflate bouncer
Re-inflating the bouncer shouldn't be necessary every
time it get hidden, it causes lots of jank.
Bug:
74602128
Test: external/chromium-trace/systrace.py gfx freq am wm sched binder_driver view -a com.android.systemui -o sysui.html
Change-Id: Ie853874c1be3f621b7fa9f010a06ea0fa6253d1b
TreeHugger Robot [Tue, 13 Mar 2018 22:24:51 +0000 (22:24 +0000)]
Merge "Transfer starting windows more aggressively" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 22:24:41 +0000 (22:24 +0000)]
Merge "Unhide getWeight of Typeface" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 21:56:52 +0000 (21:56 +0000)]
Merge "Revive old private api for saving supportlib-v27" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 21:55:30 +0000 (21:55 +0000)]
Merge "Add @attr for justificationMode" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 21:53:29 +0000 (21:53 +0000)]
Merge "Update AndroidTest to work with apct-suite setup" into pi-dev
Dianne Hackborn [Wed, 7 Mar 2018 20:42:47 +0000 (12:42 -0800)]
Fix issue #
62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi
Add a new platform-only permission for being able to change
app ops mode, so nothing outside of the platform can do this.
Bug:
62342672
Test: Booted, ran, settings works, shell works, apps install
Change-Id: I372e649c019a8f9b95919ff0da6f56612d7061c2