Commit Graph

21040 Commits

Author SHA1 Message Date
Issei Suzuki
495de00e0a Merge "Refactor DisplayCutout to use Rect instead of Region." 2018-10-04 08:43:54 +00:00
Kevin Chyn
5ff2b1f158 Merge changes from topic "biometric-manager"
* changes:
  Move biometric setting observer from KeyguardUpdateMonitor to BiometricService
  Change BiometricManager#hasEnrolledBiometrics to canAuthenticate
2018-10-04 03:19:25 +00:00
Jack Yu
c79b4690dc Merge "Renamed get network registration states API" am: 2966539634 am: 70015f07b9
am: 0ab35f0ffc

Change-Id: If81b411d72f69cf6e1381fb1a0ecf1e84fd05aec
2018-10-03 15:35:58 -07:00
Jack Yu
0ab35f0ffc Merge "Renamed get network registration states API" am: 2966539634
am: 70015f07b9

Change-Id: I5d8298f0fec6f06d7a45502eaf62b3984b856420
2018-10-03 15:18:22 -07:00
Fan Zhang
07547c6c58 Merge "Add intent action constant for launching Settings search UI" 2018-10-03 20:46:17 +00:00
Issei Suzuki
43190bdf40 Refactor DisplayCutout to use Rect instead of Region.
Test: unittest
Bug: 112296834

Change-Id: I4245543c26f99afa59a34f5b6e6650b93d052a6e
2018-10-03 18:52:33 +09:00
Jack Yu
735381e5e5 Merge "Merge "Reworked getNetworkRegistrationStates API" am: f2e9856f49 am: 2835cb7d87" into pi-dev-plus-aosp
am: 17961fb01b

Change-Id: I9fe0fb6e24922130b8e161cd9a332583883b8f02
2018-10-02 18:53:04 -07:00
Jack Yu
7a376c3b1f Merge "Reworked getNetworkRegistrationStates API" am: f2e9856f49
am: 2835cb7d87

Change-Id: I7a8c2da66c028f9570c36bca676a85ef4ac602fb
2018-10-02 17:31:54 -07:00
Jack Yu
37a1fc31b5 Renamed get network registration states API
Using the term "for" is more appropriate than "from".

Test: Build
Bug: 73659459
Change-Id: I9e06a35979b887a14822862f290798a7f75a54f8
2018-10-02 17:01:51 -07:00
Jack Yu
f2e9856f49 Merge "Reworked getNetworkRegistrationStates API" 2018-10-02 23:34:15 +00:00
Fan Zhang
c8c5c2a5d1 Add intent action constant for launching Settings search UI
This is needed by system apps other than Settings, such as
PackageInstaller/PermissionController

Bug: 113128828
Test: CTS
Change-Id: I97cc9f90bb0978ce50ba0c10fcdd1b984028577c
2018-10-02 13:17:21 -07:00
Jack Yu
b4ae477213 Reworked getNetworkRegistrationStates API
Added two new APIs for getting network registration states
from domain and transport type. Deprecated the old APIs.

Test: Manual
Bug: 73659459
Change-Id: I3143df320f2942213aa0f10fe3cca9851bd82bb8
2018-10-02 12:11:36 -07:00
Makoto Onuki
f768ba4f7a Merge "Revert "Add RawContacts insert/update/delete notification URIs."" 2018-10-02 17:15:39 +00:00
Salvador Martinez
bbd22043e0 Merge "Add new POWER_SAVER permission & update api" 2018-10-02 16:24:04 +00:00
TreeHugger Robot
75d2c1f13a Merge changes I1276375c,I3fd96558,I39f7b1af
* changes:
  Remove detached wallpaper animations
  Remove WSA.mAnimLayer
  Remove WindowStateAnimator.isAnimationSet
2018-10-02 15:04:25 +00:00
Jorim Jaggi
8f52087d8a Remove detached wallpaper animations
Wasn't really supported anymore. Let's remove it from the API.

Bug: 112628612
Change-Id: I1276375cc204887a8da37a7f09ae2046216ca448
2018-10-02 15:43:04 +02:00
TreeHugger Robot
e1251df8eb Merge "Device-wide unknown sources block option for DPC." 2018-10-02 13:07:25 +00:00
Kevin Chyn
e741142569 Change BiometricManager#hasEnrolledBiometrics to canAuthenticate
BiometricPrompt#authenticate and BiometricManager#canAuthenticate now
use the same logic to determine if the prompt can successfully be shown.

Before Android P, apps used FingerprintManager isHwAvail && hasEnrolled
before asking users to enable biometrics for their app. With
BiometricPrompt, which abstracts away individual biometric modalities,
developers need a way to determine if they should ask users to enable
biometrics for their app. Having separate checks is a nightmare due
to the untestable combinations of multi-biometric devices. This API change
makes it much more scalable since the logic will be done in the platform.

Fixes: 116823693

Test: manual test, returns status correctly

Change-Id: Ie0ecd139c9a39100b6dbc9bd85462400cb465f08
2018-10-01 15:00:30 -07:00
TreeHugger Robot
025759062a Merge "Deprecate InputMethodService#getInputMethodWindowRecommendedHeight()" 2018-10-01 21:43:42 +00:00
TreeHugger Robot
a4481c9c5c Merge "Fail install if split is missing" 2018-10-01 21:21:35 +00:00
Irina Dumitrescu
4638edd79f Device-wide unknown sources block option for DPC.
This adds a new framework user restriction that can be used by the DPC
to block installs from unknown sources on all profiles of a device.

Test: Manual test, disallowing installs in TestDPC disables installing
unknown sources apps.
Bug: 111335021
Change-Id: Ib9fb672c5e5dea2ac63bf8cbd1b04484b12b4056
2018-10-01 21:45:00 +01:00
Makoto Onuki
0554b19010 Revert "Add RawContacts insert/update/delete notification URIs."
This reverts commit ff88b14e62.

Reason for revert: API Council push back

Bug: 113696451
Bug: 116798156
Change-Id: I328d981b96d44e37c58625b48334891baf9a8487
2018-10-01 18:50:08 +00:00
Anton Hansson
acdc1133d6 Merge "Add per-partition build constants to Build class." 2018-10-01 15:42:55 +00:00
Anton Hansson
91b54f17c6 Add per-partition build constants to Build class.
Expose the ro.<x>.build.fingerprint & time.utc constants.

Bug: 112584519
Test: manual test app calling getPartitions().
Test: atest BuildVersionTest
Change-Id: Ibec0012d5893e3eb325f46a04379718a11067fa1
2018-10-01 11:41:33 +01:00
Jake Wharton
a8a0435d59 Expose a few APIs in util collections.
These are either already exposed on other specialized collection variants or are exposed as public API on the androidx versions, or both.

With these APIs exposed, all of the unsupported app usage can be done through public API. As a result, all unsupported app usage is now locked to apps targeting API 28 or earlier.

Bug: 116877302
Test: none, no implementation change
Change-Id: I548d71319bffb0a6b529e380ea936df674dbf515
2018-09-29 02:04:33 -04:00
Nathan Harold
06b4e4692c Merge "Remove getNeighboringCell API" am: e164be3176 am: 66c63a4bbe
am: 473c9609a9

Change-Id: I176c4079bb2b487fde37738bf9b4e017b2fd10e9
2018-09-28 16:15:22 -07:00
Nathan Harold
473c9609a9 Merge "Remove getNeighboringCell API" am: e164be3176
am: 66c63a4bbe

Change-Id: Icbdc9d3156546ceb3b8a0672687479bea77bb032
2018-09-28 15:43:39 -07:00
TreeHugger Robot
e72c731070 Merge "Expose background location permission" 2018-09-28 22:16:45 +00:00
Nathan Harold
e164be3176 Merge "Remove getNeighboringCell API" 2018-09-28 21:40:47 +00:00
Salvador Martinez
a80bbab54c Add new POWER_SAVER permission & update api
This CL adds a new privileged permission called POWER_SAVER that
will allow whitelisted packages to toggle battery saver on the
device. This can be done via PowerManager, where the API for
setting battery saver has been updated to accept calls from apps
with either DEVICE_POWER or the POWER_SAVER permission.
Additionally, we whitelist Turbo for the permission.

Test: Framework builds, Turbo can toggle EBS
Bug: 115524274
Change-Id: I49d9747b2d42f792a2f3ba90a15aa23c47e489b3
2018-09-28 14:25:25 -07:00
Philip P. Moltmann
e5bf4b3682 Expose background location permission
Test: Used the permission in a CTS test
Bug: 78788390
Change-Id: I9df18f67331c87065b6f327d7d7ea2e6c66448b8
2018-09-28 08:38:09 -07:00
Nicolas Geoffray
2072d6349b Add new DelegateLastClassLoader API am: dcb9e663be
am: 9a2b31c832

Change-Id: I6d47e4ee1efb09d23621308b22459c2f6d57211e
2018-09-28 06:24:52 -07:00
Nicolas Geoffray
9a2b31c832 Add new DelegateLastClassLoader API
am: dcb9e663be

Change-Id: I49e7682496aa55e234890b7e377059f943addea6
2018-09-28 06:03:25 -07:00
Nicolas Geoffray
1a9013a51c Merge "Add new DelegateLastClassLoader API" 2018-09-28 12:12:12 +00:00
Todd Kennedy
29cfa27f69 Fail install if split is missing
An application can declare that it must be installed with at least
one split using the manifest attribute "android:isSplitRequired".
Setting the attribute to 'true' [default is 'false'], the application
can't be installed with a base-only. It must be accompanied by at
least one split [either feature or config].

Change-Id: I42804af34a4209ba5d6726d681ca705ca2c21a39
Fixes: 111391719
Test: atest CtsAppSecurityHostTestCases:SplitTests
2018-09-27 21:43:36 -07:00
John Reck
702196562e Merge "Wire-up default force-dark based off of isLightTheme" 2018-09-27 23:04:02 +00:00
John Reck
bb3a358317 Wire-up default force-dark based off of isLightTheme
Bug: 102591313
Test: Compared settings in light & dark UI modes with
force_dark set to true. Observed that force_dark fixes
were not present when UI mode was set to dark, indicating
force_dark was appropriately globally-disabled

Change-Id: I5882829bb5871829fc8fc9911682f52a6ba5f445
2018-09-27 19:38:13 +00:00
Haoyu Zhang
88f0f6c9b1 Merge "Synchronize attributes in TextView with TextAppearanceSpan" 2018-09-27 19:15:31 +00:00
Lalit Maganti
6180735106 DO NOT MERGE Revert "new System API for preferred network mode"
This reverts commit 8a8832fd81.

Reason: most of the users in this new API are not in pi-dev so this change does
not make sense in this branch.

Change-Id: I73b7834916b4f45017010c45e96ea2538e952443
2018-09-27 18:44:16 +00:00
TreeHugger Robot
18bec393e4 Merge "Address comments from API council" 2018-09-27 17:24:47 +00:00
TreeHugger Robot
02dd9e2556 Merge "Add pre and post callbacks to ActivityLifecycleCallbacks" 2018-09-27 16:09:00 +00:00
Lalit Maganti
c5a1a5e543 Merge "Revert "Revert "new System API for preferred network mode""" 2018-09-27 15:00:12 +00:00
Lalit Maganti
70534bf1be Revert "Revert "new System API for preferred network mode""
This reverts commit dada4c60d8.

Reason for revert: Breaking aosp-master builds.

Change-Id: Ie48b2125025878ce13953706a7eec24bce38594b
2018-09-27 14:57:06 +00:00
Makoto Onuki
8426a06516 Merge "Add API surface for "keep SMS app running"." 2018-09-27 14:30:41 +00:00
Lalit Maganti
4106e419b2 Merge "Revert "new System API for preferred network mode"" 2018-09-27 12:17:40 +00:00
Lalit Maganti
dada4c60d8 Revert "new System API for preferred network mode"
This reverts commit 8a8832fd81.

Reason for revert: Causing failures on git_pi-dev-plus-aosp for docs and aosp_sailfish.

Change-Id: I1801188e66420a67244b3223e26334c4650d56be
Merged-In: Ic108c484905f80783982a22e8152609257d684b5
2018-09-27 10:52:55 +00:00
Yohei Yukawa
9d73f2efa0 Deprecate InputMethodService#getInputMethodWindowRecommendedHeight()
InputMethodService#getInputMethodWindowRecommendedHeight() was added
with an assumption that some IMEs may want to call this API in
InputMethodService#onCreate() to adjust its IME window height to be
the same as the previous IME's window height [1], but in reality for
IME developers this API is quite difficult to use because relying on
this API means user-visible behavior is no longer deterministic.
Basically "Recommended" is too vague to rely on.

Let's deprecate this API before we end up having to define what is the
"recommended" height for more complicated scenarios such as
multi-displays and multi-profiles.

With this CL, IMS##getInputMethodWindowRecommendedHeight() always
returns 0.  Basically doing this would not likely to cause
compatibility issues because the possibility of returning 0 has been
clearly mentioned in the API document.  In practice this must have
returned 0 when the previous IME did not show the software keyboard
(e.g. AOSP keyboard with a hardware keyboard).  Therefore IMEs that
have correctly used this API should be able to fall back to a safe
default behavior even if this API returns 0.

 [1]: I0e920ee79c526c3aea6872b063cf294e2ab081c8
      658c7b896a

Fix: 116502957
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: Ia2cde031a0e67d45a3631e54226f9b5a0698dd61
2018-09-26 18:19:21 -07:00
Chen Xu
314dcd2874 Merge "new System API for preferred network mode" 2018-09-27 00:30:29 +00:00
Tyler Gunn
d43d0b0de1 Merge "Cleanup deprecated or removed telephony methods." am: c4833e862e am: 95981b0488
am: 546c7f8123

Change-Id: Ic10a4729ba3a9edc144241944fef549d0fb505b9
2018-09-26 15:29:39 -07:00
Chen Xu
c9049285ac Merge "expose getAidForApptype to system API" am: 7cdc0f00eb am: 5d3b3d8ac8
am: dd5a4d9917

Change-Id: Icd0064f57f8138cc9c5a15099f8fdc5f1b4b5b25
2018-09-26 14:58:55 -07:00