Commit Graph

20993 Commits

Author SHA1 Message Date
Haoyu Zhang
88f0f6c9b1 Merge "Synchronize attributes in TextView with TextAppearanceSpan" 2018-09-27 19:15:31 +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
Makoto Onuki
8426a06516 Merge "Add API surface for "keep SMS app running"." 2018-09-27 14:30:41 +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
Tyler Gunn
c4833e862e Merge "Cleanup deprecated or removed telephony methods." 2018-09-26 21:55:36 +00:00
Chen Xu
7cdc0f00eb Merge "expose getAidForApptype to system API" 2018-09-26 21:03:26 +00:00
Chen Xu
3a748b1bc2 Merge "new System API for preferred network mode" 2018-09-26 21:02:05 +00:00
Shuo Qian
be7250ce35 Merge "Make SubscriptionManager.isActiveSubId public" am: fafc51a088 am: a4107d39ad
am: 0e4e2ef977

Change-Id: I0be229aa047817b13978f118fbf0d3e415b150f8
2018-09-26 12:21:10 -07:00
Makoto Onuki
df7e481b20 Add API surface for "keep SMS app running".
Bug: 109809543
Test: build & boot
Change-Id: Ie9ebf1f34052394a92c3f260413c18596709d3a3
2018-09-26 11:51:06 -07:00
Shuo Qian
fafc51a088 Merge "Make SubscriptionManager.isActiveSubId public" 2018-09-26 18:19:52 +00:00
Seigo Nonaka
aaa85d6818 Address comments from API council
This CL includes:
- Fix typo
- Make SystemFonts final
- Storing readonly buffer in Font

Bug: 116224077
Bug: 116224515
Test: m update-api && m docs
Change-Id: Ib7442bac6d2d8efea4deff1fd309940794c20a88
2018-09-26 11:11:27 -07:00
TreeHugger Robot
31fbd327de Merge "WebView: deprecate accidentally-exposed constructors" 2018-09-26 17:41:25 +00:00
chen xu
d9ae503af2 new System API for preferred network mode
1. new System API for getPreferredNetworkType
2. new System API for preferred network mode

Bug: 115894190
Test: unit test
Change-Id: Ic108c484905f80783982a22e8152609257d684b5
2018-09-25 23:55:39 -07:00
Nate Fischer
1e13fae31c WebView: deprecate accidentally-exposed constructors
This deprecates public-exposed constructors. These constructors were
exposed by accident. These classes shouldn't be instantiated by
applications, but should only be instantiated by WebView.

In some cases, the app should get a singleton instance using
a #getInstance method. In these cases, we document this explicitly in
the deprecation note.

Bug: 110807530
Test: make docs, manually verify docs look good.
Change-Id: Ibe73b3399c9ced0cf4fbb01e1df13564476df252
2018-09-25 19:13:57 -07:00
Kikkawa Shohei
15fa5d1660 Show "Call Blocking disabled" notification always when emergency call am: 638d11e0bb
am: db6110d9a9

Change-Id: I0203a7fabe0ec0cc39645d0aaae526a913a69854
2018-09-25 16:21:00 -07:00
Chen Xu
78abf0dffa Merge "expose getIsimDomain to systemAPI" am: 56d40d3c78 am: 2b38567586
am: 42c4682c15

Change-Id: I2c0427aec41b818f9bbccb6bf95920a644ae53d4
2018-09-25 16:04:26 -07:00
Kikkawa Shohei
db6110d9a9 Show "Call Blocking disabled" notification always when emergency call
am: 638d11e0bb

Change-Id: I58e99f80e661183aa831c8157f33b8ba6e656278
2018-09-25 16:03:52 -07:00
TreeHugger Robot
e224120377 Merge "Add PermissionManager exposing SPLIT_PERMISSIONS" 2018-09-25 22:53:51 +00:00
Youming Ye
6fa8bcb841 Merge "Show "Call Blocking disabled" notification always when emergency call" 2018-09-25 22:29:39 +00:00
Chen Xu
56d40d3c78 Merge "expose getIsimDomain to systemAPI" 2018-09-25 22:14:34 +00:00
Hall Liu
abdaf5b51f Merge "Add the EMBMS group call API" am: 52a8fdb7bd am: 6c6c859c6a
am: 210a4862f6

Change-Id: I3e7f4f0feb7b675a5870b9367fe788f58246d6fa
2018-09-25 15:02:39 -07:00
Ian Lake
b1294597c6 Add pre and post callbacks to ActivityLifecycleCallbacks
For each lifecycle event exposed in
ActivityLifecycleCallbacks, an additional pair of
methods have been added to give developers a reliable
callback before and after each lifecycle event.

The existing callbacks cannot be used for this as they
are called as part of the super implementation and
therefore can run at any point in relation to the
other code in the Activity.

Test: manual
BUG: 116118635
Change-Id: If91f3f3248f9d7cf14aac2fe24ce14d92b8d05d3
2018-09-25 14:07:26 -07:00
fionaxu
56dd7acda2 expose getAidForApptype to system API
Bug: 115891723
Test: telephony unit test
Change-Id: Ica1d6facba229781806c2c205406c658ac5ad838
2018-09-25 14:05:40 -07:00
Philip P. Moltmann
039678e13f Add PermissionManager exposing SPLIT_PERMISSIONS
The Permission Controller app (a mainline module) needs to be able to
read the SPLIT_PERMISSIONS. Hence this array needs to be exposed at
least as system-api. We need to make sure that the PackageParser,
PackageManager and Permission Controller app agree on which permissions
are split, hence it is best to define them at a single location.

I think exposing the split permissions to developers is useless and
potentially confusing. The app should never request a permission that
was split. The app should just behave as if split permissions do not
exist. The Permission Controller / Package Manager deal with the
split permissions and add them when needed. Hence I don't think we
should expose this data to 3rd parties.

Bug: 110953302
Test: requested permissions
Change-Id: I6951c52979c89ee5c13a4a14da125e1a01f2e234
2018-09-25 13:48:11 -07:00
Hall Liu
52a8fdb7bd Merge "Add the EMBMS group call API" 2018-09-25 20:38:23 +00:00
Seigo Nonaka
47e79a1626 Merge "Move hasEqualAttribute from Paint with adding some accessors" 2018-09-25 18:34:26 +00:00
Mihai Popa
8b3002e769 Merge "[Magnifier-62] Deprecate constructor" 2018-09-25 16:05:17 +00:00
Mihai Popa
b6ca909ed7 [Magnifier-62] Deprecate constructor
The CL deprecates the old constructor for Magnifier instances in favor
of the usage of builder Magnifier#Builder.

Bug: 116116502
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I3daa9f066c77144e9d5c62bc666ecd37041f4bbb
2018-09-25 11:35:52 +01:00
Kikkawa Shohei
638d11e0bb Show "Call Blocking disabled" notification always when emergency call
Currently "Call Blocking disabled" notification is shown only when any
setting of "Enhanced Blocked number" is enabled, and it's not shown even
if only "blocked number" is enabled.

This patch adds new CarrierConfig key to show "Call Blocking disabled"
notification always when "Enhanced Blocked number" is enabled and
making emergency call.

Test: manual - Verified behavior about Block numbers settings
Test: auto - Passed BlockedNumberProviderTest
Bug: 115697577
Change-Id: I2281c21992928037ea38227b7476adc76b6755e8
2018-09-25 14:18:55 +09:00
Yuzhou Jia
5d41bd2973 Merge "Add SHOW_SOURCE_NOTIFICATION to indicate that the interaction service was invoked by a notification." 2018-09-25 03:30:04 +00:00
Hall Liu
a7b0c1f054 Add the EMBMS group call API
Add APIs for apps to access a LTE broadcast group call service provided
by a preinstalled middleware app, and add system APIs for the
preinstalled middleware app to communicate with frontend apps.

Bug: 112731375
Test: CTS
Change-Id: Ie6817cbc6c3b69de7a4d66c4cfc103b02e15ad6b
2018-09-24 17:26:25 -07:00
Tyler Gunn
56479b1b9a Merge "Add support for network identified emergency calls." am: 108349f8d6 am: 6d400c7352
am: 2c52f8f90d

Change-Id: I518c7c1165d008485f0040b005a6055f2fe2126c
2018-09-24 16:39:41 -07:00
Tyler Gunn
108349f8d6 Merge "Add support for network identified emergency calls." 2018-09-24 22:50:50 +00:00
sqian
ec149463cc Make SubscriptionManager.isActiveSubId public
Rename subId to subscriptionId

Bug: 113072551
Test: Treehugger
Change-Id: I6f7e0d06a2ad2367dad04723fea808cad8f9597a
2018-09-24 12:30:10 -07:00
Tyler Gunn
98b1ba015f Cleanup deprecated or removed telephony methods.
Mark previously deprecated TelephonyManager APIs as @remove; some of these
have valid public APIs; for now just calling the public APIs to give more
time for API consumers to transition over to the new methods.

Remove ITelephony AIDL calls for removed methods.

Removed ITelephony light greylist for removed methods; see bug for details.
There are public alternatives for most of the remove AIDL methods; a couple
of the subscription specific ones are not available directly but the
non-subscription specific versions should suffice.

Test: Compile/build/manual
Bug: 115776310
Change-Id: Iff4bf99b34b8e14d5a4dc1d2f4e4926880b6434c
2018-09-24 18:02:44 +00:00
vichang
8956b44379 Merge "Expose android.icu.text.Bidi API" am: 0753bca090 am: 77841856d2
am: e5fc60a8f4

Change-Id: Ia704911a41b0116d817c6121f89c0e35670c2ee1
2018-09-24 03:41:31 -07:00
vichang
0753bca090 Merge "Expose android.icu.text.Bidi API" 2018-09-24 09:56:32 +00:00
Kevin Chyn
de92184b8c Merge changes from topic "biometric-manager"
* changes:
  3/n: Add BiometricManager, hasEnrolledBiometrics()
  2/n: Rename BiometricPromptService to BiometricService
  1/n: Rename BiometricService to BiometricServiceBase
2018-09-22 02:08:40 +00:00
Hui Yu
c35db561b8 Merge "Add RawContacts insert/update/delete notification URIs." 2018-09-22 01:16:49 +00:00
Kevin Chyn
05c21508fd 3/n: Add BiometricManager, hasEnrolledBiometrics()
Fixes: 112570477

Test: BiometricPromptDemo works
Test: Able to get/use BiometricManager
Test: Tested with enrolled and non-enrolled biometrics

Change-Id: I26231894eccc87c42b5b3007aa0b7c6f09830452
2018-09-21 17:08:49 -07:00
Jeffrey Vander Stoep
60871d841d Merge "Add ConnectivityManager.getConnectionOwnerUid()" am: f8529dc891 am: 6729107f22
am: 904252f7a3

Change-Id: I8b8f6e74abc47f94231f3b9a1ab0db1ad0903a10
2018-09-21 15:36:28 -07:00
Hall Liu
b50d26844d Merge "Propagates voice call radio technology to connection" am: 5405d09204 am: 8a456bad23
am: 7286d12eeb

Change-Id: Iaad156be361cbcc6da826404556238097b1d6094
2018-09-21 14:35:36 -07:00
Jeffrey Vander Stoep
f8529dc891 Merge "Add ConnectivityManager.getConnectionOwnerUid()" 2018-09-21 21:04:20 +00:00
Tyler Gunn
5bd90853a5 Add support for network identified emergency calls.
Add support for the IMS call profile to indicate that a call is an
emergency call.
Add supporting connection and call properties so that this can be
propagated to Telecom and ultimately the Dialer app.
Add System API to determine if the device is in a network IDed or dialed
emergency call (used in Telephony).

Test: Manual test using test intents and ecclist property.
Test: Added new telecom unit tests.
Bug: 77565333
Change-Id: I769e7b5000b10662c08fe53c91ef99edc685d2b1
2018-09-21 09:37:07 -07:00
Jeff Vander Stoep
0ac2c0945b Add ConnectivityManager.getConnectionOwnerUid()
Allow VPN apps to lookup the UID owner of a network connection.

Requires specifying the:
 - IP address and port for both the source and destination of a TCP
   connection.
 - IP address and port for either source and destination or just
   source for a UDP connection.
Only TCP and UDP protocols are supported. Only connections for UIDs
that apply to the calling VPN app will be resolved. This is intended
to replace direct app access to /proc/net/{tcp,tcp6,udp,udp6}.

The implementation uses netlink inet_diag sockets[1] to perform
the lookup on TCP sockets as well as UDP sockets when supported
(kernel has CONFIG_INET_UDP_DIAG=y).

[1] http://man7.org/linux/man-pages/man7/sock_diag.7.html

Bug: 9496886
Bug: 109758967
Test: atest HostsideVpnTests
Test: atest InetDiagSocketTest on Taimen with CONFIG_INET_UDP_DIAG
    and on Sailfish without CONFIG_INET_UDP_DIAG.
Change-Id: I2bbc7072dd091e2e653dadf6dc05024c04180f34
2018-09-21 06:16:09 +00:00
Hall Liu
5405d09204 Merge "Propagates voice call radio technology to connection" 2018-09-20 22:16:50 +00:00
Hui Yu
ff88b14e62 Add RawContacts insert/update/delete notification URIs.
Change-Id: I985377b23c1f54f3b691b4ca9094cd55a056201d
Fix: 113696451
Test: atest ContactsContract_RawContactsTest.java
2018-09-20 15:16:14 -07:00
fionaxu
873dccbd6a expose getIsimDomain to systemAPI
This is required for carrier apps to get Imsi domain name as part of
request URI.

Bug: 115884625
Test: telephony unit test
Change-Id: Iad405dc2b2f182039a828e4a4709d273579a8273
2018-09-20 14:33:55 -07:00