OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Changes to APIs for CarrierRestrictionRules class"
Michele Berionne [Mon, 4 Mar 2019 19:01:42 +0000 (19:01 +0000)]
Merge "Changes to APIs for CarrierRestrictionRules class"

5 years agoChanges to APIs for CarrierRestrictionRules class
Michele [Fri, 1 Mar 2019 06:38:33 +0000 (22:38 -0800)]
Changes to APIs for CarrierRestrictionRules class

Add @NonNull annotation where applicable.
Rename isCarrierIdentifiersAllowed into areCarrierIdentifiersAllowed.
Make Builder class final.

Bug: 126375826
Bug: 126699079
Bug: 126700761
Test: Compilation
Change-Id: I1a02bc007f147597df97eaa55c00fd31a952870b

5 years agoMerge "Adding new APN type for Mission Critical Services."
Amit Mahajan [Mon, 4 Mar 2019 18:23:30 +0000 (18:23 +0000)]
Merge "Adding new APN type for Mission Critical Services."

5 years agoMerge "Fix javadoc HTML escaping."
Treehugger Robot [Mon, 4 Mar 2019 16:22:20 +0000 (16:22 +0000)]
Merge "Fix javadoc HTML escaping."

5 years agoMerge "Revert "Revert "Revert "Correct nullability and final constraints on new APIs...
Slava Shklyaev [Mon, 4 Mar 2019 14:42:17 +0000 (14:42 +0000)]
Merge "Revert "Revert "Revert "Correct nullability and final constraints on new APIs.""""

5 years agoRevert "Revert "Revert "Correct nullability and final constraints on new APIs."""
Slava Shklyaev [Mon, 4 Mar 2019 14:39:56 +0000 (14:39 +0000)]
Revert "Revert "Revert "Correct nullability and final constraints on new APIs."""

This reverts commit b255be1307aeae47ca7e8ee72ab4da670a1c49f1.

Reason for revert: the commit being reverted fixed git_master but broke aosp-master. This revert is aimed to fix aosp-master while not touching git_master.

DO NOT MERGE: This change is aimed at aosp-master only and should not be merged into git_master.

Change-Id: Ie5aaabb211affe2d21daaf87809641276d9d4707

5 years agoMerge "Use new libcore filegroup variable"
Neil Fuller [Mon, 4 Mar 2019 12:14:59 +0000 (12:14 +0000)]
Merge "Use new libcore filegroup variable"

5 years agoMerge "Revert "Revert "Correct nullability and final constraints on new APIs."""
Slava Shklyaev [Mon, 4 Mar 2019 11:49:34 +0000 (11:49 +0000)]
Merge "Revert "Revert "Correct nullability and final constraints on new APIs."""

5 years agoRevert "Revert "Correct nullability and final constraints on new APIs.""
Slava Shklyaev [Mon, 4 Mar 2019 11:47:11 +0000 (11:47 +0000)]
Revert "Revert "Correct nullability and final constraints on new APIs.""

This reverts commit 8462c66bd52f3132c3fa03475fcab2af30618f67.

Reason for revert: Looks like this change broke the build.

Change-Id: I4cff1ec1211e278d5e5734f1594c096722293662

5 years agoMerge "Add @Nullable to new method"
Treehugger Robot [Mon, 4 Mar 2019 11:43:48 +0000 (11:43 +0000)]
Merge "Add @Nullable to new method"

5 years agoMerge "Return not supported if no necessary socket option"
Mark Chien [Mon, 4 Mar 2019 09:16:07 +0000 (09:16 +0000)]
Merge "Return not supported if no necessary socket option"

5 years agoMerge "Revert "Correct nullability and final constraints on new APIs.""
Tyler Gunn [Mon, 4 Mar 2019 05:37:44 +0000 (05:37 +0000)]
Merge "Revert "Correct nullability and final constraints on new APIs.""

5 years agoRevert "Correct nullability and final constraints on new APIs."
Tyler Gunn [Mon, 4 Mar 2019 05:19:42 +0000 (05:19 +0000)]
Revert "Correct nullability and final constraints on new APIs."

This reverts commit b6940c3ea6779bc6d062a430d9eebe192943f09a.

Reason for revert: There appears to be a downstream issue with how the test API definitions are created; until I can figure out how to account for this I'll revert in AOSP (this is in internal master and its fine there).

Change-Id: I840c3ed82afa18323408e161913a84858f7a1539

5 years agoMerge "Correct nullability and final constraints on new APIs."
Tyler Gunn [Mon, 4 Mar 2019 04:13:38 +0000 (04:13 +0000)]
Merge "Correct nullability and final constraints on new APIs."

5 years agoMerge "LocalLog: add overloaded dump and reverseDump methods."
Treehugger Robot [Mon, 4 Mar 2019 01:46:23 +0000 (01:46 +0000)]
Merge "LocalLog: add overloaded dump and reverseDump methods."

5 years agoMerge "Expose some APIs as test APIs to facilitate CTS"
Tyler Gunn [Sun, 3 Mar 2019 23:26:09 +0000 (23:26 +0000)]
Merge "Expose some APIs as test APIs to facilitate CTS"

5 years agoMerge "Remove gaillard@google.com from OWNERS of statsd"
Howard Ro [Sun, 3 Mar 2019 22:57:50 +0000 (22:57 +0000)]
Merge "Remove gaillard@google.com from OWNERS of statsd"

5 years agoMerge "Check if DUN APN exists to decide isDunRequired"
Mark Chien [Sun, 3 Mar 2019 06:53:47 +0000 (06:53 +0000)]
Merge "Check if DUN APN exists to decide isDunRequired"

5 years agoMerge "Change return value of getTetherApnRequired() to a boolean."
Mark Chien [Sun, 3 Mar 2019 06:53:47 +0000 (06:53 +0000)]
Merge "Change return value of getTetherApnRequired() to a boolean."

5 years agoMerge "Fixed all APIs not meeting API review requirement"
Treehugger Robot [Sun, 3 Mar 2019 04:27:32 +0000 (04:27 +0000)]
Merge "Fixed all APIs not meeting API review requirement"

5 years agoMerge "Ensure handleUpdateLinkProperties runs on the CS handler thread."
Treehugger Robot [Sat, 2 Mar 2019 05:38:21 +0000 (05:38 +0000)]
Merge "Ensure handleUpdateLinkProperties runs on the CS handler thread."

5 years agoMerge "getConnectionOwnerUid: Clarify documentation"
Treehugger Robot [Sat, 2 Mar 2019 03:42:22 +0000 (03:42 +0000)]
Merge "getConnectionOwnerUid: Clarify documentation"

5 years agoMerge "Add @NonNull and @Nullable annotations to VpnService#Builder."
Treehugger Robot [Sat, 2 Mar 2019 03:41:57 +0000 (03:41 +0000)]
Merge "Add @NonNull and @Nullable annotations to VpnService#Builder."

5 years agoMerge "Fix Automated API Review: InetAddresses"
Treehugger Robot [Sat, 2 Mar 2019 03:05:18 +0000 (03:05 +0000)]
Merge "Fix Automated API Review: InetAddresses"

5 years agoMerge "Revert "Revert "Revert "Enable static overlay for SettingsLib resources""""
Andrii Kulian [Sat, 2 Mar 2019 01:52:04 +0000 (01:52 +0000)]
Merge "Revert "Revert "Revert "Enable static overlay for SettingsLib resources""""

5 years agoRevert "Revert "Revert "Enable static overlay for SettingsLib resources"""
Andrii Kulian [Sat, 2 Mar 2019 01:45:19 +0000 (01:45 +0000)]
Revert "Revert "Revert "Enable static overlay for SettingsLib resources"""

This reverts commit 007c0b0a4346a1304a09864caa71dc872bd4d18e.

Reason for revert: broke git_pi-dev-plus-aosp build

Change-Id: Iaf901d36ab37a5be6f8e0ee3c8a190f78bdd443a

5 years agoAdding new APN type for Mission Critical Services.
Amit Mahajan [Wed, 20 Feb 2019 23:04:30 +0000 (15:04 -0800)]
Adding new APN type for Mission Critical Services.

Test: build
Bug: 124447962
Change-Id: I9f608badd363703394432640dc892a4465660b6d

5 years agoRemove gaillard@google.com from OWNERS of statsd
Howard Ro [Sat, 2 Mar 2019 00:39:56 +0000 (16:39 -0800)]
Remove gaillard@google.com from OWNERS of statsd

Test: not needed for OWNERS change
Change-Id: I6c15067c86dc38784979d6da1265ceb0a3fc5ce5

5 years agoMerge "API tweaks round 2"
Hall Liu [Fri, 1 Mar 2019 23:00:54 +0000 (23:00 +0000)]
Merge "API tweaks round 2"

5 years agoFixed all APIs not meeting API review requirement
Jack Yu [Fri, 1 Mar 2019 20:04:50 +0000 (12:04 -0800)]
Fixed all APIs not meeting API review requirement

To address the API review feedback provided by
the API council.

Bug: 126702995
Bug: 126701710
Bug: 126702357
Bug: 126701113
Bug: 126701239
Bug: 126700713
Bug: 126700064
Test: Manual
Change-Id: I4b902c1fc2c09133022b05dacdda8964436205d2

5 years agoExpose some APIs as test APIs to facilitate CTS
Tyler Gunn [Mon, 4 Feb 2019 23:12:06 +0000 (15:12 -0800)]
Expose some APIs as test APIs to facilitate CTS

Test: added new cts tests
Bug: 123896388
Merged-In: I742f23be57e731307338591d816f7888e198b333
Change-Id: I742f23be57e731307338591d816f7888e198b333

5 years agoMerge "Preload libnativehelper.so which cannot be loaded through the Java classloader."
Treehugger Robot [Fri, 1 Mar 2019 21:56:40 +0000 (21:56 +0000)]
Merge "Preload libnativehelper.so which cannot be loaded through the Java classloader."

5 years agoMerge "Revert "Revert "Enable static overlay for SettingsLib resources"""
Treehugger Robot [Fri, 1 Mar 2019 21:48:55 +0000 (21:48 +0000)]
Merge "Revert "Revert "Enable static overlay for SettingsLib resources"""

5 years agoMerge "add Nullable annotation to TelephonyAPIs"
Chen Xu [Fri, 1 Mar 2019 21:34:29 +0000 (21:34 +0000)]
Merge "add Nullable annotation to TelephonyAPIs"

5 years agoCorrect nullability and final constraints on new APIs.
Tyler Gunn [Thu, 28 Feb 2019 19:33:42 +0000 (11:33 -0800)]
Correct nullability and final constraints on new APIs.

Per API review, correct nullability and final constraints on new Telecom
APIs.

Test: Build API.
Fixes: 126700293
Fixes: 126699447
Fixes: 126700465
Fixes: 126702895
Fixes: 126702527
Change-Id: Icec15403493de596194a61b27bb3e1031fdc1099
Merged-In: Icec15403493de596194a61b27bb3e1031fdc1099

5 years agoPreload libnativehelper.so which cannot be loaded through the Java classloader.
Martin Stjernholm [Fri, 1 Mar 2019 18:32:35 +0000 (18:32 +0000)]
Preload libnativehelper.so which cannot be loaded through the Java classloader.

Test: atest CtsHardwareTestCases (between 2 and 4 failing tests, but that
  happens on clean ToT too; no dlopen failures)
Bug: 126601993

Change-Id: Icfe58fad93b97992e39758c02c92c488a13c717f

5 years agoMerge changes I2eef0a3c,I263a1774
Roland Levillain [Fri, 1 Mar 2019 19:17:26 +0000 (19:17 +0000)]
Merge changes I2eef0a3c,I263a1774

* changes:
  Also check Zygote runtime options when testing flag `enable_apex_image`.
  Refactor Zygote runtime option checking in runtime_native_boot-flags-test.sh.

5 years agoAdd @NonNull and @Nullable annotations to VpnService#Builder.
Varun Anand [Fri, 1 Mar 2019 07:40:56 +0000 (23:40 -0800)]
Add @NonNull and @Nullable annotations to VpnService#Builder.

Bug: 126699070
Test: n/a
Change-Id: Ief0066636ca6ae4fefbdf70b8dfdfacf2a44e0e6

5 years agoadd Nullable annotation to TelephonyAPIs
chen xu [Fri, 1 Mar 2019 01:10:22 +0000 (17:10 -0800)]
add Nullable annotation to TelephonyAPIs

Bug: 126702627
Test: Build
Change-Id: I0fa9370840ceda70b181976fa671cd962bdfcbca

5 years agoMerge "Migrate frameworks/base/tests/testables and its users to androidx.test"
Treehugger Robot [Fri, 1 Mar 2019 18:23:34 +0000 (18:23 +0000)]
Merge "Migrate frameworks/base/tests/testables and its users to androidx.test"

5 years agoMerge "Add euicc privileged actions and extras."
Treehugger Robot [Fri, 1 Mar 2019 17:39:49 +0000 (17:39 +0000)]
Merge "Add euicc privileged actions and extras."

5 years agoMigrate frameworks/base/tests/testables and its users to androidx.test
Brett Chabot [Tue, 26 Feb 2019 22:52:33 +0000 (14:52 -0800)]
Migrate frameworks/base/tests/testables and its users to androidx.test

See go/jetpack-test-android-migration

Test: atest TestablesTests NetworkStackTests FrameworksServicesTests SystemUITests FrameworksUiServicesTests ExtServicesUnitTests
Exempt-From-Owner-Approval: already reviewed
Change-Id: I083fcdaa71b503535aa2b3c257740f3ecf055373
Merged-In: Ib04d80954bd8536914d88c66b28e6632e60a6245

5 years agoMerge "Fix ImsMmTelManager API in accordance with the council"
Brad Ebinger [Fri, 1 Mar 2019 17:21:17 +0000 (17:21 +0000)]
Merge "Fix ImsMmTelManager API in accordance with the council"

5 years agoMerge "Make Uri.toSafeString() also handle 'rtsp'"
Dongwon Kang [Fri, 1 Mar 2019 17:09:29 +0000 (17:09 +0000)]
Merge "Make Uri.toSafeString() also handle 'rtsp'"

5 years agoAlso check Zygote runtime options when testing flag `enable_apex_image`.
Roland Levillain [Fri, 1 Mar 2019 15:38:54 +0000 (15:38 +0000)]
Also check Zygote runtime options when testing flag `enable_apex_image`.

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 119800099
Change-Id: I2eef0a3c1f5254b5e270b35477649047c9db40a6

5 years agoRefactor Zygote runtime option checking in runtime_native_boot-flags-test.sh.
Roland Levillain [Fri, 1 Mar 2019 15:33:40 +0000 (15:33 +0000)]
Refactor Zygote runtime option checking in runtime_native_boot-flags-test.sh.

Generalize runtime option checking functions, so that they can be used
to check options other than the ones starting with `-Xgc:`

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 72446017
Bug: 120794191
Bug: 123754583
Bug: 119800099
Change-Id: I263a177486f8e24ce92928973f7c8853baf0983b

5 years agoAdd @Nullable to new method
Adam Vartanian [Fri, 1 Mar 2019 13:58:28 +0000 (13:58 +0000)]
Add @Nullable to new method

Add @Nullable to a newly-added method, as requested by API council.

Bug: 126698875
Test: make
Change-Id: I2e72ea457b5adaceea70d9908bb8e2cac2e0d963

5 years agoMerge "Support dexopting shared libraries."
Nicolas Geoffray [Fri, 1 Mar 2019 14:44:49 +0000 (14:44 +0000)]
Merge "Support dexopting shared libraries."

5 years agoMerge "Switch android.test and junit classes to use UnsupportedAppUsage"
Paul Duffin [Fri, 1 Mar 2019 14:24:16 +0000 (14:24 +0000)]
Merge "Switch android.test and junit classes to use UnsupportedAppUsage"

5 years agoMerge changes I10c6ed68,I14d6defe
Roland Levillain [Fri, 1 Mar 2019 14:22:49 +0000 (14:22 +0000)]
Merge changes I10c6ed68,I14d6defe

* changes:
  Check Android Runtime (Boot) device configuration flag `enable_apex_image`.
  Refactor unit test for Android Runtime (Boot) device configuration flags.

5 years agoFix Automated API Review: InetAddresses
Paul Duffin [Fri, 1 Mar 2019 13:52:25 +0000 (13:52 +0000)]
Fix Automated API Review: InetAddresses

Add @NonNull annotations as required by the automated review.

Bug: 126702338
Test: make checkbuild
Change-Id: I9057f06de8d7ea846af00d5cefa744d4206b4b63

5 years agoSwitch android.test and junit classes to use UnsupportedAppUsage
Paul Duffin [Fri, 15 Feb 2019 12:58:26 +0000 (12:58 +0000)]
Switch android.test and junit classes to use UnsupportedAppUsage

The UnsupportedAppUsage annotations could not be added directly to the
java files in src/ as they have to be built against the current api
which does not include the annotation. Instead this uses the same
technique as used for libcore/ojluni files and adds the annotations to
stub files (in hiddenapi/src) which are built as part of the
android.test.base-hiddenapi target. That target is added to a special
whitelist in build/soong/java/config/config.go which causes the
hiddenapi information to be extracted from the target.

Also, updates the preupload check to prevent anymore entries being
added to the config/hiddenapi-greylist.txt for android.test or junit
classes.

Bug: 73711752
Test: m cts-hiddenapi_flags-csv and check that it contained the
        correct entries even though they had been removed from
config/hiddenapi-greylist.txt
Change-Id: Ifaf15d2751f54cb03f8402b866a0ee4da7acc4d2

5 years agoSupport dexopting shared libraries.
Nicolas Geoffray [Tue, 26 Feb 2019 23:24:34 +0000 (23:24 +0000)]
Support dexopting shared libraries.

Test: adb shell setprop dalvik.vm.boot-image /system/framework/apex.art && see compilations in dalvik-cache
Test: BackgroundDexOptServiceIntegrationTests
Test: DexoptUtilsTest
Bug: 119800099
Change-Id: I3445b8743d576e09c9a339602307ba3a219db1fc

5 years agoMerge "Set NetworkStack targetSdk to 28"
Remi NGUYEN VAN [Fri, 1 Mar 2019 06:43:21 +0000 (06:43 +0000)]
Merge "Set NetworkStack targetSdk to 28"

5 years agoAdd euicc privileged actions and extras.
Patrick Huang [Fri, 1 Mar 2019 03:51:10 +0000 (19:51 -0800)]
Add euicc privileged actions and extras.

Bug: 122769846
Test: Test on phone
Change-Id: Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170
Merged-In: Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170

5 years agoMerge "Remove ConnectivityManager and its usages from NetworkStatsService."
Varun Anand [Fri, 1 Mar 2019 03:06:06 +0000 (03:06 +0000)]
Merge "Remove ConnectivityManager and its usages from NetworkStatsService."

5 years agoAPI tweaks round 2
Hall Liu [Fri, 1 Mar 2019 02:54:15 +0000 (18:54 -0800)]
API tweaks round 2

Add nullability annotations and change a static constant to a method
that returns a value.

Fixes: 126702861
Fixes: 126699926
Fixes: 126698717
Fixes: 126699057
Fixes: 126701443
Fixes: 126700882
Test: compiles
Change-Id: I96396eb8890b8b5148cf74447e08c31983398e47

5 years agoSet NetworkStack targetSdk to 28
Remi NGUYEN VAN [Fri, 1 Mar 2019 01:01:24 +0000 (10:01 +0900)]
Set NetworkStack targetSdk to 28

Test: flashed, booted, WiFi works
Change-Id: I7bbd7eb563432a290358d16652c0ae69e9772002

5 years agoMerge "add NonNull and Nullable annotation to APIs"
Chen Xu [Fri, 1 Mar 2019 02:17:33 +0000 (02:17 +0000)]
Merge "add NonNull and Nullable annotation to APIs"

5 years agoMerge "Add a Constant for CellInfo#UNAVAILABLE_LONG"
Nathan Harold [Fri, 1 Mar 2019 01:15:47 +0000 (01:15 +0000)]
Merge "Add a Constant for CellInfo#UNAVAILABLE_LONG"

5 years agoMake Uri.toSafeString() also handle 'rtsp'
eunyoung.moon [Thu, 14 Feb 2019 06:02:59 +0000 (15:02 +0900)]
Make Uri.toSafeString() also handle 'rtsp'

Bug: 123669012
Test: atest CtsNetTestCases:android.net.cts.UriTest
Change-Id: I082bdbd55589f6b99a8cf5fc68c897477f2fa792
Signed-off-by: Eunyoung Moon <eunyoung.moon@lge.com>
5 years agoMerge "Fix to hide phone number printed in the log"
Treehugger Robot [Fri, 1 Mar 2019 00:45:51 +0000 (00:45 +0000)]
Merge "Fix to hide phone number printed in the log"

5 years agoRevert "Revert "Enable static overlay for SettingsLib resources""
Takamasa Kuramitsu [Fri, 1 Mar 2019 00:23:58 +0000 (00:23 +0000)]
Revert "Revert "Enable static overlay for SettingsLib resources""

This reverts commit 086c189e20b27209c07af08264050f6c7b60cf48.

Fixes: 116821732

Reason for revert: blocking issue in b/124370422 is resolved

Change-Id: I9ce03ce19b36f08640142c52d759386b83a2c55e

5 years agoMerge "revert "HLS seeking: call readAt() on new thread""
Treehugger Robot [Fri, 1 Mar 2019 00:19:01 +0000 (00:19 +0000)]
Merge "revert "HLS seeking: call readAt() on new thread""

5 years agoRemove ConnectivityManager and its usages from NetworkStatsService.
Varun Anand [Thu, 7 Feb 2019 22:13:13 +0000 (14:13 -0800)]
Remove ConnectivityManager and its usages from NetworkStatsService.

NSS needed it for getting VpnInfo[], NetworkState[] and
activeLinkProperties which it used to query via ConnectivityManager.

For VpnInfo[], this was racy as NSS may ignore intermediate changes to a
VPN's underlying networks. See http://b/123961098 for more context.

It may also lead to deadlocks b/w ConnectivityService and
NetworkStatsService. See http://b/126245192 for more info.

This change will ensure that NSS is never contending on any of
ConnectivityService locks.

Bug: 123961098
Bug: 126245192
Bug: 120145746
Test: atest FrameworksNetTests
Change-Id: Id1da446b54d95ee68ed14079107b1a10318bcf8b
Merged-In: I57e117bb4e9efe491b19d6b5a479f2d58d1c58e6

5 years agoMerge "Show mobile icons with left-to-right in order of slot index"
Evan Laird [Thu, 28 Feb 2019 23:03:13 +0000 (23:03 +0000)]
Merge "Show mobile icons with left-to-right in order of slot index"

5 years agoadd NonNull and Nullable annotation to APIs
chen xu [Thu, 28 Feb 2019 18:44:54 +0000 (10:44 -0800)]
add NonNull and Nullable annotation to APIs

Bug: 126699430
Bug: 126699963
Bug: 126700457
Bug: 126700771
Bug: 126702453
Bug: 123939479
Test: Build
Change-Id: Ib429d2918e63f8d272fc7842b0abd83ffd5a9090

5 years agoCheck Android Runtime (Boot) device configuration flag `enable_apex_image`.
Roland Levillain [Thu, 28 Feb 2019 20:52:41 +0000 (20:52 +0000)]
Check Android Runtime (Boot) device configuration flag `enable_apex_image`.

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 119800099
Change-Id: I10c6ed68eceebef14207bc38cab4e96fb2f75939

5 years agoRefactor unit test for Android Runtime (Boot) device configuration flags.
Roland Levillain [Thu, 28 Feb 2019 20:49:11 +0000 (20:49 +0000)]
Refactor unit test for Android Runtime (Boot) device configuration flags.

This is in preparation of checking other device configuration flags.

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 72446017
Bug: 120794191
Bug: 123754583
Bug: 119800099
Change-Id: I14d6defe5f7e9fcf2f3dd27a4d0fae81f2aec596

5 years agoFix ImsMmTelManager API in accordance with the council
Brad Ebinger [Thu, 21 Feb 2019 22:31:02 +0000 (14:31 -0800)]
Fix ImsMmTelManager API in accordance with the council

Bug: 121190195
Test: atest FrameworksTelephonyTests
Merged-In: I5d011e1875c082a4532747e30e8582ff3da4ee93
Change-Id: I5d011e1875c082a4532747e30e8582ff3da4ee93

5 years agoMerge "Update statusbar color,nav divider color of settings theme"
Fan Zhang [Thu, 28 Feb 2019 17:48:16 +0000 (17:48 +0000)]
Merge "Update statusbar color,nav divider color of settings theme"

5 years agoFix javadoc HTML escaping.
Alan Stokes [Thu, 28 Feb 2019 16:45:47 +0000 (16:45 +0000)]
Fix javadoc HTML escaping.

HTLM special characters ('<', '>' and '&') don't need to be escaped
inside {@code}, even though they do elsewhere in javadoc. And in fact
they shouldn't be - because if they are escaped then the escaped
version shows up verbatim in the developer docs.

See for example:
https://developer.android.com/reference/android/graphics/drawable/GradientDrawable
https://developer.android.com/reference/android/support/v13/view/inputmethod/InputConnectionCompat

This change just removes the escaping to fix the public documentation.

Test: N/A (only comment lines changed)
Change-Id: I131b3b3e26547e30cff7b67514d177c48926bb26

5 years agoMerge "Move ApplicationInfo to params in AppComponentFactory"
David Brazdil [Thu, 28 Feb 2019 17:14:25 +0000 (17:14 +0000)]
Merge "Move ApplicationInfo to params in AppComponentFactory"

5 years agoMerge "Set networking module APKs version to 10"
Baligh Uddin [Thu, 28 Feb 2019 15:54:28 +0000 (15:54 +0000)]
Merge "Set networking module APKs version to 10"

5 years agoMerge "Apilint: Lint missing nullability annotations"
Adrian Roos [Thu, 28 Feb 2019 15:27:18 +0000 (15:27 +0000)]
Merge "Apilint: Lint missing nullability annotations"

5 years agoMerge "Fix broken javadoc links"
Treehugger Robot [Thu, 28 Feb 2019 13:34:52 +0000 (13:34 +0000)]
Merge "Fix broken javadoc links"

5 years agoMerge "Update annotations for UiccCardInfo APIs"
Treehugger Robot [Thu, 28 Feb 2019 13:01:02 +0000 (13:01 +0000)]
Merge "Update annotations for UiccCardInfo APIs"

5 years agoApilint: Lint missing nullability annotations
Adrian Roos [Wed, 27 Feb 2019 15:45:00 +0000 (16:45 +0100)]
Apilint: Lint missing nullability annotations

Also adds support for limited range blame parsing.

Bug: 124882145
Test: python apilint_test.py
Change-Id: Idbc7f67eeff27902c37ec482278f5888781c6e78

5 years agoMove ApplicationInfo to params in AppComponentFactory
David Brazdil [Wed, 27 Feb 2019 20:15:18 +0000 (20:15 +0000)]
Move ApplicationInfo to params in AppComponentFactory

Tweak AppComponentFactory.instantiateClassLoader() API to accept
ApplicationInfo as an argument instead of an independent getter.

Bug: 124800390
Bug: 111342996
Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases
Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases
Merged-In: I4a4d5af842446a5060083c88a0ac5bec014c0c55
Change-Id: I4a4d5af842446a5060083c88a0ac5bec014c0c55
(cherry picked from commit 33bd343596d6272913c47213e1a7d896ba42db00)

5 years agoMerge "Apilint: Enforce final builders"
Adrian Roos [Thu, 28 Feb 2019 09:57:22 +0000 (09:57 +0000)]
Merge "Apilint: Enforce final builders"

5 years agoApilint: Enforce final builders
Adrian Roos [Wed, 27 Feb 2019 22:58:13 +0000 (23:58 +0100)]
Apilint: Enforce final builders

Test: run apilint
Bug: 124883027
Change-Id: I7f2866e46bc40be60487846b2af9f8fd7edb7623

5 years agoMerge "Add Os.connect(fd, SocketAddress) to public API"
Remi NGUYEN VAN [Thu, 28 Feb 2019 04:42:36 +0000 (04:42 +0000)]
Merge "Add Os.connect(fd, SocketAddress) to public API"

5 years agoAdd Os.connect(fd, SocketAddress) to public API
Remi NGUYEN VAN [Wed, 27 Feb 2019 06:46:21 +0000 (15:46 +0900)]
Add Os.connect(fd, SocketAddress) to public API

1. There are already related socket API methods that return
   SocketAddress, such as Os.getpeername().
2. Having APIs that take SocketAddress are a closer match
   to the POSIX APIs that android.system.Os is exposing,
   and are more flexible than just taking InetAddress+port
   combinations since the latter only supports IPv4 and
   IPv6.

This was covered by tests in change:
Iadf9f10e26bbc650c5e1b9d03f32c5dafb6f21b4

And completes Ic496c1212dc2d97cf34db2a7c7d024b02790e8ed.

Test: m
Bug: 123062477
Change-Id: I885bfe1bf24a361bef2bb2f783622b934637ba99

5 years agoSet networking module APKs version to 10
Remi NGUYEN VAN [Thu, 28 Feb 2019 02:28:50 +0000 (11:28 +0900)]
Set networking module APKs version to 10

Up to now the version in output APKs was 28 (platform version by
default). This should make it easier to track and bump up the version.

Test: booted, WiFi works
Test: aapt dump badging shows version 10
Change-Id: I199eb55fd82e16ae748c8b011ce93cf48b505395

5 years agoMerge changes from topic "nat64"
Lorenzo Colitti [Wed, 27 Feb 2019 23:37:42 +0000 (23:37 +0000)]
Merge changes from topic "nat64"

* changes:
  Catch ServiceSpecificException instead of IllegalStateException.
  Manage NAT64 prefix discovery lifecycle in the framework.
  Track NAT64 in the framework and start clatd iff NAT64 detected
  Change Nat464Xlat lifecycle.
  Minor improvements to verifyTcpBufferSizeChange.

5 years agoUpdate annotations for UiccCardInfo APIs
Jordan Liu [Wed, 27 Feb 2019 22:44:20 +0000 (14:44 -0800)]
Update annotations for UiccCardInfo APIs

Fixes: 124800040
Test: no change to behavior
Change-Id: I0644eb9bac417b9a8b0fd8eaf691728ed0784527

5 years agoMerge "Added a filegroup for statsd config proto definition."
Harry Zhang [Wed, 27 Feb 2019 21:56:23 +0000 (21:56 +0000)]
Merge "Added a filegroup for statsd config proto definition."

5 years agogetConnectionOwnerUid: Clarify documentation
Jeff Vander Stoep [Wed, 27 Feb 2019 21:31:22 +0000 (13:31 -0800)]
getConnectionOwnerUid: Clarify documentation

Test: build
Bug: 117573763
Change-Id: Ia899a541987b9c72a83287ed69fc47ab4d38f680

5 years agoMerge "Implement isRemovable"
Jordan Liu [Wed, 27 Feb 2019 20:40:31 +0000 (20:40 +0000)]
Merge "Implement isRemovable"

5 years agoMerge "Add OBSERVE_ROLE_HOLDERS permission to shell."
Treehugger Robot [Wed, 27 Feb 2019 20:15:59 +0000 (20:15 +0000)]
Merge "Add OBSERVE_ROLE_HOLDERS permission to shell."

5 years agorevert "HLS seeking: call readAt() on new thread"
Dichen Zhang [Wed, 27 Feb 2019 19:01:40 +0000 (11:01 -0800)]
revert "HLS seeking: call readAt() on new thread"

This reverts commit Ie527aeaff91e1b82c7e707a6feaf79548c7ac380

Bug: 119900000
Test: go/ag/5140159

Change-Id: Ia8b2f3efc2f3551e749c16c6c8dfbc070f8bb980

5 years agoMerge "Expose DataSpecificRegistrationState as System API"
Amruth Ramachandran [Wed, 27 Feb 2019 19:00:44 +0000 (19:00 +0000)]
Merge "Expose DataSpecificRegistrationState as System API"

5 years agoMerge "Add Documentation for ACTION_DEBUG_EVENT"
Nathan Harold [Wed, 27 Feb 2019 18:39:59 +0000 (18:39 +0000)]
Merge "Add Documentation for ACTION_DEBUG_EVENT"

5 years agoMerge "No need to pass shared library infos explicitly in performDexOpt."
Nicolas Geoffray [Wed, 27 Feb 2019 16:42:39 +0000 (16:42 +0000)]
Merge "No need to pass shared library infos explicitly in performDexOpt."

5 years agoNo need to pass shared library infos explicitly in performDexOpt.
Nicolas Geoffray [Tue, 26 Feb 2019 21:40:59 +0000 (21:40 +0000)]
No need to pass shared library infos explicitly in performDexOpt.

The method can just infer it from the passed package.

(cherry picked from commit 1158b87c6ea6d809c2ae665cc0db9f464515ced2)

Test: m
Change-Id: I676ee7d49600a36a8bd54893679d7dc900da2012
Merged-In: I676ee7d49600a36a8bd54893679d7dc900da2012
Exempt-From-Owner-Approval: approved in internal.

5 years agoMerge "apilint: Correctly parse packages with annotations"
Adrian Roos [Wed, 27 Feb 2019 15:50:21 +0000 (15:50 +0000)]
Merge "apilint: Correctly parse packages with annotations"

5 years agoEnsure handleUpdateLinkProperties runs on the CS handler thread.
Lorenzo Colitti [Wed, 20 Feb 2019 12:34:01 +0000 (21:34 +0900)]
Ensure handleUpdateLinkProperties runs on the CS handler thread.

In its own change for ease of rollbacks due to the risk of
possibly crashing existing codepaths.

Bug: 65674744
Test: atest FrameworksNetTests
Test: builds, boots. Wifi, cell data, private DNS work
Change-Id: I2c0acc1c7b8367803f17b4a12c1df0fdfbc29691

5 years agoCatch ServiceSpecificException instead of IllegalStateException.
Lorenzo Colitti [Wed, 27 Feb 2019 01:35:10 +0000 (10:35 +0900)]
Catch ServiceSpecificException instead of IllegalStateException.

The old NetworkManagementService methods to start clatd threw
IllegalStateException, but the new netd methods throw
ServiceSpecificException. Update the catch clauses so that if
starting clatd fails, the system doesn't crash.

Also stop logging stack traces but only include the exception
message itself.

Bug: 65674744
Test: atest FrameworksNetTests
Test: connecting/disconnecting to v6-only wifi in a loop does not crash
Change-Id: I4a9ec7f104712fbbe08f4f67e3288df03e8ed873

5 years agoFix broken javadoc links
Chiachang Wang [Wed, 27 Feb 2019 09:14:50 +0000 (17:14 +0800)]
Fix broken javadoc links

Bug: 123683994
Test: Verify with javadoc
Change-Id: I4b1b936e3cf86104ace5fcb6829778710801f2d5

5 years agoMerge "Use public APIs instead of Conscrypt ones"
Treehugger Robot [Wed, 27 Feb 2019 09:01:03 +0000 (09:01 +0000)]
Merge "Use public APIs instead of Conscrypt ones"