437659 Commits

Author SHA1 Message Date
jay
e77e28c519 Merge "Clean up duplicated uses-permission" am: 2bfe37de04 am: ed63903250 am: 807b7fde15 am: abd5dae2a8
am: 001e3fad8d

Change-Id: I4bc7812131cd83b2bd739775d205d54269b37208
2019-08-05 14:05:10 -07:00
Treehugger Robot
85d2ac2e12 Merge "Fix dependency on APK used by test" 2019-08-05 21:04:28 +00:00
Shuo Qian
dea48cea24 [automerger skipped] Merge "Add documentation in TelephonyManager#getNetworkCountryIso" am: 753f6c3e5a am: 06a0b6a010
am: 2f462866b3 -s ours
am skip reason: change_id I311e690d1f79ebefbc068c486d9bed814c129aab with SHA1 8ab9550f86 is in history

Change-Id: Icd1f323151bfd759a2c99a6d251c46515b4c66de
2019-08-05 13:56:33 -07:00
Oscar Shu
edaca500fb Merge "Fix runtest.sh in frameworks/base/wifi" 2019-08-05 20:51:51 +00:00
jay
001e3fad8d Merge "Clean up duplicated uses-permission" am: 2bfe37de04 am: ed63903250 am: 807b7fde15
am: abd5dae2a8

Change-Id: I33f2f6e6daa8ed236558c1bce76276959b198d36
2019-08-05 13:48:15 -07:00
Shuo Qian
2f462866b3 Merge "Add documentation in TelephonyManager#getNetworkCountryIso" am: 753f6c3e5a
am: 06a0b6a010

Change-Id: I9268455d8074763205c4c6f3f9101ace0b6ea12a
2019-08-05 13:42:24 -07:00
jay
abd5dae2a8 Merge "Clean up duplicated uses-permission" am: 2bfe37de04 am: ed63903250
am: 807b7fde15

Change-Id: Ie0c81246d1434b65013f036a911f6da9a7ddd1f4
2019-08-05 13:36:12 -07:00
Shuo Qian
06a0b6a010 Merge "Add documentation in TelephonyManager#getNetworkCountryIso"
am: 753f6c3e5a

Change-Id: Iae5df44de8a307888b4eff8d581ddefd68ad3450
2019-08-05 13:30:31 -07:00
jay
807b7fde15 Merge "Clean up duplicated uses-permission" am: 2bfe37de04
am: ed63903250

Change-Id: If252987a1b733844039eadae7590c91c55d1fde2
2019-08-05 13:24:04 -07:00
Shuo Qian
753f6c3e5a Merge "Add documentation in TelephonyManager#getNetworkCountryIso" 2019-08-05 20:17:53 +00:00
jay
ed63903250 Merge "Clean up duplicated uses-permission"
am: 2bfe37de04

Change-Id: I283778ef4b61e9f0a7a6592f1be563da91e8c628
2019-08-05 13:10:39 -07:00
Sooraj Sasindran
3010c40175 Merge "Add carrier config for exit hysteresis time" into qt-qpr1-dev 2019-08-05 20:05:00 +00:00
Treehugger Robot
2bfe37de04 Merge "Clean up duplicated uses-permission" 2019-08-05 19:40:28 +00:00
Adrian Roos
5f2c9a14f5 GestureNav: Log exclusion rect heights
Logs the rejected and requested exclusion rect heights.

Test: adb shell device_config put android:window_manager key_system_gesture_exclusion_log_debounce_millis 1000
Bug: 135152789
Change-Id: Ie12640f4bf0a8b40b666e604188a0bedd85e8981
Exempt-From-Owner-Approval: DeviceConfig.java: Adding constant to WindowManager namespace.
2019-08-05 21:19:40 +02:00
Noah Zimmt
4e878506d7 Merge "Avoid calling installd where not needed" 2019-08-05 19:06:08 +00:00
Jorim Jaggi
5534e159c1 Merge "Fix overlapping remote and recents animations" into qt-r1-dev am: b248a0343f am: dd40a0c75a
am: c7b3ff1c52

Change-Id: Iaba42814773ab7333aae3fbc90d3bbd2ea8bac87
2019-08-05 12:01:12 -07:00
Jorim Jaggi
c7b3ff1c52 Merge "Fix overlapping remote and recents animations" into qt-r1-dev am: b248a0343f
am: dd40a0c75a

Change-Id: Ia9361be8e0040303ab397e718e055193409624cf
2019-08-05 11:50:14 -07:00
TreeHugger Robot
997adc05e8 Merge "ImageWriter: increase timeout for BufDetachThread" into qt-qpr1-dev 2019-08-05 18:42:34 +00:00
Jorim Jaggi
dd40a0c75a Merge "Fix overlapping remote and recents animations" into qt-r1-dev
am: b248a0343f

Change-Id: I103ff225bbf69e6945cb90430130ae233dd6cb9f
2019-08-05 11:39:05 -07:00
Jorim Jaggi
f76a0f8376 Merge "Fix overlapping remote and recents animations" into qt-r1-dev
am: b248a0343f

Change-Id: I65a0859aa03247262767107f3525b2b7490b5eb8
2019-08-05 11:39:03 -07:00
Noah Zimmt
b255807189 Avoid calling installd where not needed
The method StorageStatsManager#getCacheBytes is called several times
during package installation. It calls
InstalldNativeService::getUserSize via a binder call.

The runtime of getUserSize is variable; I have traces where it takes
50ms and traces where it takes 500ms.

The return value of getUserSize used to take into account freeable cache
space when determining available space on a given volume. In most cases,
it is possible to first do a pessimistic check of the space available on
the volume - forgoing the installd call - and only consider cache space
if the pessimistic check fails.

This avoids a binder call + the time spend in getUserSize for most
installs.

Bug: None
Test: atest frameworks/base/core/tests/coretests/src/android/content/pm/PackageHelperTests.java
cts/tests/tests/os/src/android/os/storage/cts/StorageManagerTest.java
Change-Id: Icaecee732ef330fee1b409d2dd76723822c25959
2019-08-05 11:25:22 -07:00
Chen Xu
6dcc20e79a apply correct @SystemAPI for PackageManager
Bug: 138772432
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSuspendPackage
Change-Id: I93441ed2dba933946aeaeabcfdb65e41bfccc447
2019-08-05 11:20:58 -07:00
Roshan Pius
08a61aa733 XmlUtils: Fix hex parsing in readThisByteArrayXml
hex 'a' is not correctly deserialized in readThisByteArrayXml.

Change readThisByteArrayXml & writeByteArrayXml to use HexEncoding for
hex conversions.

Bug: 138482990
Test: Was seeing parsing errors with ag/9135251.
Validated the fix with ag/9135251.

Change-Id: If9f86b5ed85a9f883130e4110f85cd2faa995439
2019-08-05 11:18:10 -07:00
Jorim Jaggi
b248a0343f Merge "Fix overlapping remote and recents animations" into qt-r1-dev 2019-08-05 18:12:56 +00:00
TreeHugger Robot
72a487722f Merge "PinnerService: add pinner.pin_camera to toggle camera pinning" 2019-08-05 17:57:43 +00:00
Eric Holk
363eab80b2 Merge "[view compiler] Remove dex_builder_test.cc" am: 63f6a62163 am: 130c3cc2b1 am: 08c3ae702a am: f28ef60b1e
am: f5bf3d19b0

Change-Id: I951eeb726c6906f4d88f91316b688e6853100927
2019-08-05 10:54:23 -07:00
TreeHugger Robot
7682e5d196 Merge "DPM: Add API for granting apps access to keys" 2019-08-05 17:48:43 +00:00
Eric Holk
f5bf3d19b0 Merge "[view compiler] Remove dex_builder_test.cc" am: 63f6a62163 am: 130c3cc2b1 am: 08c3ae702a
am: f28ef60b1e

Change-Id: Ib88e4da83de71f0a581cee0163d16942d9a42415
2019-08-05 10:45:18 -07:00
TreeHugger Robot
9914348465 Merge "[HWUI] clean up libgui include directives" 2019-08-05 17:43:23 +00:00
Jean-Michel Trivi
f44443c242 FocusRequester: refactor handleFocusLoss
Break out the checks to see if a focus loss is handled by the
framework in a separate method, and reorder the if statements
for code clarity.

Annotate PlayerFocusEnforcer methods for nullability, add
javadoc

Test: atest AudioFocusTest
Change-Id: I9aaab804c78a2e2627ddbd7b9bd41fdec47d2b57
2019-08-05 10:40:48 -07:00
TreeHugger Robot
120820d66b Merge "Add logic to handle screenshot file creation failure" 2019-08-05 17:33:42 +00:00
Eric Holk
f28ef60b1e Merge "[view compiler] Remove dex_builder_test.cc" am: 63f6a62163 am: 130c3cc2b1
am: 08c3ae702a

Change-Id: I9697bc7617d846b4253d005f239fed7e39c513da
2019-08-05 10:32:11 -07:00
TreeHugger Robot
d30dbdbd72 Merge "Don't throw exception for destroyed RoleUserState." 2019-08-05 17:27:45 +00:00
Eric Holk
08c3ae702a Merge "[view compiler] Remove dex_builder_test.cc" am: 63f6a62163
am: 130c3cc2b1

Change-Id: Ic9ca717a6fa299fd1bb183831fcadd4aa41ead52
2019-08-05 10:20:07 -07:00
Eric Holk
130c3cc2b1 Merge "[view compiler] Remove dex_builder_test.cc"
am: 63f6a62163

Change-Id: Ib73ed6f1fee41358eabe4b93fd99fe96339c205d
2019-08-05 10:06:15 -07:00
Nicolas Geoffray
c1461e6be9 Merge "Initial seed for boot profiles." 2019-08-05 16:36:52 +00:00
Treehugger Robot
63f6a62163 Merge "[view compiler] Remove dex_builder_test.cc" 2019-08-05 16:34:46 +00:00
TreeHugger Robot
8c0df67fa4 Merge "Fix some issues about AMS creation in tests." 2019-08-05 16:01:35 +00:00
Jorim Jaggi
589c5ba0fa Fix overlapping remote and recents animations
Test: Open app and immediately swipe up while opening. Verify
Thread prioties in systrace

Test: WindowProcessControllerTests
Fixes: 137881181
Change-Id: Ic1d7403d2a648e6f1d1b6a3d55b56bf37bc57a2c
2019-08-05 17:10:18 +02:00
Fabian Kozynski
01dee0df54 Merge "Swiping from L/R opens Notifications/QS" 2019-08-05 14:54:21 +00:00
TreeHugger Robot
7205041a36 Merge "Badging should print package attributes at most once" 2019-08-05 14:24:37 +00:00
Abhijeet Kaur
1b1d614e63 Add logic to handle screenshot file creation failure
Delete the bugreport file to free the space before returning.

Delete unnecessary if blocks as the File constructor would never return
null

Bug:123617758
Test: Force code to execute the if (screenshotFd == null) block.
      Bugreport file gets deleted successfully

Change-Id: Ib88278a8a56799ef562b8b06e5e530a8e31e85d5
2019-08-05 15:24:16 +01:00
TreeHugger Robot
94bb876e20 Merge "Removes direct use of LocalServices.getService" 2019-08-05 14:18:45 +00:00
Bernardo Rufino
d1df67ef43 Eagerly initialize BMS in Trampoline's constructor
After multi-user BMS became a lightweight class as well, so no need to
lazily initialize it. This lays the ground for unifying Trampoline and
BMS.

Test: atest TrampolineTest
Test: adb shell bmgr backupnow <package>
Bug: 135247112
Bug: 135661048
Change-Id: Ia7f69d2ed282c6dfe6443a601f27229d43802fe6
2019-08-05 14:35:40 +01:00
Fabian Kozynski
d97ded0165 Merge "Restore SignalTileView in CellularTile" into qt-qpr1-dev 2019-08-05 13:07:41 +00:00
Al Sutton
846c219d78 Merge "Remove unused code" 2019-08-05 12:56:48 +00:00
Nicolas Geoffray
2e09f87849 Initial seed for boot profiles.
Taken from profiling system server with simpleperf at boot.

Bug: 119800099
Test: boots
Change-Id: Icb5f8d137fd0fb52aa94e2896214411ca583db9f
2019-08-05 12:18:12 +01:00
Rubin Xu
f83521f849 Merge "Remove base-zero pattern migration in LockSettingsService" 2019-08-05 10:38:10 +00:00
Rubin Xu
7db431c522 Merge "Remove support of legacy credential hash" 2019-08-05 10:37:50 +00:00
Al Sutton
3b4e1e9931 Remove unused code
Change-Id: I4f31141272facb092a18ffa28e582523c3eeef88
Test: atest ArrayUtilsTest
2019-08-05 11:07:27 +01:00