Commit Graph

615375 Commits

Author SHA1 Message Date
Rafal Slawik
e69ade3545 Combine uids for CpuTimePerUidFreq atom
The puller for the atom frequently fails. We believe it is due to the
size of the pulled atoms. No metric can be correctly build from this
atom.

To reduce the size, we apply transformations that we would likely
perform when analyzing this data. We combine times for all shared app
gids together and combine times for the same apps. We also exclude
isolated uids which are frequently recycled and removed from the
underlying data source.

If these optimization do not help, we will need to introduce different
atoms.

Bug: 157535126
Test: cmd stats pull-source 10010
Change-Id: I0d9a18c78f456e1b0f9d7ad322f15354ead9f02b
2020-12-10 09:48:23 +00:00
Treehugger Robot
ce461d3660 Merge "[Mainline] Network netId to getNetId() migration" am: 7225913863 am: 983a2fe29b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520637

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifd1771c329d6b4c45f85d32cf44a7499efddcbfb
2020-12-10 09:43:15 +00:00
Treehugger Robot
a048b25ee9 Merge "Add VcnManagementService owners" 2020-12-10 09:18:53 +00:00
Lorenzo Colitti
55ba4ffb1d Merge changes I6eb6d92b,I638e29fd,I2348b7a3 am: 435d580374 am: 55477377da am: bea9280e6e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521657

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I430d7069e1dfbe89780cb459fff9e1eb63daa349
2020-12-10 09:18:35 +00:00
Treehugger Robot
983a2fe29b Merge "[Mainline] Network netId to getNetId() migration" am: 7225913863
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520637

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I65d8843281e3c3fe15141ad2583955e069339413
2020-12-10 09:11:10 +00:00
Lorenzo Colitti
bea9280e6e Merge changes I6eb6d92b,I638e29fd,I2348b7a3 am: 435d580374 am: 55477377da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521657

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6de299ec480f1a34042d2ef2ee86f00d030510e8
2020-12-10 09:02:40 +00:00
Treehugger Robot
7225913863 Merge "[Mainline] Network netId to getNetId() migration" 2020-12-10 08:47:27 +00:00
TreeHugger Robot
52dceb804b Merge "Nullable annoation for Location#setExtras." 2020-12-10 08:47:13 +00:00
Zoey Chen
cc8c3ba4a9 Merge "[Telephony] Implement onDataEnabled callback" 2020-12-10 08:46:15 +00:00
arthurhung
2243b67122 Prevent accidentally click on RecyclerView
Currently, inputflinger would send an ACTION_POINTER_UP event with
AKEY_EVENT_FLAG_CANCELED when we have at least 2 pointers down and
one becomes the accidental touch.

In ViewGroup, if we have FLAG_SPLIT_MOTION_EVENTS, it may split a
multi touch event into some single touch events to the target childs,
so we should also check the cancel flag in order to prevent it trigger
the accidental click on the child view.

Bug: 161655782
Test: enable twoshay, test accidental touch on RecyclerView
Change-Id: Iba864361ca3361e4a720dbe0eb0b39d42a6dc5b2
2020-12-10 16:41:27 +08:00
Hyundo Moon
161b4441a6 Add PlaybackState.ACTION_SET_PLAYBACK_SPEED
When "04fb2e7: MediaSession/Controller: Add playback speed related APIs"
was merged, the constant was not added.

This CL adds the new constant.

Bug: 174297519
Test: m update-api -j;
Change-Id: I698737bcfe641edd7b5ea07b4b385c81fe899994
2020-12-10 08:33:43 +00:00
Lorenzo Colitti
55477377da Merge changes I6eb6d92b,I638e29fd,I2348b7a3 am: 435d580374
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521657

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I87704813daaf2a0b4495a835abde950e683993e5
2020-12-10 08:32:15 +00:00
Sudheer Shanka
7012c9e873 Update OWNERS info for NetworkPolicy related files.
Test: n/a
Change-Id: I8abcde37bd76bc1078119ca10232a46130668306
2020-12-10 08:19:35 +00:00
Lorenzo Colitti
435d580374 Merge changes I6eb6d92b,I638e29fd,I2348b7a3
* changes:
  Add a convenience method to update a network's capabilities.
  Disallow NetworkAgents from changing the owner UID.
  Observe mOwnerUID in NetworkCapabilities#equals.
2020-12-10 08:11:52 +00:00
Jimmy Chen
6157d1abdf wifi: add security params class for known security types
Bug: 162685856
Test: atest FrameworksWifiApiTests
Change-Id: I020d338b1829f19f6dde8b1969f64cc065f8d796
2020-12-10 16:02:37 +08:00
Dan Shi
3e294531eb Merge "Move CtsMediaTestCases to group presubmit-large" am: 9ca0f614c8 am: 298b6be5e2 am: c4d2ea074d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1522241

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b6cd3e40d728825fe08eb8fc5bd6ba6b60d2134
2020-12-10 07:57:28 +00:00
shawnlin
15900d8a35 Add a new method to notify system to detach the nav bar
For the attaching the nav bar to the app during quick switch, we
reparent the leash of the nav bar to the app the user swipes from and
restore it back when the quick switch gesture is finished.

There is a callback IRecentsAnimationController.finish() which seems to
be a good timing to restore the nav bar. However, it doesn't work well
in the live tile mode.

In the live tile mode, the overview won't call
IRecentsAnimationController.finish() until a new task is started and
this is why we need to add this API.

Bug: 139273001
Test: make
Change-Id: Iabea2fb222a2dacd57207b74d1778f93237268ea
2020-12-10 15:55:15 +08:00
Manish Singh
b39e4fd291 Merge "Remove transcoding for apps from Settings." 2020-12-10 07:50:16 +00:00
Hai Zhang
aa7d64b8eb Merge changes from topics "role-permission", "role-permission-internal"
* changes:
  Add internal as a new permission protection level.
  Add role as a new permission protection flag.
2020-12-10 07:47:21 +00:00
Dan Shi
c4d2ea074d Merge "Move CtsMediaTestCases to group presubmit-large" am: 9ca0f614c8 am: 298b6be5e2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1522241

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I42735750abaac681f530a0171916ce06cd5cd25b
2020-12-10 07:45:41 +00:00
Dan Shi
298b6be5e2 Merge "Move CtsMediaTestCases to group presubmit-large" am: 9ca0f614c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1522241

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1b49e355601a4f78379bca977584d9c50bb5b79b
2020-12-10 07:22:25 +00:00
lucaslin
f303071486 Reimplement DumpUtils#checkDumpPermission() in ConnectivityService
ConnectivityService is going to be a part of mainline module, to
prevent using @hide method in ConnectivityService, reimplement
DumpUtils#checkDumpPermission() in ConnectivityService.

Bug: 175177794
Test: atest FrameworksNetTests
Test: adb shell dumpsys connectivity
Change-Id: I1e4bc023b39b40a717a3a0fd8cd60aa2f25e9bdb
2020-12-10 07:12:05 +00:00
Dan Shi
9ca0f614c8 Merge "Move CtsMediaTestCases to group presubmit-large" 2020-12-10 07:02:52 +00:00
Chloris Kuo
49251b672a Feedback Inline Setting change
Show change status in inline setting description

Bug: 173460479
Test: atest com.android.systemui.statusbar.notification
Change-Id: Icda82041e6248b6430b58fcec03084aeb2754861
2020-12-09 22:43:12 -08:00
Chloris Kuo
5965368e4d Feedback UI Improvement
1. Show different icon for different NAS adjustments
2. Fix style issues in dark theme and new S notification UI change

Test: atest com.android.systemui.statusbar.notification, manually test
on device
Bug: 173460479

Change-Id: I0d4433fecd9f00d2a7705e2329e52a2f6efaf7d8
2020-12-09 22:38:53 -08:00
Tony Huang
82f20411b5 Merge "Fix some exception occrued possible code" 2020-12-10 06:21:42 +00:00
Les Lee
5b85c391a8 Merge "wifi: Remove internal function, add version checks when using new API" 2020-12-10 06:21:08 +00:00
lucaslin
fefbeecb4b Use getUserHandles() instead of getUsers() to get user id
UserManager#getUsers() is a hidden API, use getUserHandles() to
get user id instead in PermissionMonitor.

Bug: 171529940
Test: atest FrameworksNetTests
Change-Id: Ic304627688de8e49505a95ebc99628b2e0eafab9
2020-12-10 13:58:39 +08:00
Etan Cohen
ac1a7a3e1f [WIFI] Trigger WiFi recovery mode
Trigger WiFi recovery. The WiFi chip will get disabled and then
re-enabled. The state at the exit may not match the entry state.

Bug: 175084231
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Test: adb shell cmd wifi trigger-recovery
Change-Id: Ie46bc697dcc003758c5df7c7c9d594e365086c7d
2020-12-09 21:58:17 -08:00
Jerry Chang
5935f559b6 Add fling animation when snapping split divider bar
Bug: 172704238
Test: atest WMShellUnitTests
Test: manul check the fling behavior
Change-Id: Iead37be86d55de2ce357165a2f6ae910f36969cb
2020-12-10 13:28:49 +08:00
Bill Lin
1974bdc4ba Align SplitDivider layer name for AppPairs flicker test
Test: atest com.android.wm.shell.flicker.apppairs
Test: go/wm-tests-flicker should become green
Fixes: 175230170
Bug: 172704238
Change-Id: I210430a9f36fe8aca43bc0e97d29b5530c9dcb28
2020-12-10 13:26:36 +08:00
Hongwei Wang
1bf2b0f2d8 Merge "Add API to differentiate PiP content" 2020-12-10 05:26:13 +00:00
Ashwini Oruganti
e30dc7fed8 Merge "ActivityTaskManagerService: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED" 2020-12-10 05:13:09 +00:00
Fan Zhang
05b2b1215f Merge "Add owners to gesture detection code" am: a0f97a84e4 am: 0e68592f97 am: 323de0dd7f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520906

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I447d4db658d8d089e704e2e52beaa49ead9887bf
2020-12-10 05:09:41 +00:00
Fan Zhang
323de0dd7f Merge "Add owners to gesture detection code" am: a0f97a84e4 am: 0e68592f97
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520906

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idd76f1aef9fcd4ed8db4c400bf5a1588c554f413
2020-12-10 04:55:44 +00:00
ryanlwlin
d245501a5c Fix button is gone after dragging over 5 secs
The pending fading out animation is not canceled while dragging.
It should be canceled when the users touchs the button. If it is fading
out when the user touchs it, we should cancel the animation and set the
alpha value to 1.

Bug: 175194712
Test: atest MagnificationModeSwitchTest
      manually test
Change-Id: I3dec8520e90db7aff1050924be4e3bab1e27f23d
2020-12-10 12:49:01 +08:00
Remi NGUYEN VAN
630015edc0 Revert "ConnectivityServiceTest: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED"
This reverts commit cf0e36923b.

Reason for revert: Merge conflicts, should have been merged in AOSP

Change-Id: Iee0a3e76c42858bcca45517e3ca02c65bc8eac0c
2020-12-10 04:42:06 +00:00
Fan Zhang
0e68592f97 Merge "Add owners to gesture detection code" am: a0f97a84e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520906

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2bed6031e66acca8225285f2a166ba8e5e6abd62
2020-12-10 04:26:40 +00:00
xshu
0ce2a88125 Allow setup wizard to call carrier selection APIs
Bug: 173054916
Test: compile
Change-Id: I38f96e91a27e180a8a2b7b862fe4b67e3ca741f8
2020-12-09 20:10:20 -08:00
Xin Li
0d4064bd03 [automerger skipped] Merge "DO NOT MERGE - Merge Android R QPR1" am: 201f2cf86d -s ours am: 54ec331515 -s ours am: 6b2e6ab2f5 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520888

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id78860e6761ba4c4954c02508f16ae975e1fb161
2020-12-10 03:59:00 +00:00
Fan Zhang
a0f97a84e4 Merge "Add owners to gesture detection code" 2020-12-10 03:51:45 +00:00
Fan Zhang
1cff53f097 Merge "Fix a broken test in EmergencyNumberUtilsTest" 2020-12-10 03:49:55 +00:00
Xin Li
6b2e6ab2f5 [automerger skipped] Merge "DO NOT MERGE - Merge Android R QPR1" am: 201f2cf86d -s ours am: 54ec331515 -s ours
am skip reason: Change-Id Ib81ba3288a986546bc570c3759c55d026add591a with SHA-1 3cfbcbee16 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520888

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic11fc264d783e729729854a5f7f7b03d38d43e3e
2020-12-10 03:47:00 +00:00
Dmitri Plotnikov
62d862082b Merge "Use eBPF-based time-in-state monitoring for groups of threads" 2020-12-10 03:31:06 +00:00
Robert Luo
616339c1d0 Migrate media output switcher metrics - 2/n
Bug: 172181610
Test: (1) run statsd_testdrive 277, and check the
metric output correctness after content switching.
(2) run statsd_testdrive 90, and check the metric
output correctness after launching the output dialog
via Sound Setting / Volume Rocker / Media Object Chip.
(3) atest MediaOutputControllerTest
(4) atest MediaOutputDialogTest
(5) atest MediaOutputBaseDialogTest

Change-Id: I0fea0c59afcb44fc1d22920036107524f221a7be
Merged-In: I0fea0c59afcb44fc1d22920036107524f221a7be
2020-12-10 11:06:53 +08:00
Yuexi Ma
e51010f6b6 Change the instrumentation app build target type
Change the instrumentation app build target type to avoid generating a TradeFed test module config file.

Test: make csuite && csuite-tradefed run <plan>
Change-Id: Iedfb415080fbd2c77537fd87f6a7f501c6a9fa97
2020-12-09 19:06:04 -08:00
Xin Li
54ec331515 [automerger skipped] Merge "DO NOT MERGE - Merge Android R QPR1" am: 201f2cf86d -s ours
am skip reason: Change-Id Ib81ba3288a986546bc570c3759c55d026add591a with SHA-1 3cfbcbee16 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520888

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1158b1e4f70b018504c963a76782c8773f698118
2020-12-10 03:05:40 +00:00
Agatha Man
70c3cc171a Remove accidentally added diff file am: 3cfbcbee16 am: 353274f15d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13193245

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I985b444da7dedff929323140f4dc84266b79915e
2020-12-10 03:00:43 +00:00
Robert Luo
0ee3a89e21 Merge "Migrate media output switcher metrics - 2/n" 2020-12-10 02:36:55 +00:00
Darryl L Johnson
31c9c8d96b Defer triggering notifyLidSwitchChanged() until the system is ready.
Before the system is ready getSwitchState() returns KEY_STATE_UNKNOWN
for the lid switch causing the initial lidOpen value to be false on boot
even if the lid is currently open. This defers the triggering of any
callbacks registered before the system is ready to ensure that the
initial callback value is correct.

Bug: 159401801
Test: Manual - ensure first callback value matches lid state on boot.
Change-Id: I9351312e5ecf8b1984ae11a47ed9b89dab1aa07f
2020-12-09 18:36:14 -08:00