474172 Commits

Author SHA1 Message Date
Lee Shombert
2a8802d2ca Revert "Fix exception handling in getState() binder cache"
This reverts commit 81a3e1c578b5618bf02968a9b4402e70592b7b9b.

Bug: b/153505953

Change-Id: I58c46e534ccadf332d10fff8f99c85ad24340c27
2020-04-08 21:12:52 +00:00
Ben Lin
388df60393 PIP: Disable hover show/hide menu if accessibility service is on.
With accessibility services on (e.g. Talkback), some MotionEvents get
transformed into HoverEvents. Notably in the case of TalkBack, tapping
on PIP will generate a pair of Hover enter/exit event, which then causes
the menu to immediately show/hide, and the user is unable to do
anything.

We will disable the hover behavior for Accessibility services, and allow
TalkBack users and such to open the menu via other menus (just tapping
it twice so it shows menu similiar to a regular user flow).

Bug: 152588263
Test: Enable talkback, enter PIP, tap once and then again - menu shows
Change-Id: I28c8faa0032bc2c7b8fa1ef5a9efde94a590293e
2020-04-08 14:07:06 -07:00
Soonil Nagarkar
9d11b38184 Fix initialization bug in LocationRequest
Bug: 153516795
Test: atest BatterySavingLocationTest && manual
Change-Id: I32f7813b16ed747f1da8066714803e7f85ffb5b4
2020-04-08 14:01:17 -07:00
TreeHugger Robot
1fdf62b72f Merge "Seek bar polish" into rvc-dev 2020-04-08 20:55:31 +00:00
TreeHugger Robot
67e6a453f7 Merge changes Iebd8d368,Ibdf24604 into rvc-dev
* changes:
  Expand logging in PipManager
  Log debug messages in PipMenuActivity
2020-04-08 20:54:43 +00:00
Tiger Huang
b7dda7d9d5 Merge "Only use the IME target from IMMS to update the IME control target" into rvc-dev 2020-04-08 20:45:59 +00:00
Qasid Sadiq
693c69ca30 Merge "Use current user isntead of system user if no --user parameter is passed" into rvc-dev 2020-04-08 20:40:11 +00:00
Lucas Dupin
ff92353f27 Calculate spacers properly
The number of spacers should be how many tiles we can fit, minus
how many we have.

Bug: 152628601
Test: manual
Change-Id: I7cddaba3282068ab6f059baff5ad774ae9bf8b11
2020-04-08 13:37:03 -07:00
Matt Pietal
1ee1db8268 Controls UI - Icon updates, round 2
More icons

Bug: 152531655
Test: visual
Change-Id: If9f97c04d2e61d19b98e13e60129ac44dd1083ce
2020-04-08 16:28:40 -04:00
Tyler Gunn
9b82cceb59 Merge "Add carrier config to support local disconnect of empty IMS conference." into rvc-dev 2020-04-08 20:15:32 +00:00
Joshua Mccloskey
a0222398c5 Merge "Set pending client to null after timeout resumes" into rvc-dev 2020-04-08 19:58:19 +00:00
Igor Murashkin
69dfddf46e AppLaunch: use iorapd's dumpsys command interface
Make the iorapd compilation more robust by introducing retries and
switching to direct iorapd dumpsys commands instead of indirect
commands.

Test: forrest runs
Test: am instrument (manual)
Bug: 152322429
Change-Id: I7f75f0df95a1a5272237295a75bed8c34f95f859
2020-04-08 12:54:11 -07:00
TreeHugger Robot
9b2931e973 Merge "dexopt: Add listeners when packages are updated by bg-dexopt" into rvc-dev 2020-04-08 19:48:41 +00:00
Ruslan Tkhakokhov
0b7f98325b Merge "Try to reapply live wallpaper component once it's installed" into rvc-dev 2020-04-08 19:39:23 +00:00
Selim Cinek
792eb06ff0 Fixed the transformation of min priority notifications
The headertext wasn't animating to the title anymore because
the order of the low-priority call has changed in a refactor
We're now looking at the datasource directly instead of looking
at the row state avoiding the ordering issue

Fixes: 151253867
Test: add min priority notification, observe header transforms to title
Change-Id: I7dc8f5fdef4f1f449064e66bcc63a85f7e69a185
2020-04-08 12:36:43 -07:00
Makoto Onuki
52c24bdedf Merge "Context.getSystemService() shouldn't return null..." into rvc-dev 2020-04-08 19:33:30 +00:00
TreeHugger Robot
4af07bb5f7 Merge "Add enable/disable permission to permissioncontroller" into rvc-dev 2020-04-08 19:19:47 +00:00
Alex Buynytskyy
0a646ca739 Better test for setStorageParams.
Using service connector - as would DataLoaders do - instead of calling
service method directly.

Bug: b/153530451
Test: atest IncrementalServiceTest
Change-Id: I43b9ffa235204b073465c19ab32c0435d2dfe755
2020-04-08 12:18:01 -07:00
Andrei Onea
a8766420c6 Add method to greylist
Add Landroid/hardware/camera2/CameraMetadata;->getNativeMetadataPtr()J
to greylist so that
CameraManagerTest#testCameraCharacteristicsNdkFromSdk no longer needs
to forego hidden api checks.

Bug: 149594233
Test: atest CameraManagerTest#testCameraCharacteristicsNdkFromSdk
Test: adb install -r -g CtsCameraTestCases.apk && \
      adb  shell am instrument -e class \
	'android.hardware.camera2.cts.CameraManagerTest#testCameraCharacteristicsNdkFromSdk' \
	-w 'android.camera.cts/androidx.test.runner.AndroidJUnitRunner'
Change-Id: Ibd53dd198efc5722e20f153ef5cc9433e5b7539d
2020-04-08 19:56:52 +01:00
TreeHugger Robot
75de521133 Merge "Controls UI - Fix heating color" into rvc-dev 2020-04-08 18:54:56 +00:00
TreeHugger Robot
7284bf15da Merge "Fix AIBinder_linkToDeath cookies" into rvc-dev 2020-04-08 18:52:00 +00:00
tsaichristine
8dca82ed94 statsd unit test and benchmark refactor
Abstract test utilities into two new functions: writeAttribution and
parseStatsEventToLogEvent

Bug: 149590301
Test: bit statsd_test:*
&& bit statsd_benchmark:*

Change-Id: I5f77646b6d2d828344b8b6de8777a60d98f96d58
2020-04-08 11:48:09 -07:00
TreeHugger Robot
53566da190 Merge "DO NOT MERGE Add listener ids for location listening operations" into rvc-dev 2020-04-08 18:45:19 +00:00
Lucas Dupin
cb6726f1d4 Align power menu items, for portrait and landscape
Test: visual
Bug: 152628601
Change-Id: I68840dd74937d46d8ab007ca837d7dd219c008e6
2020-04-08 11:40:28 -07:00
Robert Snoeberger
a9b8d7f032 Seek bar polish
Items:
 - use proper style
 - align left and right sides of seek bar with other elements
 - still show bar when progress is disabled

Bug: 150724977
Test: manual - play music and look at seek bar
Test: manual - play iHeartRadio for example with progress disabled
Test: manual - play spotify which has seek disabled and check style
Change-Id: I340df584ae4dfa0331eedd0e9fd20fcec19ba8da
2020-04-08 18:35:41 +00:00
Riddle Hsu
4cd3e2f25f Fix inverted ANR log message
To avoid misunderstanding while checking the log.

Bug: 143573504
Test: CtsAppTestCases:ActivityManagerTest#testAppNotResponding
Change-Id: I162aab785cd83db5db6cb33279f0b4ab0a458e94
2020-04-09 02:26:58 +08:00
Robert Carr
6cc720b70a ViewRootImpl: Pass buffer to finishDrawing when requested
As the final enabler for the BLASTSyncEngine, we add a new relayout
result BLAST_SYNC. If the WindowState is participating in a BLAST sync
during relayout we return it to the client. If we return it to the
client the client will direct it's next draw in to a BLAST transaction
and report that transaction via finishDrawing. You can now observe
the BLASTSyncEngine working end to end in TaskOrganizerMultiWindowTests.
We do a few small clean-ups in TaskOrganizerMultiWindowTest while we
are there.

Bug: 153561718
Test: TaskOrganizerMultiWindowTests
Change-Id: I719b731350b942aafa444a33972aaef8973422ea
2020-04-08 11:18:09 -07:00
Riddle Hsu
89e8206393 Use full bounds if fixed aspect ratio does not apply
If a non-resizable activity can fill the non-decor space,
its bounds should not exclude decor bounds because the
activity and decor can show as a continuous area. otherwise
unexpected letterbox may be created and IME cannot attach
to it due to the activity doesn't match parent's bounds.

Fix: 152197007
Test: SizeCompatTests#testAspectRatioMatchParentBoundsAndImeAttachable

Change-Id: I61d2c99702fb8642a3bf5728949489b6b98eb508
2020-04-09 02:16:37 +08:00
Zhen Sun
45ab4ecb34 Merge "Add module for TvSettingsUIInteracted atom" into rvc-dev 2020-04-08 18:12:57 +00:00
TreeHugger Robot
2a6add988c Merge "Fix race condition in OomAdjuster." into rvc-dev 2020-04-08 18:01:36 +00:00
Andrii Kulian
ac4b972e7a Merge "6/n Manage multiple task display area in the policy" into rvc-dev 2020-04-08 17:35:42 +00:00
Erin Yan
6e8490abb6 Remove unlock dialog from sysui
Bug: 153104923
Test: m -j CarSystemUI && adb sync && adb shell pkill systemui
      Manually tested:
      1) Boot with no security;
      2) Boot with security and unlock;
      3) Boot with security, cancel unlock and switch to user with
      security;
      4) Boot with security, cancel unlock and switch to user without
      security.

Change-Id: Id8f13db3d5b53ffd6b3d8624ea2e3f51982b4910
2020-04-08 10:31:46 -07:00
Ruslan Tkhakokhov
4f8a9d98c5 Try to reapply live wallpaper component once it's installed
See go/br-fr-live-wallpaper for context

Bug: 30205325
Test: 1. Set live wallpaper (from pre-installed / from a 3p app Muzei)
      2. Run Backup Now
      3. Wipe the device
      4. Restore (regular/deferred)
      5. Verify the same live wallpaper is set
Change-Id: Iacdb4e4b4bd895740f0a7f72f075a24fae1ae368
2020-04-08 17:28:42 +00:00
Adrian Roos
d686b084ec Insets: Fix DecorView consuming of insets
Previously, disabling the consuming logic was
done based on whether we target R.

But this:
- didn't work for Q apps that already use the new API
- causes a bit of unnecessary behavior churn
- requires special-casing the IME

Instead, we look at whether the app has requested to
handle insets with the R setDecorFitsSystemWindows API.

Fixes: 152384150
Test: atest DecorInsetSdk29Tests DecorInsetTests
Change-Id: I754851d0c11dccd21c2fa011cfdc3f0d7396cf60
2020-04-08 19:25:45 +02:00
Christine Franks
be3b2304d2 Merge "Differentiate per-layer saturation levels" into rvc-dev 2020-04-08 17:16:00 +00:00
TreeHugger Robot
04b2ace944 Merge "Synchronize adapter registration with mCallbacks" into rvc-dev 2020-04-08 17:13:15 +00:00
Ruchir Rastogi
e20c53e5b1 Fix AIBinder_linkToDeath cookies
StatsPullerManager should be declared on the heap because wp's can only
point to objects on the heap.

Test: bit statsd_test:*
Test: atest GtsStatsdHostTestCases
Test: atest CtsStatsdHostTestCases
Bug: 153237308
Change-Id: I579375f5bd2db9557f108f39916d69f368865478
2020-04-08 10:07:48 -07:00
Joshua Tsuji
7dd88b0209 Delete BubbleTouchHandler in favor of more traditional touch handling.
This will scale better as we add more views and gestures.

Test: manual (fixing test suite now, just getting out for review!)
Bug: 152877243
Merged-In: I46001c24f4de58c3d70b7629a22b930fa791b77a
Change-Id: I46001c24f4de58c3d70b7629a22b930fa791b77a
2020-04-08 16:59:11 +00:00
shafik
2a20790621 Make OPSTR_MANAGE_EXTERNAL_STORAGE test API
We need that to enable CTS for Environment#isExternalStorageManager API

Test: build
Bug: 152478019
Change-Id: I8c24c08991558629c83a25b4bed89c817723d732
2020-04-08 17:49:47 +01:00
Anton Hansson
eb34cbee12 Use module_current to build module stubs
module_current is always built from sources, whereas the
other SDK jars are being transitioned to be composed of
a set of stubs. This avoids the dependency cycle of module
stubs depending on themselves.

Bug: 144149403
Test: m
Change-Id: I31c6d0fa958aa502131352716a9f950828b7829c
2020-04-08 16:37:10 +01:00
Anton Hansson
e4a55252b2 Don't specify sdk_version for stubs
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.

Bug: 144149403
Test: m
Change-Id: I3e9e3cca6fe0b6dfc7645b91f5cab645350c0f9a
2020-04-08 16:25:38 +01:00
Anton Hansson
46ff0ee6e2 Don't specify sdk_version for stubs
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.

Bug: 144149403
Test: m
Change-Id: Ie78e2a934ed52cc9ad31dc6a3c0fb7e0c4b915a1
2020-04-08 16:22:24 +01:00
Anton Hansson
fde19f0a02 Don't specify sdk_version for stubs
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.

Bug: 144149403
Test: m
Change-Id: Ibc2a1af60f10dd5d270e502011a70e20e7ed934a
2020-04-08 16:21:32 +01:00
Tyler Gunn
edb826c298 Merge "Add carrier config to indicate if cep is supported on peer." into rvc-dev 2020-04-08 15:02:11 +00:00
TreeHugger Robot
afef06a0f6 Merge "Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""" into rvc-dev 2020-04-08 14:48:39 +00:00
TreeHugger Robot
6acebc809a Merge "Don't ask libc for PT feature w/o kernel support." into rvc-dev 2020-04-08 14:15:23 +00:00
Charles Chen
4bff5be1a9 Fix WindowContext leak
The root causes of this issue are:
  1. WindowTokenClient#attachContext makes WindowTokenClient has strong
     reference to WindowContext, which leads to WindowContext cannot be
     GC'd.
  2. WMS#removeWindowToken needs MANAGE_APP_TOKEN permission which
     normal apps don't hold.

This CL does following things:
  1. Use weak reference instead on WindowTokenClient#mContext.
  2. Relax WMS#removeWindowToken to check callingUid if
     MANAGE_WINDOW_TOKEN permission is not held
  3. Deliver config changes to the client side in
     WMS#addWindowTokenWithOption
  4. Some minor fixes

fixes: 150812449
Bug: 150715095
Test: atest WindowContextTest
Test: atest WindowManagerServiceTests
Test: atest WindowTokenTests
Test: atest WindowManagerPermissionTests#testMANAGE_APP_TOKENS
Test: atest
WindowManagerPermissionTests#testADD_WINDOW_TOKEN_WITH_OPTIONS

Change-Id: I9f1d73af2abb78fc9844e6d9eb25e9f0293514e7
2020-04-08 21:30:24 +08:00
Sergey Nikolaienkov
2204a7a003 Fix registering PiP transition calback in PipManager multiple times
Fix registering PiP transition callback in PipManager's constructor two
times, and thus receiving two calls every time transition state changes,
which caused the linked below bug.

Bug: 153517179
Test: manually
Change-Id: Ib948b4911f7c6b8c3b0abecb3b293c2e27aefda1
2020-04-08 15:26:39 +02:00
Sergey Nikolaienkov
53da4daade Expand logging in PipManager
Expand logging in PipManager to make debugging easier.

Bug: 153517179
Test: manually
Change-Id: Iebd8d368dab4c83a78f5ef638bf7d1ec73a9c661
2020-04-08 15:22:58 +02:00
Tony Mak
976cd96983 Fix an issue that setMaxSuggestions(-1) throws unexpectedly
As per the javadoc, -1 is a valid input.

BUG: 153529167

Test: ag/10976796
Change-Id: I4cf172fbd36b893428be1bb87a9ccb0b7c5c3c6a
2020-04-08 14:16:11 +01:00