Commit Graph

20793 Commits

Author SHA1 Message Date
Jeff DeCew
e9cf56dfe0 Merge "Do not hide BigText from notification when showing progress." into sc-dev am: 98ce9ad59f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14663151

Change-Id: Ic1194b9c03a1108c90004430c678f1be0551e309
2021-05-20 18:50:36 +00:00
Jeff DeCew
98ce9ad59f Merge "Do not hide BigText from notification when showing progress." into sc-dev 2021-05-20 18:30:02 +00:00
Jeff DeCew
c9491b8199 Do not hide BigText from notification when showing progress.
Fixes: 188682444
Test: manual
Change-Id: Ifd384789f1358859d8ed51e91f2d2ae963baf4e0
2021-05-20 09:58:38 -04:00
Kholoud Mohamed
a9d186a926 Merge "Revert "Create non-bypassable op restrictions"" into sc-dev am: b04a005c3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14660730

Change-Id: Iae7ea25bfd3bbe3b206de0de2998d4cef00a421a
2021-05-20 10:07:58 +00:00
Kholoud Mohamed
b04a005c3f Merge "Revert "Create non-bypassable op restrictions"" into sc-dev 2021-05-20 09:48:56 +00:00
Les Lee
8df7b875d4 Merge "Support to query TYPE_WIFI usage with subscriberId" into sc-dev 2021-05-20 08:55:59 +00:00
Ocean Chen
0d02112ea4 Revert "Create non-bypassable op restrictions"
This reverts commit a023924afd.

Reason for revert: Test Monitor triggers the test build

Bug: 188708756
Bug: 188733943
Change-Id: I2d17d4f77287020953fb559cf98ff8475f32ed1b
2021-05-20 07:47:51 +00:00
Evan Severson
47119a4e5a Merge "Create non-bypassable op restrictions" into sc-dev am: 05a30e41f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14543280

Change-Id: Idf413d6f9faca74900dd4ad3159f04309c457844
2021-05-19 19:39:41 +00:00
Evan Severson
05a30e41f3 Merge "Create non-bypassable op restrictions" into sc-dev 2021-05-19 19:24:22 +00:00
TreeHugger Robot
08e7de9d46 Merge "Deprecate Context#createApplicationContext" into sc-dev am: ee438f960a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14528644

Change-Id: Idb9578a41fe9b53f2dcce14b80ebe5a61471e52a
2021-05-19 15:40:21 +00:00
Rubin Xu
a02f71dded Merge "Send network & security logging callbacks in foreground" into sc-dev am: 68aa35b03d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14530944

Change-Id: I33387735d9c8ebc1efc59804a2ec1f1659826765
2021-05-19 15:40:00 +00:00
TreeHugger Robot
ee438f960a Merge "Deprecate Context#createApplicationContext" into sc-dev 2021-05-19 15:35:09 +00:00
Rubin Xu
68aa35b03d Merge "Send network & security logging callbacks in foreground" into sc-dev 2021-05-19 15:34:31 +00:00
Junyu Lai
b987babf5e Merge changes I3ba50cbd,I970ee365 into sc-dev
* changes:
  [FUI29] Migrate ConnectivityService to use getAllNetworkStateSnapshots
  [FUI27] Fix internal naming of notifyNetworkStatus
2021-05-19 12:36:03 +00:00
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
lesl
776fd52d84 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
Merged-In: Ia033521a24e2bb56182d74a41bb2b39710571782
2021-05-19 02:53:16 +00:00
Evan Severson
a023924afd Create non-bypassable op restrictions
Even if the app is privileged or has the audio retriction bypass it
can't bypass these restrictions.

These will be used for the mic and camera toggles since under no
circumstances should sensitive information reach the application layer
while the toggles are muting.

Test: Verify privileged app couldn't access mic when toggle is blocking
Fixes: 188122748
Change-Id: Ib1bad074b3744fd565e8c8ff1c726be91c830d3e
2021-05-19 01:56:21 +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
Ryan Mitchell
c54ebba25b Deprecate Context#createApplicationContext
If an application caches an ApplicationInfo and uses it to call
Context#createApplicationContext, the app will not get the most recent
version of the overlays for that application. To make things worse, the
LoadedApk stored in ActivityThread#mResourcePackages is updated using
the old ApplicationInfo causing further uses of the cached LoadedApk to
return outdated information.

Deprecate Context#createApplicationContext, convert all internal uses
to Context#createPackageContext(String packageName, ...) and log
whenever any one calls Context#createApplicationContext with an
outdated ApplicationInfo to detect debug issues in using old infos.

Bug: 188059515
Test: change wallpaper and observe widgets get reloaded with most
      recent overlays
Change-Id: I2aeefa8c0e66264859109975a54c4f73f76ad710
2021-05-18 09:07:58 -07: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
Rubin Xu
372ab606e7 Send network & security logging callbacks in foreground
Send ACTION_NETWORK_LOGS_AVAILABLE and ACTION_SECURITY_LOGS_AVAILABLE
as foreground broadcasts to reduce test time. Updated javadoc on
callbacks in DeviceAdminReceiver and DelegatedAdminReceiver.

Remove obsolete special handling of the two broadcasts above in
sendDeviceOwnerCommand(), now that they are only sent through
sendDeviceOwnerOrProfileOwnerCommand().

Bug: 183066771
Test: atest MixedManagedProfileOwnerTest#testNetworkLogging
Change-Id: I0758c0eb98be43b24cd08105a2449c349cfd4e6d
2021-05-17 15:13:39 +01:00
junyulai
0c7c578433 [FUI27] Fix internal naming of notifyNetworkStatus
Test: TH
Bug: 174123988
Merged-In: I970ee365ca221956ee85788005d331374b5fa71a
Change-Id: I970ee365ca221956ee85788005d331374b5fa71a
  (cherry-picked from aosp/1620539)
2021-05-17 14:07:00 +08: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