OSDN Git Service

android-x86/frameworks-base.git
5 years agoRefine frameworks/base/services/tests/runtest.py
Howard Chen [Fri, 28 Sep 2018 07:15:22 +0000 (15:15 +0800)]
Refine frameworks/base/services/tests/runtest.py

Fix the test runner class and the default whitelist to run.
Also add a short description about the usage.

Test: ./frameworks/base/services/tests/runtest.py with a Pixel.
Change-Id: I1a6eda83ab7b03ea11346e66ba758aa990df13c7

5 years agoMerge "Add comments for offline-sdk-referenceonly docs"
Nan Zhang [Tue, 25 Sep 2018 03:03:52 +0000 (03:03 +0000)]
Merge "Add comments for offline-sdk-referenceonly docs"

5 years agoMerge "Add support for network identified emergency calls."
Tyler Gunn [Mon, 24 Sep 2018 22:50:50 +0000 (22:50 +0000)]
Merge "Add support for network identified emergency calls."

5 years agoAdd comments for offline-sdk-referenceonly docs
Nan Zhang [Sat, 22 Sep 2018 00:16:49 +0000 (17:16 -0700)]
Add comments for offline-sdk-referenceonly docs

Add comment to provide some cautions in case of we make some changes on
the doc target names in the future.

Test: N/A
Bug: b/116221385
Change-Id: Ibb21ca51c1eed990fe5dfceb6a8170821e70f8cf

5 years agoMerge "Fix clang-tidy performance warnings in frameworks/base."
Treehugger Robot [Mon, 24 Sep 2018 18:34:42 +0000 (18:34 +0000)]
Merge "Fix clang-tidy performance warnings in frameworks/base."

5 years agoFix clang-tidy performance warnings in frameworks/base.
Chih-Hung Hsieh [Mon, 17 Sep 2018 22:12:02 +0000 (15:12 -0700)]
Fix clang-tidy performance warnings in frameworks/base.

* Use more efficient overloaded string methods.

Bug: 30411878
Test: build with WITH_TIDY=1
Change-Id: Ia387e61770e1e7211280ed028ef0eef6e632a1d2

5 years agoMerge "Add serialization methods to whitelist not light greylist"
Paul Duffin [Mon, 24 Sep 2018 11:02:43 +0000 (11:02 +0000)]
Merge "Add serialization methods to whitelist not light greylist"

5 years agoMerge "Expose android.icu.text.Bidi API"
vichang [Mon, 24 Sep 2018 09:56:32 +0000 (09:56 +0000)]
Merge "Expose android.icu.text.Bidi API"

5 years agoMerge "Enable excluded-input-devices settings for vendor"
Treehugger Robot [Mon, 24 Sep 2018 05:43:27 +0000 (05:43 +0000)]
Merge "Enable excluded-input-devices settings for vendor"

5 years agoMerge "Frameworks: Remove AsyncTask from preloaded-classes"
Treehugger Robot [Sat, 22 Sep 2018 00:29:38 +0000 (00:29 +0000)]
Merge "Frameworks: Remove AsyncTask from preloaded-classes"

5 years agoMerge "Update network selection API"
Pengquan Meng [Fri, 21 Sep 2018 21:20:57 +0000 (21:20 +0000)]
Merge "Update network selection API"

5 years agoMerge "Add ConnectivityManager.getConnectionOwnerUid()"
Jeffrey Vander Stoep [Fri, 21 Sep 2018 21:04:20 +0000 (21:04 +0000)]
Merge "Add ConnectivityManager.getConnectionOwnerUid()"

5 years agoUpdate network selection API
Pengquan Meng [Thu, 20 Sep 2018 20:47:43 +0000 (13:47 -0700)]
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

5 years agoFrameworks: Remove AsyncTask from preloaded-classes
Andreas Gampe [Fri, 21 Sep 2018 17:05:43 +0000 (10:05 -0700)]
Frameworks: Remove AsyncTask from preloaded-classes

Bug: 113624968
Test: m
Change-Id: I77be78138f13fdc6d3a26aea3f59d01ef0e745e8

5 years agoAdd support for network identified emergency calls.
Tyler Gunn [Fri, 21 Sep 2018 16:37:07 +0000 (09:37 -0700)]
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

5 years agoAdd serialization methods to whitelist not light greylist
Paul Duffin [Thu, 20 Sep 2018 10:03:40 +0000 (11:03 +0100)]
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

5 years agoMerge "Allocate new native handle to store sidebandStream"
Takayuki Hoshi [Fri, 21 Sep 2018 06:24:21 +0000 (06:24 +0000)]
Merge "Allocate new native handle to store sidebandStream"

5 years agoAdd ConnectivityManager.getConnectionOwnerUid()
Jeff Vander Stoep [Mon, 23 Jul 2018 17:57:53 +0000 (10:57 -0700)]
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

5 years agoMerge "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests"
Treehugger Robot [Fri, 21 Sep 2018 04:18:30 +0000 (04:18 +0000)]
Merge "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests"

5 years agoMerge "Statsd atoms: restrict OEM fields 100000-199999"
Treehugger Robot [Fri, 21 Sep 2018 03:00:33 +0000 (03:00 +0000)]
Merge "Statsd atoms: restrict OEM fields 100000-199999"

5 years agoDO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests
Tadashi G. Takaoka [Wed, 19 Sep 2018 02:59:40 +0000 (11:59 +0900)]
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

5 years agoMerge "Add a new carrier config that supports no-reply timer of CFNRy"
Hall Liu [Fri, 21 Sep 2018 00:10:36 +0000 (00:10 +0000)]
Merge "Add a new carrier config that supports no-reply timer of CFNRy"

5 years agoMerge "Propagates voice call radio technology to connection"
Hall Liu [Thu, 20 Sep 2018 22:16:50 +0000 (22:16 +0000)]
Merge "Propagates voice call radio technology to connection"

5 years agoMerge "Revision of CallRedirectionService API Review"
Treehugger Robot [Thu, 20 Sep 2018 20:16:36 +0000 (20:16 +0000)]
Merge "Revision of CallRedirectionService API Review"

5 years agoMerge "Remove the metrics report in recovery system"
Tianjie Xu [Thu, 20 Sep 2018 17:39:36 +0000 (17:39 +0000)]
Merge "Remove the metrics report in recovery system"

5 years agoExpose android.icu.text.Bidi API
Victor Chang [Fri, 7 Sep 2018 15:26:05 +0000 (16:26 +0100)]
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

5 years agoAdd a new carrier config that supports no-reply timer of CFNRy
manabu, shimoda [Mon, 25 Dec 2017 09:38:47 +0000 (18:38 +0900)]
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

5 years agoMerge "Fix NullPointerException in CaptivePortalLogin"
Chalard Jean [Thu, 20 Sep 2018 09:45:56 +0000 (09:45 +0000)]
Merge "Fix NullPointerException in CaptivePortalLogin"

5 years agoMerge "Set InputMethoMananger#mCurRootView to null when window dismissed"
Treehugger Robot [Thu, 20 Sep 2018 00:35:25 +0000 (00:35 +0000)]
Merge "Set InputMethoMananger#mCurRootView to null when window dismissed"

5 years agoSet InputMethoMananger#mCurRootView to null when window dismissed
daqi [Wed, 19 Sep 2018 07:51:22 +0000 (15:51 +0800)]
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>
5 years agoMerge "Don't run comparisons on non-jank frames"
Treehugger Robot [Wed, 19 Sep 2018 23:28:55 +0000 (23:28 +0000)]
Merge "Don't run comparisons on non-jank frames"

5 years agoMerge "Added mapping files for DualShock3 and DualShock4"
Treehugger Robot [Wed, 19 Sep 2018 22:31:44 +0000 (22:31 +0000)]
Merge "Added mapping files for DualShock3 and DualShock4"

5 years agoMerge "Re-enable checks for MANAGE_IPSEC_TUNNELS"
Benedict Wong [Wed, 19 Sep 2018 21:46:05 +0000 (21:46 +0000)]
Merge "Re-enable checks for MANAGE_IPSEC_TUNNELS"

5 years agoRevision of CallRedirectionService API Review
sqian [Thu, 9 Aug 2018 21:34:27 +0000 (14:34 -0700)]
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)

5 years agoMerge "Mark old APIs as @removed"
Hall Liu [Wed, 19 Sep 2018 18:09:01 +0000 (18:09 +0000)]
Merge "Mark old APIs as @removed"

5 years agoMerge "Enable api-versions.xml generation for api-stubs"
Nan Zhang [Wed, 19 Sep 2018 14:34:04 +0000 (14:34 +0000)]
Merge "Enable api-versions.xml generation for api-stubs"

5 years agoPropagates voice call radio technology to connection
Wei Huang [Wed, 30 May 2018 11:21:36 +0000 (19:21 +0800)]
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

5 years agoMerge "Add entry to hidden API greylist"
David Brazdil [Wed, 19 Sep 2018 07:23:36 +0000 (07:23 +0000)]
Merge "Add entry to hidden API greylist"

5 years agoFix NullPointerException in CaptivePortalLogin
Hisanobu, Watanabe [Mon, 20 Aug 2018 08:46:54 +0000 (17:46 +0900)]
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

5 years agoAdd entry to hidden API greylist
David Brazdil [Wed, 19 Sep 2018 04:09:17 +0000 (12:09 +0800)]
Add entry to hidden API greylist

Bug: 114488777
Test: m appcompat
Change-Id: I8207503ab2904eb61e0f49e1fa317602d9fa145d

5 years agoMerge "Simplify logic for connect in PbapClientProfile"
Treehugger Robot [Wed, 19 Sep 2018 04:24:19 +0000 (04:24 +0000)]
Merge "Simplify logic for connect in PbapClientProfile"

5 years agoMerge "Update boot image profile to include Object.wait()"
Treehugger Robot [Wed, 19 Sep 2018 03:10:37 +0000 (03:10 +0000)]
Merge "Update boot image profile to include Object.wait()"

5 years agoMerge "Enable jdiff for api-stubs-docs"
Treehugger Robot [Wed, 19 Sep 2018 03:02:19 +0000 (03:02 +0000)]
Merge "Enable jdiff for api-stubs-docs"

5 years agoMerge "Simplify logic for getConnectionStatus in HidDeviceProfile"
Treehugger Robot [Wed, 19 Sep 2018 02:08:33 +0000 (02:08 +0000)]
Merge "Simplify logic for getConnectionStatus in HidDeviceProfile"

5 years agoMerge "Simplify logic for connect in MapClientProfile"
Treehugger Robot [Wed, 19 Sep 2018 02:08:05 +0000 (02:08 +0000)]
Merge "Simplify logic for connect in MapClientProfile"

5 years agoEnable api-versions.xml generation for api-stubs
Nan Zhang [Tue, 18 Sep 2018 17:46:10 +0000 (10:46 -0700)]
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

5 years agoMerge changes from topic "ota_dexopt_no_ampersand"
Treehugger Robot [Tue, 18 Sep 2018 23:03:47 +0000 (23:03 +0000)]
Merge changes from topic "ota_dexopt_no_ampersand"

* changes:
  OTA Dexopt: Use protocol version 10
  OTA Dexopt: Remove old '&' path

5 years agoUpdate boot image profile to include Object.wait()
Andreas Gampe [Tue, 18 Sep 2018 21:21:11 +0000 (14:21 -0700)]
Update boot image profile to include Object.wait()

Bug: 116028959
Test: m
Test: inspect oatdump
Change-Id: I5aefa4e334d61cd24f110a35a0084d563a8aca63

5 years agoMerge "Allow config of wfcSpnFormats to use root locale"
Youming Ye [Tue, 18 Sep 2018 21:07:01 +0000 (21:07 +0000)]
Merge "Allow config of wfcSpnFormats to use root locale"

5 years agoMerge "Add function to encode PLMNs"
Treehugger Robot [Tue, 18 Sep 2018 18:58:03 +0000 (18:58 +0000)]
Merge "Add function to encode PLMNs"

5 years agoMerge "Unhide the LE CoC APIs"
Treehugger Robot [Tue, 18 Sep 2018 18:31:26 +0000 (18:31 +0000)]
Merge "Unhide the LE CoC APIs"

5 years agoStatsd atoms: restrict OEM fields 100000-199999
Bookatz [Mon, 17 Sep 2018 23:17:10 +0000 (16:17 -0700)]
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

5 years agoOTA Dexopt: Use protocol version 10
Andreas Gampe [Tue, 18 Sep 2018 17:37:59 +0000 (10:37 -0700)]
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

5 years agoMerge "Rename the ojluni-annotated-stubs target."
Treehugger Robot [Tue, 18 Sep 2018 16:27:21 +0000 (16:27 +0000)]
Merge "Rename the ojluni-annotated-stubs target."

5 years agoMerge "Add dummy WmTests"
Treehugger Robot [Tue, 18 Sep 2018 15:21:17 +0000 (15:21 +0000)]
Merge "Add dummy WmTests"

5 years agoMerge "Separate servicestests/utils"
Treehugger Robot [Tue, 18 Sep 2018 15:20:50 +0000 (15:20 +0000)]
Merge "Separate servicestests/utils"

5 years agoOTA Dexopt: Remove old '&' path
Andreas Gampe [Tue, 18 Sep 2018 00:49:41 +0000 (17:49 -0700)]
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

5 years agoMerge "Whitelist com.android.proxyhandler for power"
Treehugger Robot [Tue, 18 Sep 2018 13:31:58 +0000 (13:31 +0000)]
Merge "Whitelist com.android.proxyhandler for power"

5 years agoAdd dummy WmTests
Tadashi G. Takaoka [Fri, 14 Sep 2018 05:06:55 +0000 (14:06 +0900)]
Add dummy WmTests

Test: atest WmTests
Bug: 113800711
Merged-In: I1e29cc9116adf2d08c00d035ecad48e4ef604106
Change-Id: Ifcbd8cf4545ec80058dc25ef15f5af81a9780cc3
(cherry picked from commit bc7bc12fee108bdbeb881e9c41003db0f9046373)

5 years agoSeparate servicestests/utils
Tadashi G. Takaoka [Fri, 14 Sep 2018 04:58:44 +0000 (13:58 +0900)]
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 77439ba9b3a8c50e7c4c0a69b3c316eb82130ad5)

5 years agoMerge changes I66bbe8b5,Ie54677db
David Brazdil [Tue, 18 Sep 2018 04:02:34 +0000 (04:02 +0000)]
Merge changes I66bbe8b5,Ie54677db

* changes:
  Add api to hidden API light grey
  Add new entries to hidden API light grey

5 years agoSimplify logic for connect in MapClientProfile
Chienyuan [Mon, 17 Sep 2018 02:54:37 +0000 (10:54 +0800)]
Simplify logic for connect in MapClientProfile

* connect: remove connected device check logic. MapClientService
  will check it.
* remove member variable V and related checks.
* wrap if/else statement in curly brackets.
* add robotest for MapClientProfile.

Bug: 111812003
Test: make -j42 RunSettingsLibRoboTests ROBOTEST_FILTER=MapClientProfileTest
Change-Id: Ic3620c8910e5acbb14e33369ff437d434b514ddf
Merged-In: Ic3620c8910e5acbb14e33369ff437d434b514ddf

5 years agoMerge "Change the dist path of api files"
Treehugger Robot [Tue, 18 Sep 2018 02:29:44 +0000 (02:29 +0000)]
Merge "Change the dist path of api files"

5 years agoSimplify logic for connect in PbapClientProfile
Chienyuan [Mon, 17 Sep 2018 03:47:44 +0000 (11:47 +0800)]
Simplify logic for connect in PbapClientProfile

* connect: remove connected device check logic. PbapClientService
  will check it.
* remove member variable V and related checks.
* wrap if/else statement in curly brackets.
* add robotest for PbapClientProfile.

Bug: 111812003
Test: make -j42 RunSettingsLibRoboTests ROBOTEST_FILTER=PbapClientProfileTest
Change-Id: Ide43ee5cec560945ad69639782ad6f214ea0cece
Merged-In: Ide43ee5cec560945ad69639782ad6f214ea0cece

5 years agoMerge "Fix typo in IntentFilter documentation."
Treehugger Robot [Tue, 18 Sep 2018 01:44:46 +0000 (01:44 +0000)]
Merge "Fix typo in IntentFilter documentation."

5 years agoMark old APIs as @removed
Hall Liu [Tue, 18 Sep 2018 01:10:58 +0000 (18:10 -0700)]
Mark old APIs as @removed

Remove deprecated SystemApis as a part of a refactor.

Bug: 115943523
Test: unit, manual
Change-Id: Ic8955be6f57411ba18b5f049c6519d1c1d01d937

5 years agoMerge "Revert "preloaded-classes: remove core HIDL libs""
Steven Moreland [Mon, 17 Sep 2018 23:40:39 +0000 (23:40 +0000)]
Merge "Revert "preloaded-classes: remove core HIDL libs""

5 years agoMerge "Enable enhanced call blocking by default."
Treehugger Robot [Mon, 17 Sep 2018 22:47:23 +0000 (22:47 +0000)]
Merge "Enable enhanced call blocking by default."

5 years agoEnable jdiff for api-stubs-docs
Nan Zhang [Mon, 17 Sep 2018 21:33:08 +0000 (14:33 -0700)]
Enable jdiff for api-stubs-docs

And also clean legacy MK code in Android.mk

Test: api-stubs-docs-diff
Bug: b/78245848
Change-Id: I733e0e2c29f8273db3ffb9730c70d5b4e2b1438d

5 years agoMerge "Frameworks: Replace deprecated MetricsLogger usage"
Treehugger Robot [Mon, 17 Sep 2018 19:09:17 +0000 (19:09 +0000)]
Merge "Frameworks: Replace deprecated MetricsLogger usage"

5 years agoRevert "preloaded-classes: remove core HIDL libs"
Steven Moreland [Mon, 17 Sep 2018 18:11:02 +0000 (18:11 +0000)]
Revert "preloaded-classes: remove core HIDL libs"

This reverts commit 766b425c27f128d507cc5101c01d7c4bf107dbca.

Appears to be the cause of a 14ms regression in wifi startup time in system server that could be offset here (and potentially other places) by keeping the preload in zygote. A local trial of five showed this revert to take it 111.2ms -> 108ms. The variance is likely too high for this to be significant, however, logically, in the short term, these libraries are being used, and so preloading makes sense. I'll leave further changes to this list to the owners of this list.

Test: boot walleye 5 times w/ and w/o this test, and find small gain in reverting this.
Reason for revert: b/115771598

Change-Id: Ia53dbe8b70900d6f04011b15cbdddf786378fc3b

5 years agoMerge "Expose android.icu.text.CaseMap API"
vichang [Mon, 17 Sep 2018 18:10:31 +0000 (18:10 +0000)]
Merge "Expose android.icu.text.CaseMap API"

5 years agoMerge "Unifying source of statsd BleScan calls and cleaning it up."
Treehugger Robot [Mon, 17 Sep 2018 17:46:01 +0000 (17:46 +0000)]
Merge "Unifying source of statsd BleScan calls and cleaning it up."

5 years agoMerge "Increase customization options for wfcSpnFormats"
Youming Ye [Mon, 17 Sep 2018 16:55:14 +0000 (16:55 +0000)]
Merge "Increase customization options for wfcSpnFormats"

5 years agoRename the ojluni-annotated-stubs target.
Pete Gillin [Mon, 17 Sep 2018 14:45:33 +0000 (15:45 +0100)]
Rename the ojluni-annotated-stubs target.

All of the annotations under this are intended for use in the SDK. In
order to make this clear (because other types of annotations are
planned), this change renames the target to
ojluni-annotated-sdk-stubs.

Bug: 115746226
Test: `make api-stubs-docs`
Change-Id: I11366b6293b681cb4c8118fc117601a671c33282

5 years agoMerge "Add feature flag in Settings."
Yuanjia Hsu [Mon, 17 Sep 2018 13:43:08 +0000 (13:43 +0000)]
Merge "Add feature flag in Settings."

5 years agoAllow config of wfcSpnFormats to use root locale
Torbjorn Eklund [Tue, 21 Aug 2018 14:06:47 +0000 (16:06 +0200)]
Allow config of wfcSpnFormats to use root locale

Adds carrier config KEY_WFC_SPN_USE_ROOT_LOCALE. If true, the root
locale will be used when reading wfcSpnFormats. This means a
non-translated version of wfcSpnFormats will be used.

strings.xml in values-mcc262-mnc02 was deleted. The same requirement can
now be achieved by setting KEY_WFC_SPN_USE_ROOT_LOCALE to true.

Bug: 114292743
Test: Manual
Change-Id: Ia62976282c5526190d5d04361b1d4fbfc3333068

5 years agoMerge "Update greylist for Conscrypt update"
Adam Vartanian [Mon, 17 Sep 2018 12:36:50 +0000 (12:36 +0000)]
Merge "Update greylist for Conscrypt update"

5 years agoMerge "Add extra data when starting emergency dialer intent"
Shaotang Li [Mon, 17 Sep 2018 04:14:51 +0000 (04:14 +0000)]
Merge "Add extra data when starting emergency dialer intent"

5 years agoSimplify logic for getConnectionStatus in HidDeviceProfile
Chienyuan [Wed, 12 Sep 2018 12:54:08 +0000 (20:54 +0800)]
Simplify logic for getConnectionStatus in HidDeviceProfile

* getConnectionStatus: remove connected device check logic.
  HidDeviceService will check it.
* rewrite the annotation about this class
* remove member variable DEBUG and related checks.
* add robotest for HidDeviceProfile

Bug: 111812003
Test: make -j42 RunSettingsLibRoboTests ROBOTEST_FILTER=HidDeviceProfileTest
Change-Id: I2e7fdd69a46707339a32db4304666e50fd0cf954
Merged-In: I2e7fdd69a46707339a32db4304666e50fd0cf954

5 years agoFrameworks: Replace deprecated MetricsLogger usage
Andreas Gampe [Sat, 15 Sep 2018 18:27:58 +0000 (11:27 -0700)]
Frameworks: Replace deprecated MetricsLogger usage

Update OtaDexoptService to use an instance of MetricsLogger.

Test: m
Change-Id: I8892430392a9d3b4ca25dd52643d21cab7d36b78

5 years agoAdd api to hidden API light grey
David Brazdil [Sat, 15 Sep 2018 02:48:06 +0000 (03:48 +0100)]
Add api to hidden API light grey

Bug: 115409173
Test: m appcompat
Change-Id: I66bbe8b5cd1eed56c2dba74aac05f7a0baaff260

5 years agoAdd new entries to hidden API light grey
David Brazdil [Fri, 14 Sep 2018 12:51:46 +0000 (13:51 +0100)]
Add new entries to hidden API light grey

Bug: 115479641
Test: m appcompat
Change-Id: Ie54677db0370ad1da8a5ed6253027a2e789ca5bc

5 years agoMerge "Don't fail if there are no comments."
Treehugger Robot [Sat, 15 Sep 2018 02:41:13 +0000 (02:41 +0000)]
Merge "Don't fail if there are no comments."

5 years agoMerge "Don't Use NPE for Flow Control in getCellLocation"
Treehugger Robot [Sat, 15 Sep 2018 00:23:28 +0000 (00:23 +0000)]
Merge "Don't Use NPE for Flow Control in getCellLocation"

5 years agoMerge "libandroid_runtime: Link libselinux dynamically instead of statically."
Peter Collingbourne [Fri, 14 Sep 2018 22:45:55 +0000 (22:45 +0000)]
Merge "libandroid_runtime: Link libselinux dynamically instead of statically."

5 years agoDon't run comparisons on non-jank frames
John Reck [Fri, 14 Sep 2018 18:25:58 +0000 (11:25 -0700)]
Don't run comparisons on non-jank frames

Unclear why mSwapDeadline doesn't already
account for this, but the handling of vsync
phase offsets may be throwing things off a bit.

For now just do the simple fix.

Bug: 109894489
Test: builds, patch was verified by reporter
Change-Id: I5a6f25ceac4986d366293fe7b5e3af64a326114c

5 years agoDon't fail if there are no comments.
Mathew Inwood [Fri, 14 Sep 2018 14:19:10 +0000 (15:19 +0100)]
Don't fail if there are no comments.

Grep exits with non-zero if it find no matches. But it doesn't matter in
this case, so just carry on.

Test: frameworks/base/tools/hiddenapi/sort_api.sh \
Test:    frameworks/base/config/hiddenapi-light-greylist.txt
Change-Id: I7c219ee617f7dfa3cff5232ab979cc4ba38ebbfd

5 years agoMerge "Use IPv6 hop limit from upstream interface."
Treehugger Robot [Fri, 14 Sep 2018 11:21:37 +0000 (11:21 +0000)]
Merge "Use IPv6 hop limit from upstream interface."

5 years agoUse IPv6 hop limit from upstream interface.
Erik Kline [Fri, 14 Sep 2018 07:25:54 +0000 (16:25 +0900)]
Use IPv6 hop limit from upstream interface.

Test: as follows
    - built, flashed, booted
    - runtest frameworks-net passes
    - manually setting /proc/sys/net/ipv6/<upiface>/conf/hop_limit
      to various value yields RAs with expected hop limit settings
      in downstream RAs
Bug: 32163131
Change-Id: I248154ca9d836318bf21a2971d0884040525d9fc

5 years agoRe-enable checks for MANAGE_IPSEC_TUNNELS
Benedict Wong [Thu, 13 Sep 2018 23:45:12 +0000 (16:45 -0700)]
Re-enable checks for MANAGE_IPSEC_TUNNELS

This patch ensures that creation and modification of IPsec tunnels
requires the MANAGE_IPSEC_TUNNELS appop.

Bug: 115685048
Test: IpSecManagerTunnelTest fails without appops set
Change-Id: I6c60a2573ca521717877f36e28a392b0d3b62754

5 years agoMerge "Migrate all offline/online sdk docs generation to use Metalava"
Treehugger Robot [Thu, 13 Sep 2018 22:44:35 +0000 (22:44 +0000)]
Merge "Migrate all offline/online sdk docs generation to use Metalava"

5 years agolibandroid_runtime: Link libselinux dynamically instead of statically.
Peter Collingbourne [Thu, 13 Sep 2018 21:30:25 +0000 (14:30 -0700)]
libandroid_runtime: Link libselinux dynamically instead of statically.

5 years agoUnhide the LE CoC APIs
Stanley Tng [Fri, 29 Jun 2018 21:05:04 +0000 (14:05 -0700)]
Unhide the LE CoC APIs

Expose the LE Connection-oriented Channels APIs for applications to use.

Test: Run the SL4A ACTS test: BleCocTest
Bug: 70683224
Change-Id: I68128bc7154966ec065091c973351f8892da9b4d

5 years agoUnifying source of statsd BleScan calls and cleaning it up.
Bookatz [Thu, 13 Sep 2018 18:38:56 +0000 (11:38 -0700)]
Unifying source of statsd BleScan calls and cleaning it up.

Bug: 80308558
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases
Change-Id: I0b4a0b56631b4354b73f0fafea2c0dc7dff248d1

5 years agoAdded mapping files for DualShock3 and DualShock4
Kim Low [Tue, 4 Apr 2017 20:32:19 +0000 (13:32 -0700)]
Added mapping files for DualShock3 and DualShock4

All buttons and axes on DualShock3 and DualShock4 are mapped
explicitly, because some Linux drivers do not map them correctly.
Also, the definition of BUTTON_X/Y in Linux and Android is flipped.

The most significant bit (i.e. 0x8000 and 0x8111) in the "Version"
part of the filename indicates a newer Linux hid-sony driver (>=4.10
for DualShock4 and >=4.12 for DualShock3) which complies to the
mapping in Linux gamepad specifications, and supports all DualShock4
features (i.e. motions sensors, touchpad).

Older Linux driver which does not have the correct mapping will use
the mapping files without "Version".

All files with "Version_8000" and "Version_8100" are meant for
Bluetooth connected DualShock3/DualShock4, and all files with
"Version_8111" are meant for USB connected DualShock3/DualShock4.

Test: Connect DualShock3 and DualShock4, over USB and over Bluetooth.
Test: Check that the Dpad and left analog stick can be used to
      navigate the UI.
Test: If newer Linux driver is loaded, check that the touchpad can
      be used to navigate the UI.
Bug: 38511270
Change-Id: I5630c495af16185689bbff25943b3e2d3c93e709

5 years agoMerge "Leave spaces between Operator name and Clock in StatusBar"
Evan Laird [Thu, 13 Sep 2018 17:24:09 +0000 (17:24 +0000)]
Merge "Leave spaces between Operator name and Clock in StatusBar"

5 years agoMerge changes from topic "remove-hidl-boot-jars"
Steven Moreland [Thu, 13 Sep 2018 15:14:35 +0000 (15:14 +0000)]
Merge changes from topic "remove-hidl-boot-jars"

* changes:
  pm: Add hidl libraries to old class paths.
  preloaded-classes: remove core HIDL libs

5 years agoEnable excluded-input-devices settings for vendor
Tsukasa Hashimoto [Tue, 11 Sep 2018 07:47:22 +0000 (16:47 +0900)]
Enable excluded-input-devices settings for vendor

Currently excluded-input-devices settings file is available
only on the system image. This change enables that settings
with the vendor image also.

Bug: 115603053

Change-Id: I575298baee8e7186d1fcf8c29db09a0f247999c3

5 years agoLeave spaces between Operator name and Clock in StatusBar
Shigeki Yokomichi [Wed, 11 Apr 2018 06:46:00 +0000 (15:46 +0900)]
Leave spaces between Operator name and Clock in StatusBar

In StatusBar, there are no spaces between Operator name and Clock,
so leaving spaces to improve design.

Bug: 114133664
Test: Manual, enable operator name in status row
config_showOperatorNameInStatusBar, insert sim card with operator name,
watch status row.

Change-Id: I1a2e33436ed50d429ae4b1769d0a72d501233a22