Commit Graph

103626 Commits

Author SHA1 Message Date
TreeHugger Robot
64fb27fcdc Merge "The notification archive should follow history setting" into rvc-dev 2020-04-15 17:32:47 +00:00
Soonil Nagarkar
e89cef4edb Merge "DO NOT MERGE Add utilities for creating AppOps listenerIds" into rvc-dev 2020-04-15 15:44:22 +00:00
Julia Reynolds
b5535c6faa The notification archive should follow history setting
Test: atest
Fixes: 153677280
Change-Id: I9b2ae1ecd1cc8b42ab715ee033879f295949a9ba
2020-04-15 15:29:32 +00:00
Jeff Sharkey
672582e4e1 Merge "Fix logic inversion bug from Android 1.0." into rvc-dev 2020-04-15 13:54:37 +00:00
Rubin Xu
a042c8afd3 Merge "Improve work profile unification flow" into rvc-dev 2020-04-15 11:18:06 +00:00
Stanislav Zholnin
962b13c5ee Merge "add AppOpsTest to related frameworks TEST_MAPPINGS" into rvc-dev 2020-04-15 10:10:55 +00:00
TreeHugger Robot
58df220212 Merge "Add new atoms to track user journeys, such as user switches." into rvc-dev 2020-04-15 03:31:00 +00:00
Soonil Nagarkar
4523f96ff1 DO NOT MERGE Add utilities for creating AppOps listenerIds
Use utilities to support location listenerIds.

Bug: 153687899
Test: presubmits
Change-Id: Ie138c98a5f864490c6560166b652ea9509fa8728
2020-04-14 19:04:41 -07:00
Adrian Roos
a576c805ab Merge "WindowInsetsAnimationController: Clarify finish javadoc" into rvc-dev 2020-04-14 19:15:29 +00:00
Varun Shah
acb5634dc4 Add new atoms to track user journeys, such as user switches.
Define new atoms to better log and understand various user journeys,
such as user switches, user starts, and user creation.

The UserLifecycleJourneyReported atom defines a user's journey and
holds a user's information such as their user id, user type, and flags
associated with the user. This atom includes a session-id which is used
to link to the UserLifecycleEventOccurred atom which keeps track of
lifycycle events that occur throughout a user's journey. As more user
journeys are defined, there could be more Events added in the future.

Note: the JourneyReported atom can currently be logged more than once
per user journey since there is no record of the user's ongoing journey.
This will be updated in a future CL.

Bug: 146505521
Bug: 150788910
Test: statsd_testdrive 264 265
Change-Id: Iff3847be64d718fb2ec17e58c33d47f7fa4b627a
2020-04-14 11:25:07 -07:00
Charles Chen
5c984b9a09 Merge "Fix WindowContextTests" into rvc-dev 2020-04-14 17:44:47 +00:00
Galia Peycheva
e7eee891b4 Merge "Fix DreamService not finishing correctly" into rvc-dev 2020-04-14 17:11:45 +00:00
TreeHugger Robot
c74baf480d Merge "[RESTRICT AUTOMERGE] Add relative address to DeviceProductInfo." into rvc-dev 2020-04-14 16:30:28 +00:00
Marin Shalamanov
443c4d047a [RESTRICT AUTOMERGE] Add relative address to DeviceProductInfo.
This CL adds a field relativeAddress to DeviceProductInfo which
contains the device address in the display network. For example,
for HDMI connections the field is populated with the physical address.

Bug: 147994746
Test: adb shell dumpsys display
Change-Id: I87d9fd00bd16abc7594dc3f6b6d4e00c8968af07
2020-04-14 16:52:11 +02:00
Galia Peycheva
95b12348eb Fix DreamService not finishing correctly
CL assigns null to DreamService.mActivity when the DecorView of the
main window is detached (in onViewDetachedFromWindow()). This is also
when the Window is detached, so at that point the DreamService doesn't
care about the DreamActivity.

Fix: 152994058

Test: atest DreamManagerServiceTests

Change-Id: I716f443b2876a2db57df999a551eee31e98ab4f1
2020-04-14 16:42:10 +02:00
Adrian Roos
0d27285e8f WindowInsetsAnimationController: Clarify finish javadoc
Fixes: 151707124
Test: make checkbuild
Change-Id: I41a24d65558cc47196548bd2026b5164c3e04196
2020-04-14 16:38:46 +02:00
TreeHugger Robot
cde07e5dc5 Merge "Limit stage install to system and whitelisted packges only (2/2)" into rvc-dev 2020-04-14 13:43:50 +00:00
Adrian Roos
22a58a4ce1 Merge "WindowInsets: clarify displayCutout javadoc" into rvc-dev 2020-04-14 12:52:24 +00:00
Adrian Roos
e978d75237 WindowInsets: clarify displayCutout javadoc
Fixes: 152729752
Change-Id: I4d24aaede44d80dae8d6e6d95a7d15d5f33a04c9
2020-04-14 12:44:01 +00:00
Julia Reynolds
c026d54cd7 Merge changes from topic "bubble_settings_wooo" into rvc-dev
* changes:
  Changes to enable bubble settings CTS
  Notification Bubble Button
  Make bubble settings a pref with an int rather than a bool
2020-04-14 11:22:14 +00:00
Charles Chen
7ba8e26c87 Fix WindowContextTests
Previously, window token assigns last config to mLastReportedConfiguration
directly, which makes it share the same reference with getConfiguration(),
and blocks all config changes request to clients.

This CL uses Configuration#setTo instead.

fixes: 152227175
Bug: 150251036
Test: atest WindowContextTests

Change-Id: I44143aa558f223eb301e28f2e9110bfd66eac636
2020-04-14 16:57:18 +08:00
Joanne Chung
ba52b860f7 Merge "Pass augmented client state to the event history." into rvc-dev 2020-04-14 07:16:02 +00:00
TreeHugger Robot
35f960dff4 Merge "Add Multi Audio focus" into rvc-dev 2020-04-14 06:29:16 +00:00
Chalard Jean
b0bf3e94fa Merge "Add instrumentation to test NetworkAgent." into rvc-dev 2020-04-14 04:54:33 +00:00
Chalard Jean
3b2a81b23b Allow testing of signal strength
- Let any process with NETWORK_SETTINGS register for signal strength
  wakeup.
- Allow agents registering test networks to assign them a signal
  strength.

Test: NetworkAgentTest
Bug: 139268426
Change-Id: Iebfeb9316bcbd8472459c517abb16f1f9d879871
Merged-In: I2b4b89be3e69f4853fd6978d2c8f5c8eb4271f21
(cherry picked from commit 5cc7b18fe7, aosp/1284585)
2020-04-14 01:22:14 +00:00
Chalard Jean
0348de6615 Add instrumentation to test NetworkAgent.
Test: NetworkAgentTest, new tests using this API
Bug: 139268426
Change-Id: I0b65be788bb742fd1a8c0ca624e97368462f9b6a
Merged-In: Ia83b1c896df63bb18e2aa4b74d6cc09eba990eb5
(cherry picked from commit d89dcb9765, aosp/1284574)
2020-04-14 01:20:16 +00:00
TreeHugger Robot
de659b3b13 Merge "Only grant visibility of protected broadcasts to system" into rvc-dev 2020-04-13 19:51:19 +00:00
TreeHugger Robot
4413b0edba Merge "SurfaceControlViewHost: Improve documentation" into rvc-dev 2020-04-13 19:37:29 +00:00
Robert Carr
20c23963a7 SurfaceControlViewHost: Improve documentation
Capturing the answers to some questions I received today in-to
source-code comments.

Bug: 153756455
Test: Comments only
Change-Id: I208ca0370267803bf546d654f5a8d4e0c25b6f11
2020-04-13 11:35:51 -07:00
Winson Chung
3908fb22b6 Merge "Send task description changed though task org taskInfoChanged" into rvc-dev 2020-04-13 16:58:07 +00:00
Ryan Mitchell
b8a61d13c2 Merge "Fail install when resources.arsc is compressed" into rvc-dev 2020-04-13 14:57:19 +00:00
Julia Reynolds
f5590f558d Merge "Add guidance on conversation notifications" into rvc-dev 2020-04-13 12:28:28 +00:00
Riddle Hsu
aec74e1a62 Merge "Do not unparcel bundle from application in LaunchActivityItem" into rvc-dev 2020-04-13 10:12:56 +00:00
Winson Chung
1df39e2cf6 Send task description changed though task org taskInfoChanged
- This removes the need for a separate task stack listener and aligns
  with other task info change properties
- Also implement equals/hashCode for the token so we can use it in
  containers

Bug: 148977538
Test: atest TaskOrganizerTests

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: Ie035e6389fdbdc374c1a4b4a684758efa0cb7a9e
2020-04-11 00:01:05 -07:00
Treehugger Robot
67ac7abd21 Fix a theoretical NPE
Test: NetworkAgentTests
Bug: 153718627

Change-Id: I955b6dac6de48b12696dc640f131f5983ac552df
Merged-In: I08f57cce0cd85d5cd66e9a0ef948224290e9200e
(cherry picked from commit 31492c7087, aosp/1284575)
2020-04-11 03:26:27 +00:00
TreeHugger Robot
72a3d44773 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev 2020-04-11 02:19:12 +00:00
Yurii Zubrytskyi
207f1d3036 Merge changes I668e8664,Ia44f7e45 into rvc-dev
* changes:
  [incfs] Fix a crash in worker thread calling JNI
  [incfs] Make native library extraction async
2020-04-11 01:24:45 +00:00
TreeHugger Robot
c3721ac874 Merge "Deprecates the animatingBounds from WM to SysUI" into rvc-dev 2020-04-10 23:13:52 +00:00
Hongwei Wang
3c981f6eb7 Deprecates the animatingBounds from WM to SysUI
PipTouchHandler, similar to other components in SysUI, should be in-sync
with the destination bounds calculated within SysUI rather than WM.

Fixed also the empty movement bounds upon the first call to
PipTouchHandler#onMovementBoundsChanged. Together, this change should
fix the PIP not being lifted on IME show up. PipTouchHandlerTest is
updated correspondingly.

Bug: 153352899
Test: manually enter/exit PiP
Test: atest PipTouchHandlerTest
Change-Id: I2912af2a181b7fb57c6d90751744d46c6b3366d2
2020-04-10 13:47:14 -07:00
Julia Reynolds
7aca3b64aa Add guidance on conversation notifications
Test: make
Fixes: 153469444
Change-Id: I3df7fcdd03418bf8fe80c531385868d1d39409d8
2020-04-10 16:00:46 -04:00
Yurii Zubrytskyi
da208016d6 [incfs] Make native library extraction async
IncrementalService can create the library files beforehand, but
delay filling in their data. As it takes quite a while in
general (over a second in cases when the phone is busy), it's
better to run the unzipping and filling in a separate thread
and only make sure it finishes before the whole installation
process is complete.
This speeds up the megacity.apk installation by ~250-300ms,
1000-1100ms -> 750-800ms

Bug: 153513507
Test: adb install megacity.apk

Change-Id: Ia44f7e45b9e0abaebdfb6fe5352f9dcf29ab4ece
2020-04-10 12:30:49 -07:00
Riddle Hsu
3c3e0c659a Do not unparcel bundle from application in LaunchActivityItem
The bundle fields may contain custom Parcelables. And Bundle#size
will call unparcel that causes BadParcelableException from
LaunchActivityItem#hashCode and LaunchActivityItem#equals.

Since the bundle fields of LaunchActivityItem may not be significant
for being the accurate identity of the item, the bundle fields can
be treated roughly (empty or not) to avoid unparceling.

Fixes: 153737846
Test: atest FrameworksCoreTests:TransactionParcelTests#testLaunch

Change-Id: I7ec55bbfcffcd47cfb586ede8053ab411891902d
2020-04-11 02:21:10 +08:00
Jeff Sharkey
c6f5e98807 Fix logic inversion bug from Android 1.0.
Bug: 73822755
Test: atest CtsNetTestCases:android.net.cts.UrlQuerySanitizerTest
Change-Id: I52e8ec79bd8e9e39e06b3ff35c6312d91f4eacd0
2020-04-10 11:34:57 -06:00
Cody Kesting
fb9ff36b95 Merge "Fix typo in VpnManager Docs." into rvc-dev 2020-04-10 15:52:10 +00:00
Ryan Mitchell
6cb79cdfb7 Merge changes from topic "invalidate_idmap" into rvc-dev
* changes:
  Fix InstallOverlayTests fail to install overlay
  Test that upgrading target apk invalidates idmap
  Invalidate idmap when target updates
2020-04-10 15:50:15 +00:00
TreeHugger Robot
fd09fe5cea Merge "Return actual failure to parse base APK" into rvc-dev 2020-04-10 15:28:13 +00:00
TreeHugger Robot
51ec322208 Merge "Add an empty IMM#windowDismissed(IBinder) for app compat" into rvc-dev 2020-04-10 15:10:43 +00:00
Joanne Chung
5edb1aed08 Pass augmented client state to the event history.
Bug: 153030079
Test: manual
Test: atest android.autofillservice.cts.inline.\
InlineAugmentedLoginActivityTest

Change-Id: Ida14605296b9dcffe5ee55e0fb4612350d1629af
2020-04-10 23:08:21 +08:00
Yurii Zubrytskyi
4e21986e59 [incfs] Fix a leaked pending_reads FD
Bug: 153670585
Test: adb install/uninstall a dozen times
Change-Id: Iac05b5dc3792e55c2f103ac08bdd734b3b398882
2020-04-10 14:49:31 +00:00
Darryl Johnson
6c6d81a121 Merge "Temporal fix of the Android Auto orientation chaniging on phone's orientation change." into rvc-dev 2020-04-10 14:07:36 +00:00