Commit Graph

97313 Commits

Author SHA1 Message Date
TreeHugger Robot
9f2e012bbf Merge "Annotate SuggestionSpan.getUnderlineColor" 2019-01-10 23:40:02 +00:00
TreeHugger Robot
00112e6f6f Merge "Move copy, cut and paste shortcut handler to onKeyDown()." 2019-01-10 23:26:06 +00:00
Kevin Chyn
1bafe67c78 Merge changes from topic "face-small"
* changes:
  2/n: Add BiometricPrompt implicit UI
  1/n: Add BiometricPrompt#setRequireConfirmation(bool) API
2019-01-10 22:50:08 +00:00
Soonil Nagarkar
48273286e5 Merge "Use LOCATION_MODE to control location" 2019-01-10 22:47:48 +00:00
Soonil Nagarkar
90da1ab3d2 Use LOCATION_MODE to control location
Completely deprecate LOCATION_PROVIDERS_ALLOWED (but still support it).
Adds additional locking and @GuardedBy annotations where appropriate,
and some minor code cleanup is copied from previous CLs.

Bug: 118885128
Test: Manual + CTS
Change-Id: I3c0b4b2354a4c2b6a120fc467af60cb3409dd671
2019-01-10 14:43:43 -08:00
Tyler Gunn
d7acc5a49f Merge "Call Screening / Caller ID API Changes" 2019-01-10 19:12:38 +00:00
Kevin Chyn
e191271230 2/n: Add BiometricPrompt implicit UI
In small mode, tapping the gray are is ignored. Combined
StatusBar#showBiometricTryAgain into onBiometricAuthenticated(bool)

We now create a new BiometricDialogView object for each BiometricPrompt
authenticate call. This makes the view's lifecycle much easier to manage.

Bug: 111461540

Test: Small -> Big when error or rejected
Test: Small -> Authenticated looks good
Test: Try again button is shown when rejected
Test: Icon spacing looks good after animation
Test: Big/small state persists across configuration change

Change-Id: Id0157a7506cea9b0e7de079c43f8bd5ba3cbd8c5
2019-01-10 11:11:27 -08:00
Lucas Dupin
03270e1f37 Merge "Config to disable rounded corners" 2019-01-10 17:44:31 +00:00
TreeHugger Robot
d9e60a633d Merge "Add missing @NonNull" 2019-01-10 17:41:29 +00:00
TreeHugger Robot
6f5717ccf7 Merge "Flip default of extractNativeLibs if targets Q+" 2019-01-10 17:32:18 +00:00
TreeHugger Robot
58514eaa6f Merge "Add WindowConfiguration's bounds to proto" 2019-01-10 16:19:24 +00:00
Mihai Popa
17e17e2fdb Merge "[Magnifier-71] Adapt surface buffer to elevation" 2019-01-10 16:12:35 +00:00
Mihai Popa
c6cb040ff3 Merge "Enable null cursor drawable" 2019-01-10 16:08:01 +00:00
vincentpeng
be09f2801e WallpaperColor's ColorHint API go for @SystemApi
Making color hint's relative api @SystemApi.
For pre-installed live wallpaper apps, change to @SystemApi so:

1. apps can be build with gradle build tools.
   (e.g.: PixelLiveWallpaper for app bundle feature).
2. apps can calculate and pass color hint information to interested system components.
   (Such as passing dark text support to SystemUi)

Fixes: 111395593

Test: make system sdk and check if the wallpaper apps can compile with android_system.jar.
Test: check whether the wallpaper apps can pass correct color hint after build (dark text).

Change-Id: I2ecf6ff77ff7a823949c6e3253a077e6eba9683a
2019-01-10 14:34:26 +00:00
Adrian Roos
5f8b52cb3e Add WindowConfiguration's bounds to proto
Test: make droid
Change-Id: I8334c51a3ffa6c33340869d24240ede1c9259c51
2019-01-10 14:25:02 +00:00
Milo Sredkov
41dc4ba3c6 Make the tap-to-edit behaviour configurable
Add a new key-value pair to smart_replies_in_notifications_flags that
controls the default tap-to-edit behaviour.

Bug: 111437455
Test: atest SmartReplyConstantsTest
Test: Try "adb shell settings put global smart_replies_in_notifications_flags edit_choices_before_sending=true" and observe
Change-Id: Ida90b98c28f4183697e84a6722768d41c72dd9cf
2019-01-10 10:44:26 +00:00
Yuichiro Hanada
eed724d135 Move copy, cut and paste shortcut handler to onKeyDown().
The shortcut handler for Shift-Delete was added in onKeyShortcut(), but
it's called after onKeyDown() and the event are consumed by
BaseKeyListener before reaching to onKeyShortcut().

Fix: 122079351
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: Ifee0144bdd3c4f0552bc4c4f3e5b844502bc937e
2019-01-10 15:34:32 +09:00
Chalard Jean
036da579e2 Merge "Add PCSCF to LinkProperties." am: 64e495b274 am: 40c9e752ac
am: e2bbcc1837

Change-Id: I16eedc51ad4932b7ec6a32d9e718c48cf203c2f0
2019-01-09 22:29:15 -08:00
Chalard Jean
e2bbcc1837 Merge "Add PCSCF to LinkProperties." am: 64e495b274
am: 40c9e752ac

Change-Id: I491e99f7225233d5841b61ce383325e7a1c43fa0
2019-01-09 22:19:14 -08:00
Chalard Jean
40c9e752ac Merge "Add PCSCF to LinkProperties."
am: 64e495b274

Change-Id: Ia153067765ea39430f4dfbc49da3cbd92054b8a9
2019-01-09 22:06:46 -08:00
Chalard Jean
64e495b274 Merge "Add PCSCF to LinkProperties." 2019-01-10 05:55:05 +00:00
Jack He
17d71033ab Merge "Deprecate BluetoothHealth APIs" am: c792b78f71
am: 672b984fa6

Change-Id: I60d6429fc07cf4a2dccf5773a5c18016523d2762
2019-01-09 21:05:45 -08:00
Jack He
672b984fa6 Merge "Deprecate BluetoothHealth APIs"
am: c792b78f71

Change-Id: I77b50a8b929553ca04d57f63df516ef11d25364b
2019-01-09 20:55:24 -08:00
Jack He
6b73b32c7a Deprecate BluetoothHealth APIs
* Mark all BluetoothHealth related APIs as deprecated
* Make BluetoothAdapter#getProfileProxy(context, BluetoothProfile.HEALTH)
  always return false
* Remove all logic behind BluetoothHealth APIs and add deprecation error log
* Health Device Profile (HDP) and MCAP protocol has been largely
  replaced by BLE. New applications should use Bluetooth Low Energy
  instead of legacy Bluetooth Health Device Profile

Bug: 111562841
Test: make, unit test, use Bluetooth
Change-Id: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892
Merged-In: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892
(cherry picked from commit 2be70a11a2)
2019-01-09 18:09:21 -08:00
TreeHugger Robot
15bd09638f Merge "Updating Java doc for Activity#onUserLeaveHint()" 2019-01-10 01:11:28 +00:00
Victor Hsieh
4e54b521bc Flip default of extractNativeLibs if targets Q+
Test: Local in-progress CTS
Test: CtsDynamicLinkerTestCases
Bug: 112037137
Change-Id: I41289ec6bdfff13ef4aa551bf0a98bad73c9371e
2019-01-09 16:49:20 -08:00
Yiwei Zhang
0c9ccbe456 Merge "GUP: Update global property for the new dev opt" 2019-01-10 00:33:39 +00:00
Jakub Pawlowski
4a89978068 Merge "Revert "Enable ANGLE-for-Android rule processing again"" 2019-01-10 00:32:15 +00:00
Jakub Pawlowski
c3174593a2 Revert "Enable ANGLE-for-Android rule processing again"
This reverts commit e674a54078.

Reason for revert: b/122509524 Random bluetooth crash observed in QP1A.190108.001

Change-Id: I089e30665edf70275d4190bac0577329b4f016a9
2019-01-10 00:24:34 +00:00
TreeHugger Robot
26d4ca07c9 Merge "Fix 2 issues related to caption." 2019-01-10 00:12:51 +00:00
TreeHugger Robot
f9699619a6 Merge "Deprecate BluetoothHealth APIs" 2019-01-09 21:53:54 +00:00
TreeHugger Robot
d3827b910b Merge "Rename onNotificationDirectReply to onNotificationDirectReplied as per ... the API council feedback." 2019-01-09 21:46:51 +00:00
Rob Carr
c9fd5fc46b Merge changes from topic "sf-remove-remove-layer"
* changes:
  SurfaceFlinger: Remove removeLayer
  Fix memory leak in SurfaceControl#copyFrom
2019-01-09 21:23:15 +00:00
Qingqing Deng
ef20b233c8 Annotate SuggestionSpan.getUnderlineColor
-- Annotate return value with @ColorInt

Bug: 122517884
Test: atest CtsTextTestCases:android.text.style.cts.SuggestionSpanTest
Change-Id: I3bd7449e2d17cdfa06f3b62358ec1bba667a1fc3
2019-01-09 12:22:02 -08:00
Mihai Popa
f41a054fca Enable null cursor drawable
I3801ee8642d277c96c094b7d4155e28fc5bcea87 added public setters and
getter for a TextView's cursor drawable. The setter was expecting a
NonNull Drawable argument. However, this was inconsistent with the
textCursorDrawable attribute which had existed for a long time in
platform. This accepted null, case when a fallback vertical black line
is drawn as a cursor. This CL fixes this inconsistency, by allowing null
Drawables to be set for the cursor.

Also, the CL fixes the preconditions checking resource id arguments to
be strictly positive, while negative resource ids are valid as well.

Bug: 122550166
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: Ia10fafbdc0405968e57b35a615eedaeb9ee80c96
2019-01-09 20:14:19 +00:00
Mihai Popa
59a7bc0453 Merge "[Magnifier-69] Some cleanup in API names and docs" 2019-01-09 19:58:35 +00:00
Lucas Dupin
f36d0dcfca Config to disable rounded corners
Some devices shouldn't render rounded corners because of graphics
limitations.

Bug: 122347746
Test: swipe up on multiple types of devices: walleye, sailfish, blueline
Change-Id: I93fcb4283ed1aa3df5569454483a8867a3bfd06b
2019-01-09 11:52:09 -08:00
Tony Mak
836147ecb2 Rename onNotificationDirectReply to onNotificationDirectReplied as per ...
the API council feedback.

BUG: 120841922
Test: Build

Change-Id: I630134955bb86b36e8d186e92302ae141629f4f6
2019-01-09 19:44:06 +00:00
Chenbo Feng
ccee30ed1b Merge "Adjust map names due to new bpfloader" am: 9613bfd2a4 am: 59ce36a44d
am: 5fb25b6389

Change-Id: Iedbb541ba2fa5916048e3f40d5cc128a83d0dc6b
2019-01-09 11:34:54 -08:00
John Reck
13f08e69b7 Add missing @NonNull
Change-Id: I343dd13a7f8518959c7b75162c5cebc5f933ae6f
Fixes: 122549813
Test: n/a
2019-01-09 11:16:28 -08:00
Chenbo Feng
5fb25b6389 Merge "Adjust map names due to new bpfloader" am: 9613bfd2a4
am: 59ce36a44d

Change-Id: I28a2e41a354abdd8b2113c927a6489ea8710b431
2019-01-09 11:15:44 -08:00
Chenbo Feng
59ce36a44d Merge "Adjust map names due to new bpfloader"
am: 9613bfd2a4

Change-Id: If97a15a7f7b6a066bbf46db3497270a8c9a81026
2019-01-09 10:53:22 -08:00
TreeHugger Robot
8be2420b9b Merge "Fixed application info null pointer exception." 2019-01-09 18:48:28 +00:00
Adam He
58611544cd Merge "Added null checks for NPE on mSystemServerInterface" 2019-01-09 18:40:01 +00:00
Treehugger Robot
9613bfd2a4 Merge "Adjust map names due to new bpfloader" 2019-01-09 18:34:49 +00:00
Garfield Tan
3b9613c257 Fix 2 issues related to caption.
1. This change ignores immersive mode request if the window is not in
fullscreen mode in terms of caption visibility;
2. Update caption visibility when app changes system UI visibility.

This change also consolidates the visibility logic into DecorView.

Bug: 119388201
Test: Manual test. Also test that split screen and PIP don't have
caption.

Change-Id: Ia5051d2f53455be2c21e1933b002d07b25c0b74b
2019-01-09 10:17:39 -08:00
Mihai Popa
bd391f9aa1 [Magnifier-71] Adapt surface buffer to elevation
The surface created for the magnifier is larger than the magnifier
content, in order to leave space for drawing the shadow. In
I066082fb17cfb8c483c49b7011abfa9dca9de77a we made the elevation a
customizable property of Magnifier using the Builder class. However, the
buffer allocated for drawing the shadow remained a fixed value,
insufficient for large elevations, when shadows were getting clipped.
This CL fixes this, by making the allocated surface large enough to
accomodate the shadow.

Bug: none
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I462c50510820614dc033a42b347e9672ce39a4c6
2019-01-09 17:22:06 +00:00
Mihai Popa
becda34f25 [Magnifier-69] Some cleanup in API names and docs
This CL:
- renames setForcePositionWithinWindowSystemInsetsBounds to
setClippingEnabled
- improves some of the docs

Bug: 120609112
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I14c774b432b4a0cff96066734758b9f937179d94
2019-01-09 17:22:03 +00:00
Dan Gittik
a5a2d6390e Fixed application info null pointer exception.
Test: manual.
      Set up work profile and open an app that's only installed
      there. This should change the user ID without triggering a
      system-wide global switch, in which case the application info
      would be null and cause the system service to crash.
      In the current implementation, this shouldn't happen, and in
      fact the foreground app should be properly inferred regardless
      of the user. This can be visible by enabled and checking the
      AutomaticBrightnessController logs with:

      adb shell cmd display ab-logging-enable
      adb logcat | grep AutomaticBrightnessController

Fixes: 122107873

Change-Id: I8161414a766c494ab0efadaa20fe6fcdf5067948
2019-01-09 16:26:34 +00:00
Nikita Ioffe
0800858b02 Merge "Add Binder.getCallingUidOrThrow method" 2019-01-09 16:07:56 +00:00