Commit Graph

657699 Commits

Author SHA1 Message Date
Les Lee
694e035e6b Merge "fix: Invalid subscription plan cause NPE" am: a8cd54f67a am: cfd0efc88b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1749760

Change-Id: I0224a940b7129efb85f5b7c66ed09d781ecb0b8c
2021-07-02 09:48:18 +00:00
Tiger Huang
de8ea692b1 Merge "Remove the light flag if the bar isn't specified light in theme" into sc-dev 2021-07-02 09:39:40 +00:00
Les Lee
cfd0efc88b Merge "fix: Invalid subscription plan cause NPE" am: a8cd54f67a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1749760

Change-Id: I19672ff1d7f2e6e9f864b99e3f837126d9a70030
2021-07-02 09:34:52 +00:00
Jacqueline Bronger
b4044c5f69 Merge "Enable sensor use notification on TVs." into sc-dev 2021-07-02 09:30:20 +00:00
TreeHugger Robot
0dee554595 Merge "AudioService: fix capture policy restoration" into sc-dev 2021-07-02 09:21:09 +00:00
Les Lee
738f4416cf fix: Invalid subscription plan cause NPE
If someone setup a invalid subscription plan with
subId:INVALID_SUBSCRIPTION_ID. (For instance, test code).
It will cause NPE when WiFi connected because WiFi network doesn't own
subscriberId. (Happened on API call: buildTemplateCarrierMetered with
null subscriberId.)

Fix:
1. Add null check before calling buildTemplateCarrierMetered
2. Add invalid subId check before saving subscription plan.

Bug: 191938713
Test: atest -c NetworkPolicyManagerServiceTest

Change-Id: I835a7b8890035975e187ca0a70ec2f30ca56455a
Merged-In: I835a7b8890035975e187ca0a70ec2f30ca56455a
2021-07-02 09:17:49 +00:00
Les Lee
a8cd54f67a Merge "fix: Invalid subscription plan cause NPE" 2021-07-02 09:17:20 +00:00
Ned Burns
d70c6c8f11 Hide silent notifications when AOD animation starts
When the user presses the power button on an unlocked device, we play a
transition animation into AOD. This animation has two parts: a black
scrim that collapses around the power button, followed by the appearance
of the AOD UI. For performance reasons, we don't mark the state of the
status bar as KEYGUARD until both sections of the animation finish. This
causes a bug with silent notifications: if the user's only notification
is one or more silent notifs and they press the power button, the AOD
animation will play, but in the moment that the AOD UI needs to appear,
the status bar is not yet in the KEYGUARD state. This means that the
silent notifications will not yet be hidden, and so the lockscreen will
use the "small" clock treatment rather than the "large" clock treatment.
A few ms later, we will enter KEYGUARD state for real, the notifs will
be hidden, and the small clock will revert to the large clock, causing a
flicker.

This change creates a new concept in StatusBarStateController: an
"upcoming state". When we start the animation, we mark our upcoming
state as KEYGUARD (without changing the actual state). At the same time,
we modify NotificationViewHierarchyManager (the thing in charge of
hiding silent notifications) to check the upcoming state rather than the
actual state.

To avoid the upcoming state desyncing from the actual state, setting the
actual state causes the upcoming state to be cleared.

Bug: 190344677
Test: manual
Change-Id: I7b3613d242516440ba2e86aa1a936aef62a53d6a
2021-07-02 04:56:00 -04:00
Irmak Eliaçık
dc5952ffd8 Merge "AudioAttributes FLAG_AUDIBILITY_ENFORCED javadoc update" am: 5e996722d9 am: 08917d0dbd am: d129a2f67d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1753049

Change-Id: I5310988b9cfc190a029a8a634e767c10c4ffe25f
2021-07-02 08:51:45 +00:00
Treehugger Robot
91a0551e7e Merge "Request location info in UnderlyingNetworkListener" am: ef226bcd35 am: bdaa82e1eb am: 46c57c5f19
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1754781

Change-Id: I9fa0d6951a878774ab96b87ceb1b09ef4756af83
2021-07-02 08:51:23 +00:00
Stanley Wang
444ddc6c90 Refine the IllustrationPreference.
- If we set a fixed height for the illustration and automatically
  scale the width of the illustration, the size of the background
  layer will be different from the size of the illustration. To
  fix this problem, we must make the background layer the same
  size as the illustration and automatically scale.
- Update the size of background to 412x300.
- Update the layout of frame's child views to wrap_content.
- Update the padding of frame to 16dp.

Bug: 190810977
Test: robotest and see the UI

Change-Id: I0422f91c24860154fea7c766d5670c314d62bebb
2021-07-02 16:50:39 +08:00
Irmak Eliaçık
d129a2f67d Merge "AudioAttributes FLAG_AUDIBILITY_ENFORCED javadoc update" am: 5e996722d9 am: 08917d0dbd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1753049

Change-Id: I09f23bfefc6325379d6aa9772bfea5dbfb41311f
2021-07-02 08:36:53 +00:00
Treehugger Robot
46c57c5f19 Merge "Request location info in UnderlyingNetworkListener" am: ef226bcd35 am: bdaa82e1eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1754781

Change-Id: I80900537044a9e05e78a21d80772ec46fadba6e5
2021-07-02 08:36:24 +00:00
Irmak Eliaçık
08917d0dbd Merge "AudioAttributes FLAG_AUDIBILITY_ENFORCED javadoc update" am: 5e996722d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1753049

Change-Id: I758d0b00d876631bf3464a21787c3d766d7c18a0
2021-07-02 08:21:15 +00:00
Treehugger Robot
bdaa82e1eb Merge "Request location info in UnderlyingNetworkListener" am: ef226bcd35
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1754781

Change-Id: Id43603597e3ebd064d75b30cf805142f6aae1304
2021-07-02 08:20:30 +00:00
TreeHugger Robot
4dece0708c Merge "Logging the number of bits egressing from the hotword trusted process" into sc-dev am: 023fa14302 am: 7e1e3af41f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15126534

Change-Id: I83f7c9504bf2979529ba0e6315005380173250ed
2021-07-02 08:19:42 +00:00
Irmak Eliaçık
5e996722d9 Merge "AudioAttributes FLAG_AUDIBILITY_ENFORCED javadoc update" 2021-07-02 08:16:17 +00:00
TreeHugger Robot
7e1e3af41f Merge "Logging the number of bits egressing from the hotword trusted process" into sc-dev am: 023fa14302
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15126534

Change-Id: I31fd43b1265ca646ca9441ee1283633859bef6fd
2021-07-02 08:01:54 +00:00
Treehugger Robot
ef226bcd35 Merge "Request location info in UnderlyingNetworkListener" 2021-07-02 07:59:48 +00:00
TreeHugger Robot
023fa14302 Merge "Logging the number of bits egressing from the hotword trusted process" into sc-dev 2021-07-02 07:48:25 +00:00
Yohei Yukawa
9dde701446 Switch back to sync IInputMethodManager
This CL logically reverts recent CLs [1][2][3][4][5][6][7][8][9] to
switch back to the previous sync IPC approach in IInputMethodManager
except for the following two IPCs.

 * reportPerceptibleAsync
 * removeImeSurfaceFromWindowAsync

Reason for revert:
We need more time to understand its performance implications.

 [1]: If4b40244a2e0e3b11c38c1da9340ba8e5166ad64
      b9590fa1e1
 [2]: If79e063641a01b325c63eb9f871f5b992d7c0b72
      5a5648dcb5
 [3]: I1547b98b2aacf764e33aadc9ab784f2013f58f2f
      d833f0dab4
 [4]: I646ef4ae0570aae1812ea267f309441fdec6938d
      38fd020616
 [5]: Iaa63e01453da4ff0e3f446eac036b3be3180cb73
      4a820ccc41
 [6]: Id516fd1c961f43ac3e139c88d7ed004c188d458b
      0a32fd21ef
 [7]: Icb396ae5d74060af69c4ecb16723b2e37b9f2067
      c4663ba6a9
 [8]: I3eafbc28ed3acf3ba859885bf201cb06b3149b94
      f226a79fee
 [9]: Ic584203c1221fbae17f5e2d8f09e3992df061646
      5e2d9f271d

Bug: 163453493
Bug: 174892351
Fix: 190486491
Test: atest CtsInputMethodTestCases
Change-Id: If16ac0de536d9089eb04f6e07b1ee47378124658
Merged-In: If16ac0de536d9089eb04f6e07b1ee47378124658
2021-07-02 07:06:07 +00:00
Bill Yi
952ecf3fe0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7edaa909dea17ef1605b6eba68f59a3c0bebd85f
2021-07-02 06:59:37 +00:00
Bill Yi
175e4429e5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I846a1017636772f082dd64f2b96bd3d3b295c6a1
2021-07-02 06:56:01 +00:00
Bill Yi
2de87c80eb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie524db3f0c5f7518ce290d14b95dd445a598f1ff
2021-07-02 06:31:20 +00:00
Bill Yi
c2724813b0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id1e0ae7e01f0d0b736edbd37f8bcda43247ac769
2021-07-02 05:58:19 +00:00
Lucas Lin
a6de2ae4ff Merge "Fix Ikev2 vpn cannot establish through startLegacyVpn()" into sc-dev am: 30d17bd9a1 am: 558a160fff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15125750

Change-Id: Iaead23ae52d43e31d5ee91c736fa2c5d661b6d12
2021-07-02 05:48:36 +00:00
TreeHugger Robot
f393b9230f Merge "Revert systemui status bar provider model behavior" into sc-dev am: afde3f2ca0 am: 772eb81351
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15111858

Change-Id: I81b66637fd5e8904eb7c49d7e211917213767803
2021-07-02 05:48:11 +00:00
Lucas Lin
558a160fff Merge "Fix Ikev2 vpn cannot establish through startLegacyVpn()" into sc-dev am: 30d17bd9a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15125750

Change-Id: Ia2405b8f996b91b357e6eab9d793f572013fdc45
2021-07-02 05:32:31 +00:00
TreeHugger Robot
772eb81351 Merge "Revert systemui status bar provider model behavior" into sc-dev am: afde3f2ca0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15111858

Change-Id: I72c2af527eb19715416e9770bf526931a8bf1e73
2021-07-02 05:31:45 +00:00
Lucas Lin
30d17bd9a1 Merge "Fix Ikev2 vpn cannot establish through startLegacyVpn()" into sc-dev 2021-07-02 05:27:30 +00:00
TreeHugger Robot
afde3f2ca0 Merge "Revert systemui status bar provider model behavior" into sc-dev 2021-07-02 05:13:01 +00:00
Dmitri Plotnikov
dc3a78354e Address race condition in procstate time tracking
The issue occurs when the application proc state changes
rapidly, e.g. from FOREGROUND to BACKGROUND to CACHED.
The original code would sometimes attribute the time slice
to the wrong proc state.

Bug: 192550308
Test: (on cuttlefish) atest --rerun-until-failure 300 FrameworksCoreTests:com.android.internal.os.BstatsCpuTimesValidationTest -- --abi x86_64

Change-Id: Ic22bbfa3aae701014fc016ec9e2d32b1c528d462
2021-07-01 22:04:28 -07:00
Huihong Luo
d6d8328211 Merge "Disable Webview Overlay when invisible" into sc-dev am: 94950c3c55 am: 35ceb38893
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15116633

Change-Id: I70acbe494a0cdb001fe19367db08e1b2272e6a5a
2021-07-02 04:57:58 +00:00
Huihong Luo
35ceb38893 Merge "Disable Webview Overlay when invisible" into sc-dev am: 94950c3c55
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15116633

Change-Id: I733bf173a71af47d9a51c4a99f5624d0849764b7
2021-07-02 04:37:33 +00:00
Joanne Chung
fdd91c1572 Merge "Fix translation reference gone problem." into sc-dev am: 3d088cbb09 am: da14b09d4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15172174

Change-Id: I21eca2fc03aefbdd6fd159ecc06459035cd0691e
2021-07-02 04:34:38 +00:00
TYM Tsai
31ca0cfc48 Merge "Notify Content Capture when deselected" into sc-dev am: 598376c6b5 am: 4861ac8b45
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15126539

Change-Id: I54ed39e850ea069c6b9fa28da0745b89196ecf39
2021-07-02 04:33:22 +00:00
Huihong Luo
94950c3c55 Merge "Disable Webview Overlay when invisible" into sc-dev 2021-07-02 04:22:28 +00:00
lpeter
53de9e92d7 Logging the number of bits egressing from the hotword trusted process
Bug: 192331590
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I08329643d94655f762787a7a49567e19bbbfbe9c
2021-07-02 12:20:27 +08:00
Joanne Chung
da14b09d4b Merge "Fix translation reference gone problem." into sc-dev am: 3d088cbb09
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15172174

Change-Id: If5e44d08cf649d90380a7ccb14ed833f17d42b14
2021-07-02 04:11:13 +00:00
TYM Tsai
4861ac8b45 Merge "Notify Content Capture when deselected" into sc-dev am: 598376c6b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15126539

Change-Id: I982abaa3ec6622c404e76b6449b071115e602184
2021-07-02 04:10:20 +00:00
Joanne Chung
3d088cbb09 Merge "Fix translation reference gone problem." into sc-dev 2021-07-02 03:58:36 +00:00
TYM Tsai
598376c6b5 Merge "Notify Content Capture when deselected" into sc-dev 2021-07-02 03:55:12 +00:00
Joe Bolinger
721ee91b45 Merge "Ensure current operation has not changed on start/stop user operations." into sc-dev am: 92ce6e953e am: 86c9720ae7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15180201

Change-Id: I8ddabbc0f3d9ee95964311f8ad133f9f03f5be72
2021-07-02 03:36:29 +00:00
Charles Chen
ebf2e81d46 Merge "Remove updateImeDisplayId" into sc-v2-dev am: 56e17bfcd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15065650

Change-Id: I3b0e814649cc9debd60c00bf2be933a50a59fb3a
2021-07-02 03:36:08 +00:00
Jay Thomas Sullivan
287e22a904 Fix isAutoRevokeWhitelisted vulnerability
Apps should not be allowed to programatically check whether a given
package is installed on the current device.

But, currently, isAutoRevokeWhitelisted allows app to do so by invoking
isAutoRevokeWhitelisted for a package name, then checking for an error:

- if NullPointerException is thrown, the package does not exist, or
- if SecurityException is thrown, the package exists.

The NullPointerException occurs in PermissionManagerService on the line:

    final int packageUid = UserHandle.getUid(userId, pkg.getUid());
                                                      ^ null

The solution is to:

- avoid a NullPointerException by moving the above line of code down
  below where we've already null-checked 'pkg' (checkAutoRevokeAccess),
- return false when the target app doesn't exist, and
- return false when the calling app doesn't have permission to access
  the target app (via filterAppAccess).

Bug: 186404493
Test: manual
Change-Id: Ibae43d92b8eee24a0e56f08c878a7fe793833287
2021-07-02 03:30:25 +00:00
Joe Bolinger
86c9720ae7 Merge "Ensure current operation has not changed on start/stop user operations." into sc-dev am: 92ce6e953e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15180201

Change-Id: I09ae59306dd99fd85f942cded6c5fbd6e15ec234
2021-07-02 03:27:56 +00:00
Charles Chen
56e17bfcd8 Merge "Remove updateImeDisplayId" into sc-v2-dev 2021-07-02 03:20:32 +00:00
Joe Bolinger
92ce6e953e Merge "Ensure current operation has not changed on start/stop user operations." into sc-dev 2021-07-02 03:13:53 +00:00
Benedict Wong
89e8793b3a Request location info in UnderlyingNetworkListener
This change ensures that the UnderlyingNetworkListener receives
location-sensitive fields in order to proxy the location sensitive
fields in the VcnTransportInfo

Bug: 192587440
Test: manual tests
Test: atest FrameworksVcnTests
Change-Id: Id42ae2e373d909424c3f213412ea4731ee01fa2b
2021-07-02 03:13:20 +00:00
TreeHugger Robot
7dbefb38b5 Merge "[DO NOT MERGE] Remove the Client Suggestions APIs" into sc-v2-dev am: e690168c26
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14732029

Change-Id: Id6c3fa47c6a961064ad76771f1f78618e85930b4
2021-07-02 03:12:06 +00:00