Commit Graph

83780 Commits

Author SHA1 Message Date
TreeHugger Robot
82e99c78d1 Merge "Hold wake lock while printing" 2018-05-19 01:16:49 +00:00
Beverly
f1ef5833b0 Merge changes Id4feeefa,Ie0a501b8 into pi-dev am: 45a250a2be
am: 6e66b320fd

Change-Id: I8f185099f0f00f62a9ae6e219f29c9dd2efd8d2d
2018-05-18 17:01:25 -07:00
Beverly
6e66b320fd Merge changes Id4feeefa,Ie0a501b8 into pi-dev
am: 45a250a2be

Change-Id: Id58b92f3400f17fedb30524cc851fa3c1304af61
2018-05-18 16:33:20 -07:00
TreeHugger Robot
38a86e8038 Merge "Un-@hide Handler.hasCallbacks." 2018-05-18 23:31:16 +00:00
TreeHugger Robot
45a250a2be Merge changes Id4feeefa,Ie0a501b8 into pi-dev
* changes:
  Add counter for predictive info for hush gesture
  Update DND strings
2018-05-18 23:08:19 +00:00
Adrian Roos
ab2f888137 Merge "Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout" into pi-dev am: 177ee3d7a1
am: 6098f6db68

Change-Id: Idf260e2dd6e0bbfdcaefc1d3f85ac82dadf31050
2018-05-18 15:27:56 -07:00
Adrian Roos
6098f6db68 Merge "Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout" into pi-dev
am: 177ee3d7a1

Change-Id: I2b08c79df17084c3037eb44f988096bcb518d43d
2018-05-18 15:20:26 -07:00
TreeHugger Robot
177ee3d7a1 Merge "Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout" into pi-dev 2018-05-18 22:12:30 +00:00
Beverly
38fcfd0500 Add counter for predictive info for hush gesture
Test: adb shell settings get secure hush_gesture_used
Test: adb shell settings get secure manual_ringer_toggle_count
Change-Id: Id4feeefa03a5951c03b09ab466a6c399d8aadd0e
Fixes: 79537757
2018-05-18 21:45:17 +00:00
Beverly
89876010f1 Merge "(Behind flag) Wireless charging vibration feedback" into pi-dev
am: fedf04f3df

Change-Id: Ib7ee0e91da5d475bc2fa989b7e0a152c50f9f886
2018-05-18 14:25:45 -07:00
Adrian Roos
f7b7426d81 Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout
ActionBarOverlayLayout used to drop WindowInsets, extract the content insets
as a rect, and then dispatch a modified rect to the content view; this because
there was no way to retarget the WindowInsets to the content view, and the
WindowInsets were not truly immutable. That means however, that other kinds of
insets than the content insets do not get dispatched, such as the display cutout.

To fix this, we add APIs to inset WindowInsets, make them immutable. Note that
a similar change is needed for the support lib.

Bug: 79733300
Test: atest ActionBarOverlayLayoutTest
Change-Id: I6a69d8462163ca5e66fdb53f83def6bc4063f8aa
2018-05-18 20:58:38 +00:00
TreeHugger Robot
fedf04f3df Merge "(Behind flag) Wireless charging vibration feedback" into pi-dev 2018-05-18 20:57:21 +00:00
Jake Wharton
4195507fee Un-@hide Handler.hasCallbacks.
You can post messages with an int or int+Object, query if they're posted, and cancel them. With a Runnable, however, prior to this change you could only post and cancel them.

Bug: 37015636
Test: existing
Change-Id: Icb9ba40ebb32fb962cec8a88e2222f68fe629057
2018-05-18 16:05:41 -04:00
Jorim Jaggi
da6e14bc53 Merge "Schedule trimMemory after drawing the frame" into pi-dev am: 6b8014f5c8
am: 7b7d830f5a

Change-Id: I7b56dc55c46db0dff80b3d0ace439f5e83599100
2018-05-18 12:24:55 -07:00
Jorim Jaggi
7b7d830f5a Merge "Schedule trimMemory after drawing the frame" into pi-dev
am: 6b8014f5c8

Change-Id: I72c7feccb531f2a19aa2b19ea860802e0d779578
2018-05-18 11:57:44 -07:00
Jorim Jaggi
6b8014f5c8 Merge "Schedule trimMemory after drawing the frame" into pi-dev 2018-05-18 18:26:03 +00:00
Selim Cinek
bb04645502 Merge "Keep notification when sending smart reply." into pi-dev am: f75019b810
am: 8cfe436bb1

Change-Id: I9868acc1aa75a4389890634abdec18cef286ab5d
2018-05-18 09:42:56 -07:00
Selim Cinek
8cfe436bb1 Merge "Keep notification when sending smart reply." into pi-dev
am: f75019b810

Change-Id: Idb981e0977880c6bf47267b4ecef793adad3e6d3
2018-05-18 09:32:18 -07:00
Jorim Jaggi
b29e318e03 Schedule trimMemory after drawing the frame
Fixes jank issues where trimMemory gets scheduled during an
animation. trimMemory likely hits code that is not in the
page cache anymore, leading to high execution time because of page
misses. Scheduling it after the next frame has been drawn
minimizes the risk that this page miss actually causes jank.

Test: Boot, switch between a couple of apps.
Bug: 78611607
Change-Id: Ia1fc411fbe6ca07861183ae484124406681118e5
2018-05-18 18:26:30 +02:00
Selim Cinek
f75019b810 Merge "Keep notification when sending smart reply." into pi-dev 2018-05-18 16:20:40 +00:00
Jorim Jaggi
9ac7de096d Merge changes I608d4b61,Ia7900e75 into pi-dev
am: e4a8d4c7e9

Change-Id: Idedbe8e08b17c52d8d9e6b6d83286f66218d41f9
2018-05-18 05:01:44 -07:00
Jorim Jaggi
e4a8d4c7e9 Merge changes I608d4b61,Ia7900e75 into pi-dev
* changes:
  Follow up to Ia7900e753b29187a7a7b81f393666687e8b8e04b
  Apply surface parameters in sync with RenderThread
2018-05-18 11:49:56 +00:00
Erik Kline
bdc41e2dd2 Merge "Add explicit override for default Private DNS mode" into pi-dev am: 2b3c858296
am: 413d00c1c0

Change-Id: Ifbb9922c4226c5a8a7ef9422dc4bd0e5b83a56b9
2018-05-18 01:16:38 -07:00
Erik Kline
413d00c1c0 Merge "Add explicit override for default Private DNS mode" into pi-dev
am: 2b3c858296

Change-Id: If480ab40c7cf9ab75c52feafc28338a049cbceef
2018-05-18 01:08:26 -07:00
TreeHugger Robot
2b3c858296 Merge "Add explicit override for default Private DNS mode" into pi-dev 2018-05-18 07:59:58 +00:00
fionaxu
6518eaba09 Merge "add javadoc for carrier ifd install API" into pi-dev am: c4da4d494b
am: 3eb4b347c8

Change-Id: I4a60c2fbeff8581cd9d952c03326cc64d765d3d2
2018-05-17 16:28:25 -07:00
fionaxu
3eb4b347c8 Merge "add javadoc for carrier ifd install API" into pi-dev
am: c4da4d494b

Change-Id: Iae3d13c662edfe41b3a3c1bfd91c2af1a7e5a980
2018-05-17 16:20:30 -07:00
TreeHugger Robot
c4da4d494b Merge "add javadoc for carrier ifd install API" into pi-dev 2018-05-17 23:04:48 +00:00
fionaxu
3083d0b0c7 add javadoc for carrier ifd install API
Bug: 79426800
Change-Id: Iaf5af11220c85dc63164cee31414dce8e4d02037
2018-05-17 15:03:00 -07:00
Kenny Guy
8cc15d2ebf Keep notification when sending smart reply.
If an app cancels a notification while we are
sending a smart reply then don't dismiss the
notification.

Bug: 79120026
Test: atest NotificationEntryManagerTest
Test: atest SmartReplyControllerTest
Test: atest statusbar.NotificationListenerTest
Test: atest NotificationRemoteInputManagerTest

Change-Id: Ibbc0014ae0aeb12b58be13c041d720903251490f
2018-05-17 20:16:25 +01:00
Annie Meng
803f9480a7 Merge "Fix NPE in ComponentNameValidator" into pi-dev am: b105913098
am: c9fd5be45f

Change-Id: I111f172e269c9541bb98d7d742c27dae77afa048
2018-05-17 11:42:32 -07:00
Annie Meng
c9fd5be45f Merge "Fix NPE in ComponentNameValidator" into pi-dev
am: b105913098

Change-Id: I9725217151634a66d7cd3dc0e80acb5f78f15c39
2018-05-17 11:34:33 -07:00
Annie Meng
b105913098 Merge "Fix NPE in ComponentNameValidator" into pi-dev 2018-05-17 18:20:29 +00:00
Abodunrinwa Toki
228460c709 Merge "Refresh TCM settings when they change" into pi-dev am: 3fa564030f
am: f08646f13e

Change-Id: I2a7fc61dac52817b053a680b82c18514f76ec6b8
2018-05-17 11:13:47 -07:00
Abodunrinwa Toki
f08646f13e Merge "Refresh TCM settings when they change" into pi-dev
am: 3fa564030f

Change-Id: Ia8c3f5844dc908f2fb7671182bcc683850cf69d0
2018-05-17 11:03:48 -07:00
Annie Meng
5d26b8c03a Fix NPE in ComponentNameValidator
In general, we should consider null component names as invalid settings,
meaning that we don't restore.

b/79925290 to allow restoring null component names for specific
settings where null has semantic meaning.

Bug: 79910479
Test: 1) atest SettingsValidatorsTest
2) Manual:
- In Settings UI, select "None" for autofill service and accessibility
shortcut target
- "adb backup -keyvalue -f nullsettings.ab com.android.providers.settings"
- "adb restore nullsettings.ab" and verify no crashes
Change-Id: Iffecbe7d26a93a816e7be42f564ba471f9681876
2018-05-17 17:56:58 +00:00
TreeHugger Robot
3fa564030f Merge "Refresh TCM settings when they change" into pi-dev 2018-05-17 17:46:24 +00:00
TreeHugger Robot
ff63291986 Merge "Add test cases for Layout.primaryIsTrailingPrevious" 2018-05-17 17:30:21 +00:00
TreeHugger Robot
8e69adbd07 Merge "Fix TextView#setText misplaced documentation" 2018-05-17 17:21:29 +00:00
TreeHugger Robot
da84578750 Merge "(Behind flag) Wireless charging vibration feedback" 2018-05-17 17:15:20 +00:00
Robert Benea
1dda2f4e40 Merge "Replace HashMap with ArrayMap for services" 2018-05-17 16:02:08 +00:00
Mihai Popa
5b3a42319c Fix TextView#setText misplaced documentation
In Ifaddb46d156c495a371789c6f32cfd67ffaaaef2, we improved the
documentation of TextView#setText to state an assumption that should
hold when subclasses override the method. However, the new phrase was
put in the wrong place. This CL fixes this.

Bug: none
Test: none
Change-Id: I918a6c533b9e4b34b3977a20e979a10db9741ebc
2018-05-17 16:42:22 +01:00
Beverly
69721d647c (Behind flag) Wireless charging vibration feedback
- to turn vibration feedback on wireless charging:
    adb shell settings put global charging_vibration_enabled 1

Test: manual
Bug: 74505795
Change-Id: I177bc05e75bb9e66a88b45432eee778ab619e28f
2018-05-17 15:39:49 +00:00
Abodunrinwa Toki
cfb880c6e0 Merge "Use FLAG_UPDATE_CURRENT for TC PendingIntents." into pi-dev am: 2085646c7d
am: 402a57bac2

Change-Id: Ia8bb7755472d05b74a9d9efb6b4e6df7b4d52b8a
2018-05-17 03:36:59 -07:00
Abodunrinwa Toki
c2449b8361 Refresh TCM settings when they change
Approach here is to register a content observer that invalidates the
TC settings whenever updates to the settings happen.

This CL also ensures that the TC is invalidated when a settings
update happens. This is because the settings may change what
TC the system returns.

TextView's SelectionActionModeHelper has been updated to not cache
the settings and get them directly from TCM (which caches the settings).

NOTE that we expect TC settings to rarely change.

Bug: 77539576
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: manual - Made changes to TC settings and observed logs / app behaviour

Change-Id: I88bbb6f951708b17323fac1a72385fe808d270a5
2018-05-17 11:29:29 +01:00
Abodunrinwa Toki
402a57bac2 Merge "Use FLAG_UPDATE_CURRENT for TC PendingIntents." into pi-dev
am: 2085646c7d

Change-Id: I9d1e0082911fcad4d729c8eace3b960bf6af0d2d
2018-05-17 03:24:22 -07:00
TreeHugger Robot
2cbfebd67b Merge "Add TextLayout.measure test cases" 2018-05-17 10:23:30 +00:00
TreeHugger Robot
2085646c7d Merge "Use FLAG_UPDATE_CURRENT for TC PendingIntents." into pi-dev 2018-05-17 10:11:19 +00:00
Erik Kline
1984179409 Add explicit override for default Private DNS mode
Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 79719289
Change-Id: I943c5476666e47d04690626e2133f501cb875b46
2018-05-17 17:41:12 +09:00
Dieter Hsu
6ce3db4976 Merge "Trigger action for app ops icon for keyboard navigation" into pi-dev am: 7f91c59b3e
am: a30db99a93

Change-Id: I230703ca8de3ca0e7949f212cc2af1c95ffcc38c
2018-05-16 23:22:11 -07:00