Commit Graph

446683 Commits

Author SHA1 Message Date
Mady Mellor
45d3f2fb87 [automerger skipped] Merge "DO NOT MERGE Update setting to be bubbles not badging" into qt-qpr1-dev am: 0afaedd52f
am: 4b25085ee7 -s ours
am skip reason: subject contains skip directive

Change-Id: Ia743e2c0be3ceaed3eb0a1cfc0f50acb54751482
2019-10-08 23:17:57 -07:00
Mady Mellor
7ab07e56fe [automerger skipped] DO NOT MERGE Update setting to be bubbles not badging am: 8527dcb20b
am: 24011d4324 -s ours
am skip reason: subject contains skip directive

Change-Id: I7b03ab8f419e878e421017a84012bdb54ae454cd
2019-10-08 23:17:02 -07:00
Iavor-Valentin Iftime
367192073e Merge "resolve merge conflicts of 484e166df3 to master" 2019-10-09 06:07:32 +00:00
TreeHugger Robot
fe708d72ec Merge "Fix AppStandbyController flag." 2019-10-09 04:51:42 +00:00
Varun Shah
b5ceeaf629 Merge "Allow the supervision app to access certain UsageStats APIs." 2019-10-09 03:24:13 +00:00
TreeHugger Robot
e29d2e7917 Merge "Replace set_cpuset/sched_policy with SetTaskProfiles" 2019-10-09 02:42:47 +00:00
TreeHugger Robot
b9a532718a Merge "Rename THREAD_GROUP_BG_NONINTERACTIVE to THREAD_GROUP_BACKGROUND" 2019-10-09 02:38:27 +00:00
TreeHugger Robot
d4bd5714f9 Merge "Revert "Drop all caches in UI_HIDDEN"" 2019-10-09 01:01:35 +00:00
Long Ling
902c7a49a7 Merge "Add tests for Display White Balance" 2019-10-09 00:32:13 +00:00
TreeHugger Robot
821c77af4a Merge "Fix some stale dataclass detector false positives" 2019-10-09 00:27:34 +00:00
Kweku Adams
0140ff88f6 Fix AppStandbyController flag.
mUnexempted... was using the value of the EXEMPTED_... flag. The default
values were the same, but this would have caused a problem if we tried
to update the value via a flag.

Also removing deprecated flags.

Bug: 141645789
Test: N/A
Change-Id: I2ace1b510b2d7f5d6f92c16dd6302ae4e5525456
2019-10-08 17:04:28 -07:00
TreeHugger Robot
065b241e4c Merge "Reduce WTF for user-still-locked case" 2019-10-09 00:01:32 +00:00
TreeHugger Robot
06d0a06099 Merge "Ensure that view is initialized properlly upon inflation." 2019-10-08 23:47:34 +00:00
TreeHugger Robot
6b10fea549 Merge "Fix trivial hidden API uses" 2019-10-08 23:47:01 +00:00
John Reck
f846aeec9d Revert "Drop all caches in UI_HIDDEN"
This reverts commit 8a207962ec.

Bug: 142301356
Test: none, speculative

Reason for revert: Seems to break alarm? 

Change-Id: Ia1680d1a937b596297c2eab3e54476daf9589347
2019-10-08 23:28:41 +00:00
Eugene Susla
05ef53ed1c Fix some stale dataclass detector false positives
Test: . frameworks/base/tests/Codegen/runTest.sh
Change-Id: I562bb4f238bdb28af49804e77c956e41a7bd198d
2019-10-08 16:16:30 -07:00
TreeHugger Robot
81577fb130 Merge "Make KeyguardUpdateMonitor a singleton" 2019-10-08 23:10:31 +00:00
TreeHugger Robot
e37dab0efc Merge changes I679a0a38,I1c125029
* changes:
  Dispatch mouse events to the view under cursor.
  Stop splitting for mouse events.
2019-10-08 22:50:49 +00:00
TreeHugger Robot
d083cf5e00 Merge "Don't allow package verifier to be disabled via Settings." 2019-10-08 22:14:37 +00:00
TreeHugger Robot
8018eeace2 Merge "Add trace points for measuring performance" 2019-10-08 21:52:40 +00:00
Lucas Dupin
ab39e80e6f Make KeyguardUpdateMonitor a singleton
It was already supposed to be a singleton, but multiple instances ended
up being created during the Dagger migration.

Fixes: 142219747
Bug: 141751146
Bug: 136279712
Test: manual
Change-Id: Iada305bd424c7de53bc3148459afb3a4b764e44c
2019-10-08 14:42:00 -07:00
Makoto Onuki
dc801c8170 Reduce WTF for user-still-locked case
Test: boot, launch some app shortcuts
Change-Id: I8b1d604e12be3da9ebd6797828c8927a027f894e
Fix: 64939202
2019-10-08 21:04:23 +00:00
Makoto Onuki
fa98ee4463 Fix trivial hidden API uses
Bug: 142281756
Test: boot
Test: manual code inspection
Change-Id: I4abf477db7bd46d1daef6f723d4e49f6bfb9bbbe
2019-10-08 13:35:26 -07:00
Valentin Iftime
67d9805fed resolve merge conflicts of 484e166df3 to master
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: Ia9db1400207d9196012362c480ede059e94184af
2019-10-08 22:21:44 +02:00
TreeHugger Robot
b0b28d67ad Merge "Move listener registration to the background" 2019-10-08 19:51:08 +00:00
TreeHugger Robot
91ede359fa Merge "Replace targetSDK check with platform compat framework gating." 2019-10-08 19:26:31 +00:00
TreeHugger Robot
88bfff3262 Merge "Fix "Set as Default" error in ResolverActivity" 2019-10-08 19:22:34 +00:00
Yinglei Wang
818f433f50 Merge "Separator in AbsListView should not be clickable" 2019-10-08 18:51:48 +00:00
Varun Shah
b472b8f281 Allow the supervision app to access certain UsageStats APIs.
Allow the active supervision component to access app usage limit APIs.
This includes #registerAppUsageLimitObserver
and #unregisterAppUsageLimitObserver.

Bug: 138681869
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest#testIsActiveSupervisor
Test: atest AppTimeLimitControllerTests
Test: atest android.app.usage.cts.UsageStatsTest
Change-Id: I3daafc14ccdbf27558c1325b965f2bc6d2dab2f6
2019-10-08 11:45:38 -07:00
Lucas Dupin
c989d983ec Add trace points for measuring performance
Test: systrace
Bug: 139363827
Bug: 139360025
Change-Id: I979c5fbecbaa9896a39abeb7b5639a95a5166688
2019-10-08 11:44:42 -07:00
TreeHugger Robot
cde53a44c0 Merge "log guardrail limit hit for Duration, Count and Gauge metrics" 2019-10-08 18:42:11 +00:00
Jay Aliomer
d7a3919e57 Merge ""Clear all" causes auto-grouped persistent notifications losing the group summary" 2019-10-08 18:26:53 +00:00
TreeHugger Robot
28e6e7e719 Merge "Delete some dead code." 2019-10-08 18:24:56 +00:00
Dave Mankoff
4889186cfb Ensure that view is initialized properlly upon inflation.
Bug: 142299585
Test: manual
Change-Id: Ia17e3a3ab29dd46134fa13861024b1d58a6b3d4e
2019-10-08 14:23:25 -04:00
Michael Groover
3b5eb58b74 Merge "Update TelephonyManager#getNai docs for new device ID requirements" 2019-10-08 18:13:02 +00:00
Mady Mellor
4b25085ee7 Merge "DO NOT MERGE Update setting to be bubbles not badging" into qt-qpr1-dev
am: 0afaedd52f

Change-Id: Id307ac9e12d95dcd3d8bae9e983f969af979f6b3
2019-10-08 10:56:51 -07:00
Mady Mellor
24011d4324 DO NOT MERGE Update setting to be bubbles not badging
am: 8527dcb20b

Change-Id: Ibf9abc23accbdbbcff3cb8a1216c8eeaa6c53878
2019-10-08 10:56:49 -07:00
atrost
e4d912f1d0 Replace targetSDK check with platform compat framework gating.
Define a new change id and use it for gating the change.

Test: atest -p cts/tests/signature, atest AndroidTestBaseUpdaterTest
Bug: 30188076
Change-Id: Ic8c85eae0c490a7eca117b74c4326dd50df2b352
2019-10-08 18:42:09 +01:00
hh83.kim
1dcb9f3d9d Fix "Set as Default" error in ResolverActivity
Sometimes, we have seen cases that 'set as default' feature does not work properly in ResolverActivity.
This issue occurs when an activity, with 'exported=false' attribute, is included in the list returned by PackageManager.queryIntentActivities().
By the logics in ResolverListController.java#getResolversForIntent(), the activity is removed from the list.
This creates a difference between the list that ResolverActivity sends to PackageManager when calling addPreferredActivity() and
the list PackageManager maintains. Due to the difference, PackageManager does not set preferredActivity requested from ResolverActivity,
which results the showing of ResolverActivity the next time with same action(even though user has set preferred activity).
To handle this issue, we recommend that the removal logic should be removed from getResolversForIntent() method
because it is already handled in ResolverListController.java#filterIneligibleActivities() through ActivityManager.checkComponentPermission() api.
As the result of that, the list which will be delivered to PackageManager is not changed.

Bug: b/135738126
Test: 1. Install 'JustDial' application via Play store
      2. Try below command to launch ResolverActivity
         adb shell am start –a android.intent.action.VOICE_COMMAND
      3. Pick an item on ResolverActivity, then press 'Always' button
      4. Repeat the second step again.
         (you will see ResolverActivity comes again)
(cherry picked from commit 5cdfeeaca5516a6d64fa259f9a4ffd2955f8d2ab)
2019-10-08 10:32:01 -07:00
Mady Mellor
0afaedd52f Merge "DO NOT MERGE Update setting to be bubbles not badging" into qt-qpr1-dev 2019-10-08 17:30:03 +00:00
Muhammad Qureshi
0d24da19a9 Merge "First draft of StatsEvent.java" 2019-10-08 17:29:13 +00:00
Lucas Dupin
b803a55b4a Move listener registration to the background
Fixes: 142003427
Test: manual, with breakpoints
Change-Id: I16fe9a1dc1d5b89ca23387a69b260ff87392eb1a
2019-10-08 10:26:19 -07:00
Makoto Onuki
ffa0a6f4bf Merge "Fix trivial hidden API uses" 2019-10-08 16:20:14 +00:00
Iavor-Valentin Iftime
484e166df3 Merge "API to detect which network interfaces support wake-on-lan" am: 311fc569f3 am: 99d866acff
am: 9b499bb703

Change-Id: I706ad94dfb2645f5f66869a48390b5fcb22bbda2
2019-10-08 08:41:09 -07:00
Iavor-Valentin Iftime
9b499bb703 Merge "API to detect which network interfaces support wake-on-lan" am: 311fc569f3
am: 99d866acff

Change-Id: I2982ec474e6806263ed804ad05812613b03063e0
2019-10-08 08:34:42 -07:00
Iavor-Valentin Iftime
99d866acff Merge "API to detect which network interfaces support wake-on-lan"
am: 311fc569f3

Change-Id: I6239ae68559290e31f8c9384e0f973cfea30a1c7
2019-10-08 08:23:23 -07:00
Jay Aliomer
efe1c928b3 "Clear all" causes auto-grouped persistent notifications losing the group summary
When an automatically generated notification group has 4+ persistent
notifications, hitting "clear all" will cause the group to lose its
automatically generated group summary notification. The solution is to
count the number of notifications belonging to a specific group as well
as the number of ongoing notifications. if the number of grouped
notifications > min before grouping limit & the group has at least one
ongoing notification, then the group summary notification will be marked
as ongoing with the flag FLAG_ONGOING_EVENT. otherwise the flag will
be removed.

Bug: 129562864
Change-Id: I65412935fbb4a74de6ac4cf159d4fd2ebe96dae8
Fix: 129562864
Test: atest NotificationManagerServiceTest
2019-10-08 11:15:16 -04:00
Iavor-Valentin Iftime
311fc569f3 Merge "API to detect which network interfaces support wake-on-lan" 2019-10-08 15:08:18 +00:00
Alan Stokes
74ce7a7de2 Delete some dead code.
Test: Still builds.
Change-Id: If70d087f9c7d1f00cbb4b603157e155649043846
2019-10-08 15:36:09 +01:00
TreeHugger Robot
4b64305597 Merge "Fix potential NPE in SystemUITests" 2019-10-08 13:33:19 +00:00