Commit Graph

105404 Commits

Author SHA1 Message Date
Charles Chen
2ca88b4ce2 Merge changes Ida26b961,I1d416b9c into rvc-dev am: 413ce328e5 am: f8bc6fe4fa
Change-Id: I6f251b0656c782141f17b2721163d72edd748596
2020-04-27 09:31:18 +00:00
Charles Chen
f8bc6fe4fa Merge changes Ida26b961,I1d416b9c into rvc-dev am: 413ce328e5
Change-Id: Iebc23280e98ab0adf63ccab359847f4ef1457849
2020-04-27 09:12:47 +00:00
Charles Chen
413ce328e5 Merge changes Ida26b961,I1d416b9c into rvc-dev
* changes:
  Fix error in DecorView's ViewConfiguration
  Fix DecorView error about non-visual context
2020-04-27 08:57:58 +00:00
Charles Chen
6661575791 Fix DecorView error about non-visual context
This error showed because DecorContext uses application context
to get WindowManager. This CL changes to use PhoneWindow to obtain
WindowManager instance. Also refactor ctr to obtain context from
PhoneWindow.

Bug: 152806048
Test: manual - enable strict mode and check the error log not shown.
Test: atest DecorContextTest
Test: atest MemoryTests#testActivityRecreation
Change-Id: I1d416b9cdb015c9bc3553571041f3b14bb9da5da
2020-04-27 16:37:46 +08:00
TreeHugger Robot
4db9ae8cf1 Merge "Keeps the served view of the window when focus to the next window" into rvc-dev am: 6e9ee1c78f am: 21f73b0d90
Change-Id: I70d098e733a560491610d016302b6a0d00113c25
2020-04-27 05:09:47 +00:00
TreeHugger Robot
21f73b0d90 Merge "Keeps the served view of the window when focus to the next window" into rvc-dev am: 6e9ee1c78f
Change-Id: Ie1466e718a9dadb008120d515f2b7523625f3587
2020-04-27 04:55:13 +00:00
TreeHugger Robot
6e9ee1c78f Merge "Keeps the served view of the window when focus to the next window" into rvc-dev 2020-04-27 04:40:38 +00:00
Ming-Shin Lu
6743813471 Keeps the served view of the window when focus to the next window
CL[1] intends to reset served view and restart input state when focus to
the next window, which the main idea is try to make the lifecycle of the
input connection can more aligned with the window focus change.

However, this behavior change unexpectedly breaks Gboard
TranslatesUIExtention that will closeExtensionView when
onFinishInputView -> onDeactivate called, while launching language
selection dialog.

Remove the reset logic as the lifecycle of input connection still
needs to break down.

[1]: I8d4fff94ba9313b773bc27fcbd019cc88580d3e9

Fix: 152373385
Test: To make sure not break Bug 148489857 and Bug 148788569, following
auto / manual test to verify:
 - Auto: atest FocusHandlingTest#testKeyboardStateAfterImeFocusableFlagChanged
 - Manual:
    1) Build / install EditTextVariations
    2) Select menu -> Direct-Reply, make sure Notification comes up.
    3) Tap EditText on Notification, verify soft-keyboard is visible.

Change-Id: If20cdb43ecd013c330c5e16c73e9af972bd89f33
2020-04-27 03:22:52 +00:00
Ytai Ben-tsvi
503ee719e1 Merge "Deliver internal server errors to the client" into rvc-dev am: f7d789b0ed am: 62fa87cbf4
Change-Id: Iafb290d16686ab312326807cf9d2a33f59b0be8f
2020-04-25 02:08:26 +00:00
Ytai Ben-tsvi
62fa87cbf4 Merge "Deliver internal server errors to the client" into rvc-dev am: f7d789b0ed
Change-Id: Idb37874ad118697de79617f6d705cacc8c2bd37a
2020-04-25 01:47:33 +00:00
Ytai Ben-tsvi
f7d789b0ed Merge "Deliver internal server errors to the client" into rvc-dev 2020-04-25 01:34:06 +00:00
TreeHugger Robot
f1ec3ffd73 Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev am: 525fab26a1 am: ce289c6dbf
Change-Id: Ie3092de865c550d714ee341193e0eb921facfa4a
2020-04-25 01:19:39 +00:00
TreeHugger Robot
ce289c6dbf Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev am: 525fab26a1
Change-Id: Ie3903b8778b9adf92ccc299d059bfe1fe724d870
2020-04-25 01:19:15 +00:00
TreeHugger Robot
9b4e7f2f0b Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev am: 525fab26a1
Change-Id: Ibb1b6407511fed98652bf786226907a1a6557dab
2020-04-25 01:18:48 +00:00
Darryl Johnson
e84cf54676 Merge "Revert "Try to reland Ib3ee007bc"" into rvc-dev am: 637fd24378 am: a76e26ed96
Change-Id: I91387342b92c1f00ed5b6a06cbe45ee4d99b09ad
2020-04-25 01:18:29 +00:00
TreeHugger Robot
525fab26a1 Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev 2020-04-25 01:16:49 +00:00
Darryl Johnson
f6ada05a3a Merge "Revert "Try to reland Ib3ee007bc"" into rvc-dev am: 637fd24378
Change-Id: Ia64fd480a6d265039bad35393a3dbec547fd2c37
2020-04-25 01:02:01 +00:00
Darryl Johnson
a76e26ed96 Merge "Revert "Try to reland Ib3ee007bc"" into rvc-dev am: 637fd24378
Change-Id: I49e8b4475ee52dc48faf7f73b77446e4919d926a
2020-04-25 01:01:51 +00:00
Darryl Johnson
637fd24378 Merge "Revert "Try to reland Ib3ee007bc"" into rvc-dev 2020-04-25 00:37:46 +00:00
Darryl Johnson
87f93a5585 Revert "Try to reland Ib3ee007bc"
This reverts commit b6415618f1.

Reason for revert: Caused regression of b/149213586

Bug: 148639826
Bug: 149213586

Change-Id: I5248e03b42e3f24a6e2abb134d0bf339e77f484b
2020-04-24 23:50:53 +00:00
Ytai Ben-Tsvi
458930753d Deliver internal server errors to the client
Due to a binder limitation (b/150808347), any unexpected exception
thrown by a binder service while processing an RPC call, will be
silently discarded and the client will get back a default-initialized
result parcelable (i.e. in most cases, won't know that anything wrong
happened).

We work around this issue by throwing a ServiceSpecificException,
which does get delivered, having a special code to designate an
internal error. Errors resulting from a HAL malfunctions will result
in a HAL reboot, which leads to recovery.

Bug: 154089179
Test: Manual verification of basic error recovery scenarios by
      injecting HAL error codes and crashes.
Change-Id: Ib5dbe08a362e545501c04204bebad5ab95f5d632
2020-04-24 16:39:36 -07:00
Jing Ji
47061a4cd7 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev am: b344e0ac95 am: 9ef42068a4
Change-Id: I31d85c49c19c1636949569e4a885830e25c41a04
2020-04-24 23:14:36 +00:00
Jing Ji
9ef42068a4 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev am: b344e0ac95
Change-Id: I6faa2256bc8ac682a702899bd97344d877a98f17
2020-04-24 23:13:40 +00:00
Jing Ji
47ae64c03f Merge "Fix test failure in testProcessStateByPulling" into rvc-dev am: b344e0ac95
Change-Id: I0e850a76c5c56d3d0eb7790f7726330ce7a9f694
2020-04-24 23:13:17 +00:00
Eugene Susla
a986bee4ed Merge "Update auto revoke deeplink action javadoc: extra -> Uri" into rvc-dev am: 181ef8dfa1 am: d57a34e141
Change-Id: I30573872432ccbfdb7cf34427f90f70ce07be0f1
2020-04-24 23:12:29 +00:00
Jing Ji
b344e0ac95 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev 2020-04-24 23:05:08 +00:00
Eugene Susla
d57a34e141 Merge "Update auto revoke deeplink action javadoc: extra -> Uri" into rvc-dev am: 181ef8dfa1
Change-Id: Iea6a1cb4ce15236d02876dde24f18f9fe1718654
2020-04-24 22:35:28 +00:00
Eugene Susla
442a423cd0 Merge "Update auto revoke deeplink action javadoc: extra -> Uri" into rvc-dev am: 181ef8dfa1
Change-Id: Idc6f0a882a0a4a7609f2704b9885f8d4b9e6d421
2020-04-24 22:35:10 +00:00
Eugene Susla
181ef8dfa1 Merge "Update auto revoke deeplink action javadoc: extra -> Uri" into rvc-dev 2020-04-24 22:27:00 +00:00
Adam Bookatz
aa59419bbd Add back ActivityManagerService.onUserRemoved
ActivityManagerService.onUserRemoved was accidentally removed in
ag/4246926. This cl adds it back.

The part of onUserRemoved that told ActivityTaskManagerService that
the user had stopped (and thereby cleaned up ATMS) was retained, but
the additional actions of AMS.onUserRemoved - namely, telling
BatteryStatsService and UserController - were accidentally removed.
Consequently, those services were never told when a user was removed.

Bug: 140645064
Test: manual verification that profile is removed in  adb shell dumpsys activity users
Change-Id: I903b06ae68d583bdb326ad3b764a63d18b5555d8
2020-04-24 22:24:05 +00:00
TreeHugger Robot
2ebe45c967 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev am: 8f0b08f178 am: 7bb412a077
Change-Id: Ibed2c8ab7499e7a8bda2286397f61bb259e2acf4
2020-04-24 21:38:34 +00:00
TreeHugger Robot
8c952be985 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev am: 8f0b08f178
Change-Id: I2f7f8018de645e17c2a937ce16cdcce5898ea011
2020-04-24 21:26:30 +00:00
TreeHugger Robot
7bb412a077 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev am: 8f0b08f178
Change-Id: I26b4d161bc6bdddc5cad63c2c82e6f6292006ab0
2020-04-24 21:26:20 +00:00
TreeHugger Robot
8f0b08f178 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev 2020-04-24 21:16:54 +00:00
Sally Yuen
1a1737f636 Merge "Add @TestApi to registerSystemAction and unregisterSystemAction" into rvc-dev am: 8ab42a27ce am: e5c438c6f6
Change-Id: I8cebef9f8e25b6c0d6a2c78ec2c48381289f1f15
2020-04-24 20:25:46 +00:00
Sally Yuen
aaf3e873b2 Merge "Add @TestApi to registerSystemAction and unregisterSystemAction" into rvc-dev am: 8ab42a27ce
Change-Id: I521da2c85c764d0ee847a2db8a6073c5aebb6d54
2020-04-24 20:16:38 +00:00
Sally Yuen
e5c438c6f6 Merge "Add @TestApi to registerSystemAction and unregisterSystemAction" into rvc-dev am: 8ab42a27ce
Change-Id: I7c97e46a8ca56fbf84c143b290a0f0a514d0d71d
2020-04-24 20:16:22 +00:00
Sally Yuen
8ab42a27ce Merge "Add @TestApi to registerSystemAction and unregisterSystemAction" into rvc-dev 2020-04-24 20:12:16 +00:00
TreeHugger Robot
e7500cfb90 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev am: 137f875360 am: ced1535de3
Change-Id: Ic92bca92748f82ac6db7168dff6322f1376c1e4c
2020-04-24 17:52:18 +00:00
TreeHugger Robot
02b98479c2 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev am: 137f875360
Change-Id: Ic9b2c0ede17fbf8a38d49f31ab5ef19768438541
2020-04-24 17:36:53 +00:00
TreeHugger Robot
ced1535de3 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev am: 137f875360
Change-Id: I26455053d1b27bb972bbf45ddf2aed432379a8eb
2020-04-24 17:36:44 +00:00
TreeHugger Robot
137f875360 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev 2020-04-24 17:23:42 +00:00
TreeHugger Robot
57e5456ddf Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev am: f0de93d7b2 am: 6cd7f6c60d
Change-Id: I446f2c732dc68bb9274b9c55f7f10e543cda7fd9
2020-04-24 14:48:44 +00:00
TreeHugger Robot
6cd7f6c60d Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev am: f0de93d7b2
Change-Id: Ie0e9c4b6717e87a1f1057318f93b7bfe9469c4bf
2020-04-24 14:37:20 +00:00
TreeHugger Robot
4e29126df6 Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev am: f0de93d7b2
Change-Id: Ib4c6ad568874e8f60fb097daace14d76ac417fba
2020-04-24 14:36:37 +00:00
TreeHugger Robot
f0de93d7b2 Merge "Use Arrays.hashCode in DeviceProductInfo" into rvc-dev 2020-04-24 14:24:25 +00:00
Robin Lee
9e1181302a Use waitForDeclaredService to get Lights HAL
We cache the reference to the HAL and use a DeathRecipient to keep track
of whether it's still good.

Adds waitForService and waitForDeclaredService to the ServiceManager
Java implementation because they were missing.

Test: atest LightsManagerTest
Test: atest LightsServiceTest
Bug: 152509747
Bug: 154631113
Bug: 154627432
Bug: 154629168
Change-Id: Ife8471f3a7e47b48bb31015ddf40f1d7fef6240f
2020-04-24 16:12:27 +02:00
Marin Shalamanov
90fd0b19f8 Use Arrays.hashCode in DeviceProductInfo
Using arrays in Objects.hash() is error prone. Instead we
call Arrays.hashCode().

Test: m services
Bug: 154302664
Change-Id: Icf00fbaa465ef60951998659ae0333b2faf7042b
2020-04-24 13:02:35 +00:00
Jing Ji
468e6c3909 Fix test failure in testProcessStateByPulling
Added a new flag "--statsd" to dumpsys procstats, it'll dump
the identical protobuf data as the one being sent to statsd;
these data is aggregated/reduced.  The tradtional "--proto"
is still supported in case the full data is needed.

Align the ProcStats's proto message definition with the statsd.

Fixed various other issues with ProcStats's dumping.

Bug: 148542701
Test: atest ProcStatsValidationTests
Change-Id: I5a22603bfbc97bfac93179289df839710364677d
2020-04-24 05:01:22 -07:00
TYM Tsai
6cce28ebbc Merge "Filter the content of the Bundles used as extras and styling APIs" into rvc-dev am: 4ddfdaf641 am: 5c913aeacc
Change-Id: Ib19b408a8aab0b7daf65082776ea510cc476dc4a
2020-04-24 09:08:09 +00:00