Commit Graph

449469 Commits

Author SHA1 Message Date
Fabian Kozynski
5ca7a51c11 Finish migrating to BroadcastDispatcher
This CL migrates most of the remaining classes to use
BroadcastDispatcher. Some classes left are Views or created before the
BroadcastDispatcher can be injected.

Adds docs for instructions on using the BroadcastDispatcher.

Using the broadcast dispatcher, the time system_server spends
dispatching common intents to SystemUI like SCREEN_OFF and SCREEN_ON can
be seen to decrease from ~70-150ms (in a Q build) to ~2-4ms.

Additionally, once a broadcast is received by the dispatcher, time
until it is fully dispatched inside SystemUI is not impacted greatly.
Most broadcasts are fully dispatched after ~20ms with a few of them
taking ~100ms.

Test: atest SystemUITests no regressions
Test: build and boot
Test: tried some random broadcasts and they are properly dispatched
Test: BroadcastDispatch dump
Test: adb shell dumpsys activity broadcasts
Bug: 134566046

Change-Id: I26a592be66b053f25669b5481b58bf7f07bfd0da
2019-11-04 10:53:26 -05:00
TreeHugger Robot
3e900e92c5 Merge "Use Telecomm API to build emergency dialer intent." 2019-11-04 15:23:33 +00:00
TreeHugger Robot
9f4153da71 Merge "Remove Thread.sleep()" 2019-11-04 13:26:00 +00:00
wilsonshih
da28d60ce0 Merge "Try to rebind disconnected wallpaper service for 10 seconds." into qt-qpr1-dev am: c1e4900355
am: 167389ddb6

Change-Id: I2744e6d89207b8280480dcb54ac0c38d319c1aea
2019-11-04 04:44:45 -08:00
wilsonshih
167389ddb6 Merge "Try to rebind disconnected wallpaper service for 10 seconds." into qt-qpr1-dev
am: c1e4900355

Change-Id: I398d8eab34b88b5a6b3448a838ff4b0d3395bf05
2019-11-04 04:39:17 -08:00
TreeHugger Robot
c1e4900355 Merge "Try to rebind disconnected wallpaper service for 10 seconds." into qt-qpr1-dev 2019-11-04 12:21:54 +00:00
TreeHugger Robot
868426bfb3 Merge "Revert "Add BackupEncryption apk as requirement for services"" 2019-11-04 11:02:44 +00:00
JW Wang
7c64df5e7b Reconnect internet after testing
Reconnect internet so we won't break tests that assume internet is
available.

This is a patch to fix the regression caused by ag/9648483.

Bug: 143514090
Test: atest StagedRollbackTest CtsLibcoreTestCases:DatagramChannelMulticastTest
Change-Id: Ic0ef26027388500795b3555f5a56f82bfc1b975e
2019-11-04 10:17:59 +00:00
Martijn Coenen
d231b2a363 Merge "Don't hold sProxyLock while retrieving interface descriptors." am: ef6fe13c77 am: d4d27b403c
am: 3d4d4253e4

Change-Id: I27540c32f7150eff152b324c4edccc6afcce6b92
2019-11-04 00:29:53 -08:00
Martijn Coenen
3d4d4253e4 Merge "Don't hold sProxyLock while retrieving interface descriptors." am: ef6fe13c77
am: d4d27b403c

Change-Id: Ibcdc21838228db0286f3ea4538fd58a03370db35
2019-11-04 00:24:19 -08:00
Martijn Coenen
d4d27b403c Merge "Don't hold sProxyLock while retrieving interface descriptors."
am: ef6fe13c77

Change-Id: Ie54978b2f19e42c47992e04c2f41c55d8c61df5b
2019-11-04 00:13:53 -08:00
Martijn Coenen
ef6fe13c77 Merge "Don't hold sProxyLock while retrieving interface descriptors." 2019-11-04 07:51:11 +00:00
JW Wang
8f17256df3 Merge "Rewrite testNetworkFailedRollback" 2019-11-04 03:02:17 +00:00
Kyunglyul Hyun
61094d7cd1 Merge "MediaRouter2: Revise MediaRouter2.Callback.onRoute**" 2019-11-04 02:43:10 +00:00
TreeHugger Robot
591f29d830 Merge "Documenting PendingIntent identifying flags" 2019-11-04 01:54:07 +00:00
Amit Mahajan
15ebafd98e [automerger skipped] Merge "Move SmsApplication to telephony/common." am: f7aec5de09 am: 23c8673670
am: c93fe50d62 -s ours
am skip reason: change_id I8662c210319523abe64feaf0610af19fd285c8ca with SHA1 1ec2e61e7f is in history

Change-Id: Id9818de9e184524ca613d541a81cc70d18d358da
2019-11-03 15:07:18 -08:00
Amit Mahajan
c93fe50d62 Merge "Move SmsApplication to telephony/common." am: f7aec5de09
am: 23c8673670

Change-Id: Ib21670e2ceac1ef25194aa409fa9e01245b26f24
2019-11-03 15:00:51 -08:00
Amit Mahajan
23c8673670 Merge "Move SmsApplication to telephony/common."
am: f7aec5de09

Change-Id: I42536cdea1b27ef21998b3d5ff1554ac16c6af9f
2019-11-03 14:54:10 -08:00
Amit Mahajan
f7aec5de09 Merge "Move SmsApplication to telephony/common." 2019-11-03 22:39:39 +00:00
Paul Duffin
a563ef7aca Merge "Regenerate API signatures to add missing nullability annotations" am: 0f5b246260 am: c7e4291429
am: 89aebd2c81

Change-Id: I7e57d1f393b72edf1beb385611fbbc06802fd444
2019-11-03 14:05:09 -08:00
Amit Mahajan
2852ffb9bd [automerger skipped] Merge "Move SmsNumberUtils from opt/telephony to base/telephony/common." am: 70dd5380b0 am: b12adaa49e
am: 2b2d762654 -s ours
am skip reason: change_id I14555c2a641a7ad1a5ca7608d8fa05fa34bbb0f8 with SHA1 24ade16aa0 is in history

Change-Id: I0d907d776f39d6f4b523814a764081b0b5063c8b
2019-11-03 13:52:25 -08:00
Paul Duffin
89aebd2c81 Merge "Regenerate API signatures to add missing nullability annotations" am: 0f5b246260
am: c7e4291429

Change-Id: I6e1f6dca7947922d1a6308ff52a3a7ea5ffaa507
2019-11-03 13:52:17 -08:00
Paul Duffin
c7e4291429 Merge "Regenerate API signatures to add missing nullability annotations"
am: 0f5b246260

Change-Id: I4542655fb830fb237b3f0c23523fb34a89d95870
2019-11-03 13:40:53 -08:00
Amit Mahajan
2b2d762654 Merge "Move SmsNumberUtils from opt/telephony to base/telephony/common." am: 70dd5380b0
am: b12adaa49e

Change-Id: I5979e79bbf33a76d0caa57178a6b16b322bc2675
2019-11-03 13:40:48 -08:00
Amit Mahajan
b12adaa49e Merge "Move SmsNumberUtils from opt/telephony to base/telephony/common."
am: 70dd5380b0

Change-Id: Ic9fc720e33ad631116e68ab1f54433ad3bc5043e
2019-11-03 13:28:55 -08:00
Treehugger Robot
0f5b246260 Merge "Regenerate API signatures to add missing nullability annotations" 2019-11-03 21:27:36 +00:00
Amit Mahajan
70dd5380b0 Merge "Move SmsNumberUtils from opt/telephony to base/telephony/common." 2019-11-03 21:13:41 +00:00
Amit Mahajan
872c7ef484 [automerger skipped] Merge "Create frameworks/base/telephony/common for common non-mainline telephony code." am: b14b8bf449 am: 4992cdab07
am: f7181f3c69 -s ours
am skip reason: change_id I0d92ed3fca1fc186484ea8d3c5d17b6e332e7d22 with SHA1 d355153dcb is in history

Change-Id: Iafb75761b891f361b534617244fa0a970d790b29
2019-11-03 09:54:49 -08:00
Amit Mahajan
f7181f3c69 Merge "Create frameworks/base/telephony/common for common non-mainline telephony code." am: b14b8bf449
am: 4992cdab07

Change-Id: I5b34015d0d621e7ea19ef93ca929f0696ac13ad3
2019-11-03 09:48:46 -08:00
Amit Mahajan
4992cdab07 Merge "Create frameworks/base/telephony/common for common non-mainline telephony code."
am: b14b8bf449

Change-Id: Ifa50ddcb0925525c2f82d35bf3e1e976eb302c44
2019-11-03 09:37:02 -08:00
Amit Mahajan
b14b8bf449 Merge "Create frameworks/base/telephony/common for common non-mainline telephony code." 2019-11-03 17:19:42 +00:00
Bill Yi
b02a14b18c Import translations. DO NOT MERGE
Change-Id: Id8ea40003d7596b4cfc5258c6f1d307d237496b9
Auto-generated-cl: translation import
2019-11-02 14:20:28 -07:00
Jiyong Park
d60c0eaebc Merge "android.test.mock is built with much less number of sources" am: f0b9dfc0b1 am: a321a944ea
am: dcfd8ddce7

Change-Id: I67d7d2e9e490fd71c472e38e105c8fcfcb17df60
2019-11-02 01:27:25 -07:00
Jiyong Park
dcfd8ddce7 Merge "android.test.mock is built with much less number of sources" am: f0b9dfc0b1
am: a321a944ea

Change-Id: I5f8ac544302ecc1fe9972bcb7237586b8adcc70a
2019-11-02 01:20:38 -07:00
Jiyong Park
a321a944ea Merge "android.test.mock is built with much less number of sources"
am: f0b9dfc0b1

Change-Id: Ic6d7b3f6d406b14c5649b7efabae72542fb2ece7
2019-11-02 01:14:25 -07:00
Jiyong Park
f0b9dfc0b1 Merge "android.test.mock is built with much less number of sources" 2019-11-02 08:00:04 +00:00
Dave Mankoff
b8901703be Merge changes from topics "b143224715-broadcast-injection", "b143224715-status-bar-in-app"
* changes:
  Make BroadcastReceivers Injectable.
  Register OverlayPlugins in StatusBar directly.
2019-11-02 02:14:52 +00:00
Jing Ji
be66ddd989 Merge "Process adj could stay at UNKNOWN_ADJ till next full adj update" 2019-11-02 01:03:43 +00:00
Dave Mankoff
aefb346f51 Make BroadcastReceivers Injectable.
GlobalScreenshot.ActionProxyReceiver was calling
getComponent(context, StatusBar.class). With this change, StatusBar is now
injected into the constructor of that class.

Bug: 143224715
Test: atest SystemUITests
Change-Id: I2f635ce98c1c0e2326784c4558b28ce51f347fa9
2019-11-01 20:58:34 -04:00
Dave Mankoff
2e484926ff Register OverlayPlugins in StatusBar directly.
This removes the last call to getComponent(StatusBar.class).
Prior to this change, we would register a listener for OverlayPlugins
inside the SystemUIApp. Because they are directly related to the
StatusBar, it is safe and appropriate to have the StatusBar register
with the PluginManager itself.

Bug: 143224715
Test: atest SystemUITests
Change-Id: I5ecdf6a4dae05ba674bcbcd940b9f2655d2b1cbb
2019-11-01 20:58:34 -04:00
Suprabh Shukla
e513a8d14c Documenting PendingIntent identifying flags
Test: make docs

Bug: 143764310
Change-Id: I04accd4ae6ff3eb260ca96744c00a995e081688c
2019-11-01 17:55:03 -07:00
Android Build Merger (Role)
f1ce426482 Merge "[automerger skipped] Merge "Added new constructor to AudioGroup." am: 3f75a84507 am: 1778e161d9 am: b5cf529724 -s ours am skip reason: change_id Ic7ca45d5fab27469a3cc8654cd05a10bd55f7e87 with SHA1 d5a71c7bac is in history" 2019-11-02 00:30:47 +00:00
Amit Mahajan
ce3ed09a86 [automerger skipped] Merge "Added new constructor to AudioGroup." am: 3f75a84507 am: 1778e161d9
am: b5cf529724 -s ours
am skip reason: change_id Ic7ca45d5fab27469a3cc8654cd05a10bd55f7e87 with SHA1 d5a71c7bac is in history

Change-Id: I5b94c17d09d0540c9354978a65551d38992a2291
2019-11-01 17:28:56 -07:00
Tim Murray
d383cb1077 Merge "TouchLatency: don't recreate DecimalFormat on every frame" 2019-11-02 00:27:36 +00:00
Evan Rosky
5998c1831f Merge "Add a remote control mechanism for window containers" 2019-11-02 00:26:59 +00:00
Amit Mahajan
b5cf529724 Merge "Added new constructor to AudioGroup." am: 3f75a84507
am: 1778e161d9

Change-Id: I0d6cdc5c5359a148d6586e0905cebefa77e417a6
2019-11-01 17:18:40 -07:00
Amit Mahajan
1778e161d9 Merge "Added new constructor to AudioGroup."
am: 3f75a84507

Change-Id: If3149f796c30d5268553ed3ec7654690fd720703
2019-11-01 17:11:36 -07:00
JW Wang
4cb97c5f47 Remove Thread.sleep()
Install#commit ensures a staged session is ready before the function
returns. So we don't need to sleep to wait for disk IO to complete.

Bug: 143211397
Test: atest StagedRollbackTest
Change-Id: Ic4b53dc5aaef7a22d7d64c14ee4f77bee84c26b1
2019-11-02 08:04:16 +08:00
JW Wang
eae2c7cdbe Rewrite testNetworkFailedRollback
This is an effort to fix flaky StagedRollbackTest.

ag/9614192 adds support for native file path to TestApp so now we can
install network stack package using install.lib which provides better
tools for logging and synchronization than shell commands. This will
facilitate debugging flakiness.

Also move other code to device tests for the same reason.

Bug: 143211397
Test: atest StagedRollbackTest
Change-Id: I971618da3defade4693be154ab523f1cbfea5b7c
2019-11-02 08:04:16 +08:00
Amit Mahajan
3f75a84507 Merge "Added new constructor to AudioGroup." 2019-11-01 23:58:34 +00:00