Commit Graph

12175 Commits

Author SHA1 Message Date
Zimuzo Ezeozue
a56baba8cb Merge "Support a mount mode to bypass FUSE on /storage" 2019-09-25 12:29:38 +00:00
Zim
74a9bbae98 Support a mount mode to bypass FUSE on /storage
When Zygote forks a process with the MOUNT_MODE_PASS_THROUGH
flag, bind mount the pass_through path into /storage for the
process, allowing the process to bypass FUSE.

Bug: 140064376
Test: cat /proc/<pid of app with pass_through flag>/mountinfo shows
the lower fs bind mounted directly on /storage

Change-Id: Ia212c2c71ecfdc1629739ca8af171f332ccfca72
2019-09-25 13:05:30 +01:00
Vishnu Nair
196200dec2 Merge "Don't hold wm lock when intercepting keys" 2019-09-23 23:55:30 +00:00
Vishnu Nair
539334aa8a Don't hold wm lock when intercepting keys
We need to check the window type and some private flags to figure out if we should
intercept the home key. Instead of holding checking the WindowState associated with
the window token, check a separate map that contains a snapshot of the relevant info.

Bug: 134365580

Test: atest KeyboardInterceptorTest
Test: go/wm-smoke
Test: home key works
Change-Id: Ica60cef649754095f5c1ed6204a9b1581a07bfc6
2019-09-20 10:46:21 -07:00
TreeHugger Robot
a18d21345e Merge "Check for file existence before reading it." 2019-09-19 22:03:14 +00:00
Anna Trostanetski
13cd9c0b1c Merge "Implement stats logging for Compatibility API." 2019-09-18 10:32:47 +00:00
Mehdi Alizadeh
f472619495 Merge changes I41e08b86,I7760f37d into qt-qpr1-dev am: 30e495d0c4
am: a69031d173

Change-Id: Ia43318041306a97daedc5fd2409caf61ef4f4456
2019-09-16 16:38:31 -07:00
Mehdi Alizadeh
a69031d173 Merge changes I41e08b86,I7760f37d into qt-qpr1-dev
am: 30e495d0c4

Change-Id: Iae876b13f07a0bfe55baff58ca672d93a0f461e3
2019-09-16 16:31:24 -07:00
Mehdi Alizadeh
30e495d0c4 Merge changes I41e08b86,I7760f37d into qt-qpr1-dev
* changes:
  Use ShortcutInfo#rank to order Sharing Shortcuts in ShareSheet
  Adds tests for AppPrediction service availability check
2019-09-16 23:15:22 +00:00
Mehdi Alizadeh
26a7dfb211 Merge "Add target type flags to set the origin of share targets" into qt-qpr1-dev am: 2a873c7628
am: 205bb67ec8

Change-Id: I328ba7a6ccfdc4b53e288564a1b2bd993ce89a64
2019-09-16 11:47:23 -07:00
Mehdi Alizadeh
205bb67ec8 Merge "Add target type flags to set the origin of share targets" into qt-qpr1-dev
am: 2a873c7628

Change-Id: Iea7aa38cecabd626e803b27ede6473b714bd2d8a
2019-09-16 11:39:03 -07:00
Mehdi Alizadeh
2a873c7628 Merge "Add target type flags to set the origin of share targets" into qt-qpr1-dev 2019-09-16 18:31:09 +00:00
Mehdi Alizadeh
707c0cf361 Use ShortcutInfo#rank to order Sharing Shortcuts in ShareSheet
Sort based on rank only when directly fetching the targets from
ShortcutManager. Otherwise the target from AppPredictionService are
already ordered.

Bug: 140449186
Test: atest ChooserActivityTest
Test: Manual test to verify shortcuts have the same order in Launcher and ShareSheet when AppPredictionService is disabled

Change-Id: I41e08b86746c977c05acea8a5d0654083897741d
2019-09-16 11:28:42 -07:00
Mehdi Alizadeh
e870e97c73 Adds tests for AppPrediction service availability check
Bug: 138595943
Test: atest ChooserActivityTest
Change-Id: I7760f37d3f9fee00648cea5c70e744f1da2bdeca
2019-09-16 11:10:08 -07:00
Vinit Nayak
890ccb94ca Merge "Redraw legacy navigation bar paint onLayout" 2019-09-16 17:58:59 +00:00
Vinit Nayak
7ab1fb8f37 Redraw legacy navigation bar paint onLayout
Navigation bar background wasn't being redrawn
when using legacy navigation bar.

Fixes: 140096278
Test: Open Sheets app, turn landscape, select
a cell, press the "Fx" button on buttom left,
turn portrait and observe no black bar.
Open Sheets app, turn landscape, open recents
and select sheets icon and go into split screen,
choose any other app, click on cell, press "Fx",
turn portrait, observe no black bar.

Change-Id: Ibfe1abdba87a0d66c68478ee206b992c933cd9ad
2019-09-16 17:58:11 +00:00
atrost
01a2093248 Implement stats logging for Compatibility API.
Add a new atom and log from both the app process API and the system server API
Bug: 136794938
Bug: 138378110
Test: statsd_testdrive 228

Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
2019-09-16 14:26:01 +01:00
Alison Cichowlas
f296d0597e Merge "Sharesheet - log copy actions." into qt-qpr1-dev am: c1d0b9cc00
am: bef9f3aba6

Change-Id: Ie01a5d6f773942e2188b178bdc0dce9a862627e6
2019-09-14 00:15:12 -07:00
Alison Cichowlas
bef9f3aba6 Merge "Sharesheet - log copy actions." into qt-qpr1-dev
am: c1d0b9cc00

Change-Id: Ifb384080e4d1abd21817275f3bcb7f45ba1a5b1c
2019-09-14 00:08:36 -07:00
Alison Cichowlas
aa7f79f960 Sharesheet - log copy actions.
Since we've promoted Copy to a system action, out of the general list of targets, it's no longer logged with the regular share target logging.

Bug: 140928181
Test: reviewed adb logcat -b event; correct event looks like
sysui_multi_action: [757,1749,758,4,759,1]
Change-Id: I699ffe0fb7c5631c6e8535377ada36a7ce855734
2019-09-13 15:18:24 +00:00
Al Sutton
36e633e8d4 Remove internal AtomicFile
Bug: 140590158
Test: m -j builds to confirm there are no remaining references
Test: Presubmit tests to verify no change in functionality
Change-Id: Iecc503435a8dab94317148a108865505c936685f
2019-09-13 11:40:42 +00:00
TreeHugger Robot
ebd94ad88d Merge "Replace internal AtomicFile usage with public API" 2019-09-13 10:39:21 +00:00
Chen Xu
a2dd17be66 Merge "Expose ModemActivitiyInfo to system API" 2019-09-13 01:56:22 +00:00
Mehdi Alizadeh
06955f6f7d Add target type flags to set the origin of share targets
Bug: 140898597
Test: atest ChooserActivityTest
Change-Id: Iaab20121986f6e0ac22fc2ae2150484b9df95c54
2019-09-12 13:21:18 -07:00
Matt Pietal
9621fa911d Merge "Resolver - Fix NGA (voice interaction) crash in resolver" into qt-qpr1-dev
am: 636ae6a386

Change-Id: Id349a7a0f82f5ed252a04e2e89d6e422f4e04de1
2019-09-12 09:18:39 -07:00
Chen Xu
7322e4a7ce Expose ModemActivitiyInfo to system API
ModemActivityInfo is used for batteryStatusService which is part of
system service. To prepare telephony to be an mainline module, we
should expose ModemActivityInfo to systemAPI

1. remove getConsumedPower API as we are missing modem support, API
today only report 0
2. isValid API is introduced to cover modem issues before. Do not
expose this for now.

Bug: 140908357
Test: Build
Change-Id: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
2019-09-11 23:33:08 -07:00
Al Sutton
7407e2cef0 Replace internal AtomicFile usage with public API
Bug: 140590158
Test: m -j builds to confirm the public API isn't missing methods.
Test: Presubmit tests to verify no change in functionality
Change-Id: I3f0fb83689b9d742753f6cbbbc43d38947bc7b4d
2019-09-12 06:08:04 +00:00
Yinglei Wang
d4a9b49082 Merge "Add accessibility state API in platform" 2019-09-11 20:10:25 +00:00
Samuel Fufa
4dae6fbf94 Merge "Setup OnAppWidgetRemoved on framework" 2019-09-11 20:02:51 +00:00
yingleiw
6189b8c220 Add accessibility state API in platform
The detailed proposal is here:
https://docs.google.com/document/d/1zeR67kiDmLUJ2CENXjJ2-O3REzhC7MtyYGjV_yMj2g0/edit#heading=h.o3tvsnccns69

Test: Tested with the "bluetooth" tile in quick settings. First call
setStateDescription() in
handleStateChanged(QSTile.State state), then add log to dump the
accessibility info string in
onInitializeAccessibilityNodeInfo(). With talkback enabled, checked that
the logs have the correct state description field.
Bug: 140882622

Change-Id: I658f7972fec2a4c8abeb9470d2bda2104db053df
2019-09-11 13:01:04 -07:00
Matt Pietal
553d8a4dd3 Resolver - Fix NGA (voice interaction) crash in resolver
A race condition existed whereby placeholder targets were attempting
to be published without any target information, due to bg thread
processing of resolved intents. Detect this scenario, and wait. Also
have SysUI ChooserActivity accept voice interactions in the intent
filter. Does not use DEFAULT category, as it should only ever be used
by explicit intents.

Bug: 139729579
Test: atest ResolverActivityTest
Change-Id: If8fc0c3595da47c26b1edab75bd6fc82a6dcb35e
(cherry picked from commit 2cf4c6c3d4)
2019-09-11 14:06:12 +00:00
Matt Pietal
5c87e303ec Merge "Resolver - Fix NGA (voice interaction) crash in resolver" 2019-09-11 13:46:48 +00:00
Siarhei Vishniakou
0f842282bf Merge "Add uhid group to system_server" am: 3a49014ca0 am: 5cfc2c3e7f am: 5f703ccf7b
am: 02ad53d994

Change-Id: Icc061e9ac4a14f9ed122f166de19d5b4cafca6d2
2019-09-11 03:23:41 -07:00
Siarhei Vishniakou
02ad53d994 Merge "Add uhid group to system_server" am: 3a49014ca0 am: 5cfc2c3e7f
am: 5f703ccf7b

Change-Id: I178c85cbc78ddf8c95e89b23933b0a51461d4728
2019-09-11 03:16:38 -07:00
Siarhei Vishniakou
5f703ccf7b Merge "Add uhid group to system_server" am: 3a49014ca0
am: 5cfc2c3e7f

Change-Id: I63649dd5951be990d8404f3bbc53f4ece26cf030
2019-09-11 03:09:39 -07:00
Treehugger Robot
3a49014ca0 Merge "Add uhid group to system_server" 2019-09-11 09:31:23 +00:00
Samuel Fufa
59ef5e98f3 Setup OnAppWidgetRemoved on framework
Test: Manual
Bug:140140567
Change-Id: I3033b83ff8f55938b5cd898c7e30bb2259af9c5f
2019-09-10 17:34:23 -07:00
Treehugger Robot
980681e525 Merge "Reconcile Zygote process name code with Q release." 2019-09-10 18:48:31 +00:00
Mathieu Chartier
ed511cde16 Merge "Rename profileSystemServer to shouldProfileSystemServer" am: f7335ffb9a am: 2b3e8ad368 am: 3f75400059
am: 8690600c23

Change-Id: I8e06ce4174e091c1aa97dc976ce1ec172709628d
2019-09-10 09:11:26 -07:00
Mathieu Chartier
8690600c23 Merge "Rename profileSystemServer to shouldProfileSystemServer" am: f7335ffb9a am: 2b3e8ad368
am: 3f75400059

Change-Id: Id194bd88f4ac1cfd52e479f4f2401323dd83e596
2019-09-10 08:57:58 -07:00
Mathieu Chartier
3f75400059 Merge "Rename profileSystemServer to shouldProfileSystemServer" am: f7335ffb9a
am: 2b3e8ad368

Change-Id: I067e44ed65cda267edc60f3bf3845cb80d9b3434
2019-09-10 08:51:20 -07:00
Matt Pietal
2cf4c6c3d4 Resolver - Fix NGA (voice interaction) crash in resolver
A race condition existed whereby placeholder targets were attempting
to be published without any target information, due to bg thread
processing of resolved intents. Detect this scenario, and wait. Also
have SysUI ChooserActivity accept voice interactions in the intent
filter. Does not use DEFAULT category, as it should only ever be used
by explicit intents.

Bug: 139729579
Test: atest ResolverActivityTest
Change-Id: If8fc0c3595da47c26b1edab75bd6fc82a6dcb35e
2019-09-10 10:21:17 -04:00
Anthony Hugh
d4d88f2486 Merge "Refactor PermissionManager.SPLIT_PERMISSIONS" into qt-qpr1-dev
am: fcb2ce1503

Change-Id: I830c2580f3d141a3641e023c189c148a0a1737d0
2019-09-09 19:24:39 -07:00
Anthony Hugh
6f5eadc0d3 Refactor PermissionManager.SPLIT_PERMISSIONS
Creating a SystemConfig from a non-system process is taking 500+ ms.
This CL instead exposes the needed split permissions from system_server
to optimize performance.

Tested locally and creating PermissionManager / retrieving SystemConfig
is now less than 1 ms.

Bug: 139828734
Bug: 139485700
Fixes: 139828734
Test: Added systrace / logs to PermissionController app and traced
runtime of onGrantDefaultRoles().

Merged-In: I111403e8dae3bc2b0acafc32e61aa5cd890fea29
Change-Id: I111403e8dae3bc2b0acafc32e61aa5cd890fea29
(cherry picked from commit f69c71e25889d8a9d66da05ee0f386d7fb626c6c)
2019-09-09 15:49:04 -07:00
Mathieu Chartier
344e0efb4a Merge "Add phenotype property for profiling system server" am: 62b8a2a216 am: d3d25941f6
am: 0db66b5621

Change-Id: I2266241989c003af90ba7ea7b047e7e92763dbbd
2019-09-09 13:40:49 -07:00
Mathieu Chartier
0db66b5621 Merge "Add phenotype property for profiling system server" am: 62b8a2a216
am: d3d25941f6

Change-Id: Ie1a3cf73a1e43007fd54e96deccc90f2b33fe5dd
2019-09-09 13:26:07 -07:00
Mathieu Chartier
3b05e4d74c Rename profileSystemServer to shouldProfileSystemServer
Makes it clearer and addresses previous CR comment.

Bug: 139883463
Test: make
Change-Id: I7c1a1d99cf307b89ee8f2c5c906168d196b35d0e
2019-09-09 13:05:31 -07:00
Mathieu Chartier
77aca50b6f Add phenotype property for profiling system server
Added the property profilesystemserver in the RUNTIME_NATIVE_BOOT
namespace. This property is overrides the system one if it is
present.

Bug: 139883463
Test: set the property manually and verify that system server is started
Test: with profiling

(cherry picked from commit 7b31c74ddb)

Merged-In: Ifd69530e52a717a381b3f91b15a74329614906f2
Change-Id: I00594949b845a75152c7ab3c94aa84a55b072776
2019-09-09 16:25:35 +00:00
Martijn Coenen
3b8ca2e7ac Reconcile Zygote process name code with Q release.
Some Zygote code that was pushed to AOSP master is different from the
pushed Q release. In particular, a call to set the process name for a
Zygote child was missing, causing an app zygote test to fail.

Bug: 139535125
Test: atest android.app.cts.ServiceTest#testAppZygoteServices
Change-Id: I53b0bc0116f1573cb1e52a998e10346bd5601f67
Merged-In: I2bce277ff8f2de4614e19d5385fe6712b076f9c9
2019-09-09 02:39:26 +00:00
James O'Leary
6d7edf933e Merge "Add completion handler for ScreenshotHelper" into qt-qpr1-dev am: 8a91775d3f
am: 8de0b9defe

Change-Id: Ie6d578faa84c0ba0ddd4613db0025dfd80bfcfb4
2019-09-06 21:25:32 -07:00