OSDN Git Service

android-x86/frameworks-base.git
5 years agoMove NetworkStackTests to presubmit
Remi NGUYEN VAN [Fri, 8 Mar 2019 09:08:48 +0000 (18:08 +0900)]
Move NetworkStackTests to presubmit

The tests have been green in postsubmit for a while and run very
quickly.

Test: atest NetworkStackTests
Change-Id: I9dbbf9046dc0878c355a5ae791e31166038df796

5 years agoRemove NetworkStack test dependency on testutils
Remi NGUYEN VAN [Fri, 8 Mar 2019 09:03:07 +0000 (18:03 +0900)]
Remove NetworkStack test dependency on testutils

frameworks-base-testutils is close to unused in the tests, and has the
side-effect of adding some unrelated tests to be run in
NetworkStackTests like TestLooperTest. TestLooperTest is also failing in
some cases.

Bug: 127908503
Test: atest NetworkStackTests
Change-Id: Iebc174ed1362e8c341d765129a7fc51f8ed1999d

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

5 years agoMerge "Add @NonNull annotation to set proxy on VPN parameter."
Treehugger Robot [Wed, 27 Feb 2019 05:56:28 +0000 (05:56 +0000)]
Merge "Add @NonNull annotation to set proxy on VPN parameter."

5 years agoUpdate statusbar color,nav divider color of settings theme
Jin Dong [Mon, 3 Dec 2018 07:20:09 +0000 (15:20 +0800)]
Update statusbar color,nav divider color of settings theme

Update statusbar color, navigation divider color
of "Theme.DeviceDefault.Settings".

Bug: 126141701
Test: build & manual
Change-Id: Ib4ddb97c6473a91f3dd6c4971bb150d90a48f202

5 years agoMerge "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""
Tor Norbye [Wed, 27 Feb 2019 02:33:15 +0000 (02:33 +0000)]
Merge "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""

5 years agoAdd @NonNull annotation to set proxy on VPN parameter.
Irina Dumitrescu [Wed, 20 Feb 2019 18:17:06 +0000 (18:17 +0000)]
Add @NonNull annotation to set proxy on VPN parameter.

Test: manual
Bug: 124883120
Change-Id: Ifb4bd98a69a006220b1a824033395fc6f12ea6ce

5 years agoAdd OBSERVE_ROLE_HOLDERS permission to shell.
Hai Zhang [Tue, 26 Feb 2019 23:07:46 +0000 (15:07 -0800)]
Add OBSERVE_ROLE_HOLDERS permission to shell.

This allows testing relevant APIs in CTS tests. The listener itself
only gives the changed role name and user affected.

Bug: 125404675
Test: build
Merged-In: I5c979a26dae103ea1b633c2119c59363d8953aa2
Change-Id: I29ca1827e597d318cbd74ba3e70796c5853a9dc4

5 years agoAdd Documentation for ACTION_DEBUG_EVENT
Nathan Harold [Wed, 27 Feb 2019 00:42:54 +0000 (16:42 -0800)]
Add Documentation for ACTION_DEBUG_EVENT

The debug event action lost out on the documentation
for DebugEventReporter when it migrated to TM. This
change adds documentation for ACTION_DEBUG_EVENT
EXTRA_DEBUG_EVENT_ID, and EXTRA_DEBUG_EVENT_DESCRIPTION

Bug: 126178766
Test: make offline-sdk-docs (docstring-only change)
Change-Id: I6073d8b181c1258dbd7b47e8d5a45732d619396a

5 years agoRevert "Update MbmsDownloadServiceBase to reflect implements IInterface"
Tor Norbye [Wed, 27 Feb 2019 00:21:39 +0000 (00:21 +0000)]
Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"

This reverts commit ddc496d62210fd06f7132e701fbc5df0b2c237f6.

Reason for revert: b/126374865

Change-Id: I53f87d15712a0f2acc5787efcf68c72021e9b831

5 years agoMerge "Log the pid of the forked zygote child."
Treehugger Robot [Tue, 26 Feb 2019 23:22:52 +0000 (23:22 +0000)]
Merge "Log the pid of the forked zygote child."

5 years agoAdded a filegroup for statsd config proto definition.
Harry Zhang [Thu, 21 Feb 2019 04:11:08 +0000 (20:11 -0800)]
Added a filegroup for statsd config proto definition.

This is used in other parts of the framework for serializing some
statsd text proto config at build time. The filegroup allows aprotoc
to access the definitions elsewhere in the source tree.

Bug: 120569785
Test: Build is not affected.
Change-Id: I82a5f8869a2d05ea27d205f471b9c5b5b875fefc
Merged-In: I0e37a9b9a1f22a5dcebbf07ccc5cad98cf76024c

5 years agoExpose DataSpecificRegistrationState as System API
Amruth Ramachandran [Fri, 22 Feb 2019 19:01:00 +0000 (11:01 -0800)]
Expose DataSpecificRegistrationState as System API

  LteVopsSupportInfo is currently not accessible for telephony
  APK since DataSpecificRegistrationState is @hide api. This info is
  required to determine if current LTE network support IMS. This
  change exposes DataSpecificRegistrationState and LteVops info
  as System API.

Bug: 112194535
Test: atest

Change-Id: Iec5c42ccef88b66c3f8ef05f8f96b2a4133ca63f

5 years agoMerge "Rename the RTT audio flag in ImsStreamMediaProfile"
Hall Liu [Tue, 26 Feb 2019 21:54:40 +0000 (21:54 +0000)]
Merge "Rename the RTT audio flag in ImsStreamMediaProfile"

5 years agoImplement isRemovable
Jordan Liu [Sat, 19 Jan 2019 00:43:53 +0000 (16:43 -0800)]
Implement isRemovable

Add resource non_removable_euicc_slots which lists the slot indexes
which refer to non-removable eUICCs chips.

Test: EuiccCardTest
Bug: 122738148
Change-Id: I8836e25acf37527bbb067538902de056e1465b31
Merged-In: I8836e25acf37527bbb067538902de056e1465b31

5 years agoMerge "Switch LocalSocket to android::base::{Send,Receive}FileDescriptorVector."
Josh Gao [Tue, 26 Feb 2019 21:29:42 +0000 (21:29 +0000)]
Merge "Switch LocalSocket to android::base::{Send,Receive}FileDescriptorVector."

5 years agoLog the pid of the forked zygote child.
Martin Stjernholm [Sat, 23 Feb 2019 02:35:07 +0000 (02:35 +0000)]
Log the pid of the forked zygote child.

Useful to link together the pids of the zygote and its children in logcat
output.

Test: Flash and boot, run "adb logcat"
Change-Id: I524b70aed7d1ce7a378df0e2b2063e23f1f9a454

5 years agoMerge "Fix the build failure with enabling DEBUG_PSS"
Treehugger Robot [Tue, 26 Feb 2019 19:49:03 +0000 (19:49 +0000)]
Merge "Fix the build failure with enabling DEBUG_PSS"

5 years agoMerge "Remove unused tests/utils/SleepUtils"
Treehugger Robot [Tue, 26 Feb 2019 18:15:51 +0000 (18:15 +0000)]
Merge "Remove unused tests/utils/SleepUtils"