Commit Graph

12390 Commits

Author SHA1 Message Date
Chen Xu
c2c774a606 Merge "expose APIs for mainline telephony-sdk" 2019-12-04 18:02:28 +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
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
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
Hugo Benichi
039b4745a7 Merge "BitUtils: support packing/unpacking negative long values" am: 9e5de85e21
am: 04cad88eee

Change-Id: If85ad67169295e8725d654966c4d0f42439f10c4
2019-11-27 07:52:49 -08:00
Hugo Benichi
04cad88eee Merge "BitUtils: support packing/unpacking negative long values"
am: 9e5de85e21

Change-Id: Ibd0c4756fb0f888a506111bb2f33c60debe33d57
2019-11-27 07:46:56 -08:00
Treehugger Robot
9e5de85e21 Merge "BitUtils: support packing/unpacking negative long values" 2019-11-27 15:34:46 +00:00
Hugo Benichi
7157c8e7af BitUtils: support packing/unpacking negative long values
Bug: None
Test: Compiled. New unit tests.
Change-Id: Ia543285e206b0bbc7d64458da10e68a951f9eec1
2019-11-27 11:00:32 +09:00
Mathieu Chartier
d886cfe2bc Use resetJitCounters for boot image profiling
For boot image profiling, use resetJitCounters instead of disabling
preloading. This improves startup for the configuration by up to
20%.

Bug: 139883463
Bug: 142564450
Test: atest BootImageProfileTest
Change-Id: I11274ae623d3f0032e68f6f205447ad4d200620b
2019-11-26 15:03:19 -08:00
TreeHugger Robot
509428e9d7 Merge "Resolve boot unaware for suspension details activity" 2019-11-26 18:38:16 +00:00
Suprabh Shukla
fcca8a8382 Resolve boot unaware for suspension details activity
The neutral button starting ACTION_SHOW_SUSPENDED_APP_DETAILS should
still be shown when the profile is locked. The user will be directed to
unlock if they choose to start the activity.

Test: Manual, on a device with a wellbeing app:
1. Create a managed profile with a secure lock.
2. Suspend any app using the wellbeing app.
3. Reboot.
4. Without unlocking the profile, tap the suspended app's launcher icon.
5. A neutral button should be shown.
6. Tapping on the neutral button should redirect the user to a lock
screen.

Bug: 144837297
Change-Id: Ifa1d71d2e540a3d6df5bd9f429eb433be14c3024
2019-11-25 15:26:43 -08:00
Mathieu Chartier
7770a00eb8 Merge "Pass runtimeFlags to postForkSystemServer" am: d9bcf56448
am: b541162122

Change-Id: Ia5a036407ecac6e2b178f67b199214d93abf0010
2019-11-25 13:45:59 -08:00
Mathieu Chartier
b541162122 Merge "Pass runtimeFlags to postForkSystemServer"
am: d9bcf56448

Change-Id: Ib37dbd13b9b50c4aa072e90fa010320d0208207d
2019-11-25 13:39:18 -08:00
Mathieu Chartier
742981eca3 Pass runtimeFlags to postForkSystemServer
Flags are now required by ART.

(cherry-picked from commit 2cb0a4d860)
Bug: 139883463
Bug: 144383344
Test: showmap `pid system_server` and verify
Test: atest BootImageProfileTest
Merged-In: I9416ef888557bf0bc0ec7c83f7af1979cac351f8
Change-Id: I9416ef888557bf0bc0ec7c83f7af1979cac351f8
2019-11-25 13:32:02 -08:00
Fabian Kozynski
228e310d19 Remove all Privacy chip classes.
Test: atest SystemUITests
Test: atest HistoricalAppopsTest
Test: adb shell device_config privacy permissions_hub_enabled true
Fixes: 144801684
Change-Id: I9c79ac6ac75b0197af0bfb6595b99a458916b761
2019-11-25 15:38:38 -05:00
Mark Tabry
c4755ff9a0 Merge "Add AIDL interface and puller implementation for automotive devices." into qt-qpr1-dev-plus-aosp 2019-11-25 18:31:34 +00:00
Mathieu Chartier
d74687f679 Merge "Pass runtimeFlags to postForkSystemServer" 2019-11-25 18:06:51 +00:00
Dan Sandler
486ad0d659 Action chips in share sheet. (DO NOT MERGE)
am: 0d3e358628

Change-Id: I0df785ea4279811fe4f556f67dde8e3c6cef98b0
2019-11-25 05:28:10 -08:00
Sergej Salnikov
f2c2a1b595 Merge "Delete SearchManager.launchAssistService and convert SearchManager.launchAssist into @SystemApi method that handles both phone and TV devices." 2019-11-25 12:08:08 +00:00
Dan Sandler
0d3e358628 Action chips in share sheet. (DO NOT MERGE)
Move the Copy button to a new row of chips below the
(now larger) preview. Optionally, if a proximity-sharing
service is installed, show that chip as well.

Bug: 143229724
Fixes: 144290152
Test: atest SystemUITests frameworks/base/core/tests/coretests
Change-Id: I0d6457df85bc937f72ca97da6b4b84b634a90daf
2019-11-24 23:39:49 +00:00
TreeHugger Robot
cd79af4eec Merge "Initial IME inline suggestions APIs" 2019-11-23 01:21:02 +00:00
Felipe Leme
5c9f648edd Merge "Fixes usage of WallpaperManager to make it optional." into qt-qpr1-dev
am: 659f477f65

Change-Id: I6946b0001c524dff8d11b2889e8b30d6a059218d
2019-11-22 16:16:59 -08:00
TreeHugger Robot
659f477f65 Merge "Fixes usage of WallpaperManager to make it optional." into qt-qpr1-dev 2019-11-23 00:05:20 +00:00
Mark Tabry
e441ef5480 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-11-22 12:48:35 -08:00
TreeHugger Robot
12b46ae6e7 Merge "Add TEST_MAPPING for com/android/internal/app." 2019-11-22 20:06:59 +00:00
Feng Cao
04830a3faf Initial IME inline suggestions APIs
Test: manual verification with other local changes
Bug: 137800469

Change-Id: Ia0ead9d7208512920a3277559cef0bb92bea35f5
2019-11-22 10:23:37 -08:00
Wale Ogunwale
08890b900a Fixed arg count with Quad/Quint pooled predicates
Typo from when they were added.

Bug: N/A
Test: N/A
Change-Id: I60b93d1aa8a9c5b9e6a4ae3733eb227790baccfe
2019-11-22 07:46:08 -08:00
Will Brockman
d643c8a41e Merge "Initial UiEventReported atom and UIEventLogger." 2019-11-22 14:32:08 +00:00
Mathieu Chartier
2cb0a4d860 Pass runtimeFlags to postForkSystemServer
Flags are now required by ART.

Bug: 139883463
Bug: 144383344
Test: showmap `pid system_server` and verify
Test: atest BootImageProfileTest
Change-Id: I9416ef888557bf0bc0ec7c83f7af1979cac351f8
2019-11-21 15:54:13 -08:00
Winson Chiu
1e05667111 Merge "Overlayable actor enforcement" 2019-11-21 21:46:47 +00:00
TreeHugger Robot
5d1c9a388a Merge "Exposing WorkSource hidden APIs as system APIs" 2019-11-21 21:15:48 +00:00
Alison Cichowlas
c1a1bfe583 Add TEST_MAPPING for com/android/internal/app.
Exclude/ignore current failures.

Test: atest:all in test_mapping directory
Change-Id: Iaeb67c9f157fa9a2e0a0bd9ef374a0cf7585d57d
2019-11-21 16:13:43 -05:00
Winson
d9d1736767 Overlayable actor enforcement
Validates that the caller of an OverlayManager API that mutates state
is actually allowed to act on the target as defined in the target's
overlayable tag.

<overlayable name="MyResources" actor="namespace/name">

An actor is valid if any of the following is true:
 - is root/system
 - is the target overlay package
 - has the CHANGE_OVERLAY_PACKAGES permission and an actor is not defined
 - is the same package name as the sole resolved Activity for the actor specified
     in the overlayable definition, with only pre-installed, namespaced actors
     currently supported

Bug: 119442583
Bug: 135052950

Test: atest SystemConfigNamedActorTest
Test: atest com.android.server.om

Change-Id: If56b9e8366852eaef84f6bb25c3e6871eaa3f219
2019-11-21 12:01:41 -08:00
Will Brockman
fbaa7912d6 Initial UiEventReported atom and UIEventLogger.
Also a simple fake for unit testing, and UiEvent annotation.

See bug and design doc go/sysui-event-logs for further context.

Test: Manual with statsd_testdrive 90 (with local changes to use the Logger.)

Change-Id: Iac5834d81038cbca0d0f194885cdf0daa25d74a1
2019-11-21 19:36:09 +00:00
Tiger Huang
e155ed48fa Merge "Window Manager Flag Migration (6/n)" 2019-11-21 16:23:32 +00:00
skill
25b0f41e84 Delete SearchManager.launchAssistService and convert
SearchManager.launchAssist into @SystemApi method that handles both phone
and TV devices.

That allows apps to start Assistant.

Bug: 128538467
Test: manual
Change-Id: Ie05c910768062c00717df66e35b4118805458999
2019-11-21 15:56:08 +01:00
vichang
35f3e83e87 Merge "Deprecate the use of ICU.addLikelySubtags" am: 986c242b7a
am: c27cc4041b

Change-Id: I35a5dd3715d64316672b77ca79d69e2269f82cf6
2019-11-21 04:12:33 -08:00
vichang
c27cc4041b Merge "Deprecate the use of ICU.addLikelySubtags"
am: 986c242b7a

Change-Id: I86af54c4b0ca2d311a3ef1290972b47b5ddb0f8b
2019-11-21 04:05:33 -08:00