Commit Graph

20972 Commits

Author SHA1 Message Date
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
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
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
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
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
Shuo Qian
536c961460 Merge "Make SubscriptionManager.getSlotIndex public" 2018-09-20 20:24:01 +00:00
Victor Chang
14c4a6ecce Expose android.icu.text.Bidi API
- All API methods has coverage by existing CTS

Bug: 110093760
Test: m api-stubs-docs-update-current-api droid cts docs
Change-Id: Ifcd1b8c2d93393dd21c5c9a6a2f2a58c76854975
2018-09-20 17:47:46 +01:00
jiayuzhou
f9f565cee7 Add SHOW_SOURCE_NOTIFICATION to indicate that the interaction service
was invoked by a notification.

Bug: 112723657.
Test: build the AOSP without issue.

Change-Id: I9f372694b264bab97ef72eb22a39136d10a36090
2018-09-19 18:03:41 -07:00
Yuzhou Jia
35339498ef Merge "Make Changes to VoiceInteraction API for supporting System checking an assistant voice action availability on AAE." 2018-09-20 01:02:44 +00:00
Seigo Nonaka
16cd61459c Merge "Unhide getTextRunCursor APIs" 2018-09-19 20:18:32 +00:00
sqian
0e831f5781 Revision of CallRedirectionService API Review
- onBind should be final (I think also for onUnBind)
- Remove verbose logging
- Document redirectCall/placeCallUnmodified/cancelCall can only be
called from onPlaceCall

Bug: 112303670
Test: compile
Change-Id: I7d70a5ac3063a638d9383f69c99e4c1f822e8948
Merged-In: I7d70a5ac3063a638d9383f69c99e4c1f822e8948
(cherry picked from commit 4ec07dd68a)
2018-09-19 13:13:12 -07:00
TreeHugger Robot
9d96899455 Merge "Unhide getTextBounds for CharSequence" 2018-09-19 19:48:45 +00:00
Hall Liu
1eb5888091 Merge "Mark old APIs as @removed" am: 999be29822 am: bcc49768e2
am: 44cc3636d3

Change-Id: I05221a9ee2295c18954499e17b9154fc9d3ddad6
2018-09-19 12:13:27 -07:00
Hall Liu
999be29822 Merge "Mark old APIs as @removed" 2018-09-19 18:09:01 +00:00
jiayuzhou
21a353b701 Make Changes to VoiceInteraction API for supporting System checking
an assistant voice action availability on AAE.

Test: build and test on AAE.
Bug: 110587280

Change-Id: If37036e0dbe021fee9c95caf7e450330ca24ae32
2018-09-19 10:21:59 -07:00
Wei Huang
7f7f72e451 Propagates voice call radio technology to connection
This patch mainly takes below changes:
 1) Add new extra to indicates the call network technology.
 2) Provides basic function to set/get call radio technology.

Bug: 67856372
Test: Manual
Change-Id: I1a12382fdb589ce823fe7af025832db4cdc152c2
2018-09-19 18:51:52 +09:00
sqian
ccea7355fd Make SubscriptionManager.getSlotIndex public
- Make public
- Improved the documentation
- Rename subId to subscriptionId
- Make INVALID_SIM_SLOT_INDEX, SIM_NOT_INSERTED public

Test: Treehugger
Bug: 113072551
Change-Id: Idaf5ed3672be421568c3618cd94534c27f64f64c
2018-09-18 18:57:10 -07:00
Seigo Nonaka
fa95b83df7 Unhide getTextRunCursor APIs
This API is necessary for identifying the cursor locations.

Bug: 112327179
Test: atest android.graphics.cts.PaintTest
Change-Id: Ief6770bd622a296ae356094fe3ce58e9c4371088
2018-09-18 15:06:19 -07:00
TreeHugger Robot
5ad8521008 Merge "Deprecates WearableExtender methods not supported by Wear SysUI v3." 2018-09-18 21:40:30 +00:00
Seigo Nonaka
93890b2e2e Unhide getTextBounds for CharSequence
Bug: 112327179
Test: atest android.graphics.cts.PaintTest
Change-Id: I1d2c5c5710dbe15d0352735ce18d9bb9d6f4dbc7
2018-09-18 14:17:38 -07:00
Seigo Nonaka
32b87e01e0 Move hasEqualAttribute from Paint with adding some accessors
Paint#hasEqualAttributes is not a equal method in Paint.
TextLine depends on this method but making this public will make
developer confused. So, moving hasEqualAttributes to TextLine and
provide some accessors for shadow layer parameters.

For the TextPaint, unhide underlineColor and underlineThckness for
implementing equalAttributes in TextLine.

Bug: 112327179
Test: atest android.graphics.cts.PaintTest
Change-Id: I4565e18134856e31d26bd06bcddeb31ddbe7e093
2018-09-18 14:10:14 -07:00
Stanley Tng
ef31c4a72a Merge "Unhide the LE CoC APIs" am: 0677766615 am: ac723d7d62
am: af4189b8fa

Change-Id: I56f67e9e381c2ebe009405cf32bb78ed0ee50acd
2018-09-18 13:42:51 -07:00
Gus Prevas
d73637506d Deprecates WearableExtender methods not supported by Wear SysUI v3.
Test: doc/annotation changes only.
Bug: 116013034
Change-Id: Ida3f05d02c940bac42bbb01aece924524fd33d4b
2018-09-18 15:46:26 -04:00
Treehugger Robot
0677766615 Merge "Unhide the LE CoC APIs" 2018-09-18 18:31:26 +00:00
Philip P. Moltmann
08b171d0ff Merge "Allow mainline modules to set private window flags" 2018-09-18 16:46:13 +00:00