Commit Graph

12426 Commits

Author SHA1 Message Date
Benedict Wong
259e5fee70 Merge "Add message template support for checkStringNotEmpty" am: 0d0bfc92e8 am: 1c28a1aa35
am: 270dc6ab35

Change-Id: I210058d65ed329265bb5b2bb5371f0b8098eb4b3
2019-12-09 16:25:54 -08:00
Benedict Wong
270dc6ab35 Merge "Add message template support for checkStringNotEmpty" am: 0d0bfc92e8
am: 1c28a1aa35

Change-Id: Ie62535304ba68db625aa075c28273b5aff84b228
2019-12-09 16:19:58 -08:00
Benedict Wong
0d0bfc92e8 Merge "Add message template support for checkStringNotEmpty" 2019-12-09 23:59:30 +00:00
Winson Chiu
26fea7259f Merge "Overlay, actor, and target app visibility handling" 2019-12-09 23:50:31 +00:00
Winson Chiu
f0ff68f625 Merge changes from topic "androidpackage"
* changes:
  Critical fixes for AndroidPackage migration
  Revert Revert PackageParser#Package fixes
  Revert "Revert "Deprecate PackageParser#Package""
2019-12-09 21:46:13 +00:00
David Sehr
f74eb32c12 Merge "Allow tuning of heaptargetutilization" am: 0e3e2a73c6
am: e673072feb

Change-Id: Ia7114c1d9fbee42ce27372947702c580bfd3159c
2019-12-09 13:40:46 -08:00
David Sehr
0e3e2a73c6 Merge "Allow tuning of heaptargetutilization" 2019-12-09 21:24:47 +00:00
David Sehr
a494449297 Allow tuning of heaptargetutilization
Remove a pair of explicit sets of this value.  This allows ART to tune
this parameter to improve GC responsiveness and memory usage.  Tuning
this parameter is a key area of work for OEM-requested high-memory
device configurations.

Bug: 145823510
Test: boot and run with various configurations of the flag.
Change-Id: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
Merged-In: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
(cherry picked from commit b2910d3b6f)
2019-12-09 10:49:47 -08:00
Winson
3f46dbd7a0 Overlay, actor, and target app visibility handling
Hooks AppsFilter to support exposing a target and any overlays
targeting it to the actor specified in its overlayable block.

Sacrifices some install-time performance in favor of less memory
usage and easier to follow code by doing a full search/rebuild
on each change.

Benchmarks TBD

Bug: 143096091

Test: atest OverlayReferenceMapperTests

Change-Id: Ic832818b9aa383f1167ca3e69a11b8459fa9db97
2019-12-09 10:46:59 -08:00
David Sehr
5356d34831 Merge "Allow tuning of heaptargetutilization" 2019-12-09 18:34:18 +00:00
Benedict Wong
5501fcae57 Add message template support for checkStringNotEmpty
This change adds the ability for the Preconditions#checkStringNotEmpty()
to take a message template instead of just an error message, allowing
for template reuse.

Test: FrameworksNetTests passing
Change-Id: I6df1c3bff77b227126c35f066ee9112e959d6b1c
2019-12-09 17:55:42 +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
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
Rubin Xu
feeeb6538e Merge "Kill off untrusted password reset" 2019-12-09 10:29:24 +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
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
Winson
655a5b9ca3 Revert Revert PackageParser#Package fixes
To separate the changes from the massive commit that reverted the revert,
this commit includes any rebase/merge fixes since the original commit.

Change-Id: I556881a44068d38e6816f445d138f4b4e48d2df0
2019-12-06 18:05:28 -08:00
David Sehr
b2910d3b6f Allow tuning of heaptargetutilization
Remove a pair of explicit sets of this value.  This allows ART to tune
this parameter to improve GC responsiveness and memory usage.  Tuning
this parameter is a key area of work for OEM-requested high-memory
device configurations.

Bug: 145823510
Test: boot and run with various configurations of the flag.
Change-Id: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
2019-12-06 13:58:57 -08:00
Winson
14ff71712c Revert "Revert "Deprecate PackageParser#Package""
This reverts commit 8e18a0ab89.

Exempt-From-Owner-Approval: Revert to re-add approved change

Change-Id: I5b5195470f365a2347cbf444cc0494d119e42ffc
2019-12-06 12:24:05 -08:00
Jeffrey Huang
77db950964 Merge "Rename writeToProto to be dumpDebug" 2019-12-06 18:53:15 +00:00
TreeHugger Robot
dd07c25872 Merge "Fixing window dump timing out on wallpaper service" 2019-12-05 21:15:42 +00:00
Jeffrey Huang
cb78285b81 Rename writeToProto to be dumpDebug
We want to eventually migrate some of these APIs to be @SystemApi for mainline modules.
The #dumpDebug name is more appropriate than #writeToProto.

Bug: 142279786
Test: Manual
Change-Id: I60793e91cedf6b720d4ecef6a8484f4fed4ff30f
2019-12-05 11:28:11 -08:00
David Su
76210c4275 Merge "AsyncChannel: Migrate Slog to Log to enable Jarjaring" 2019-12-05 18:22:03 +00:00
Anna Trostanetski
5ec4ac7d81 Merge "Add descriptions to compat changes." am: b38db5afe0 am: d54f52b9ea
am: 76ba40cc64

Change-Id: I970da1371374bb8893e833d4c8d7629613214888
2019-12-05 04:39:49 -08:00
Anna Trostanetski
76ba40cc64 Merge "Add descriptions to compat changes." am: b38db5afe0
am: d54f52b9ea

Change-Id: I72ebf645c756df7aab326669f5ac5e5edbbcc640
2019-12-05 04:36:25 -08:00
Anna Trostanetski
b38db5afe0 Merge "Add descriptions to compat changes." 2019-12-05 12:22:27 +00:00
David Su
6cfef54b71 AsyncChannel: Migrate Slog to Log to enable Jarjaring
AsyncChannel & AsyncService both use Slog, which is
@hide, so jarjar'ing them would still lead to @hide API
usages.
Migrate to Log, which is public, so that AsyncChannel &
AsyncService can be jarjar'ed.

Bug: 145409537
Test: compiles
Change-Id: Ic0b9e8d66d575925cb1972e20721dd53c85307e6
2019-12-04 18:00:03 -08:00
David Su
a0bead651f Merge changes from topics "android-os-connectivity-wifiactivityenergyinfo", "requestactivityinfo"
* changes:
  Move WifiActivityEnergyInfo to android.os.connectivity
  BatteryStats: Move WifiActivityEnergyInfo to android.os.connectivity
  Statsd: Move WifiActivityEnergyInfo to android.os.connectivity
  Formalize WifiManager#requestActivityInfo as @SystemApi
  BatteryStats: Formalize WifiManager#requestActivityInfo
  Statsd: Formalize WifiManager#requestActivityInfo
2019-12-05 01:19:27 +00:00
Peter Wang
cead28dcee Merge "[Telephony Mainline] Expose hidden APIs and consts" am: 415143daf5
am: cfffdedc87

Change-Id: I26b52ec69d769591243c65caaec8066f1744d7a7
2019-12-04 15:55:20 -08:00
Peter Wang
415143daf5 Merge "[Telephony Mainline] Expose hidden APIs and consts" 2019-12-04 23:39:50 +00:00
Chen Xu
c2c774a606 Merge "expose APIs for mainline telephony-sdk" 2019-12-04 18:02:28 +00:00
atrost
23886e7b2c Add descriptions to compat changes.
Capture the comment above a definition of a compat change and make it
the description.
Next: make sure existing changes use supported format (only /**
comments, only above the annotations), and use in developer UI.

Bug: 144927670
Test: atest com.android.server.compat.CompatConfigTest
Change-Id: Ib23f341baa171599654c351693e4b0ddf4b2515c
2019-12-04 17:17:16 +00:00
Fabian Kozynski
fc94a3523c Merge "Remove all Privacy chip classes." 2019-12-04 16:34:58 +00:00
TreeHugger Robot
b11f93129c Merge "Persist PiP size to be restored on re-entry" 2019-12-03 21:44:59 +00:00
David Su
979b56b992 BatteryStats: Move WifiActivityEnergyInfo to android.os.connectivity
Move WifiActivityEnergyInfo out of the Wifi Mainline
module so that it can use @hide PowerProfile.

Bug: 145244073
Test: compiles
Change-Id: I1a08d200031f0d596bc5265c06ebdcd14f2a8b81
2019-12-03 12:21:31 -08:00
Peter Wang
98598bfe16 [Telephony Mainline] Expose hidden APIs and consts
Exposing constants that were originally hidden

Test: build
Bug: 140908357
Change-Id: I12b8d338a58c0ffe294137171b8bac7d80a0b776
Merged-In: I12b8d338a58c0ffe294137171b8bac7d80a0b776
2019-12-03 19:12:47 +00:00
Peter Wang
a69b9fa4b0 Merge "[Telephony Mainline] Expose hidden APIs and consts" 2019-12-03 18:49:11 +00:00
David Su
991a94d4b3 BatteryStats: Clean up WifiActivityEnergyInfo
Bug: 145244073
Test: compiles
Change-Id: I2c7c7c7b87cf674f0e3ca95bf3d4ee827657cb7a
2019-12-02 15:15:52 -08:00
Chen Xu
8713b167a9 expose APIs for mainline telephony-sdk
Those telephony SDK internal classes are referenced
by non-updatable framework/base classes.

Bug: 140908357
Change-Id: I943e2a2ca4ac1cb637cc237e580bd5cfca88a516
2019-12-02 15:00:03 -08:00
Mark Tabry
529d73bd4f Add AIDL interface and puller implementation for automotive devices.
Changes:
  - Adds hidden ICarStatsService AIDL API.
  - Adds CarStatsPuller for pulling atoms from ICarStatsService.
  - Pulls VmsClientStats via CarStatsPuller.

Bug: 141697665
Test: Manual testing on hawk using statsd_testdrive
Change-Id: I44e104d430f64b1bd3dce96e9749df79ab3d2fbf
Merged-In: I44e104d430f64b1bd3dce96e9749df79ab3d2fbf
(cherry picked from commit 9dc13578f7)
2019-12-02 13:08:13 -08:00
TreeHugger Robot
ca0a066ccc Merge "Reset mTrackingReportedValues in endSample()" 2019-12-02 19:29:25 +00:00
Hui Yu
c7d49e01dd Reset mTrackingReportedValues in endSample()
Otherwise, when next SamplingTimer.update() is called, it will take
zero as start time.

Bug: 142466892
Test: NA.

Change-Id: I04625fadd8fd8bab3ba83b8e7cd10737ad34e60b
2019-12-02 16:52:15 +00:00
Songchun Fan
f4c2c56121 Merge "[incremental] Manager, Storage and changes to Package Manager Service" 2019-11-28 07:38:50 +00:00
Songchun Fan
d1b41d49eb [incremental] Manager, Storage and changes to Package Manager Service
Checking in basic high-level classes and their interactions with
package manager service.

Incremental Manager manages IncrementalStorage instances. Both are
backed by Incremental Service.

Package Manager Service uses Incremental Manager to handle file
operaions on Incremental File System, such as renaming and cleanup.

Also adding place holders for native library handling.

Test: builds
Change-Id: I78b64f795de480e109aeaffe61272a413a6b4be5
2019-11-27 15:47:29 -08:00
Peter Wang
a2b38c875f [Telephony Mainline] Expose hidden APIs and consts
Exposing constants that were originally hidden

Test: build
Bug: 140908357
Change-Id: I12b8d338a58c0ffe294137171b8bac7d80a0b776
2019-11-27 14:01:12 -08:00
Mathieu Chartier
6eed08baf4 Merge "Use resetJitCounters for boot image profiling" am: ce9a776f1d am: 39cbd1fb92
am: bdf17fb2b3

Change-Id: I7e7b4f59d26c25671d71cb4d53403a7726af2e19
2019-11-27 11:12:36 -08:00
Mathieu Chartier
bdf17fb2b3 Merge "Use resetJitCounters for boot image profiling" am: ce9a776f1d
am: 39cbd1fb92

Change-Id: If463c8e74cc45d8fdb36df68c2ad713370fa1e28
2019-11-27 11:07:02 -08:00
Mathieu Chartier
39cbd1fb92 Merge "Use resetJitCounters for boot image profiling"
am: ce9a776f1d

Change-Id: I34fb1ede64028805865f2d1c051db8d99791e804
2019-11-27 11:01:04 -08:00
Mathieu Chartier
ce9a776f1d Merge "Use resetJitCounters for boot image profiling" 2019-11-27 18:55:38 +00:00
Hugo Benichi
f97a443e67 Merge "BitUtils: support packing/unpacking negative long values" am: 9e5de85e21 am: 04cad88eee
am: 039b4745a7

Change-Id: Iaa8c4084f0754781ea3e6a0a9202d9e102d5f074
2019-11-27 07:58:33 -08:00