Commit Graph

20774 Commits

Author SHA1 Message Date
TreeHugger Robot
947745cd74 Merge "Changed behavior of DPMS.setLocationEnabled() for automotive." into sc-dev am: cf2f6ff89a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14525263

Change-Id: Ic96414f5fd5f7d8e61ea889fb620a57093ce5ccc
2021-05-19 12:29:24 +00:00
TreeHugger Robot
cf2f6ff89a Merge "Changed behavior of DPMS.setLocationEnabled() for automotive." into sc-dev 2021-05-19 12:15:04 +00:00
Patrick Baumann
62bf50bbd8 Merge changes I04dfc5c2,Idc7e1f3c am: 1ef34e9022 am: 4c56bac295
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705089

Change-Id: Ibea92e6623d660b0bcbc324c8f188642841160dd
2021-05-18 23:16:02 +00:00
Evan Rosky
c068c9a78b Merge "Defer pausing apps when bringing up recents" into sc-dev am: 13bd292dd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14444766

Change-Id: I7f2fd5d2fb50623993b1336a4af61774b1dfa993
2021-05-18 19:03:07 +00:00
Patrick Baumann
1ef34e9022 Merge changes I04dfc5c2,Idc7e1f3c
* changes:
  Updates OWNERS files
  Update OWNERS file.
2021-05-18 19:03:06 +00:00
Evan Rosky
13bd292dd5 Merge "Defer pausing apps when bringing up recents" into sc-dev 2021-05-18 18:55:30 +00:00
Les Lee
bad6f3aef6 Merge "Support to query TYPE_WIFI usage with subscriberId" am: ced78f535c am: 812956f97d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608057

Change-Id: Ifeaab15fbf20b318bb7b35aa6b4604f21e2c98a1
2021-05-18 13:57:43 +00:00
Vadim Caen
d286a11746 Merge "Draw splashscreen edge to edge" into sc-dev am: eacda76449
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14253107

Change-Id: I2d837e43fe9c75b95abbe9faad580c3470c23e9e
2021-05-18 11:33:42 +00:00
Vadim Caen
eacda76449 Merge "Draw splashscreen edge to edge" into sc-dev 2021-05-18 11:22:54 +00:00
Soonil Nagarkar
b2ea76cc02 Merge "Add support for excluding tags from restrictions" into sc-dev am: fe40442304
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14503384

Change-Id: Iccc7f519dfcfe9429067249dce36ade6e4f2a0f5
2021-05-17 17:11:57 +00:00
Soonil Nagarkar
fe40442304 Merge "Add support for excluding tags from restrictions" into sc-dev 2021-05-17 16:46:55 +00:00
Neil Fuller
fd08e82abb Merge "Provide a new command line for host tests" into sc-dev am: 629d1f3ec2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550422

Change-Id: I18559be1d90c97d4050213fb472d623e81598701
2021-05-17 16:36:33 +00:00
Neil Fuller
629d1f3ec2 Merge "Provide a new command line for host tests" into sc-dev 2021-05-17 16:16:40 +00:00
Jeff Sharkey
b1b4de9ed7 Merge changes from topic "may15" into sc-dev am: 63a1453832
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14515460

Change-Id: I1b6a4d66134d09219ef255984336766eba7b387e
2021-05-16 18:15:34 +00:00
Jeff Sharkey
2d0e8e3d5d Apply AttributionSource during Intent delivery. am: dd6dd3b1fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14470318

Change-Id: Iac85c2e538b7e7fd9bcbd4e286e5df04da0013d4
2021-05-16 18:15:32 +00:00
lesl
ab4abcf073 Support to query TYPE_WIFI usage with subscriberId
Previous the API ignores subscriberId when network type is WIFI.
Allow caller to call querySummaryXXXX with TYPE: WIFI
+ subscriberId: IMSI to get carrier merged wifi usage which matches the wifi
network with the given IMSI.

Bug: 176396812
Test: atest -c NetworkStatsServiceTest
Change-Id: Ia033521a24e2bb56182d74a41bb2b39710571782
2021-05-16 22:18:32 +08:00
Jeff Sharkey
5014fbd644 Apply "attributionTags" to all component types.
Components within an application are often a good boundary for
developers to declare "attribution" information, such as an Activity
or Service used to offer a specific sub-feature.

This change expands the "android:attributionTags" manifest attribute
to apply to all component types, and it then automatically configures
the associated Context with Context.createAttributionContext() with
no additional developer action required.  Developers can still
manually use Context.createAttributionContext() to adjust the
attribution tag again if desired.

Bug: 187097694
Test: atest CtsAppOpsTestCases:AttributionTest
Test: atest CtsAppTestCases:android.app.cts.AttributionTagsTest
Change-Id: Ia16c66e7b63bcbfb8c0d7348e9b5d4adb2a1f45d
2021-05-15 12:11:03 -06:00
Junyu Lai
8354c4531a Merge changes I3ba50cbd,I970ee365 am: 37f2408143 am: ed64c29783
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1620859

Change-Id: If9a3e37e5359b955e330002d81cbeb48f90ee22b
2021-05-15 17:24:42 +00:00
Jeff Sharkey
dd6dd3b1fb Apply AttributionSource during Intent delivery.
There are some Parcelables which offer to perform Binder calls, and
when these are delivered via Intent extras they fallback to
ActivityThread.currentAttributionSource(), instead of being tagged
based on the relevant app component.

This change begins using Intent.prepareToEnterProcess() as a hook to
fix-up AttributionSource when those extras finally land in the
destination process.  It uses the relevant AttributionSource based
on the Activity or Service the Intent is delivered to, which
developers have control over via AppComponentFactory.

In the case of <receiver> manifest elements, this change applies the
first android:attributionTags value to the Context used for that
BroadcastReceiver.

Bug: 187097694
Test: atest AttributionTest
Change-Id: I8f5197db7e8d7277d34f0ef2bb90bfdf1871186a
2021-05-15 09:48:14 -06:00
Evan Rosky
c49b7a9cd0 Defer pausing apps when bringing up recents
This adds an ActivityOption call "transient launch" which can be
used to tell WM that this particular launch is likely temporary
and may not be committed. This is for recents where it exists
for the duration of the transition, but then disappears once the
user's intention is resolved.

The effect of this is that it won't pause the running app while
in recents -- instead deferring pause until the transition finishes
and the final visibility states are committed.

Bug: 183993884
Test: enable shell transitions, open app, swipe to overview and
      check dumpsys to see that the app is still RESUMED
Change-Id: Iba6b8faf4e42c645bfd0305b93b7e0b542fd2c96
2021-05-14 14:49:11 -07:00
Soonil Nagarkar
393d109f64 Add support for excluding tags from restrictions
Allow user restrictions to provide an excluded map of packages and tags
rather than just packages.

Bug: 187421886
Test: manual
Change-Id: I8f90ba6cdd288068664b352fdb540d0f11fe3dfc
2021-05-14 10:35:46 -07:00
Neil Fuller
dd4d561984 Provide a new command line for host tests
This adds a new cmd verb for time_zone_detector that reports whether
telephony time zone detection is supported. This enables a host side CTS
test to properly determine expected behavior on non-telephony devices
like Android Auto.

Bug: 187907947
Test: See associated cts change
Change-Id: Ie118459c704112a259d38cb246882f11f8c5dee0
2021-05-14 17:36:45 +01:00
Patrick Baumann
e6c0a4f8ce Updates OWNERS files
Bug: 186864416
Test: Builds
Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-14 15:45:42 +00:00
junyulai
9c964b11e6 [FUI27] Fix internal naming of notifyNetworkStatus
Test: TH
Bug: 174123988
Change-Id: I970ee365ca221956ee85788005d331374b5fa71a
2021-05-14 19:48:17 +08:00
Riddle Hsu
a274fd1c1a Draw splashscreen edge to edge
- Switch from PhoneWindow to FrameLayout
 - Ensure the Action bar is not shown on the splashscree
 - Do not show the contrast scrim under the system bars
 - Use the latest insets API to layout fullscreen

Test: Updated CtsWindowManagerDeviceTestCases:SplashscreenTests
Bug: 181852475
Bug: 184941669
Change-Id: Ifc04bd2227394415cc74c20d2974f4726ec9c789
2021-05-14 17:51:23 +08:00
Jeff DeCew
a5b0ed3b0c Merge "Set the height of the right_icon in addition to the width" into sc-dev 2021-05-13 19:48:40 +00:00
Jeff DeCew
0fb49d82a6 Set the height of the right_icon in addition to the width
This ensures that the Notification fully specifies the size of the notification in the RemoteViews, and ensures that CTS tests pass.

Fixes: 180652028
Test: atest NotificationTemplateApi30Test
Change-Id: Ie5715880437f1e42b16226196cf67ca52bc09ee1
2021-05-13 12:25:56 -04:00
Ahaan Ugale
cc4fa5f3b6 Merge "Pipe UiTranslationSpec through to the UiTranslationController." into sc-dev 2021-05-13 15:24:12 +00:00
Felipe Leme
2deff36974 Changed behavior of DPMS.setLocationEnabled() for automotive.
It should only be ignored when it's called to disable location.

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testSetLocationEnabled
Fixes: 186263875

Change-Id: I71a4d91196f15b6e13bc0e87290bc0a9418ef87d
2021-05-12 18:34:12 -07:00
Jeff DeCew
cd86f38402 Merge "Allow populating left_icon independently of right_icon." into sc-dev 2021-05-12 23:32:35 +00:00
Makoto Onuki
b5ddeefc09 Merge "Clean up setForegroundServiceBehavior()" into sc-dev 2021-05-12 19:59:44 +00:00
Jeff DeCew
b85d1f4f39 Allow populating left_icon independently of right_icon.
* Mainly this fixes a "bug" with the BigPictureStyle.showBigPictureWhenCollapsed() that would cause the big picture, which is known to be important for the notification, to be hidden on the right and shown on the left.  Instead the BigPicture will now remain visible in its large form on the right, and the left icon will be populated with the large icon.
* Additionally, this fixes some quirks with other layouts, such as MediaStyle and MessagingStyle that the largeIcon would be missing (sometimes only in one expansion state) when it could be shown in the left column.
* Finally, this fixes a few bugs in the expansion animation that were caused by logic for determining the showing icon being inconsistent between Notification.java and the notification view wrappers.

Bug: 186421651
Test: post notifications of all these types in and outside of groups.
Change-Id: Ifd1d817afcb1b6fa8cfb79baee96364af8c7af3c
2021-05-12 15:57:43 -04:00
Ahaan Ugale
f765882432 Pipe UiTranslationSpec through to the UiTranslationController.
And use it to conditionally enable content padding for requested views.

Fix: 179693024
Test: atest android.translation.cts.UiTranslationManagerTest
Test: adb shell dumpsys activity <ACTIVITY> --translation
Change-Id: I23fb29a60525d736f2dcf9d11b548c62332c412c
2021-05-12 11:47:15 -07:00
Jeff DeCew
9e30756592 Merge "Show minimized header text with the correct text weight" into sc-dev 2021-05-12 17:57:57 +00:00
Makoto Onuki
f0a6659080 Clean up setForegroundServiceBehavior()
Test: build
Bug: 186433888
Change-Id: Ie27cc91cf013bdfb90ab9c60a8c56370f226b87d
2021-05-12 08:22:41 -07:00
Ryan Mitchell
75baeda560 Merge "Use internal lock for ResourcesManager" into sc-dev 2021-05-12 15:02:06 +00:00
Jeff DeCew
aeddbdc7c9 Merge changes I11400a55,I49461363,Ia18b2dc3,I8c554755 into sc-dev
* changes:
  Simplify SmartReplyView padding layout logic
  Smart action buttons now have 8dp corner radius
  Fix measure logic so that priority children can have more than 1/N space.
  Update the style of emphasized notification actions.
2021-05-11 22:35:37 +00:00
Jeff DeCew
9c1f4e12c9 Show minimized header text with the correct text weight
Fixes: 184863420
Test: visual
Change-Id: Ic16f9e88e118e7ea5fe14054cf1c35318d4a6ddd
2021-05-11 17:10:34 -04:00
Kholoud Mohamed
80ed0ced6c Merge "Allow forceUpdateUserSetupComplete for non system users" into sc-dev 2021-05-11 14:50:38 +00:00
Rubin Xu
c91f0da4fd Merge "Update SecurityLog javadoc" into sc-dev 2021-05-11 09:31:51 +00:00
kholoud mohamed
158dd8fc09 Allow forceUpdateUserSetupComplete for non system users
Test: atest android.devicepolicy.cts.DevicePolicyManagerTest
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Bug: 183716601
Change-Id: Id2340ac1c6404ac41ca7b5a31c6fbb1577804595
2021-05-11 09:25:20 +01:00
Charles Chen
c8bf38ce25 Merge "Fix IME switch dialog crash on Dual rootDA display" into sc-dev 2021-05-11 04:08:49 +00:00
Jeff DeCew
2ca6b4399a Update the style of emphasized notification actions.
* This removed many of the differences between CallStyle and emphasized actions.
* These actions are now pill shaped with a solid bg color, no stroke, less height, less spacing between, and wrapping content instead of splitting space equally.

Fixes: 187533622
Test: manual testing with Notify, Notify2, and Clock (using timers and alarms)
Change-Id: I8c554755755c59f2756870f7cd2e0c533d22d823
2021-05-10 21:41:52 -04:00
Jing Ji
0ec24536c5 Merge "Add support to log app kill stats into statsd" into sc-dev 2021-05-10 16:34:21 +00:00
Rubin Xu
b59d8e1e21 Update SecurityLog javadoc
Bug: 183695861
Test: m -j docs
Change-Id: Idf05e69bda53ffe205683898984b6aa4677f2466
2021-05-10 15:20:45 +01:00
Jeff DeCew
0601cb9bd7 Merge "Remove exception whe Colorized notificiation uses COLOR_DEFAULT." into sc-dev 2021-05-10 13:29:08 +00:00
Ruslan Tkhakokhov
c4646c09ba Merge "Don't restore notification channel if its sound is unavailable" into sc-dev 2021-05-09 20:36:02 +00:00
Hyunyoung Song
048fc0ae1a Merge "All Apps Search API council feedback (second round)" into sc-dev 2021-05-09 19:05:04 +00:00
Jing Ji
40eba65382 Add support to log app kill stats into statsd
Bug: 184859606
Bug: 154511130
Test: statsd_testdrive
Test: atest CtsStatsdAtomHostTestCases:AppExitHostTest
Change-Id: Ia7856c95346c1f0f621948abd11d9648ffbdd7c5
2021-05-08 19:11:28 -07:00
Jing Ji
d5c7dc045b Merge "Kill process if it's cached & idle and in forced-app-standby mode" into sc-dev 2021-05-09 00:23:05 +00:00