OSDN Git Service

android-x86/frameworks-base.git
5 years agoEnable new DHCP server by default
Remi NGUYEN VAN [Wed, 26 Sep 2018 09:11:48 +0000 (18:11 +0900)]
Enable new DHCP server by default

Regression tests pass with aosp/764042.

Test: regression automated tests, manual (verified WiFi, bluetooth
      tethering working).
Bug: b/109584964

Change-Id: I0f997d302a1d85930b24139af76e9b9c9a1b5f78

5 years agoUse new DHCP server in TetheringTest
Remi NGUYEN VAN [Fri, 28 Sep 2018 02:34:15 +0000 (11:34 +0900)]
Use new DHCP server in TetheringTest

Run most tests with TETHER_ENABLE_LEGACY_DHCP_SERVER set to 0 (will be
the default value). Add one test to verify that the new server is not
started when TETHER_ENABLE_LEGACY_DHCP_SERVER is 1.

Bug: b/109584964
Test: atest FrameworksNetTests
Change-Id: I288ba1f434918e62ff29f7ace00856108c9730f7

5 years agoMerge "Make ext.jar only dependent on public SDK APIs"
Neil Fuller [Wed, 26 Sep 2018 08:12:46 +0000 (08:12 +0000)]
Merge "Make ext.jar only dependent on public SDK APIs"

5 years agoMerge "Mark event-based handover constants as deprecated."
Tyler Gunn [Wed, 26 Sep 2018 04:18:35 +0000 (04:18 +0000)]
Merge "Mark event-based handover constants as deprecated."

5 years agoMerge "Rename method isConnectable()"
Leon Liao [Tue, 25 Sep 2018 23:06:20 +0000 (23:06 +0000)]
Merge "Rename method isConnectable()"

5 years agoMerge "Add intdef for Telephony network type constants"
Hall Liu [Tue, 25 Sep 2018 22:45:39 +0000 (22:45 +0000)]
Merge "Add intdef for Telephony network type constants"

5 years agoMerge "Add hidden API to return "Uploading" bit value from SDP record's MapSupportedF...
vnori [Tue, 25 Sep 2018 22:35:58 +0000 (22:35 +0000)]
Merge "Add hidden API to return "Uploading" bit value from SDP record's MapSupportedFeatures."

5 years agoMerge "Show "Call Blocking disabled" notification always when emergency call"
Youming Ye [Tue, 25 Sep 2018 22:29:39 +0000 (22:29 +0000)]
Merge "Show "Call Blocking disabled" notification always when emergency call"

5 years agoMerge "expose getIsimDomain to systemAPI"
Chen Xu [Tue, 25 Sep 2018 22:14:34 +0000 (22:14 +0000)]
Merge "expose getIsimDomain to systemAPI"

5 years agoMerge "Update the reference profile from .dm files only during installs"
Calin Juravle [Tue, 25 Sep 2018 22:00:00 +0000 (22:00 +0000)]
Merge "Update the reference profile from .dm files only during installs"

5 years agoAdd hidden API to return "Uploading" bit value from SDP record's MapSupportedFeatures.
Vasu Nori [Sat, 18 Aug 2018 00:25:28 +0000 (17:25 -0700)]
Add hidden API to return "Uploading" bit value from SDP record's MapSupportedFeatures.

Bug: 111614861
Test: tested w/ KitchenSink App
Change-Id: I43895183d7b315f57257e1d2045f17dedcb0cfcd

5 years agoMerge "Add the EMBMS group call API"
Hall Liu [Tue, 25 Sep 2018 20:38:23 +0000 (20:38 +0000)]
Merge "Add the EMBMS group call API"

5 years agoUpdate the reference profile from .dm files only during installs
Calin Juravle [Mon, 24 Sep 2018 21:07:16 +0000 (14:07 -0700)]
Update the reference profile from .dm files only during installs

In order to speed up first boot time we only create the current profile
and do not update the content of the reference profile. A system image
should already be configured with the right profile keys and the
profiles for the speed-profile prebuilds should already be copied (that's
done in #performDexOptUpgrade).

Test: manual (install apps and splits, take OTA)
Bug: 114046578

(cherry picked from commit 5c9a0085a3366b4c7f00586dba9691fac9016f22)

Merged-In: I99db76684430b929c52634c25b457e874648e205
Change-Id: I99db76684430b929c52634c25b457e874648e205

5 years agoAdd intdef for Telephony network type constants
Hall Liu [Tue, 25 Sep 2018 18:12:21 +0000 (11:12 -0700)]
Add intdef for Telephony network type constants

Change-Id: Id212f5009ff2d57344dd747c1837ad9ff1546e31
Fixes: 116592397
Test: compiles

5 years agoMake ext.jar only dependent on public SDK APIs
Neil Fuller [Tue, 25 Sep 2018 12:00:35 +0000 (13:00 +0100)]
Make ext.jar only dependent on public SDK APIs

ext.jar can be built using only public SDK APIs. This
makes that obvious.

Bug: 113148576
Test: make ext
Change-Id: I792b14924878623f832f3afbb1d3e23fba34d5bf

5 years agoMerge "Reduce visibility on PackageDexUsage methods."
Treehugger Robot [Tue, 25 Sep 2018 11:55:51 +0000 (11:55 +0000)]
Merge "Reduce visibility on PackageDexUsage methods."

5 years agoMerge "Fix minSdkVersion for test."
Treehugger Robot [Tue, 25 Sep 2018 11:37:23 +0000 (11:37 +0000)]
Merge "Fix minSdkVersion for test."

5 years agoFix minSdkVersion for test.
Alan Stokes [Tue, 25 Sep 2018 09:28:52 +0000 (10:28 +0100)]
Fix minSdkVersion for test.

P is 28 not 27, and the test requires P.

Test: atest DexLoggerIntegrationTests
Change-Id: Ib83ec92bf5d7e791bac90331b5dcc3c4b826a4fd

5 years agoReduce visibility on PackageDexUsage methods.
Alan Stokes [Fri, 21 Sep 2018 16:26:43 +0000 (17:26 +0100)]
Reduce visibility on PackageDexUsage methods.

Not a big win, but it makes it clearer that the data is never directly
changed by PackageManager etc.  (We could extract the two nested
classes and then PackageDexUsage wouldn't need to be public at all.)

Test: Still builds.
Test: atest services/tests/servicestests/src/com/android/server/pm/dex

Change-Id: I0a5c0bff473a03178f730e354a2f60694729ba10

5 years agoMerge "Inline two short methods from Conscrypt"
Adam Vartanian [Tue, 25 Sep 2018 08:43:59 +0000 (08:43 +0000)]
Merge "Inline two short methods from Conscrypt"

5 years agoShow "Call Blocking disabled" notification always when emergency call
Kikkawa Shohei [Fri, 21 Sep 2018 08:06:07 +0000 (17:06 +0900)]
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

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 agoAdd the EMBMS group call API
Hall Liu [Fri, 20 Apr 2018 00:57:58 +0000 (17:57 -0700)]
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

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 agoInline two short methods from Conscrypt
Adam Vartanian [Thu, 20 Sep 2018 14:15:56 +0000 (15:15 +0100)]
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

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 agoexpose getIsimDomain to systemAPI
fionaxu [Mon, 17 Sep 2018 02:01:25 +0000 (19:01 -0700)]
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

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 agoRename method isConnectable()
Leon Liao [Tue, 18 Sep 2018 04:45:45 +0000 (12:45 +0800)]
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

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."