Commit Graph

12820 Commits

Author SHA1 Message Date
PETER LIANG
bfd6004044 Merge "Fix the accessibility event for clicking disabled item." 2020-02-05 11:15:35 +00:00
PETER LIANG
eb241932c7 Merge "Fix services don't be triggered when clicking selection item from shortcut key." 2020-02-05 09:51:32 +00:00
Peter_Liang
17234aa738 Fix services don't be triggered when clicking selection item from shortcut key.
Root cause: should call corresponding function
Goal: using performAccessibilityShortcut function from AccessibilityManager

Bug: 148779579
Test: manual test
Change-Id: Ibc3fcb77e1aef54683328d1e7a71afabccffc523
2020-02-05 09:48:37 +00:00
Peter_Liang
73842240db Fix the accessibility event for clicking disabled item.
Root cause: shouldn't speak "Double tap to activate" for disabled item.
Goal: set disable for the item.

Bug: 148834576
Test: manual test
Change-Id: I40a083ec4f7d18073dd46636719d6b64fb674f67
2020-02-05 16:14:24 +08:00
Yuhan Zhao
f3b3d41560 Intercepting activites that could cause lock task mode violation in ActivityStartInterceptor.
Test: Manual
Test: atest WmTests:ActivityRecordTests
Test: atest WmTests:ActivityStartInterceptorTest
Test: atest WmTests:LockTaskControllerTest
Bug: b/131614258
Screenshot: https://screenshot.googleplex.com/hPy1b9NgkNj
Change-Id: Ibba62d4cd0065cab9c46fcb575c207d1a88bd02f
2020-02-04 14:38:39 -08:00
Evan Laird
043736647d Allow the visual dismissal of foreground service notifs
This CL adds support for a new feature flag
(notifications_allow_fgs_dismissal) that enables a user to visually
dismiss a notificationg that represents FLAG_ONGOING_EVENT or
FLAG_FOREGROUND_SERVICE into a new bottom section of the shade. Tapping
on the list items in the new section reinstantiates them back to the
shade.

In this CL:
- the new device_config flag + feature controller for it
- ForegroundServiceSectionController that can track dismissed FGS
notifications and then show them in its own decor view
- ForegroundServiceDungeonView that is optionally added at the bottom of
the shade
- Changes to the logic for NotificationEntry#isClearable to take into
account the new flag

Todo:
- Minify the dungeon view before first tap
- pin the dungeon view to the bottom of the notification shade

Test: atest SystemUITests
Test: adb shell device_config put systemui notifications_use_people_filtering false && adb shell kill $(pid com.android.systemui)
Bug: 136562823
Change-Id: I8359e8c3ad9de89cd867f5ac147d62e22b9cf816
2020-02-04 12:47:27 -05:00
Automerger Merge Worker
64fdcebb5f Merge changes Icb062ffb,I66c4e8f5,I85247411,Id47c19b7,Ib713c4ae, ... am: 0b32981970 am: 5f603929da am: 699cea6988
Change-Id: I213d2cdca4187ed30293dc433cfee9e8af782b6e
2020-02-04 13:48:46 +00:00
Automerger Merge Worker
5f603929da Merge changes Icb062ffb,I66c4e8f5,I85247411,Id47c19b7,Ib713c4ae, ... am: 0b32981970
Change-Id: I6b601f88b8411de9d1a5551d9b9b6c3e329087f4
2020-02-04 13:30:03 +00:00
Chalard Jean
0b32981970 Merge changes Icb062ffb,I66c4e8f5,I85247411,Id47c19b7,Ib713c4ae, ...
* changes:
  [NS A36] Add a test for lost trusted capability
  [NS A35] Send updated scores to factories at the end.
  [NS A34] Still more simplification
  [NS A33] Unify changing the default network
  [NS A32] More simplification
  [NS A31] Simplification
  [NS A30] Note linger out of the rematch loop
  [NS A29] Call LOST callbacks at the end of the rematch.
  [NS A28] Move setting the default network out of the rematch loop.
2020-02-04 13:14:27 +00:00
PETER LIANG
0c83c8098a Merge "Multiple shortcut menu for android R (9/n)." 2020-02-04 11:43:02 +00:00
Automerger Merge Worker
74e1f6e4cb Merge "ims:rcs uce update Add call composer, standalone chatbot feature tags for UCE" am: b20182a741 am: 12dbda915d am: c3ed1f39e3
Change-Id: I6831d36962cf7c219524c95c5cf95a2df8034c1f
2020-02-04 07:46:31 +00:00
Peter_Liang
5a0aeffe27 Multiple shortcut menu for android R (9/n).
1. Fix didn't reset attributes when reusing target item view.
2. Add gray out color filter for disabled icon item.
3. Remove unused icon resource.

Fix: 148834159
Test: manual test
Change-Id: If05833a7c52a62131db250589fcf8c820ec08ff4
2020-02-04 15:45:58 +08:00
Chalard Jean
9f0e8ddad5 [NS A28] Move setting the default network out of the rematch loop.
Bug: 113554781
Test: FrameworkNetTests NetworkStackTests
Change-Id: I02d85f17bf0ea37ae173f306f5a47d7551773c3a
2020-02-04 16:23:58 +09:00
Automerger Merge Worker
12dbda915d Merge "ims:rcs uce update Add call composer, standalone chatbot feature tags for UCE" am: b20182a741
Change-Id: I13834d78aca6739151935b8730370ca79e0088c1
2020-02-04 07:20:32 +00:00
Treehugger Robot
b20182a741 Merge "ims:rcs uce update Add call composer, standalone chatbot feature tags for UCE" 2020-02-04 07:08:51 +00:00
TreeHugger Robot
27e12881e4 Merge "Use FrameworkStatsLog instead of StatsLog" 2020-02-03 21:36:22 +00:00
TreeHugger Robot
e378131ece Merge "Do not require reauth when turning on profile with unified challenge" 2020-02-03 17:32:06 +00:00
Muhammad Qureshi
e2b2432bc6 Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by
*StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with
FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: Iaa2db34a7be4c3215f62cc36661ba8ac81656baa
2020-02-03 09:17:40 -08:00
Andrei-Valentin Onea
af747cef1e Merge "Use FrameworkStatsLog instead of StatsLog" 2020-02-03 16:49:04 +00:00
TreeHugger Robot
c62ab87518 Merge "Check for feature flag when creating the package monitor." 2020-02-03 14:37:10 +00:00
TreeHugger Robot
c055ea0dc3 Merge "Verify personal package monitor is initialized before unregister" 2020-02-03 14:05:36 +00:00
Muhammad Qureshi
18b77a0cc5 Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by *StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with FrameworkStatsLog.
Re-landing of http://ag/10194708 .

Bug: 145952197
Test: m
Change-Id: Ie5dcc3c677c0f3667d6505a76b91c05649787fba
2020-02-03 13:30:26 +00:00
Automerger Merge Worker
ea2a336113 Merge "Minor refactor of ChangeReporter and PlatformCompat" am: 55d16fac97 am: a8116d930c am: f8f7f29b32
Change-Id: Ic7db4dd118dceb1f8fe618cf341cbf725c818520
2020-02-03 13:10:18 +00:00
Automerger Merge Worker
a8116d930c Merge "Minor refactor of ChangeReporter and PlatformCompat" am: 55d16fac97
Change-Id: I691696fa0ffa50c87bb3afb26173f4cc595453a2
2020-02-03 12:46:12 +00:00
Treehugger Robot
55d16fac97 Merge "Minor refactor of ChangeReporter and PlatformCompat" 2020-02-03 12:37:48 +00:00
arangelov
e0cceb28dd Check for feature flag when creating the package monitor.
Fixes: 148657395
Test: manually used share sheet on both personal and work
profiles with the feature flag disabled

Change-Id: I02617454a57fb1933ba8e0e2a6d5598a3bb4016d
2020-02-03 12:20:26 +00:00
arangelov
96dec88059 Verify personal package monitor is initialized before unregister
The package monitor instances are now initialized after
configureContentView, which means we have to null check
when we autolaunch.

Test: none
Fixes: 148656667
Change-Id: If0bed185c7ee85840f691290a7718a6ff3b81b12
2020-02-03 12:20:09 +00:00
Automerger Merge Worker
ef21e5aefe Merge "Fix comments on ChangeId." am: 74e47edc82 am: c9f42024cd am: 4a54329474
Change-Id: If39b9bf0833327e9f13e7d39d6704efa2b2e0f96
2020-02-01 16:17:35 +00:00
Automerger Merge Worker
c9f42024cd Merge "Fix comments on ChangeId." am: 74e47edc82
Change-Id: I4c10072f6d20071cefb08338c9903275ba6ad69e
2020-02-01 16:00:13 +00:00
Jorim Jaggi
0e1ac39a06 Merge "Replace OnContentApplyWindowInsetsListener with simple boolean" 2020-02-01 15:44:51 +00:00
Jorim Jaggi
1f08f649c8 Replace OnContentApplyWindowInsetsListener with simple boolean
The concept will move into the support library (androidx), so in
the framework we only need a simple boolean to toggle the default
behavior.

Also remove redundant methods on WIC to control IME.

Bug: 143556682
Bug: 118118435
Test: WindowTest CTS
Change-Id: I30fbffdfbe79a57b0f4166f0657c78370c7bcf02
2020-02-01 12:51:42 +01:00
Sudheer Shanka
fe830f9760 Merge "Validate input arguments to BlobStoreManager APIs." 2020-01-31 22:19:23 +00:00
Taran Singh
bba1617932 Merge "Use ViewRoot's attrs in Window" 2020-01-31 17:58:24 +00:00
Automerger Merge Worker
892e354de9 Merge "Remove try-catch from LocationPermissionChecker" am: 497afcff0c
Change-Id: Iba17dc925db09447e71e766c5fac254128f820d1
2020-01-31 16:43:37 +00:00
atrost
e0c0823569 Fix comments on ChangeId.
This allows them to be used in doc generation.

Test: m -j offline-sdk-docs
Bug: 144927670
Change-Id: I849975c8bf880433490b42d514f3c8089029b497
2020-01-31 14:50:43 +00:00
Andrei Onea
1220afbd75 Minor refactor of ChangeReporter and PlatformCompat
Move all StatsLog generated constants into ChangeReporter, to make
re-submitting http://ag/10194708 easier.

Bug: 145952197
Test: atest PlatformCompatTest ChangeReporterTest
Change-Id: Iccff9582099c58f070a6b6aeb1d2588b0fafa90a
2020-01-31 14:30:28 +00:00
Tarandeep Singh
76e9379985 Use ViewRoot's attrs in Window
App window can override attributes available in Window#getAttributes(),
instead use ViewRootImpl attributes.
Bug: 111084606
Test: Manually verify with apps that use adjust_resize

Change-Id: I6091a08879d897bd708972347ac80be859d29f35
2020-01-30 17:21:36 -08:00
Andrii Kulian
e11e951f66 Merge changes from topic "add_bundle_to_window_context"
* changes:
  Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() in f/b
  Add bundle options to Context#createWindowContext API
2020-01-31 01:16:34 +00:00
Andrii Kulian
e57f2dc246 Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() in f/b
Replace the existing usages of now-deprecated API
WindowManager.getDefaultDisplay() with WindowMetrics or
Context.getDisplay() in frameworks/base.

Bug: 128338354
Test: Build, auto test
Change-Id: I02d38a022c5e0e6e9d699f03d35b65d6c8126da9
2020-01-31 01:15:21 +00:00
Qingxi Li
0b61b3d716 Remove try-catch from LocationPermissionChecker
Since LocationPermissionChecker#checkLocationPermission will be
used in ConnectivityService and the try-catch style will end up
in unwinding the stack. This CL remove the try-catch block from
this check function.

Bug: 148460709
Test: atest LocationPermissionCheckerTest
Change-Id: Ia97b3d8b1a96aca10fd87876969c290818e7e758
Merged-In: Ia97b3d8b1a96aca10fd87876969c290818e7e758
2020-01-31 01:06:17 +00:00
Qingxi Li
b3958e2e94 Merge "Remove try-catch from LocationPermissionChecker" 2020-01-31 00:28:00 +00:00
Andrei-Valentin Onea
a3511ce62c Merge "Revert "Use FrameworkStatsLog instead of StatsLog"" 2020-01-30 22:23:58 +00:00
Andrei-Valentin Onea
a1487bc4ad Revert "Use FrameworkStatsLog instead of StatsLog"
This reverts commit 73107044ce.

Reason for revert: It breaks this revert http://go/aogs/topic:%22revert-1210143-platformcompat-permissions-FYXPNZREZR%22+(status:open%20OR%20status:merged)

Change-Id: I64e29ba2998e7c8b4e09104caadcd2a33bacead1
2020-01-30 22:14:59 +00:00
TreeHugger Robot
dde20309d8 Merge "Notification instance ids in NMS for statsd logs." 2020-01-30 21:33:18 +00:00
Makoto Onuki
dafca1e0da Merge "Make Log.wtf() safe to call from within the system server" 2020-01-30 18:50:29 +00:00
Qingxi Li
ccc1c5df4a Remove try-catch from LocationPermissionChecker
Since LocationPermissionChecker#checkLocationPermission will be
used in ConnectivityService and the try-catch style will end up
in unwinding the stack. This CL remove the try-catch block from
this check function.

Bug: 148460709
Test: atest LocationPermissionCheckerTest
Change-Id: Ia97b3d8b1a96aca10fd87876969c290818e7e758
2020-01-30 10:24:54 -08:00
TreeHugger Robot
653dd7b19f Merge changes I0677bca4,I7cad6529
* changes:
  Fix autolaunching.
  Create a PackageMonitor instance for each profile.
2020-01-30 18:15:07 +00:00
Muhammad Qureshi
a6b9b0724c Merge "Use FrameworkStatsLog instead of StatsLog" 2020-01-30 16:40:28 +00:00
Will Brockman
cfd983061a Notification instance ids in NMS for statsd logs.
Notification instance IDs are generated by NotificationManagerService
when the notification is first posted, and stored in the
StatusBarNotification so that they can be passed to the SystemUI
process.

Bug: 144022566
Test: atest NotificationManagerService BuzzBeepBlinkTest RoleObserverTest
Test: statsd_testdrive 244
Change-Id: I804786dfa165864257d8801d7e96f2ac0ead960f
2020-01-30 11:35:10 -05:00
Daniel Sandler
2f7640449b Merge "Cherry-pick "action chips in share sheet" from qt-qpr1-dev." 2020-01-30 15:39:19 +00:00