Commit Graph

374837 Commits

Author SHA1 Message Date
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
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
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
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
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
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 4ec07dd68a)
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
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
Andreas Gampe
5afc95c2c4 Update boot image profile to include Object.wait()
Bug: 116028959
Test: m
Test: inspect oatdump
Change-Id: I5aefa4e334d61cd24f110a35a0084d563a8aca63
2018-09-18 14:21:11 -07:00
Youming Ye
b9c0115518 Merge "Allow config of wfcSpnFormats to use root locale" 2018-09-18 21:07:01 +00:00
Treehugger Robot
f681744863 Merge "Add function to encode PLMNs" 2018-09-18 18:58:03 +00:00
Treehugger Robot
0677766615 Merge "Unhide the LE CoC APIs" 2018-09-18 18:31:26 +00:00
Bookatz
76aafcfbea Statsd atoms: restrict OEM fields 100000-199999
The current wording seems to suggest allocating an infinite number of
fields, which is not future-proof.

Bug: 72866543
Test: N/A
Change-Id: I88732ea8695521a39f20524348547cfe50cbf776
2018-09-18 10:40:43 -07:00
Andreas Gampe
e164b18c20 OTA Dexopt: Use protocol version 10
In version 10, we no longer assume '&' for shared libraries of system
packages, instead expecting the package manager state to be precise
and correct.

Bug: 115993344
Test: m
Test: OTA tests
Test: manual OTA
Change-Id: I0d7942db14b247a83a506e5d45b44ff3a65ad90e
2018-09-18 10:37:59 -07:00
Treehugger Robot
542d032f03 Merge "Rename the ojluni-annotated-stubs target." 2018-09-18 16:27:21 +00:00
Treehugger Robot
d107ee51d2 Merge "Add dummy WmTests" 2018-09-18 15:21:17 +00:00
Treehugger Robot
5c06c1c061 Merge "Separate servicestests/utils" 2018-09-18 15:20:50 +00:00
Andreas Gampe
c260c96b5c OTA Dexopt: Remove old '&' path
Expect that package state is up-to-date, so that shared system
apps are correctly recognized by themselves.

Bug: 115853663
Test: m
Test: OTA tests
Test: manual A/B OTA
Change-Id: Ia223bd48c4c5849b441bd4c5f0a87768aee5582d
2018-09-18 07:48:28 -07:00
Treehugger Robot
6527b5bdd0 Merge "Whitelist com.android.proxyhandler for power" 2018-09-18 13:31:58 +00:00
Tadashi G. Takaoka
56c9a74101 Add dummy WmTests
Test: atest WmTests
Bug: 113800711
Merged-In: I1e29cc9116adf2d08c00d035ecad48e4ef604106
Change-Id: Ifcbd8cf4545ec80058dc25ef15f5af81a9780cc3
(cherry picked from commit bc7bc12fee)
2018-09-18 14:21:10 +09:00
Tadashi G. Takaoka
3f9e0282cb Separate servicestests/utils
The test utility classes under com.android.server.testutils are moved
to servicestests/utils directory in order to easily be shared between
FrameworksServiceTests and upcomming WmTests.

Test: tradefed.sh run commandAndExit FrameworksServicesTests \
    --include-annotation android.platform.test.annotations.Presubmit \
    --exclude-annotation androidx.test.filters.FlakyTest
Bug: 113800711
Merged-In: I39c623a286df1067fffadc25c8a49c12cc05c82c
Change-Id: I71cd7b417641b5e969bef6f3076020bfc1dfffa7
(cherry picked from commit 77439ba9b3)
2018-09-18 14:20:50 +09:00
David Brazdil
4f5f8f4192 Merge changes I66bbe8b5,Ie54677db
* changes:
  Add api to hidden API light grey
  Add new entries to hidden API light grey
2018-09-18 04:02:34 +00:00