344375 Commits

Author SHA1 Message Date
Treehugger Robot
72fa61b325 Merge "Calls unlinkToDeath in binderDied to deregister" 2018-03-21 22:04:50 +00:00
Treehugger Robot
b2df57a42f Merge "Enable Belarusian and Latin languages in fontchain_lint tool." 2018-03-21 21:48:08 +00:00
Tyler Gunn
727097a400 Merge "Add Telecom debug setting for enabling enhanced call blocking." 2018-03-21 21:02:24 +00:00
Xin Li
fcf61630bf Enable Belarusian and Latin languages in fontchain_lint tool.
Bug: 68058172
Merged-In: I747cbb5ea3d36ca63335bfe6b337fad1e75ee79b
2018-03-21 20:20:57 +00:00
nharold
08ee27ff90 Merge "Add alpha Strings to CellIdentityTdscdma" 2018-03-21 20:06:59 +00:00
Treehugger Robot
21a9ebeb6c Merge "Revert "Logging: Bluetooth Enabled"" 2018-03-21 19:55:58 +00:00
nharold
baa4bf51c1 Merge "Add NonNull Annotations To IpSec API Surface" 2018-03-21 18:49:44 +00:00
Yueming Wang
46850eb3d2 Revert "Logging: Bluetooth Enabled"
This reverts commit f336d1e9cf8b48fe73ad8527365d5286d673ffba.

Reason for revert: Reverting this CL as it causes several build breakages in git_stage-aosp-master

Change-Id: I4a29f7313857a561452c01fb331accbf59c64a72
2018-03-21 18:20:34 +00:00
Nathan Harold
8fd26f67fd Add NonNull Annotations To IpSec API Surface
This CL adds NonNull annotations to a large
number of method returns and parameters as
part of API council feedback.

Bug: 72473424
Test: compilation (docstring-only change)
Change-Id: I2f865dde56fe12116c461ad98e9460bf1802ce18
2018-03-21 17:08:34 +00:00
Treehugger Robot
8173db40c3 Merge "Logging: Bluetooth Enabled" 2018-03-21 16:25:27 +00:00
nharold
94d8fa0da6 Merge "Check mOwnedByTransform to avoid DELSA on SPI" 2018-03-21 01:27:22 +00:00
Treehugger Robot
ccf1064825 Merge "Fingerprint navigation settings is a secure setting" 2018-03-21 00:31:58 +00:00
Treehugger Robot
e3ee136c89 Merge "Cherry-pick 'Add @Nullable annotations to getOperatorAlphaLong and getOperatorAlphaShort to CellIdentity.'" 2018-03-21 00:15:10 +00:00
Stanley Tng
699f42e246 Calls unlinkToDeath in binderDied to deregister
When a registered BLE App unexpectedly dies and the binderDied callback
is called, the unlinkToDeath is called to remove linkage. Also, refactor
code to use an existing function.

Test: Manual test by repeatedly killing the gms core process.
Bug: 74076974
Change-Id: If47a534ecafe7fceae14f8cf8526987cabd279cd
2018-03-20 16:54:27 -07:00
Nathan Harold
a7b147eb05 Add alpha Strings to CellIdentityTdscdma
Add equivalent alphaLong and alphaShort to
TD-SCDMA so that it's equivalent to LTE, WCDMA,
GSM, etc.

Bug: 75980473
Test: compilation
Merged-In: Ibaa8a7daafb44f7fc94f0fd6aaa193b67793eea4
Change-Id: Ibaa8a7daafb44f7fc94f0fd6aaa193b67793eea4
(cherry picked from commit 0acd7eeed49555f0a07283a6146bbe24c096cd87)
2018-03-20 16:46:28 -07:00
Kevin Chyn
ea68e9e63d Fingerprint navigation settings is a secure setting
Fixes: 76025501

Test: turning on/off the navigation setting actually turns on/off
      the ability to swipe the notification panel

Change-Id: I465fcebfc1e248bd37a609f404462ae8a45cf31b
Merged-In: I465fcebfc1e248bd37a609f404462ae8a45cf31b
Signed-Off-By: Siarhei Vishniakou <svv@google.com>
2018-03-20 16:01:31 -07:00
nharold
8e2b079f56 Merge "Expose add/removeAddress for IpSecInterfaces" 2018-03-20 22:53:39 +00:00
Cassie
f7bb40affb Cherry-pick 'Add @Nullable annotations to getOperatorAlphaLong and
getOperatorAlphaShort to CellIdentity.'

Bug: 75984192
Test: Unit test
Change-Id: I71feb20075559c7b28d4aa346a603f0d11ca69da
Merged-In: I71feb20075559c7b28d4aa346a603f0d11ca69da
2018-03-20 21:04:09 +00:00
Treehugger Robot
3dd075ad1c Merge "Remove Make side (system/test-)api-stubs droiddoc targets" 2018-03-20 20:04:47 +00:00
Nathan Harold
a83601a511 Expose add/removeAddress for IpSecInterfaces
When exposing the APIs, these were missed.
The outer structure is exposed, so this exposes
the addAddress and removeAddress methods.

Bug: 75234273
Test: compilation
Change-Id: I79911434f9baa660e4d8564cc59d80da4a710c42
2018-03-20 12:32:20 -07:00
Treehugger Robot
1a99d557e1 Merge "Remove BLE App entry from mBleApps list when App died" 2018-03-20 19:20:12 +00:00
Jeff Davidson
88826dceef Merge "Expose remaining READ_PHONE_STATE and SEND_SMS APIs to carrier apps." 2018-03-20 18:47:34 +00:00
Nan Zhang
54963cba91 Remove Make side (system/test-)api-stubs droiddoc targets
Remove old droiddoc targets for api-stubs, system-api-stubs, and test-api-stubs.

And also set api_tag_name, api_filename, private_api_filename, and etc.
properties in Android.bp for new droiddoc.
Test: manually compare if dependencies change after Soong based droiddoc runs.
Bug: b/70351683

Change-Id: I8d944c83de120ec8148276adc1c9872113d9d29b
Merged-In: I8d944c83de120ec8148276adc1c9872113d9d29b
2018-03-20 11:43:51 -07:00
Treehugger Robot
275749c0b2 Merge "Add support for auth-only transforms" 2018-03-20 18:36:04 +00:00
Nathan Harold
22795302be Check mOwnedByTransform to avoid DELSA on SPI
The owned by transform flag prevents the removal
of an SPI from accidentally deleting an associated
SA in the kernel. That flag wasn't actually being
checked, so deleting an SPI would result in the
transform being removed.

The existing code already guarantees that the SA is
deleted when the transform is deleted

Bug: 73258845
Test: runtest frameworks-net
Change-Id: I4c26aea7af817a5d9e54da5db1cdf4f943bcae06
2018-03-20 11:26:29 -07:00
Madiyar Aitbayev
fedc8278ea Merge "Close file descriptors of ProfilerInfo" 2018-03-20 18:14:42 +00:00
Stanley Tng
73a1651446 Remove BLE App entry from mBleApps list when App died
When a registered BLE App unexpectedly dies, its entry in mBleApps
list needs to be cleanup/removed.

Test: Manual test by repeatedly killing the gms core process.
Bug: 74076974
Change-Id: I2dc86b782dd6b07017a360a0b709504f0a375969
2018-03-20 10:39:55 -07:00
Madiyar Aitbayev
b436ce9cea Close file descriptors of ProfilerInfo
When using "am start --start-profiler" command, am doesn't close
instances of related ParcelFileDescriptor of the profiler file path,
but relies on garbage collection, so at the system level the file
kept open for longer than it is needed. In a result, some processes
that monitors the file close event using unix inotify_add_watch
method would wait 20~30 Seconds.

This change closes file descriptors after passing it to ActivityThread
process, which is similar to what "am profile start" does.

Bug: b/73891014
Test: tested manually by flashing into Pixel XL device.
Merged-In: I5b63b96335fdaf86f0cd0caec2c53c32c0e41d72
Change-Id: I5b63b96335fdaf86f0cd0caec2c53c32c0e41d72
2018-03-20 16:19:32 +00:00
Treehugger Robot
448003fc49 Merge "Frameworks: Fix Binder.joinThreadPool" 2018-03-20 15:06:15 +00:00
Andreas Gampe
bd12b4476b Frameworks: Fix Binder.joinThreadPool
Fix the lack of a native implementation.

(cherry picked from commit acd1987950d54afef1f69dad11840996c22cb8fe)

Bug: 75254055
Bug: 75291614
Test: atest BinderTest
Merged-In: Id5b15442a59851e566a24d406a7487f9de66d42f
Change-Id: Id5b15442a59851e566a24d406a7487f9de66d42f
2018-03-19 20:38:52 -07:00
Jeff Davidson
1ba1839bd8 Expose remaining READ_PHONE_STATE and SEND_SMS APIs to carrier apps.
Bug: 70177947
Bug: 70041899
Test: Flash / boot; TreeHugger; Unit/CTS tests in topic
Merged-In: I4061becb1d7ceaa58d84e4e3568c1b6e63cfc8d1
Change-Id: I4061becb1d7ceaa58d84e4e3568c1b6e63cfc8d1
2018-03-19 18:48:11 -07:00
Benedict Wong
2543fbd8a2 Merge "Added implementation for VTI add/remove address" 2018-03-19 22:05:09 +00:00
Treehugger Robot
fe78972bb2 Merge "Allow carrier-privileged apps to register telephony listeners." 2018-03-19 21:24:27 +00:00
Treehugger Robot
78a7b5d44a Merge "Add empty CdmaSmsSubaddress to CDMA PDU parsing" 2018-03-19 21:04:56 +00:00
Tyler Gunn
37ce669cf8 Add Telecom debug setting for enabling enhanced call blocking.
This feature is only available for certain carriers at the current time.
To facilitate test team productivity, adding a system setting which can
be accessed from the Telecom debug menu to enable this functionality.

Test: Manual
Bug: 28189985
Change-Id: I4c812cecd2832a722e5dc73b7c719a9e0594064d
2018-03-19 13:55:13 -07:00
Treehugger Robot
af3dc4fc70 Merge "Frameworks: Handle exceptions in SystemProperties callbacks" 2018-03-19 19:38:13 +00:00
Treehugger Robot
61265410e8 Merge "Add the AVRCP Target Service (2/2)" 2018-03-19 18:38:40 +00:00
Tyler Gunn
7c8a877231 Merge "Rename handover failure constant per API review comments." 2018-03-19 17:15:58 +00:00
Treehugger Robot
2446a10799 Merge "DndTile: Avoid yet another NPE during boot up phase" 2018-03-19 16:31:29 +00:00
Andreas Gampe
7074e6fd4c Frameworks: Handle exceptions in SystemProperties callbacks
When notifying callbacks, catch thrown exceptions.

Bug: 73058952
Test: m
Test: atest SystemPropertiesTest
Change-Id: I1c61e11b833e8ddd30d80b9859b20a9fb3185a33
2018-03-19 08:36:11 -07:00
Bruno Martins
c154e19357 DndTile: Avoid yet another NPE during boot up phase
* Tile state update can only take place once mController
   is properly initialized.

Change-Id: Ia6c1d6dee7d3e396a5bb6910e03859a0c0cc94ae
2018-03-17 14:03:57 +00:00
Benedict Wong
bf013a3820 Add support for auth-only transforms
Kernel limitations prevent auth-only SAs from being created. Explicitly
request a null encryption algorithm instead of omitting the algorithm
to comply with the kernel requirement for ESP.

Bug: 75049573
Test: CTS tests for auth-only, crypt-only transforms added for all
combinations of (UDP, TCP, IPv4, IPv6, UDP-encap) Also added unit
tests to ensure correct triggering of NULL_CRYPT usage.
Change-Id: Ia9a5cfee9c7786412846bc039f326420f6211c08
2018-03-16 17:36:59 -07:00
nharold
00ef20e853 Merge "Docstring Updates for applyTransportModeTransform" 2018-03-17 00:33:10 +00:00
Nathan Harold
f4cdf25a90 Docstring Updates for applyTransportModeTransform
-Add anotations to usages of PolicyDirection for
 apply...() methods.
-Update the comments on DIRECTION_IN and DIRECTION_OUT
 to better reflect their current usage.
-Add a better explanation to the rekey procedure doc.
-Remove disused createTunnelInterface() stub.

Bug: 73751066
Test: make docs
Change-Id: I9f2ec864466148a18899f1e952c74a525902ccbc
2018-03-16 17:29:45 -07:00
Jack Yu
5b7103ab97 Merge "Renamed getNetworkId and getSystemId" 2018-03-16 21:50:19 +00:00
Treehugger Robot
01cef932c8 Merge "NfcAdapter.EXTRA_SE_NAME -> NfcAdapter.EXTRA_SECURE_ELEMENT_NAME" 2018-03-16 20:12:04 +00:00
Tyler Gunn
5c60d71efb Rename handover failure constant per API review comments.
Expanding EMERG to EMERGENCY.

Test: Build code
Bug: 74831393
Change-Id: Ib7e6bea84e25b1e1a2ddb154c7ed62f1084a7596
2018-03-16 12:38:43 -07:00
Brad Ebinger
465fdc2b25 Merge "Define phone process as a constant" 2018-03-16 18:38:30 +00:00
Brad Ebinger
22018a8ce7 Add empty CdmaSmsSubaddress to CDMA PDU parsing
We were not providing an empty subaddress when
parsing CDMA PDU, which caused an NPE when receiving
CDMA IMS SMS.

Bug: 73994015
Test: Manual, MT/MO SMS
Change-Id: I07be3ac64341eb9235f6da1b6870ac746188f73a
2018-03-16 11:34:20 -07:00
Ajay Panicker
38c3073ba2 Add the AVRCP Target Service (2/2)
Add the AVRCP Target constant to Bluetooth Profile. Also remove redundant
public static final modifier on the constants.

Bug: 68854188
Test: Compiles and local test with service enabled
Change-Id: If2ec607fc704c225f8903d438fe970dfafac25f1
2018-03-16 18:22:00 +00:00