Commit Graph

454784 Commits

Author SHA1 Message Date
Daichi Hirono
1eb2a91aa0 Use physical density for external displays
The CL has LocalDisplayAdapter use physical density from surface
flinger.  Previously LocalDisplayAdapter always uses fake density for
external displays. The fake density is no longer needed because surface
flinger fills density always now.

Bug: 144066777
Test: LocalDisplayAdapterTest
Change-Id: I105de4f6ded17c6882d98e60e8c7d7c027299f56
2019-12-10 19:18:10 -08:00
Gavin Corkery
654af7615b Merge changes from topic "log-watchdog-reason"
* changes:
  Log watchdog-initiated rollback reason
  Add package failure flags to Package Watchdog
2019-12-09 18:01:13 +00:00
TreeHugger Robot
a281d69a39 Merge "Better error handling in UsageStats." 2019-12-09 18:00:46 +00:00
Roshan Pius
3f9ba67fa7 Merge changes from topics "suggestion_no_uid_package", "wifi_key_value_list_parser", "wifi_power_profile", "wifi_service_manager_getService", "wifi_westworld"
* changes:
  statsd: Allow wifi mainline module to log its metrics
  wifi-services-srcs: Stop using KeyValueListParser from android.internal
  WifiNetworkSuggestion: Don't store packageName/uid
  WifiAwareManager: Add requestMacAddresses @hide API
  UserManager: Add StringDef for all restrictionKey values
  WifiActivityEnergyInfo: Use time values for energy calculation
2019-12-09 17:08:30 +00:00
TreeHugger Robot
3a83bc234b Merge "Add TV config.xml: minimal fix for showing phoneUI" 2019-12-09 16:51:28 +00:00
Khaled Abdelmohsen
4324208bfa Merge "Initialize BitInputStream with rule input stream" 2019-12-09 16:30:12 +00:00
Stefania Halac
ac35213722 Merge "Revert "SoundPool: Use caller thread for sound playback"" 2019-12-09 16:17:56 +00:00
Stanislav Zholnin
40594104c4 Merge "Add option for situation when user ignores permission dialog (USER_IGNORED)." 2019-12-09 16:10:28 +00:00
Valerie Hau
28ed8110f7 Merge "Update to Blast surface control" 2019-12-09 15:54:11 +00:00
Alex Johnston
b6bcf30de9 Merge "Call setCameraDisabled and getCameraDisabled on the parent profile" 2019-12-09 15:37:01 +00:00
Khaled Abdelmohsen
8bc377cb11 Initialize BitInputStream with rule input stream
Bug: 143697198
Test: atest FrameworksServicesTests:RuleBinaryParserTest
Change-Id: I3fbb703ba00b53fa360fd53138a2d685112ea960
2019-12-09 15:20:55 +00:00
Oli Lan
693002c106 Merge "Make ApexManager a singleton." 2019-12-09 15:14:42 +00:00
Jorim Jaggi
1473439a19 Merge "Automatically clean up flicker test data" am: d915fc7025 am: ade366490a
am: 2d3934fcaa

Change-Id: I1a2be40c54e4025d4c160e2f6beaa61aa1eb51db
2019-12-09 06:32:34 -08:00
Jorim Jaggi
2d3934fcaa Merge "Automatically clean up flicker test data" am: d915fc7025
am: ade366490a

Change-Id: Ic54a3ac9393c9ac613558f3ce3829140828f3629
2019-12-09 06:28:35 -08:00
Jorim Jaggi
ade366490a Merge "Automatically clean up flicker test data"
am: d915fc7025

Change-Id: Id08e485ac5e420941453964faf1dc56deb9162c3
2019-12-09 06:24:21 -08:00
Jorim Jaggi
d915fc7025 Merge "Automatically clean up flicker test data" 2019-12-09 14:14:54 +00:00
Alex Johnston
755e377c4a Call setCameraDisabled and getCameraDisabled on the parent profile
Previously, these APIs did not support explicitly querying the parent profile.
This CL allows the WP DPC to now call these methods, which means the WP DPC
can disable the camera device-wide and not just for the WP.

Bug: 138709470
Test: manual testing using Personal and WP TestDPC and Camera
      atest com.android.cts.devicepolicy.ManagedProfileTest
      atest com.android.server.devicepolicy.DevicePolicyManagerTest

Change-Id: I7e7ce7be766850c6e2f58c72a0a44990817e9b73
2019-12-09 14:08:03 +00:00
Matt Pietal
bb5ce5ef49 [automerger skipped] Merge "[DO NOT MERGE] Resolver/Chooser - Window inset fixes" into qt-qpr1-dev am: 2c5bd63efd
am: 3d3d051455 -s ours
am skip reason: subject contains skip directive

Change-Id: Id022d3658c8a1afe6c1c9d26eb77513d22fcff60
2019-12-09 06:03:32 -08:00
Matt Pietal
131d18542a [automerger skipped] [DO NOT MERGE] Resolver/Chooser - Window inset fixes am: 95ede7fb53
am: d6c8280a7d -s ours
am skip reason: subject contains skip directive

Change-Id: Ia0b8ba008aa9c011826fd8965b783a0e27ce3063
2019-12-09 06:03:27 -08:00
Automerger Merge Worker
3d3d051455 Merge "[DO NOT MERGE] Resolver/Chooser - Window inset fixes" into qt-qpr1-dev am: 2c5bd63efd
Change-Id: I829cdf978fa523751b617c19f173274812c260bf
2019-12-09 13:54:29 +00:00
Automerger Merge Worker
d6c8280a7d [DO NOT MERGE] Resolver/Chooser - Window inset fixes am: 95ede7fb53
Change-Id: I77a948f5599ee8c3453b758136ea13c62ad95e69
2019-12-09 13:54:13 +00:00
TreeHugger Robot
2c5bd63efd Merge "[DO NOT MERGE] Resolver/Chooser - Window inset fixes" into qt-qpr1-dev 2019-12-09 13:40:38 +00:00
Oli Lan
be7a423649 Make ApexManager a singleton.
Currently ApexManager is only accessed from PackageManager, but upcoming changes
to allow rollback of apex data directories will require RollbackManager to
access it as well. (See go/apex-data-directories)

Multiple ApexManagers can already be created, but as the class maintains a cache of apex
packages, it would be inefficient to have many of them. This change makes ApexManager
into a singleton so that PackageManager and RollbackManager can use the same one.

Bug: 141148175
Test: atest CtsStagedInstallHostTestCases
Change-Id: Id43a20bf94f349c87d50de5dad7c90bee50f39f1
2019-12-09 13:10:18 +00:00
Robin Lee
9a7bee46c5 Add TV config.xml: minimal fix for showing phoneUI
Test: manual
Bug: 145723448
Change-Id: I1cb2f4be5e4322e6c16aead6942831ffcfa6b6f2
2019-12-09 12:52:08 +00:00
Matt Pietal
95ede7fb53 [DO NOT MERGE] Resolver/Chooser - Window inset fixes
Resolver supports numerous layouts, with optional ViewGroups. Need to
make sure the window inset is applied to the correct view. If there is
a List present, add a footer so that the list scrolls underneath the
navbar.

Test: atest ResolverActivityTest
Bug: 145670872
Change-Id: I94652c5e0068436878a307701b5785f02060b8d6
2019-12-09 07:43:10 -05:00
TreeHugger Robot
3978fd5471 Merge "Remove unused deferClearAllDrawn" 2019-12-09 11:00:42 +00:00
Gavin Corkery
dd1dabaef7 Log watchdog-initiated rollback reason
To help with monitoring Mainline releases, log the reason
for a watchdog-initiated rollback. This may be due to
native crashes, app crashes, ANRs or explicit health check
failures.

Add a mapping from PackageWatchdog failure reason to the
new metrics.

Bug: 138782888
Test: atest PackageWatchdogTest
Test: atest StatsdHostTestCases
Change-Id: Ia3e73d955508297004591eac762555665c557b8a
2019-12-09 10:40:01 +00:00
Gavin Corkery
f305f4def0 Add package failure flags to Package Watchdog
This is a prerequisite for adding additional logging of
the Watchdog-triggered rollback reason. Add flags which
indicate the failure observed (native, crash, ANR, explicit
health check). These will be used in the future by
RollbackPackageHealthObserver to map the failure type to the
(new) set of available logging metrics.

Test: atest PackageWatchdogTest
Bug: 138782888
Change-Id: I7e7c5e5399011e2761dada2b989a95c2013307e9
2019-12-09 10:40:00 +00:00
Rubin Xu
feeeb6538e Merge "Kill off untrusted password reset" 2019-12-09 10:29:24 +00:00
Jone Chou
09fd43d922 Merge "Enlarge SYSTEM_LAST_KMSG truncated size from 96KB to 192KB" 2019-12-09 08:16:34 +00:00
easoncylee
bdbbb3a05f Merge "Convert apct/framework/ext_services_test-cloud-tf and apct/framework/testables_test-cloud-tf to Test Mapping Suite." am: 0b51af2540 am: 3f6177c54a
am: 1222d756d1

Change-Id: I8fea39a113bf11d3ad10ba4e249808a832ed9b1f
2019-12-08 22:55:14 -08:00
easoncylee
1222d756d1 Merge "Convert apct/framework/ext_services_test-cloud-tf and apct/framework/testables_test-cloud-tf to Test Mapping Suite." am: 0b51af2540
am: 3f6177c54a

Change-Id: I5506a16b74b49fe0ae1165bd1c866fc043022d77
2019-12-08 22:51:13 -08:00
easoncylee
3f6177c54a Merge "Convert apct/framework/ext_services_test-cloud-tf and apct/framework/testables_test-cloud-tf to Test Mapping Suite."
am: 0b51af2540

Change-Id: Ia3cb6a650437cea7df13d302d2f3b409e071e73a
2019-12-08 22:47:44 -08:00
Treehugger Robot
0b51af2540 Merge "Convert apct/framework/ext_services_test-cloud-tf and apct/framework/testables_test-cloud-tf to Test Mapping Suite." 2019-12-09 06:39:52 +00:00
TreeHugger Robot
666ac4c02f Merge "Handle nulls in Java autogeneration" 2019-12-09 05:52:44 +00:00
Muhammad Qureshi
67df8893dd Handle nulls in Java autogeneration
Bug: 143979391
Test: m -j
Change-Id: I93146faa1976cac195c2250832d12ee4a09ae969
2019-12-08 20:40:46 -08:00
PO HUNG CHEN
63a772c070 Merge "Allow the DSU Loader to install DSU package" 2019-12-09 03:36:45 +00:00
Jone Chou
1b5ffac398 Enlarge SYSTEM_LAST_KMSG truncated size from 96KB to 192KB
- This is for userdebug build only
- Target to improve ramdump-less debugging for All of Pixel devices
- Max bootloader logs size is 45KB and will be appended to last kernel
  log end
- Totally enlarge last kernel logs size from (96-45)KB to < (192-45)KB
  => extra inserted size: header(521B), truncated signature(14B), footer(43B)
     SYSTEM_LAST_KMSG + header(521B) + truncated signature(14B) + footer(43B) = 196608B(192KB)
     and actual SYSTEM_LAST_KMSG is 196030 < 192KB

Bug: 145574030
Change-Id: I7b5921e1f01433c7aa27e564ab28181d0a4d0b31
2019-12-09 03:10:44 +00:00
Betty Chang
a52bbd3624 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-09 02:25:57 +00:00
Rubin Xu
d952240979 Kill off untrusted password reset
Time has come that we can finally ditch untrusted password reset i.e.
changing lockscreen password without providing the existing password or
an activiated password reset token. In this change, we are:

1. Preventing any DPC / legacy device admin from invoking
DPM.resetPassword(), the primary route to invoke untrusted password
reset. Depending on their target SDK level, resetPassword() will either
throw SecurityException, or fail silently.
2. Still allowing privilleged app holding RESET_PASSWORD permission to
call this API, but it's limited to setting a new passowrd on an
unsecured device.
3. Removing synthetic password caching mechanism in LockSettingsService,
whose sole purpose was to support untrusted password reset.

Bug: 137939224
Test: atest com.android.server.locksettings
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Ie3e5e277984b6fc2f1d378880363028752bad775
2019-12-08 22:01:01 +00:00
Jeff Sharkey
993b3ed571 Merge "Structure MediaProvider as an APEX." 2019-12-08 21:20:34 +00:00
Paul Hu
996e6d1dce Merge "Add CONNECTIVITY_INTERNAL to bt tethering related APIs temporarily" am: 60675ece9a am: 1fe8de5336
am: f0f09efa1e

Change-Id: I645995f3101b1062dd15a85ada671badfae30ed3
2019-12-08 06:15:40 -08:00
Paul Hu
f0f09efa1e Merge "Add CONNECTIVITY_INTERNAL to bt tethering related APIs temporarily" am: 60675ece9a
am: 1fe8de5336

Change-Id: I6d5928c623b72fc8415b499dc69f9775be21a58a
2019-12-08 06:11:39 -08:00
Paul Hu
1fe8de5336 Merge "Add CONNECTIVITY_INTERNAL to bt tethering related APIs temporarily"
am: 60675ece9a

Change-Id: Ida6708c69af334b0cda965cfea0427b76fb6457e
2019-12-08 06:07:36 -08:00
Paul Hu
60675ece9a Merge "Add CONNECTIVITY_INTERNAL to bt tethering related APIs temporarily" 2019-12-08 14:00:52 +00:00
Chen Xu
2ee5f0ae28 [automerger skipped] Merge "allow com.android.cellbroadcastservice grant signature permission" am: a8c4669579 am: 15878e511f
am: c2769be126 -s ours
am skip reason: change_id Id31e3ce6662db254b77178bc2d6ee9ec7532bc8d with SHA1 3da1104af0 is in history

Change-Id: Id4106088073a8956b445242c3b997560d5354be7
2019-12-07 14:12:22 -08:00
Chen Xu
c2769be126 Merge "allow com.android.cellbroadcastservice grant signature permission" am: a8c4669579
am: 15878e511f

Change-Id: Idf30a1368ee85dffc0fec7993c6354b5e50dece0
2019-12-07 14:08:13 -08:00
Chen Xu
15878e511f Merge "allow com.android.cellbroadcastservice grant signature permission"
am: a8c4669579

Change-Id: I5038eba42b737e88cc68ee811e2879069c03d401
2019-12-07 14:02:53 -08:00
Chen Xu
a8c4669579 Merge "allow com.android.cellbroadcastservice grant signature permission" 2019-12-07 21:19:23 +00:00
Jeff Sharkey
679025e6a9 Merge "Initial support for subtitles and lyrics." 2019-12-07 16:15:29 +00:00