375210 Commits

Author SHA1 Message Date
Adam Vartanian
54148c0e57 Inline two short methods from Conscrypt
We're trying to reduce unnecessary direct dependencies on Conscrypt.
These two methods are simple and the implementations can't change, so
they're good candidates for inlining directly instead of depending on
the Conscrypt implementation.

Bug: 110404540
Test: atest NetworkSecurityConfigTests (same failures pre/post)
Change-Id: I303d955e3f49885326fe75f451c06a52af745053
2018-09-24 15:34:13 +01:00
Paul Duffin
f7190b65ab Merge "Add serialization methods to whitelist not light greylist" 2018-09-24 11:02:43 +00:00
vichang
0753bca090 Merge "Expose android.icu.text.Bidi API" 2018-09-24 09:56:32 +00:00
Treehugger Robot
41a6efb488 Merge "Enable excluded-input-devices settings for vendor" 2018-09-24 05:43:27 +00:00
Treehugger Robot
0af2cf259b Merge "Frameworks: Remove AsyncTask from preloaded-classes" 2018-09-22 00:29:38 +00:00
Pengquan Meng
2577e1cf8e Merge "Update network selection API" 2018-09-21 21:20:57 +00:00
Jeffrey Vander Stoep
f8529dc891 Merge "Add ConnectivityManager.getConnectionOwnerUid()" 2018-09-21 21:04:20 +00:00
Pengquan Meng
0cecdf70db Update network selection API
Change the manual network selection api in TelephonyManager to support
the OperatorInfo.

Bug: 115401728
Test: manual test
Merged-In: I43dee55ce117873b699cb98c6eb6d41f5dee24ea
Change-Id: I43dee55ce117873b699cb98c6eb6d41f5dee24ea
2018-09-21 10:08:14 -07:00
Andreas Gampe
3238164883 Frameworks: Remove AsyncTask from preloaded-classes
Bug: 113624968
Test: m
Change-Id: I77be78138f13fdc6d3a26aea3f59d01ef0e745e8
2018-09-21 10:05:43 -07: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
Paul Duffin
e9622a3d3a Add serialization methods to whitelist not light greylist
Checked the contents of the hiddenapi lists before and after the change
and the methods were definitely moved from light greylist to the
whitelist.

Flashed the device and checked the log and did not see anything out of
the ordinary.

Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
Change-Id: I9b4b2426251e99495f65ae02a3c2c32ce6966625
2018-09-21 11:05:06 +01:00
Takayuki Hoshi
194170e7f7 Merge "Allocate new native handle to store sidebandStream" 2018-09-21 06:24:21 +00: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
Treehugger Robot
be42bd86f7 Merge "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests" 2018-09-21 04:18:30 +00:00
Luke Huang
4a32bf4a83 Tether-related commands porting
Test: runtest frameworks-net passes
Test: manual testing of tether function works(tethering)
Change-Id: I9b812b2f17663b8cf8c20ea0d5866a4ee2c29a2c
2018-09-21 11:56:27 +08:00
Treehugger Robot
824f940195 Merge "Statsd atoms: restrict OEM fields 100000-199999" 2018-09-21 03:00:33 +00:00
Tadashi G. Takaoka
dee5a4dc2a DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests
Test: All presubmit and non-flaky tests pass
    129 com.android.server.am
    176 com.android.server.wm
     32 com.android.server.policy
    $ tradefed.sh run commandAndExit WmTests \
        --include-filter com.android.server.am. \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation android.support.test.filters.FlakyTest
    $ tradefed.sh run commandAndExit WmTests \
        --include-filter com.android.server.wm. \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation android.support.test.filters.FlakyTest
    $ tradefed.sh run commandAndExit WmTests \
        --include-filter com.android.server.policy. \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation android.support.test.filters.FlakyTest
Test: No AM/WM unit test in FrameworksServicesTests
    $ tradefed.sh run commandAndExit FrameworksServicesTests \
        --include-filter com.android.server.am.
    $ tradefed.sh run commandAndExit FrameworksServicesTests \
        --include-filter com.android.server.wm.
    $ tradefed.sh run commandAndExit FrameworksServicesTests \
        --include-filter com.android.server.policy.
Bug: 113800711

Change-Id: I01ab256aabf7e1f1b513fe3b92140f6936c2d649
2018-09-21 11:42:15 +09:00
Hall Liu
833a6276ed Merge "Add a new carrier config that supports no-reply timer of CFNRy" 2018-09-21 00:10:36 +00:00
Hall Liu
5405d09204 Merge "Propagates voice call radio technology to connection" 2018-09-20 22:16:50 +00: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
Treehugger Robot
9dc1900ea9 Merge "Revision of CallRedirectionService API Review" 2018-09-20 20:16:36 +00:00
Tianjie Xu
aff3248507 Merge "Remove the metrics report in recovery system" 2018-09-20 17:39:36 +00:00
Nathan Harold
493223bdf1 Remove getNeighboringCell API
Remove the obsolete getNeighboringCell API for callers
targeting Q or higher SDK. This API was fully
superceded by getAllCellInfo in KitKat, and
maintaining it results in battery drain because calls
to this API resulted in unrestricted modem calls.

For legacy support, this API now routes to the newer
CellInfo mechanism, which stems the battery drain but
further emphasizes the redundancy. Thus, removing this
is the best possible outcome for maintainers, users and
OEMs.

Bug: 62490173
Test: compilation; atest CtsPermissionTestCasesSdk28
Change-Id: I8aa806bfcad2ceefc9dfbff58c0ce48d5a3cab5b
2018-09-20 10:11:11 -07: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
manabu, shimoda
6ce3138811 Add a new carrier config that supports no-reply timer of CFNRy
Some carriers do not support no-reply timer of CFNRy.
So, if it is configured by carrier config, request CFNRy without
no-reply timer when a user sets CFNRy in settings UI.

Test: manual - Check that CFNRy is requested without no-reply timer
if it configured.
Bug: 110121791

Change-Id: If80cdd3c5eaa7b2b59cab9640d560f0b29b5eb5a
2018-09-20 21:29:06 +09:00
Chalard Jean
d106aac67b Merge "Fix NullPointerException in CaptivePortalLogin" 2018-09-20 09:45:56 +00:00
nobuhiko saitou
436b7b5634 Add OEM_SOUNDS_DIR variable
Add OEM_SOUNDS_DIR variable
And add judgment of OEM_SOUNDS_DIR in isSystemSoundWithMetadata.

Test: build and check sound like ringtone etc
Bug: 79123178

Change-Id: Ib432910c7a99695e73c88480b7028be1c9d04702
2018-09-20 16:05:54 +09:00
nobuhiko saitou
c39d08dd9c Fix the bug that secondary storage path is judged as internal
modifications to get right content uri.

Test: build

Change-Id: Ib441159387e512b85da6ffd47560efba8f20424e
2018-09-20 16:05:47 +09:00
Toshikazu Saito
fa733a62a9 Revert "MediaStore.Audio.Media.getContentUriForPath() returns unexpected content"
This reverts commit 66eb5899574cda2aae905248a58a2bd675247109.
This is reverted because SECONDARY_STORAGE is no longer used.

Test: build since this just removes unused part.
Bug: 79123178

Change-Id: I1748e8e1ac49bf5709908d85e3c0d26b43608500
2018-09-20 15:02:43 +09:00
Leon Liao
3b5e6bd4e1 Rename method isConnectable()
LocalBluetoothProfile.isConnectable() checks whether the user can initiate a connection
for a specific profile, not really whether the profile is connectable.

Change-Id: If6c6cd1554acf35db2460ea6ddb65148a7e86e45
Bug: 79982487
Test: build
2018-09-20 09:21:26 +08:00
Treehugger Robot
7bd18423f6 Merge "Set InputMethoMananger#mCurRootView to null when window dismissed" 2018-09-20 00:35:25 +00:00
daqi
dff365ef4d Set InputMethoMananger#mCurRootView to null when window dismissed
InputMethodManager#sInstance is a long live static object so we have to
set its field with right value, otherwise any object referenced by it
cannot be gc including potential activity context.

Now InputMethodManager#mCurRootView is set to null in
InputMethodManager#onPreWindowFocus which is invoked when app's
ViewRootImpl received ViewRootImpl#W#windowfocusChanged from WMS.
However, in the ViewRootImpl#W#windowfocusChanged, mViewAncestor is a
weak reference which get() may returns null sometimes.
One scenario is the ViewRootImpl#W#windowfocusChanged is called after
ActivityThread#handleDestroyActivity. The activity is destroyed and its
ViewRootImpl get GC'd. Then InputMethodManager#onPreWindowFocus won't
get called and InputMethodManager#mCurRootView won't be set to null.

And it is a proper time to set InputMethodManager#mCurRootView to null
when the window it served dismissed.

Fix: 116078227
Test: Break at ActivityThread#handleDestroyActivity and ViewRootImpl#W#windowfocusChanged

Change-Id: I8fabb30f14bcb2cd7019e29b6642b4562d49d248
Signed-off-by: daqi <daqi@xiaomi.com>
2018-09-20 08:30:40 +08:00
Treehugger Robot
903dad812e Merge "Don't run comparisons on non-jank frames" 2018-09-19 23:28:55 +00:00
Treehugger Robot
85aadab7e4 Merge "Added mapping files for DualShock3 and DualShock4" 2018-09-19 22:31:44 +00:00
Benedict Wong
69c973b33f Merge "Re-enable checks for MANAGE_IPSEC_TUNNELS" 2018-09-19 21:46:05 +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 4ec07dd68a84782e34858c16735732725d443f71)
2018-09-19 13:13:12 -07:00
Hall Liu
999be29822 Merge "Mark old APIs as @removed" 2018-09-19 18:09:01 +00:00
Nan Zhang
7cba8a7fe4 Merge "Enable api-versions.xml generation for api-stubs" 2018-09-19 14:34:04 +00: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
David Brazdil
e860c63891 Merge "Add entry to hidden API greylist" 2018-09-19 07:23:36 +00:00
Hisanobu, Watanabe
67c1d26a07 Fix NullPointerException in CaptivePortalLogin
[Problem]
After reboot, the CaptivePortalLogin crashes when start the
CaptivePortalLogin from Recents Screen.

[Root Cause]
Although Network class is null, Network#getPrivateDnsBypassingCopy is
called at CaptivePortalLoginActivity

[Solution]
To check if NetworkCapabilities is null before
Network#getPrivateDnsBypassingCopy

Bug: 113303484
Test: built, boot and manual

Change-Id: Icff8446fefa9700dcbcd1f8f1e4edeaf4b0d3557
2018-09-19 15:15:29 +09:00
David Brazdil
7394fbf22a Add entry to hidden API greylist
Bug: 114488777
Test: m appcompat
Change-Id: I8207503ab2904eb61e0f49e1fa317602d9fa145d
2018-09-19 05:34:44 +00:00
Treehugger Robot
7cfbdcc481 Merge "Simplify logic for connect in PbapClientProfile" 2018-09-19 04:24:19 +00:00
Treehugger Robot
ba0b212a33 Merge "Update boot image profile to include Object.wait()" 2018-09-19 03:10:37 +00:00
Treehugger Robot
61d0ec49ef Merge "Enable jdiff for api-stubs-docs" 2018-09-19 03:02:19 +00:00
Treehugger Robot
b545c70d1d Merge "Simplify logic for getConnectionStatus in HidDeviceProfile" 2018-09-19 02:08:33 +00:00
Treehugger Robot
0ac2a840a0 Merge "Simplify logic for connect in MapClientProfile" 2018-09-19 02:08:05 +00:00
Nan Zhang
4079654c0a Enable api-versions.xml generation for api-stubs
Test: m -j
out/target/common/obj/PACKAGING/api-stubs-docs_generated-api-versions.xml
Bug: b/78245848

Change-Id: I2800f49e264473f5ec78e074cfd844c72342522f
Merged-In: I2800f49e264473f5ec78e074cfd844c72342522f
2018-09-19 01:56:48 +00:00
Kweku Adams
4d4a23306a Handling potential SIGPIPE signals.
There are cases where dumping Java traces times out and then later tries
to write to a closed pipe, causing incidentd to crash. This introduces a
handler for the SIGPIPE signal so it doesn't crash due to a closed pipe.

Bug: 111729299
Test: lower section timeout to 5 seconds and make sure incident service
doesn't crash

Change-Id: I868aba1ae21a50ae76977e0e09e782cf94198473
(cherry picked from commit 5b763c13472effa7df25cc53a44d5bdae9392410)
2018-09-18 18:55:19 -07:00
Treehugger Robot
48b50991ec Merge changes from topic "ota_dexopt_no_ampersand"
* changes:
  OTA Dexopt: Use protocol version 10
  OTA Dexopt: Remove old '&' path
2018-09-18 23:03:47 +00:00