OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Add product apk support from libnativeloader"
Kiyoung Kim [Tue, 12 Mar 2019 08:48:46 +0000 (08:48 +0000)]
Merge "Add product apk support from libnativeloader"

5 years agoMerge "Check if network has partial connectivity"
Lucas Lin [Tue, 12 Mar 2019 08:11:14 +0000 (08:11 +0000)]
Merge "Check if network has partial connectivity"

5 years agoCheck if network has partial connectivity
lucaslin [Tue, 12 Mar 2019 05:08:03 +0000 (13:08 +0800)]
Check if network has partial connectivity

In some networks, network validation may only get success
result for http probe but fail result for https probe.
For this kind of network, it may still work at some websites
or apps, but user didn't know about that. In order to fix this
issue, we will check if network has partial connectivity and
notify user to make a choice if they want to use this partial
connectivity or not.

Bug: 113450764
Test: 1. Build pass.
      2. Fake partial connectivity case for testing.
      3. atest FrameworksNetTests
      4. atest NetworkStackTests

Change-Id: I69ed00ac4850904ff708c9fef22e148879a10e92

5 years agoMerge "Modify API return type and add callback."
Daniel Huang [Tue, 12 Mar 2019 06:02:04 +0000 (06:02 +0000)]
Merge "Modify API return type and add callback."

5 years agoMerge "Move NetworkStack start to AM.systemReady"
Remi NGUYEN VAN [Tue, 12 Mar 2019 05:27:33 +0000 (05:27 +0000)]
Merge "Move NetworkStack start to AM.systemReady"

5 years agoMerge "Update nullability of api"
Tony Huang [Tue, 12 Mar 2019 05:22:28 +0000 (05:22 +0000)]
Merge "Update nullability of api"

5 years agoMerge "Improve keepalive offload documentation and error handling"
Junyu Lai [Tue, 12 Mar 2019 05:11:50 +0000 (05:11 +0000)]
Merge "Improve keepalive offload documentation and error handling"

5 years agoMove NetworkStack start to AM.systemReady
Remi NGUYEN VAN [Tue, 12 Mar 2019 02:50:22 +0000 (11:50 +0900)]
Move NetworkStack start to AM.systemReady

In practice the NetworkStack was not started after
ActivityManager#systemReady, since ActivityManager was only scheduling
the start (mPendingStarts).
Requesting the start too early causes issues for the PackageManager to
install updates/rollbacks.

Test: flashed AOSP and internal builds, WiFi working
Bug: 128331883
Change-Id: I93315ad31925bd436e21d1eabb21d5967e6aae60

5 years agoMerge "Use an in-process APK for in-process NetworkStack"
Remi NGUYEN VAN [Tue, 12 Mar 2019 01:37:26 +0000 (01:37 +0000)]
Merge "Use an in-process APK for in-process NetworkStack"

5 years agoMerge "Remove android-support-test lib from testutils."
Treehugger Robot [Mon, 11 Mar 2019 22:57:58 +0000 (22:57 +0000)]
Merge "Remove android-support-test lib from testutils."

5 years agoMerge "rename precise carrier id to specific carrier id"
Chen Xu [Mon, 11 Mar 2019 21:34:30 +0000 (21:34 +0000)]
Merge "rename precise carrier id to specific carrier id"

5 years agoRemove android-support-test lib from testutils.
Ian Kasprzak [Sat, 9 Mar 2019 02:49:31 +0000 (18:49 -0800)]
Remove android-support-test lib from testutils.

Fixed dependencies as needed.

Fixes apct/net/networking_framework_unit_test broken
in aosp/919393.

Test: m tests, checkbuild and Forrest (via gerritt) testing
Bug: 127910239

Change-Id: Ida0ca8012ede9227d204935b11002ddfa2f134ff
Merged-In: Ia825e0926b46855f9056739441cb21a065692076
(Manual partial cherry-pick of ec6bcbceee8fed0f99d1d5d1760b74eead98668a)

5 years agoMerge "Add Missing getRssi to CellSignalStrengthGsm"
Nathan Harold [Mon, 11 Mar 2019 17:53:40 +0000 (17:53 +0000)]
Merge "Add Missing getRssi to CellSignalStrengthGsm"

5 years agoMerge "Add tethering event callback API"
Chalard Jean [Mon, 11 Mar 2019 17:04:57 +0000 (17:04 +0000)]
Merge "Add tethering event callback API"

5 years agoMerge "Add a static to get the Ip Memory Store"
Treehugger Robot [Mon, 11 Mar 2019 14:56:34 +0000 (14:56 +0000)]
Merge "Add a static to get the Ip Memory Store"

5 years agoModify API return type and add callback.
danielwbhuang [Mon, 11 Mar 2019 03:52:10 +0000 (11:52 +0800)]
Modify API return type and add callback.

1. Modify the type from boolean to void for updateAvailableNetworks().
2. Adding callback for updateAvailableNetworks().
3. Define error codes for update available networks results.

Test: build pass
Bug: 124616182
Merged-In: I32fe1407deabe36485227ec75931bec334d85abe
Change-Id: I32fe1407deabe36485227ec75931bec334d85abe

5 years agoAdd a static to get the Ip Memory Store
Chalard Jean [Mon, 11 Mar 2019 11:44:24 +0000 (20:44 +0900)]
Add a static to get the Ip Memory Store

This is so that there is some AOSP stable API while the
memory store is moved to the network.

Test: atest FrameworksNetTests
Change-Id: Ib51dbee77fcb0d14a5c85240ac711b3b1aa71286

5 years agoMerge "[PT17.5] Revert to booleans for send/not send broadcast constants."
Treehugger Robot [Mon, 11 Mar 2019 11:07:21 +0000 (11:07 +0000)]
Merge "[PT17.5] Revert to booleans for send/not send broadcast constants."

5 years ago[PT17.5] Revert to booleans for send/not send broadcast constants.
Chalard Jean [Mon, 15 Oct 2018 05:27:15 +0000 (14:27 +0900)]
[PT17.5] Revert to booleans for send/not send broadcast constants.

In PT17, for security of the patch these two constants have been
switched from boolean to enum values. While this is nice for making
sure a patch is correct, it's also pretty wasteful. Now that it's
certain that the values of these fields don't matter, they can be
set to logical values (as opposed to reversed as it was the case
before PT17.

Test: runtest
Change-Id: I93a0780e23c2f658687be066dc16f27529baaa86

5 years agoMerge "Make ParseException less useless."
Treehugger Robot [Mon, 11 Mar 2019 04:06:48 +0000 (04:06 +0000)]
Merge "Make ParseException less useless."

5 years agoAdd product apk support from libnativeloader
Kiyoung Kim [Wed, 20 Feb 2019 09:07:41 +0000 (18:07 +0900)]
Add product apk support from libnativeloader

Currently libnativeloader appends vendor lib path if apk is from vendor
partition. Similar to this we should add product lib path if apk if from product partition.

Bug: 124705551
Test: m -j && tested from crosshatch with product apps (such as Wallpaper)
Change-Id: Ic85b16e8e4484a35c659c16e067f1e7c7285d05e
Merged-In: Iaa8d0ea61b1b9ab8a1da676a492f75c6a5d71d5d

5 years agoMerge changes I9dbbf904,Iebc174ed
Remi NGUYEN VAN [Mon, 11 Mar 2019 02:06:27 +0000 (02:06 +0000)]
Merge changes I9dbbf904,Iebc174ed

* changes:
  Move NetworkStackTests to presubmit
  Remove NetworkStack test dependency on testutils

5 years agorename precise carrier id to specific carrier id
chen xu [Wed, 6 Mar 2019 22:43:40 +0000 (14:43 -0800)]
rename precise carrier id to specific carrier id

Bug: 126727010
Test: atest CtsTelephonyTestCases

Change-Id: I4561ae8c15c429912695e0753b2ab3137a4e1e44
(cherry picked from commit 45f662139190df65f15d57a6e415c9559b580efe)
Merged-in: I4561ae8c15c429912695e0753b2ab3137a4e1e44

5 years agoMerge "Update current API after adding nullable annotations."
Nicolas Geoffray [Fri, 8 Mar 2019 23:15:03 +0000 (23:15 +0000)]
Merge "Update current API after adding nullable annotations."

5 years agoMerge "Convert tests/**/Android.mk files to Android.bp"
Treehugger Robot [Fri, 8 Mar 2019 22:54:11 +0000 (22:54 +0000)]
Merge "Convert tests/**/Android.mk files to Android.bp"

5 years agoMerge "update getStaticPhoneCapability to use HAL instead of default value"
Treehugger Robot [Fri, 8 Mar 2019 22:05:59 +0000 (22:05 +0000)]
Merge "update getStaticPhoneCapability to use HAL instead of default value"

5 years agoMerge "make onActiveDataSubId in PhoneStateListener public API"
Nazanin Bakhshi [Fri, 8 Mar 2019 22:00:33 +0000 (22:00 +0000)]
Merge "make onActiveDataSubId in PhoneStateListener public API"

5 years agoMerge "Add Keystore get option that supresses caught exceptions warnings."
Treehugger Robot [Fri, 8 Mar 2019 21:58:46 +0000 (21:58 +0000)]
Merge "Add Keystore get option that supresses caught exceptions warnings."

5 years agoupdate getStaticPhoneCapability to use HAL instead of default value
Nazanin Bakhshi [Wed, 6 Mar 2019 23:31:45 +0000 (15:31 -0800)]
update getStaticPhoneCapability to use HAL instead of default value

Bug: 123359867
Test: build
Change-Id: Ic40921679ade1f9be42f2bc3d5170ba201dbab5a
Merged-In: Ic40921679ade1f9be42f2bc3d5170ba201dbab5a
(cherry picked from commit 1772247b044795cdad1fa22069040df0bf657f42)

5 years agomake onActiveDataSubId in PhoneStateListener public API
Nazanin Bakhshi [Fri, 1 Mar 2019 18:10:22 +0000 (10:10 -0800)]
make onActiveDataSubId in PhoneStateListener public API

Bug: 124260187
Test: CTS
Change-Id: I6e5a5c8273348d822b8f552599784b8e986850bf
Merged-In: I6e5a5c8273348d822b8f552599784b8e986850bf
(cherry picked from commit 026c42d7521c390b171f2b42a9b961fdc325b44a)

5 years agoMerge "Add TimeStamp Constructor for HAL 1.4 Support"
Nathan Harold [Fri, 8 Mar 2019 19:03:47 +0000 (19:03 +0000)]
Merge "Add TimeStamp Constructor for HAL 1.4 Support"

5 years agoMerge "Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE"
Nazanin Bakhshi [Fri, 8 Mar 2019 18:25:59 +0000 (18:25 +0000)]
Merge "Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE"

5 years agoMerge "Adding KEY_PERMANENTLY_INVALIDATED int"
Max Bires [Fri, 8 Mar 2019 17:53:05 +0000 (17:53 +0000)]
Merge "Adding KEY_PERMANENTLY_INVALIDATED int"

5 years agoMerge "Add carrier config key for TTY support."
Tyler Gunn [Fri, 8 Mar 2019 17:52:52 +0000 (17:52 +0000)]
Merge "Add carrier config key for TTY support."

5 years agoMerge "Update DynamicAndroidService for IGsiService AIDL changes."
David Anderson [Fri, 8 Mar 2019 17:39:44 +0000 (17:39 +0000)]
Merge "Update DynamicAndroidService for IGsiService AIDL changes."

5 years agoUpdate current API after adding nullable annotations.
Nicolas Geoffray [Fri, 8 Mar 2019 17:12:18 +0000 (17:12 +0000)]
Update current API after adding nullable annotations.

Test: m
Bug: 126703375
Change-Id: I355d911f07385fd835cb7c74a2dc9da689cda4be

5 years agoAdd tethering event callback API
markchien [Wed, 27 Feb 2019 06:56:11 +0000 (14:56 +0800)]
Add tethering event callback API

Provide OnTetheringEventCallback for system app to know
tethering's upstream.

Bug: 125583822
Test: -build, flash, boot
      -atest FrameworksNetTests

Change-Id: I7ca81b27c9b805cc01884509f5b20d9d0a24cd36
Merged-in: I7ca81b27c9b805cc01884509f5b20d9d0a24cd36

5 years agoMerge "Add extra hidden api related tags"
Andrei-Valentin Onea [Fri, 8 Mar 2019 16:22:11 +0000 (16:22 +0000)]
Merge "Add extra hidden api related tags"

5 years agoMerge "Give Telephony the permissions to access the network stack."
Treehugger Robot [Fri, 8 Mar 2019 15:55:53 +0000 (15:55 +0000)]
Merge "Give Telephony the permissions to access the network stack."

5 years agoMerge "Add junyulai@ as owner of the core networking dirs"
Bernie Innocenti [Fri, 8 Mar 2019 15:21:01 +0000 (15:21 +0000)]
Merge "Add junyulai@ as owner of the core networking dirs"

5 years agoMerge "IPv6: enable IPv6 link local routing for local network"
Jimmy Chen [Fri, 8 Mar 2019 15:08:07 +0000 (15:08 +0000)]
Merge "IPv6: enable IPv6 link local routing for local network"

5 years agoAdd junyulai@ as owner of the core networking dirs
Bernie Innocenti [Fri, 8 Mar 2019 11:28:35 +0000 (20:28 +0900)]
Add junyulai@ as owner of the core networking dirs

Also removed emeritus accounts ek@ and silberst@ from various places.
A cleanup using 'include' would probably be in order...

Test: N/A
Change-Id: I575e60dd5e600e42d9571ce8e8d7661d30e99bfe

5 years agoGive Telephony the permissions to access the network stack.
Chalard Jean [Fri, 8 Mar 2019 10:46:00 +0000 (19:46 +0900)]
Give Telephony the permissions to access the network stack.

Test: manual
Change-Id: I28308f421aa955fe110b50452b115a0178b24745

5 years agoMerge "Change BluetoothCodecStatus.sameCapabilities() to public"
Treehugger Robot [Fri, 8 Mar 2019 10:38:47 +0000 (10:38 +0000)]
Merge "Change BluetoothCodecStatus.sameCapabilities() to public"

5 years agoUse an in-process APK for in-process NetworkStack
Remi NGUYEN VAN [Fri, 8 Mar 2019 08:20:49 +0000 (17:20 +0900)]
Use an in-process APK for in-process NetworkStack

Instead of having a library in the classpath where the NetworkStack is
created by reflection on devices using the network stack in-process,
just bind to a version of the network stack service that runs in the
system process.

If the in-process version is installed it will be used, otherwise the
module is used with its own process.

Bug: 127908503
Test: blueline boots and has functional WiFi
Test: atest FrameworksNetTests NetworkStackTests
Test: svelte build boots and has functional WiFi
Change-Id: I7722b173e5686e0dbb9cfddcfb34344b0f4135d9

5 years agoMerge "Not to use any() to verify DataStallDetectionStats"
Treehugger Robot [Fri, 8 Mar 2019 09:26:05 +0000 (09:26 +0000)]
Merge "Not to use any() to verify DataStallDetectionStats"

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 agoMake ParseException less useless.
Chalard Jean [Fri, 8 Mar 2019 08:57:42 +0000 (17:57 +0900)]
Make ParseException less useless.

Test: None
Change-Id: I4b6d3fc8aba5a602ac06c958db41157cd98f2aff

5 years agoIPv6: enable IPv6 link local routing for local network
Jimmy Chen [Thu, 7 Mar 2019 06:15:36 +0000 (14:15 +0800)]
IPv6: enable IPv6 link local routing for local network

IPv6 link local is an automatically configured address. The routing should be
activated regardless of the DHCP service.

Bug: 126063997
Test: Unit tests - atest FrameworksNetTests
Test: Unit tests - atest FrameworksWifiTests
Test: * DUT1 enables hotspot
      * DUT2 associates to DUT1
      * use ping6 to verify the local link on both side
Test: * DUT1 creates a P2P group
      * DUT2 joins this group as a legacy client
      * use ping6 to verify the local link on both side

Change-Id: I102bf29e8da14808097e43c840d74d41b6b3758f

5 years agoNot to use any() to verify DataStallDetectionStats
Chiachang Wang [Fri, 8 Mar 2019 06:34:19 +0000 (14:34 +0800)]
Not to use any() to verify DataStallDetectionStats

Build a empty DataStallDetectionStats object instead of use
any() to do the verification to prevent NPE while trying to
write the metrics.

Bug: 120452078
Test: atest NetworkStackTests
Change-Id: Ib9f3e56195a539a5ca4826b4aad0e38945a9a3a7

5 years agoMerge "Minor changes to the async DNS query JAVA API"
Luke Huang [Fri, 8 Mar 2019 03:19:55 +0000 (03:19 +0000)]
Merge "Minor changes to the async DNS query JAVA API"

5 years agoMerge "Add more nullability annotations"
Treehugger Robot [Fri, 8 Mar 2019 03:16:43 +0000 (03:16 +0000)]
Merge "Add more nullability annotations"

5 years agoAdd Missing getRssi to CellSignalStrengthGsm
Nathan Harold [Fri, 8 Mar 2019 01:37:37 +0000 (17:37 -0800)]
Add Missing getRssi to CellSignalStrengthGsm

The getRssi() method is missing. This should
be used in consistency with the rest of the
CellSignalStrength interface, which provides
explicitly named measurement results through
such getters.

Bug: 125027693
Test: compilation
Change-Id: Ib7485118967108c066af40f811ad934b8de771f8

5 years agoMerge "Support VPN Proxy(1/2)"
Chalard Jean [Fri, 8 Mar 2019 00:34:25 +0000 (00:34 +0000)]
Merge "Support VPN Proxy(1/2)"

5 years agoMerge "fix 'int android.view.View.getHeight()' on a null object reference"
Treehugger Robot [Fri, 8 Mar 2019 00:19:39 +0000 (00:19 +0000)]
Merge "fix 'int android.view.View.getHeight()' on a null object reference"

5 years agoConvert tests/**/Android.mk files to Android.bp
Sasha Smundak [Thu, 21 Feb 2019 00:52:48 +0000 (16:52 -0800)]
Convert tests/**/Android.mk files to Android.bp

See build/soong/README.md for more information.

Note: tests/ImfTest/Android.mk causes conflict as it hasn't been yet
ported to internal master. Do it later.
Note: the conversion in the following directories has to be done in the
internal master first because of the conflicts:
* tests/ActivityManagerPerfTests
* tests/AppLaunch
* tests/AppLaunchWear
* tests/BackgroundDexOptServiceIntegrationTests
* tests/Camera2Tests/CameraToo
* tests/Camera2Tests/SmartCamera/SimpleCamera
* tests/Compatibility
* tests/Internal
* tests/RcsTests
* tests/ServiceCrashTest
* tests/UsbTests

Bug: 122332340
Test: treehugger
Change-Id: Ie17590c6a96aee5caa80d38092a3de5c1b6efe8d

5 years agoMerge changes Ie66ba631,Ic42c09a3
Benedict Wong [Thu, 7 Mar 2019 23:32:55 +0000 (23:32 +0000)]
Merge changes Ie66ba631,Ic42c09a3

* changes:
  Implement TestNetworkService
  Add shell TestNetworkManager and Service

5 years agoMerge "Move Camera.EventHandler constructor to greylist"
Treehugger Robot [Thu, 7 Mar 2019 23:16:40 +0000 (23:16 +0000)]
Merge "Move Camera.EventHandler constructor to greylist"

5 years agoMerge "Add @NonNull annotations to Hearing Aids Profile APIs"
Treehugger Robot [Thu, 7 Mar 2019 22:59:06 +0000 (22:59 +0000)]
Merge "Add @NonNull annotations to Hearing Aids Profile APIs"

5 years agoMerge "Adding callback for setPreferredDataSubscriptionId."
Xiangyu/Malcolm Chen [Thu, 7 Mar 2019 22:47:31 +0000 (22:47 +0000)]
Merge "Adding callback for setPreferredDataSubscriptionId."

5 years agoMerge "Fix NPE in SmsManager and keep existing behavior"
Brad Ebinger [Thu, 7 Mar 2019 22:27:19 +0000 (22:27 +0000)]
Merge "Fix NPE in SmsManager and keep existing behavior"

5 years agoMerge "Add nullability annotations in accordance with the council"
Brad Ebinger [Thu, 7 Mar 2019 21:14:18 +0000 (21:14 +0000)]
Merge "Add nullability annotations in accordance with the council"

5 years agoMerge "Add CarrierConfig to use WFC home network mode in roaming network"
Brad Ebinger [Thu, 7 Mar 2019 21:11:51 +0000 (21:11 +0000)]
Merge "Add CarrierConfig to use WFC home network mode in roaming network"

5 years agoAdd Keystore get option that supresses caught exceptions warnings.
Irina Dumitrescu [Fri, 8 Jun 2018 18:36:34 +0000 (19:36 +0100)]
Add Keystore get option that supresses caught exceptions warnings.

This is useful when the caught exceptions are not informative and they
act as a red herring in the adb logs.

Bug:109791294
Test: call this method in the VpnSettings and manually navigate to
adding a new VPN by searching for VPN in settings and then pressing '+'.

Change-Id: I4bc86e3ea5b11027090fd3a27dc7455557cf66ab
Merged-In: I4bc86e3ea5b11027090fd3a27dc7455557cf66ab

5 years agoMerge "Add @NonNull annotations to (un)setOffHostForService()"
Treehugger Robot [Thu, 7 Mar 2019 20:07:16 +0000 (20:07 +0000)]
Merge "Add @NonNull annotations to (un)setOffHostForService()"

5 years agoRename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE
Malcolm Chen [Fri, 15 Feb 2019 03:50:19 +0000 (19:50 -0800)]
Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE

Redefine a PhoneStateListener event so that it reflects which
subscription is currently being used for Internet data. It could
be default user data subscription or currently active opportunistic
subscription.

Bug: 124260187
Test: unittest
Change-Id: Icb90b5bd93845c29157cafddcd53335728638ec2
Merged-In: Icb90b5bd93845c29157cafddcd53335728638ec2

5 years agoMove Camera.EventHandler constructor to greylist
David Brazdil [Thu, 7 Mar 2019 17:41:03 +0000 (17:41 +0000)]
Move Camera.EventHandler constructor to greylist

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 122331906
Test: m appcompat
Change-Id: I3abc8221706bd69668c90aa61b8ca5f137a88bb9

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 17:26:15 +0000 (17:26 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 17:26:09 +0000 (17:26 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Add a null check for getWindow()"
Treehugger Robot [Thu, 7 Mar 2019 17:02:00 +0000 (17:02 +0000)]
Merge "Add a null check for getWindow()"

5 years agoMerge "Add target for generating aidl mappings"
Andrei-Valentin Onea [Thu, 7 Mar 2019 16:31:14 +0000 (16:31 +0000)]
Merge "Add target for generating aidl mappings"

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 16:30:32 +0000 (16:30 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Exclude Emergency Dialer from recent app list."
Treehugger Robot [Thu, 7 Mar 2019 13:43:36 +0000 (13:43 +0000)]
Merge "Exclude Emergency Dialer from recent app list."

5 years agoMerge "Fix TetheringEntitlementValueListener related API"
Mark Chien [Thu, 7 Mar 2019 13:21:53 +0000 (13:21 +0000)]
Merge "Fix TetheringEntitlementValueListener related API"

5 years agoExclude Emergency Dialer from recent app list.
Leo Hsu [Wed, 6 Mar 2019 07:25:28 +0000 (15:25 +0800)]
Exclude Emergency Dialer from recent app list.

Emergency Dialer should not show up in recent app list.

Bug: 112168722
Bug: 127585929
Test: Long press power key, tap Emergency, quit Emergency Dialer, and
check recent app list.
Change-Id: I2fe917d16ab23de6e82f9cad7b064e2837ec6490
Merged-In: I2fe917d16ab23de6e82f9cad7b064e2837ec6490

5 years agoAdd extra hidden api related tags
Andrei Onea [Fri, 1 Mar 2019 18:49:15 +0000 (18:49 +0000)]
Add extra hidden api related tags

@SystemApi and @TestApi entries in the whitelist can now be
differentiated from the rest of the apis. @TestApi methods
are implicitly greylisted.

Test: m test-art-host-gtest-hiddenapi_test
Change-Id: Id739f04550842f7b3160685e1635ba20efb223cc

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 10:20:28 +0000 (10:20 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Do not call noteOp if checkPermission fails"
Treehugger Robot [Thu, 7 Mar 2019 08:56:39 +0000 (08:56 +0000)]
Merge "Do not call noteOp if checkPermission fails"

5 years agoMinor changes to the async DNS query JAVA API
Luke Huang [Wed, 23 Jan 2019 13:53:13 +0000 (21:53 +0800)]
Minor changes to the async DNS query JAVA API

1. refine the naming in DnsPacket and add more comment
2. add comment in DnsResolver

Test: built, flashed, booted
      atest DnsResolverTest DnsPacketTest

Change-Id: Ib482d079d6823fd1d9bff163427b7aad38374199

5 years agoImprove keepalive offload documentation and error handling
junyulai [Mon, 4 Mar 2019 03:49:17 +0000 (11:49 +0800)]
Improve keepalive offload documentation and error handling

Bug: 123987401
Test: atest FrameworksNetTests
Change-Id: Id651cfb743f02b05ca3845af3c393eaf5762bb20

5 years agoMerge "Migrate frameworks/base/tests/net/ to androidx.test"
Treehugger Robot [Thu, 7 Mar 2019 05:42:07 +0000 (05:42 +0000)]
Merge "Migrate frameworks/base/tests/net/ to androidx.test"

5 years agoFix TetheringEntitlementValueListener related API
markchien [Wed, 6 Mar 2019 08:25:00 +0000 (16:25 +0800)]
Fix TetheringEntitlementValueListener related API

Test: -build, flash, boot
      -atest FrameworksNetTests
bug: 126701557
bug: 126392011

Change-Id: I6dda10fbfe8ffaef71269617750a22563396f5ea

5 years agoMerge "Fix SocketUtils API"
Remi NGUYEN VAN [Thu, 7 Mar 2019 03:54:22 +0000 (03:54 +0000)]
Merge "Fix SocketUtils API"

5 years agoMerge "add NonNull annotation to API"
Treehugger Robot [Thu, 7 Mar 2019 01:07:34 +0000 (01:07 +0000)]
Merge "add NonNull annotation to API"

5 years agoMerge "API tweaks"
Hall Liu [Thu, 7 Mar 2019 00:11:31 +0000 (00:11 +0000)]
Merge "API tweaks"

5 years agoImplement TestNetworkService
Benedict Wong [Thu, 15 Nov 2018 01:53:19 +0000 (17:53 -0800)]
Implement TestNetworkService

This change adds the relevant JNI implementations, as well as the
implementations and NetworkAgent tracking code in the TestNetworkService.

TestNetworkService (And Manager) is designed for use exclusively in
testing code, allowing for the creation of TUN and IPsec backed networks
in test code. Specifically, this allows for testing of components such
as IP, DHCP, or DNS clients, as well as kernel features such as IPsec.

Access to the TestNetworkService will be conditioned upon the
MANAGE_TEST_NETWORKS permission that will be granted only to the Shell.
CTS will use UiAutomation.adoptShellPermissionIdentity() to gain the
ability to use this service.

Bug: 72950854
Test: CTS tests passing
Change-Id: Ie66ba631a548b5f9c6b5ed0797582f86688debe5

5 years agoAdd CarrierConfig to use WFC home network mode in roaming network
Hiroto Tarui [Thu, 14 Feb 2019 05:37:09 +0000 (14:37 +0900)]
Add CarrierConfig to use WFC home network mode in roaming network

Add a config whether the carrier will use the WFC home network mode in
roaming netork.

Test: manual - Checked that use the WFC mode according to CarrierConfig
value.
Bug: 79666081

Merged-In: I19fd3818c97db2565e13c5272c5307deef1331d1
Change-Id: I19fd3818c97db2565e13c5272c5307deef1331d1

5 years agoFix NPE in SmsManager and keep existing behavior
Brad Ebinger [Wed, 6 Mar 2019 22:32:28 +0000 (14:32 -0800)]
Fix NPE in SmsManager and keep existing behavior

The behavior of SmsManager#sendTextMessage changed,
we are blocking the sending of the SMS if there were no
subscriptions (i.e. no SIM scenario). This change
accidently introduced a NPE scenario in some cases.

Fixed NPE and removed SMS blocking code in SmsManager
to keep existing functionality the same.

Bug: 127338050
Test: atest GtsTelephonyTestCases
Change-Id: I71eefbc8e1619701e1b1d7b12c3c080c4ef376ef

5 years agoMerge "Reset callNetworkType and CallQuality after calls"
Treehugger Robot [Wed, 6 Mar 2019 23:28:33 +0000 (23:28 +0000)]
Merge "Reset callNetworkType and CallQuality after calls"

5 years agoAdding callback for setPreferredDataSubscriptionId.
Malcolm Chen [Wed, 6 Feb 2019 01:19:48 +0000 (17:19 -0800)]
Adding callback for setPreferredDataSubscriptionId.

The purpose is to provide a way to return success or failure upon
switching data to CBRS subscription.
The same callback is used for ONS to call internal API. Later it
will also be used by Carrier apps to call TelephonyManager#
setPreferredOpportunisticDataSubscription.

Bug: 122255288
Test: manual

Change-Id: Id3f43e024c902d6785017e7866f9e804a486b04f
Merged-In: Id3f43e024c902d6785017e7866f9e804a486b04f

5 years agoMerge "Add Nullable/NonNull Annotations where appropriate."
Brad Ebinger [Wed, 6 Mar 2019 22:47:58 +0000 (22:47 +0000)]
Merge "Add Nullable/NonNull Annotations where appropriate."

5 years agoUpdate DynamicAndroidService for IGsiService AIDL changes.
David Anderson [Wed, 27 Feb 2019 21:45:34 +0000 (13:45 -0800)]
Update DynamicAndroidService for IGsiService AIDL changes.

Bug: 125540538
Test: framework builds
Change-Id: I7c7f5053d02b231c4d987a145034683ff325e276

5 years agoAdd TimeStamp Constructor for HAL 1.4 Support
Nathan Harold [Mon, 4 Mar 2019 23:15:24 +0000 (15:15 -0800)]
Add TimeStamp Constructor for HAL 1.4 Support

Becuase the Timestamp is no longer passed by the
radio, CellInfo objects are stamped when received
by the RIL. Since the structure passed to these
constructors is a HAL structure, we have to pass the
timestamp all the way through to have it supported
for constructors invoked on a 1.4 HAL object.

Bug: 126911026
Test: atest RILTest#testCellInfoTimestamp_1_4;
      atest RILTest#testCellInfoTimestamp_1_2
Change-Id: I2b0833a0a8b6eeb75bff9cbe956ad36656a46208

5 years agoMerge "[API Feedback] Rename getChannelNumber to getNrarfcn"
Pengquan Meng [Wed, 6 Mar 2019 21:52:32 +0000 (21:52 +0000)]
Merge "[API Feedback] Rename getChannelNumber to getNrarfcn"

5 years agoDo not call noteOp if checkPermission fails
Chad Brubaker [Wed, 6 Mar 2019 00:40:33 +0000 (16:40 -0800)]
Do not call noteOp if checkPermission fails

This causes an access to be logged for runtime permissions even if the
permission is denied, which is incorrect.

Fixes: 127297477
Bug: 116258458
Test: Verified using steps in b/127297477
Change-Id: I8306aa273b7d4dfab40a2a6d8d1ef6f4d8cc2c54

5 years agoMerge "Move Annotations for getCellSignalStrengths"
Nathan Harold [Wed, 6 Mar 2019 21:41:18 +0000 (21:41 +0000)]
Merge "Move Annotations for getCellSignalStrengths"

5 years agoMerge "Add carrier config for 5G Icon"
Pengquan Meng [Wed, 6 Mar 2019 21:36:46 +0000 (21:36 +0000)]
Merge "Add carrier config for 5G Icon"

5 years agoAdd nullability annotations in accordance with the council
Brad Ebinger [Wed, 6 Mar 2019 19:32:42 +0000 (11:32 -0800)]
Add nullability annotations in accordance with the council

Bug: 126702532
Test: atest FrameworksTelephonyTests
Change-Id: I7c3707d7599ec0e2a1d1ec2e70588765aea5d069

5 years agoMerge "Added secondary owners on per-file entries."
Treehugger Robot [Wed, 6 Mar 2019 20:51:42 +0000 (20:51 +0000)]
Merge "Added secondary owners on per-file entries."