Commit Graph

417242 Commits

Author SHA1 Message Date
Winson Chung
dec1a6665a Fix regressions in PiP movement bounds handling
- When we return early when detecting when to skip applying the bounds
  the stored bounds and rotation weren't being updated
- In landscape, the addition of the nav bar inset in the bottom pushed
  the movement bounds to be out of range, which cause an incorrect
  offset to be calculated
- Simplified the logic to calculate the offset for the adjustment for
  IME and shelf -- keep track of the previous offset, check the previous
  movement+offset bounds with the next movement+offset bounds and only
  update if the PIP is currently between those two bounds
- Tweak to landscape policy, if there isn't enough space for the ime
  offset, then don't apply it as a part of the shift

Bug: 126199952
Test: Go to landscape + pip, open IME and dismiss IME and ensure the
      PIP is pushed off and restored correctly
Test: In portrait, test going from app/home/ime and verify that the right
      offsets are applied, and then if the stack is not in the bounds of
      the offset change, that it is not applied

Change-Id: I67eee7d321995f403137db940b06f685d0c919af
2019-06-05 15:33:16 -07:00
TreeHugger Robot
f5671d390d Merge "Remove stopship for idmap2 vendor sdk checking" into qt-dev 2019-06-03 20:31:59 +00:00
Jeff Sharkey
aac39e204d Merge "Collect NeededUriGrants without holding locks." into qt-dev 2019-06-03 20:11:33 +00:00
Ritwika Mitra
d1ca4823d5 Merge "Initializing the Telephony Sms DB based on RoleManager.ROLE_SMS" into qt-dev 2019-06-03 19:15:49 +00:00
TreeHugger Robot
7a9a83f6a1 Merge changes from topic "SoftHardStoragePerm" into qt-dev
* changes:
  Link to SoftRestrictedPermissionPolicy twin
  Pre-Q storage perm should behave hard restricted
  Factor out soft restricted permissions policy
2019-06-03 18:29:30 +00:00
Ryan Mitchell
56db15b843 Remove stopship for idmap2 vendor sdk checking
Idmap now checks if the version of the vendor partition is greater than
or equal to 29 or a development codename to enable enforcement of
overlayable resources.

Bug: 119390857
Test: manual
Change-Id: Ica25800432993beb7464436d4fba7cb391e621ef
2019-06-03 11:22:36 -07:00
Ned Burns
798aa80cf5 Merge "Allow notification reordering after user adjusts importance" into qt-dev 2019-06-03 18:21:19 +00:00
TreeHugger Robot
a54b943d59 Merge "Fix a bug about missing onConfigurationChanged" into qt-dev 2019-06-03 18:09:34 +00:00
Ritwika Mitra
19afd4690f Initializing the Telephony Sms DB based on RoleManager.ROLE_SMS
Fix: 133356079
Test: manual

Change-Id: I49dcdc450e1113ffae887ad488d39f74a96787ed
2019-06-03 10:42:43 -07:00
Fabian Kozynski
9949266e40 Merge "Revert "Change carrier name shown No Service to ECO"" into qt-dev 2019-06-03 17:41:12 +00:00
Lei Yu
8ed50556f5 Merge "Use new API to build NetworkTemplate" into qt-dev 2019-06-03 16:54:29 +00:00
TreeHugger Robot
a1eb76aca1 Merge "No need to fake P->Q upgrade anymore" into qt-dev 2019-06-03 16:45:21 +00:00
Chavi Weingarten
fd979ca3d2 Merge "Only updateBoundsSurface when surface size has changed." into qt-dev 2019-06-03 16:08:42 +00:00
Philip P. Moltmann
f4de94f177 Link to SoftRestrictedPermissionPolicy twin
We cannot create an API for now, hence the code needs to be duplicated.
Make sure we find the twin-class.

Test: Built
Bug: 131188778
Change-Id: I1cf50f15fb63fd02d9c6a0f326c3a5cd90192d8c
2019-06-03 08:36:58 -07:00
Philip P. Moltmann
8625cdd03b Pre-Q storage perm should behave hard restricted
Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/policy:presubmit
Fixes: 131188778
Change-Id: If99dc99e8164156ae15f6617d0383513d505e15e
2019-06-03 08:36:58 -07:00
Philip P. Moltmann
faa788aff0 Factor out soft restricted permissions policy
So that later we can add more policy to it.

Test: atest CtsPermission2TestCases:RestrictedPermissionsTest
Bug: 131188778
Change-Id: Idc8738cbdb418fa7494100309345660139f32373
2019-06-03 08:36:58 -07:00
Philip P. Moltmann
35e5db7a3f Merge "Revert "Reset SYSTEM_FIXED flags for hard restricted perms"" into qt-dev 2019-06-03 15:28:21 +00:00
TreeHugger Robot
ad3e86a742 Merge "Re-notify if the network goes to PARTIAL." into qt-dev 2019-06-03 14:18:18 +00:00
Lorenzo Colitti
abf22437f1 Re-notify if the network goes to PARTIAL.
If NetworkMonitor detects partial connectivity before
EVENT_PROMPT_UNVALIDATED arrives, show the partial
connectivity notification immediately. Re-notify
partial connectivity silently if no internet
notification already there.

Bug: 130683832
Bug: 130766237
Test: atest com.android.server.ConnectivityServiceTest
Change-Id: I7d4eddc643ec795c3961097dc1bdd314d168f6c7
Merged-In: I1b79d3faf96ffe792738935088e4ebbdfcc0d878
(cherry picked from commit 58d4e7304c)
2019-06-03 13:19:22 +00:00
Bonian Chen
a7e9e8c66d Revert "Change carrier name shown No Service to ECO"
This reverts commit b023773a18.

Reason for revert: Not yet decided to release this at this stage

Change-Id: Ic0018cadcc228667a64f6f8c694bb6a04f00adc9

Bug: 130857483
Bug: 133201131
Bug: 132291669
2019-06-03 13:08:11 +00:00
Matt Pietal
3e4b56f76c Sharesheet - Fix layouts for multi-window mode
When using multi-mode and holding the phone in portrait, android will
report it's orientation as LANDSCAPE. Take multi-window mode into
account when determining fixed widths as well as number of items per
row.

Bug: 132828939
Test: Use multi-window mode
Change-Id: I97b722ea58c9f79aea2a3ab594c3ad7d78f8607c
2019-06-03 07:08:22 -04:00
TreeHugger Robot
3bc96f9113 Merge "Invoke setWindowStopped on the thread that created the view" into qt-dev 2019-06-03 10:13:18 +00:00
Baligh Uddin
aef843f970 Merge "Remove these subdirectories per b/133225687" into qt-dev 2019-06-02 13:14:26 +00:00
TreeHugger Robot
b3b93d72fb Merge "Import translations. DO NOT MERGE" into qt-dev 2019-06-02 04:38:22 +00:00
TreeHugger Robot
3960d2232d Merge "Camera: Handle hidden physical camera without camcorder profile" into qt-dev 2019-06-02 01:41:54 +00:00
Tyler Gunn
7fceb2018e Merge "Fix bugs with Remote Connection Services." into qt-dev 2019-06-01 23:52:16 +00:00
Bill Yi
367e267469 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia4e260dc7c3a62b2252468391a548e00e1ec0f2d
2019-06-01 07:59:15 -07:00
TreeHugger Robot
9070e5ab3a Merge "Import translations. DO NOT MERGE" into qt-dev 2019-06-01 14:44:50 +00:00
TreeHugger Robot
d6d42f4be1 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-06-01 14:41:32 +00:00
Bonian Chen
7aee265a7f Merge "Change carrier name shown No Service to ECO" into qt-dev 2019-06-01 12:47:31 +00:00
Bill Yi
4ac83d05ae Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5318ae0fb85ad6f40291511ee6b647686c387a3a
2019-06-01 00:09:58 -07:00
TreeHugger Robot
d0ffaeb4b5 Merge "Handle condition changes when metric is not active." into qt-dev 2019-06-01 05:31:14 +00:00
TreeHugger Robot
8bbabee0cd Merge "Revert "Statsd: apex modules in uid map"" into qt-dev 2019-06-01 04:48:58 +00:00
TreeHugger Robot
04c3eeeaa0 Merge "Do not create EMPTY batterystats history file." into qt-dev 2019-06-01 02:30:20 +00:00
TreeHugger Robot
17f08878e2 Merge "HUN should not show up when the Notification shade is open" into qt-dev 2019-06-01 02:05:39 +00:00
TreeHugger Robot
09dacf8183 Merge "Bring back silent icons for Q->Q devices" into qt-dev 2019-06-01 01:32:20 +00:00
TreeHugger Robot
cc36a441dd Merge "Catch NPE in getServiceStateForSubscriber" into qt-dev 2019-06-01 01:31:17 +00:00
TreeHugger Robot
1d6d10dc6f Merge "Fix SysUI-Assistant metrics logging" into qt-dev 2019-06-01 01:28:39 +00:00
Tyler Gunn
156a33b9a8 Fix bugs with Remote Connection Services.
1. A previous change was made in ConnectionServiceAdapterServant to add
another parameter, requiring the user of SomeArgs.  I think this fix is
pretty self-explanatory.  (facepalm)
2. queryRemoteConnectionServices in ConnectionServiceAdapter had an issue
where the callback would not get called if there was more than one
IConnectionServiceAdapter instances.  This isn't an error condition, but
a condition where we don't query telecom for the list of valid remote
connection services.  We ensure a callback with an empty list is made
(this is similar to what Telecom already does).
This seems to be an issue inherent with DSDS because there can be multiple
SIM ConnectionServices where before there was only one.

Test: Run CTS tests.
Bug: 133639062
Change-Id: I1c508e97d1f0ea1bc72ad7ebd026c1ad66a52de3
2019-05-31 17:53:48 -07:00
TreeHugger Robot
e5e876265c Merge "Verify staged APKs pre-reboot." into qt-dev 2019-06-01 00:25:51 +00:00
chaviw
c0a8c4edbd Only updateBoundsSurface when surface size has changed.
Currently, updateBoundsSurface was getting called when the surface
changed, not just when the size changed. This meant it could be calling
setWindowCrop and deferTransaction when no size had changed. If size
hadn't changed, there was a high possibility that no new frames would be
submitted by the client, causing the deferTransaction to wait forever.

Since the deferTransaction was still waiting, SurfaceFlinger would wake
up every vsync to check if it should call doTransaction for the deferred
transaction. This caused 60Hz composition even when frames were rendered
slower.

Fixes: 132110524
Test: SF doesn't compose 30fps app at 60Hz
Change-Id: Icf3a99b34c288575438bfcd05e9077ea7919b4ca
2019-06-01 00:12:09 +00:00
Christopher Ferris
cbd4908c9f Merge "Avoid using usap when wrap property set." into qt-dev 2019-06-01 00:07:29 +00:00
Evan Tyra
c08d2d981c Catch NPE in getServiceStateForSubscriber
ITelephony can enter a bad state with an incorrect SubId and throw an
NPE as shown in the attached bug. This is not an expected error, so a
bugreport will be triggered on userdebug builds on catch.

Test: Local
Bug: 134067547
Change-Id: Ib8f3b69eb3870c3567578aadaee6cf2693526fbd
2019-06-01 00:02:46 +00:00
Hui Yu
e40781ee84 Do not create EMPTY batterystats history file.
Previously when batterystats history buffer exceeds MAX_HISTORY_BUFFER
size, we create a new history file which is empty until batterystats
history buffer is written to the file. But the buffer is written to the
file every 30 minutes by default. When the file is empty, if the
system server process crashed or abrupt powered off, the file will remain
empty.

During the device bootup, batterystats reads history buffer from
the empty file and failed. The important mHistoryBaseTime variable is zero,
which causes all timestamps in subsequent history events are wrong, this
causes volta go/powerbug displays wrong, also Battery Usage in Settings
are wrong.

The fix is to not create new empty history file on disk until we actually
write history buffer to the file.

This problem can be manually reproduced by creating new empty file under
battery-history directory, then power off the device by long press power
button.

Bug: 133525277
Test: frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsHistoryTest.java

Change-Id: I0c22881df6897e8832b472cc5e82fbf2727eb252
2019-05-31 23:48:47 +00:00
Bill Yi
b665dc8d39 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3e8bccdc1397a8270c58f411e8383524b8f105b8
2019-05-31 16:36:54 -07:00
Philip P. Moltmann
d73a8bae43 Revert "Reset SYSTEM_FIXED flags for hard restricted perms"
This reverts commit 3c2731fdce.

Reason for revert: This was only needed to unbreak internal dogfooding

Test: This is a clean revert
Bug: 134161027
Change-Id: I309bc5158190da71fc0ba867a5d15c6260623ed5
2019-05-31 23:36:12 +00:00
Pengquan Meng
d7673a30d9 Merge "Add new WiFi Calling string without hyphen" into qt-dev 2019-05-31 23:31:27 +00:00
Nazanin Bakhshi
02e9e32b90 Merge "Supported data enabled override for different scenarios" into qt-dev 2019-05-31 23:20:48 +00:00
TreeHugger Robot
164404bfcb Merge "Reset SYSTEM_FIXED flags for hard restricted perms" into qt-dev 2019-05-31 23:17:35 +00:00
Priyank Singh
7e9344f83c HUN should not show up when the Notification shade is open
Bug: 132131722
Test: Manual
Change-Id: Id759421fd402e917ca4722df6fb597b5991ed31d
(cherry picked from commit ff78b8ec8c31e3eac40db5d321dd6926ef0903a1)
2019-05-31 22:49:07 +00:00