Commit Graph

105142 Commits

Author SHA1 Message Date
Diego Vela
7aedfae0b1 Merge "Update Documentation for onActivityResult." into rvc-dev am: 7c59c63943
Change-Id: Id885797db3cc7b3a141d96eaab3bb03c0c0a2f00
2020-04-27 18:06:02 +00:00
Aran Ink
ccdef33bd1 Merge "Add dismissImmediate to ListPopupWindow to prevent window leaks in GlobalActionsDialog." into rvc-dev am: 82e9872732
Change-Id: Ibb87bc73f7e419a92ae1d518072b902f50cddbad
2020-04-27 18:05:18 +00:00
Mehdi Alizadeh
b7c0bedadc Merge "Include cache-only and pinned-only shortcuts as Sharing shortcuts as well" into rvc-dev am: 666796b0fa
Change-Id: I5e7c4f894cb6ed3aa06be673c7dd48da99286a2f
2020-04-27 18:04:43 +00:00
Diego Vela
7c59c63943 Merge "Update Documentation for onActivityResult." into rvc-dev 2020-04-27 17:58:29 +00:00
Aran Ink
82e9872732 Merge "Add dismissImmediate to ListPopupWindow to prevent window leaks in GlobalActionsDialog." into rvc-dev 2020-04-27 17:57:15 +00:00
Mehdi Alizadeh
666796b0fa Merge "Include cache-only and pinned-only shortcuts as Sharing shortcuts as well" into rvc-dev 2020-04-27 17:47:23 +00:00
Rob Carr
6008585fa0 Merge "BLAST: Two start-up optimizations" into rvc-dev am: 9005cdcf01
Change-Id: I34258f14bce08ef29067d2be563b396f3e96eb9d
2020-04-27 17:30:48 +00:00
Taran Singh
cfbe05276f Merge "Add test for ImeInsetsSourceConsumer" into rvc-dev am: 88191952ec
Change-Id: Ibb292869e3bd82308dd805f6935cfe1159c9e822
2020-04-27 17:29:32 +00:00
Rob Carr
9005cdcf01 Merge "BLAST: Two start-up optimizations" into rvc-dev 2020-04-27 17:20:42 +00:00
Taran Singh
88191952ec Merge "Add test for ImeInsetsSourceConsumer" into rvc-dev 2020-04-27 17:08:05 +00:00
TreeHugger Robot
3dc3e75e95 Merge "Allow tests for more PermissionControllerManager methods" into rvc-dev am: bac5755dad
Change-Id: I80fd665bc10d8c8a36a5ea37e2ce2111297fa7ea
2020-04-27 16:24:34 +00:00
TreeHugger Robot
bac5755dad Merge "Allow tests for more PermissionControllerManager methods" into rvc-dev 2020-04-27 16:16:28 +00:00
Diego Vela
6e99bfcd6c Update Documentation for onActivityResult.
Update doc to be more accurate about when onActivityResult is called

Bug: 140608415
Test: n/a
Change-Id: If44b02719e18b3107b064d749396d896bed08f86
2020-04-27 15:10:18 +00:00
TreeHugger Robot
2682e47f9f Merge "CEC: Make HDMI CEC volume control configurable" into rvc-dev am: 77576fe964
Change-Id: I581946f1aea58a7f61dd8e9639862b8cf88cd95a
2020-04-27 12:34:59 +00:00
TreeHugger Robot
77576fe964 Merge "CEC: Make HDMI CEC volume control configurable" into rvc-dev 2020-04-27 12:26:23 +00:00
Alex Johnston
6e33365d5e Merge "Add factory reset protection policy Test API to DPM" into rvc-dev am: c5e9a48db8
Change-Id: Iefbf101897c96de20b8c896489ab026007a35d6a
2020-04-27 11:06:13 +00:00
Alex Johnston
c5e9a48db8 Merge "Add factory reset protection policy Test API to DPM" into rvc-dev 2020-04-27 11:04:46 +00:00
Marvin Ramin
da665a67f1 CEC: Make HDMI CEC volume control configurable
Add API (backed by Setting) to enable/disable volume changes via HDMI
CEC for HDMI CEC source devices.
This state is persisted via Settings.

If volume control is disabled, no incoming HDMI CEC commands related to
volume will be processed. If disabled, no HDMI CEC volume control
messages will be sent by the device.

Test: atest com.android.server.hdmi
Bug: 149800547

Merged-In: I83ae9b423122b540b9adb156fb1c6f5964dd6105
Change-Id: I83ae9b423122b540b9adb156fb1c6f5964dd6105
2020-04-27 12:35:56 +02:00
Charles Chen
edfff9e687 Merge changes Ida26b961,I1d416b9c into rvc-dev am: 413ce328e5
Change-Id: I2acbd395c60b36242106f8c0f282182dbe54b7ef
2020-04-27 09:12:33 +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
adc05d2256 Merge "Keeps the served view of the window when focus to the next window" into rvc-dev am: 6e9ee1c78f
Change-Id: I98231f251f08ddda9b9838737f7368b2bbbd5b13
2020-04-27 04:55:28 +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
Philip P. Moltmann
18247c1a8c Allow tests for more PermissionControllerManager methods
Test: atest RuntimePermissionPresentationInfoTest PermissionControllerTest
Bug: 155019930
Change-Id: I4baca0f35e7218fbf127d56fcdf1fe1855d64929
2020-04-26 17:52:41 -07:00
Ytai Ben-tsvi
20ec41785c Merge "Deliver internal server errors to the client" into rvc-dev am: f7d789b0ed
Change-Id: I3be1a7bdb367c9e583fb19fe92b973d1f658a921
2020-04-25 01:47:42 +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
ce289c6dbf Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev am: 525fab26a1
Change-Id: Ie3903b8778b9adf92ccc299d059bfe1fe724d870
2020-04-25 01:19:15 +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
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
47ae64c03f Merge "Fix test failure in testProcessStateByPulling" into rvc-dev am: b344e0ac95
Change-Id: I0e850a76c5c56d3d0eb7790f7726330ce7a9f694
2020-04-24 23:13:17 +00:00
Jing Ji
b344e0ac95 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev 2020-04-24 23:05:08 +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
Aran Ink
d397b9084d Add dismissImmediate to ListPopupWindow to prevent window leaks in GlobalActionsDialog.
Fixes: 154640131
Test: Manual -- Use 'adb shell dumpsys window windows || grep "PopupWindow"' to confirm number of PopupWindows displayed (should be zero at home screen.)
Open GlobalActions. Tap the power overflow menu and check number of PopupWindows while the overflow dropdown is visible (should be 1).
Put the phone to sleep by pressing the power button. Wake phone and make sure number of PopupWindows is 0.
Repeat with Controls structure switcher dropdown and add controls dropdown.

Change-Id: I4ae2d86e981465e8e6c0adf924a6fc2eabfc88ee
2020-04-24 18:06:14 -04:00
Robert Carr
b9cf275b9b BLAST: Two start-up optimizations
1. Avoid a seperate IPC querying in to system-server
   to initialize the mUseBLAST flag.
2. Avoid calling property_get_bool with each BufferQueue
   creation.

Instead we piggy-back both values inside addWindow return values.

Bug: 152501005
Test: Existing tests pass
Change-Id: If130560a8230f8d399cf7631264d551522939faa
2020-04-24 14:42:55 -07: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
8f0b08f178 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev 2020-04-24 21:16:54 +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
8ab42a27ce Merge "Add @TestApi to registerSystemAction and unregisterSystemAction" into rvc-dev 2020-04-24 20:12:16 +00:00
Taran Singh
8321a2a48d Add test for ImeInsetsSourceConsumer
Add test to verify that requestedVisibleAwaitingControl starts
animation. This is followup test for comment in commit
I958fc5747382109aa2f21bc1067a28746e7242d8

Bug: 154440912
Fix: 153577930
Test: atest ImeInsetsSourceConsumerTest
Change-Id: I08db27151605ac53b0575b08343b5a75dc2e5fc2
2020-04-24 11:37:30 -07: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
137f875360 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev 2020-04-24 17:23:42 +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
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