Commit Graph

625890 Commits

Author SHA1 Message Date
Sudheer Shanka
6831749cb4 Allow EJs to obtain new network capability.
- Introduce new oom_adj score to be used for EJs so that they won't
  be killed before normal jobs but before any FGS. Also, add a new
  bind flag to instruct the OomAdjuster about when to use this
  new oom_adj score.
- Unlike other capabilities, any app (regardless of it's proc_state)
  with network capability will be able to transfer it's capability
  to other app by binding to it.

Bug: 177641226
Test: atest ./tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Test: atest ./services/tests/mockingservicestests/src/com/android/server/am/MockingOomAdjusterTests.java
Test: atest CtsJobSchedulerTestCases

Change-Id: I888764ff22fba92fe2cccf3d8442ed318a19ad2a
2021-02-24 17:17:55 -08:00
Jerry Chang
3ea9673b74 Merge "Make stage split divider non-interactive while showing IME" into sc-dev 2021-02-25 00:51:14 +00:00
Adam Bookatz
0b905b1ef4 Merge "BatteryStats custom buckets: don't revive dead Uids" into sc-dev 2021-02-25 00:26:14 +00:00
Daichi Hirono
4423456dd9 Merge "Change deleteRootTasks so that it returns false instead of exception" into sc-dev 2021-02-25 00:23:30 +00:00
Rajeev Kumar
b21d30888b Merge "Add API to set device owner type for a managed device" into sc-dev 2021-02-25 00:21:51 +00:00
Ruslan Tkhakokhov
04501d566e Merge "Get OperationType from transport" into sc-dev 2021-02-24 23:23:36 +00:00
Ruslan Tkhakokhov
6e1b079c9a Add a feature flag to control new opt out behaviour
Introduce a lever we can use to enable / disable all new backup
eligibility behaviours from one place.

Bug: 174216309
Test: m -j
Change-Id: I17618a72c04f138204c5c0ca2c23330044c169e7
2021-02-24 23:21:35 +00:00
Ruslan Tkhakokhov
a2fdf3f5fb Get OperationType from transport
This CL was merged earlier (ag/13484966) and then reverted due to the
new behaviour breaking D2D transfers.

Merge it again with all changes being controlled by a flag (default
off), see UserBackupManagerService:getOperationTypeFromTransport in this
CL. View the diff between patchsets 1 and 2 to only see what's changed
between the earlier reverted code and the fixed version of it (i.e. with
the flag).

The flag can be changed via adb for now, we will set it to true by
default once other components are ready.

Bug: 174216309
Test: atest UserBackupManagerServiceTest
Change-Id: I7473c9b4f8d0c4d20155be76930279184ffb17c4
2021-02-24 23:21:21 +00:00
Ruslan Tkhakokhov
c3bf79a2cd Merge "Parse include / exclude config specified by dataExtractionRules" into sc-dev 2021-02-24 23:20:54 +00:00
Ruslan Tkhakokhov
f7bc904f44 Merge "Introduce 'dataExtractionRules' manifest attribute" into sc-dev 2021-02-24 23:20:54 +00:00
Jeff DeCew
832ea86f1b Merge "Fix decorated notification text colors in dark mode" into sc-dev 2021-02-24 23:17:29 +00:00
Curtis Belmonte
075cee61d4 Merge "Fix string for face auth positional help messages" into sc-dev 2021-02-24 23:11:46 +00:00
Eugene Susla
0bf57f5302 Merge "Use Activity Context for CDM ListView Adapter" into sc-dev 2021-02-24 22:47:58 +00:00
Alec Mouri
1a621e8eff Merge "JNI wrapper for FpsListener." into sc-dev 2021-02-24 22:41:10 +00:00
Flavio Fiszman
491cbd85c8 Merge "Simplify onNotificationClear signature" into sc-dev 2021-02-24 22:32:17 +00:00
James O'Leary
7edf52d602 Merge "Revert^2 "[framework] Integrate new quantizers"" into sc-dev 2021-02-24 21:59:47 +00:00
Ruslan Tkhakokhov
6751d29041 Parse include / exclude config specified by dataExtractionRules
1. Parse the new config and prefer it over the old config specified by
android:fullBackupContent.

2. Add a new parameter to LocalTransportParameters to allow testing this
functionality in CTS.

Bug: 180522596
Test: atest FullBackupRulesHostSideTest
Change-Id: If18edfcdb2b9637d380251f48fdbc56cca6af3ec
2021-02-24 21:49:24 +00:00
Soonil Nagarkar
2409543ce8 Merge "Proposal: Reduce the number of IPCs in PendingIntent" into sc-dev 2021-02-24 21:48:46 +00:00
Ruslan Tkhakokhov
e32b3b5773 Introduce 'dataExtractionRules' manifest attribute
Introduce the attribute apps targeting Android S+ can use to point to an
XML file that contains rules for copying app data during backup and
transfer operations. If this attribute is specified, the config pointed
to by the existing 'fullBackupContent' will be ignored.

Bug: 174216309
Test: m -j
Change-Id: I6ad57a24b40cf5b80b312c719747e8ba89aa0a93
2021-02-24 21:48:37 +00:00
Winson Chung
99051f249a Merge "Enable shell thread" into sc-dev 2021-02-24 21:36:42 +00:00
Adam Bookatz
5bb1ec89d3 BatteryStats custom buckets: don't revive dead Uids
It is possible for old uids to be reported to BatteryStats
in updateCustomMeasuredEnergyDataLocked().
This can happen, e.g., if a uid was uninstalled between
successive custom energy updates, so that the uid did use non-zero
energy but BatteryStats doesn't care anymore since the uid is gone.
If this happens,
we don't want to recreate any removed Uid objects, so we need
to be careful to only consider Uids that aren't removed.

In practice, this method will only be called after the CPU update,
which means that BatteryStats should already know about all active
uids (assuming they used CPU). Therefore, there shouldn't be any
unknown uids actively using custom energy buckets at this point.
We therefore simply ignore any unknown uids (just log them), on
the assumption that they refer to removed uids or stopped users.

Test: atest BatteryStatsTests
Bug: 180030409
Change-Id: If4fee7a1d11b148ca16d464d6ce4720c5a251130
2021-02-24 21:30:59 +00:00
Sergey Volnov
434523ad65 Merge "Always start speech recognition service." into sc-dev 2021-02-24 21:19:05 +00:00
Kweku Adams
051c3ff0b5 Merge "Dump most recently completed jobs." into sc-dev 2021-02-24 21:13:31 +00:00
Shuo Qian
4fe89b2230 Merge "Add Emergency callback mode shell command" into sc-dev 2021-02-24 21:07:53 +00:00
Siarhei Vishniakou
554afe2691 Merge "Add presentTime to FrameInfo" into sc-dev 2021-02-24 20:38:17 +00:00
Jeff DeCew
5ba00654f4 Merge "Add API to let apps color CallStyle notifications themselves." into sc-dev 2021-02-24 20:27:34 +00:00
Eugene Susla
145d5a8955 Use Activity Context for CDM ListView Adapter
Using a service context has potential corner cases where it tries
to create UI using it, causing issues.

Test: presubmit
Bug: 180931292
Change-Id: I3a6d13ff69797cb5c7c2f25b810785e458d69430
2021-02-24 12:27:17 -08:00
Amy Zhang
352ba3d593 Merge "Fix some Tuner JNI/Client issues found with CTS" into sc-dev 2021-02-24 20:27:11 +00:00
Lucas Dupin
832d7e37b5 Merge "Fix accent color not being applied" into sc-dev 2021-02-24 20:19:16 +00:00
Pierre Barbier de Reuille
4e14c35736 Merge "Framework implementation of go/widgets-dynamic-colors" into sc-dev 2021-02-24 20:16:40 +00:00
TreeHugger Robot
5c9a0355f8 Merge "Allow syncs to be scheduled as EJs." into sc-dev 2021-02-24 20:12:50 +00:00
Suprabh Shukla
6f8a22f4be Merge "Adding Intent API to navigate to alarm permission page" into sc-dev 2021-02-24 20:06:56 +00:00
Chinmay Dhodapkar
08fe5faf25 Merge "request location based country detector in WiFi ON" into sc-dev 2021-02-24 20:06:13 +00:00
Hall Liu
babbd42dc2 Merge "User arg object in onCallFilteringCompleted" into sc-dev 2021-02-24 20:05:45 +00:00
Alina Zaidi
bfefff4115 Merge "Adjust AppWidgetProviderInfo#getDescription to return CharSequence." into sc-dev 2021-02-24 20:01:39 +00:00
TreeHugger Robot
ffbe40de1e Merge "Rename the font file with PostScript name based file name" into sc-dev 2021-02-24 20:00:16 +00:00
Soonil Nagarkar
2e0c80b260 Merge "Use full identity instead of package in historical stats" into sc-dev 2021-02-24 19:48:53 +00:00
Jeff DeCew
cab97ebcf1 Fix decorated notification text colors in dark mode
This reverts an accidental style change to RVC behavior.

Fixes: 175449252
Test: Manual visual testing
Change-Id: Ie9b9c7687e21f2d4d08d7e18a7ae4a56904dacc5
2021-02-24 19:30:16 +00:00
Kweku Adams
01af9eec33 Merge "Make sure EJ rewarding quota works." into sc-dev 2021-02-24 19:27:29 +00:00
Bob Badour
745e7ee830 Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" into sc-dev 2021-02-24 18:43:29 +00:00
Peter Kalauskas
9bcd1aef22 Merge changes I3f3f10e8,I527e401b into sc-dev
* changes:
  Fade background when keyguard user switcher open
  Use correct keyguard margin clock position algorithm
2021-02-24 18:41:29 +00:00
Lyn Han
26e6b76d99 Merge "Reorder bubbles without animations on collapse" into sc-dev 2021-02-24 18:38:37 +00:00
Lyn Han
95089b6d65 Reorder bubbles without animations on collapse
Fixes: 180045233
Test: select different bubble while expanded, collapse stack
     => see that newly selected bubble is on top of stack
     => no weird animations like in b/178499353
Change-Id: I6d95763a4dd08fd8d1e30dd93131ff27b4fd7c2c
2021-02-24 18:38:13 +00:00
Jerry Chang
d331097396 Make stage split divider non-interactive while showing IME
Redirect IME inset control to wm shell during multi-window split. And
register IME position listener to make divider bar non-interactive while
IME showing.

Bug: 179262787
Test: manual check
Test: atest WMShellUnitTests
Change-Id: Ia83a29c823962221aedb1cc317928f6b4b7ddcae
2021-02-25 02:27:27 +08:00
Tom Taylor
1f21265785 Merge "Add messageId to both of the MMS methods" into sc-dev 2021-02-24 18:07:24 +00:00
Dan Saadati
11924878af Merge "Update AppSearchManager class header with description and examples" into sc-dev 2021-02-24 17:56:30 +00:00
Lucas Dupin
e29458f134 Fix accent color not being applied
Test: adb shell cmd overlay list | grep systemui
Test: atest ThemeOverlayApplierTest
Fixes: 181082566
Change-Id: If1beed53eaddf28db80d2b51902d068c4a35c732
2021-02-24 09:51:56 -08:00
Sarah Chin
02be60c442 Merge "APIs for 5G slicing" into sc-dev 2021-02-24 17:36:45 +00:00
Jorim Jaggi
36540883a2 Merge "Revert to previous metric for jank reporting" into sc-dev 2021-02-24 17:17:51 +00:00
Daniel Sandler
fadb4547b6 Merge "Verbose touch debugging for the status bar." into sc-dev 2021-02-24 17:16:34 +00:00