OSDN Git Service

android-x86/frameworks-base.git
5 years agoCreate URI for individual user settings in SIMINFO
chen xu [Wed, 3 Oct 2018 02:34:10 +0000 (19:34 -0700)]
Create URI for individual user settings in SIMINFO

Bug: 112700925
Test: TelephonyProviderTest#testUpdateWfcEnabled
Change-Id: I85639c50c2b3abb27b9a87823726d080a817ed6f

5 years agoMerge "Renamed get network registration states API"
Jack Yu [Wed, 3 Oct 2018 21:35:57 +0000 (21:35 +0000)]
Merge "Renamed get network registration states API"

5 years agoMerge "Fix ImsManager callback called once registered"
Youming Ye [Wed, 3 Oct 2018 20:15:35 +0000 (20:15 +0000)]
Merge "Fix ImsManager callback called once registered"

5 years agoMerge "Add SapProfile to LocalBluetoothProfileManager (1/2)"
Treehugger Robot [Wed, 3 Oct 2018 18:04:28 +0000 (18:04 +0000)]
Merge "Add SapProfile to LocalBluetoothProfileManager (1/2)"

5 years agoMerge "Disable the buginfo dialog on AndroidTV"
Nandana Dutt [Wed, 3 Oct 2018 15:39:22 +0000 (15:39 +0000)]
Merge "Disable the buginfo dialog on AndroidTV"

5 years agoMerge "Bugreport: Fix SystemUI service from being dumped twice 1/2"
Nandana Dutt [Wed, 3 Oct 2018 15:35:56 +0000 (15:35 +0000)]
Merge "Bugreport: Fix SystemUI service from being dumped twice 1/2"

5 years agoMerge "Remove unnecessary dependency on bouncycastle"
Neil Fuller [Wed, 3 Oct 2018 13:36:02 +0000 (13:36 +0000)]
Merge "Remove unnecessary dependency on bouncycastle"

5 years agoMerge "Remove an unused dependency on conscrypt"
Treehugger Robot [Wed, 3 Oct 2018 12:41:57 +0000 (12:41 +0000)]
Merge "Remove an unused dependency on conscrypt"

5 years agoAdd SapProfile to LocalBluetoothProfileManager (1/2)
Chienyuan [Wed, 26 Sep 2018 12:45:26 +0000 (20:45 +0800)]
Add SapProfile to LocalBluetoothProfileManager (1/2)

* add SapProfile and related logic to LocalBluetoothProfileManager
* simplify logic for connect and disconnect in SapProfile
* connect: remove connected device check logic. SapService will
  return false directly.
* disconnect: remove connected device check logic. SapService will
  check it.
* getConnectionStatus: remove connected device check logic.
  SapService will check it.
* remove member variable V and related checks.
* wrap if/else statement in curly brackets.
* add robotest for SapProfile.

Bug: 116281023
Test: make -j42 RunSettingsLibRoboTests ROBOTEST_FILTER=SapProfileTest
Change-Id: I2efc1beb7a12e1ec412baf54f895d2ebe930e8f1
Merged-In: I2efc1beb7a12e1ec412baf54f895d2ebe930e8f1

5 years agoMerge "Warn about sensitive bugreport contents."
Nandana Dutt [Wed, 3 Oct 2018 09:51:59 +0000 (09:51 +0000)]
Merge "Warn about sensitive bugreport contents."

5 years agoMerge "Synchronize access to sNotificationBundle."
Nandana Dutt [Wed, 3 Oct 2018 08:55:01 +0000 (08:55 +0000)]
Merge "Synchronize access to sNotificationBundle."

5 years agoMerge changes from topic "fcc_2019"
Jack Yu [Wed, 3 Oct 2018 04:02:24 +0000 (04:02 +0000)]
Merge changes from topic "fcc_2019"

* changes:
  Added new cell broadcast channels
  Use locale language instead of harcoded langauge

5 years agoMerge "Use SDK Constant for NeighboringCellInfo Docstring"
Nathan Harold [Wed, 3 Oct 2018 01:21:17 +0000 (01:21 +0000)]
Merge "Use SDK Constant for NeighboringCellInfo Docstring"

5 years agoRenamed get network registration states API
Jack Yu [Wed, 3 Oct 2018 00:01:51 +0000 (17:01 -0700)]
Renamed get network registration states API

Using the term "for" is more appropriate than "from".

Test: Build
Bug: 73659459
Change-Id: I9e06a35979b887a14822862f290798a7f75a54f8

5 years agoMerge "Reworked getNetworkRegistrationStates API"
Jack Yu [Tue, 2 Oct 2018 23:34:15 +0000 (23:34 +0000)]
Merge "Reworked getNetworkRegistrationStates API"

5 years agoUse SDK Constant for NeighboringCellInfo Docstring
Nathan Harold [Tue, 2 Oct 2018 22:55:36 +0000 (15:55 -0700)]
Use SDK Constant for NeighboringCellInfo Docstring

As per API council feedback, when documenting
SDK-level-specific behavior and recommendations, the
document should use and link to the SDK constant rather
than its value. Update the docstring accordingly, and
also some minor verbiage tweaks.

Bug: 117154674
Test: compilation; docstring-only change
Change-Id: I0ee56a4d76a311a8e0136766ef45aeda46cd12b4

5 years agoMerge "Add handleCallIntent method in TelecomManager."
Tyler Gunn [Tue, 2 Oct 2018 22:27:14 +0000 (22:27 +0000)]
Merge "Add handleCallIntent method in TelecomManager."

5 years agoAdded new cell broadcast channels
Jack Yu [Wed, 12 Sep 2018 21:32:27 +0000 (14:32 -0700)]
Added new cell broadcast channels

Added new cell broadcast channels for public safety messages
and state/local test alert required by FCC of the United States.

Test: Build
Bug: 11075463871497689110896497
Merged-In: I05c57b66d85ea7f2b67d7fc421230442f5c7694f
Change-Id: I05c57b66d85ea7f2b67d7fc421230442f5c7694f
(cherry picked from commit 78921f09257d62236b19aee20bbafc00e0320fd8)
(cherry picked from commit 4353217a778c33f4831a8b74d9c12ea22cf442cd)

5 years agoUse locale language instead of harcoded langauge
Jack Yu [Mon, 17 Sep 2018 17:46:40 +0000 (10:46 -0700)]
Use locale language instead of harcoded langauge

Used the locale language instead of the hardcoded language since
ISO 639 is not a stable standard. Some language codes changed before.

This is part of the cell broadcast language filtering feature
added per U.S. FCC requirement.

Test: Manual
Bug: 11075463871497689110896497
Merged-In: I3cf42eb037cdbb40597c1053fedb36b478277fc9
Change-Id: I3cf42eb037cdbb40597c1053fedb36b478277fc9
(cherry picked from commit 28e9684705e63b5bb6c4a6d30fcf0809801b483f)
(cherry picked from commit 232b237b0fdc68cbe234d9d987161f8a7922995c)

5 years agoMerge "Remove unused / invalid import"
Treehugger Robot [Tue, 2 Oct 2018 21:46:01 +0000 (21:46 +0000)]
Merge "Remove unused / invalid import"

5 years agoMerge "Dismiss Dialog in post instead of immediately"
Treehugger Robot [Tue, 2 Oct 2018 21:34:07 +0000 (21:34 +0000)]
Merge "Dismiss Dialog in post instead of immediately"

5 years agoRemove unnecessary dependency on bouncycastle
Neil Fuller [Tue, 2 Oct 2018 20:32:36 +0000 (21:32 +0100)]
Remove unnecessary dependency on bouncycastle

Nothing in this target requires bouncycastle.
Bug: 113148576
Test: build

Change-Id: I6128fca1eca1c6cefe679721a4cf72729d27d6bb

5 years agoMerge "Add libbinderthreadstate to LOCAL_JNI_SHARED_LIBS for some tests"
Jayant Chowdhary [Tue, 2 Oct 2018 20:14:37 +0000 (20:14 +0000)]
Merge "Add libbinderthreadstate to LOCAL_JNI_SHARED_LIBS for some tests"

5 years agoReworked getNetworkRegistrationStates API
Jack Yu [Tue, 2 Oct 2018 18:14:38 +0000 (11:14 -0700)]
Reworked getNetworkRegistrationStates API

Added two new APIs for getting network registration states
from domain and transport type. Deprecated the old APIs.

Test: Manual
Bug: 73659459
Change-Id: I3143df320f2942213aa0f10fe3cca9851bd82bb8

5 years agoRemove an unused dependency on conscrypt
Neil Fuller [Tue, 2 Oct 2018 17:46:49 +0000 (18:46 +0100)]
Remove an unused dependency on conscrypt

The dependency is not needed and will soon be
forbidden.

Bug: 113148576
Test: build
Change-Id: I87975f5be02bff94f60da3b5d53c4cda711fddb0

5 years agoMerge "Allow wifi and ethenet connected at same time."
Treehugger Robot [Tue, 2 Oct 2018 17:09:16 +0000 (17:09 +0000)]
Merge "Allow wifi and ethenet connected at same time."

5 years agoSynchronize access to sNotificationBundle.
Felipe Leme [Fri, 21 Sep 2018 23:37:53 +0000 (16:37 -0700)]
Synchronize access to sNotificationBundle.

Otherwise Shell can crash due to ConcurrentModificationException

Test: atest BugreportReceiverTest
Test: manual verification

Fixes:116280360

Change-Id: I138acd43b313d2a7a9d945fb44a9d63e1ad798eb
Merged-In: I138acd43b313d2a7a9d945fb44a9d63e1ad798eb
(cherry picked from commit ee72fa19a97f2b0677a130204e3527bc3233e4d9)

5 years agoWarn about sensitive bugreport contents.
Jeff Sharkey [Thu, 13 Sep 2018 17:49:54 +0000 (11:49 -0600)]
Warn about sensitive bugreport contents.

We show this message when clicking a notification, but we also want
to alert users when they're picking files to attach/share.

Bug: 114711671
Test: manual
Change-Id: I23e249c93d6fa9cf960ef2a61d3fe769eb56ddf5
Merged-In: I23e249c93d6fa9cf960ef2a61d3fe769eb56ddf5
(cherry picked from commit 59137825eb11e6ca4c53e43a9973983ebdd09b33)

5 years agoDisable the buginfo dialog on AndroidTV
Kristian Monsen [Mon, 3 Sep 2018 14:06:30 +0000 (16:06 +0200)]
Disable the buginfo dialog on AndroidTV

Bug: 113033835
Test: Tested manually on Atom
Change-Id: If65997e28db7c0100018145f9313549494e41a2a
Merged-In: If65997e28db7c0100018145f9313549494e41a2a
(cherry picked from commit cb68d29f03f14b188ccc02b877161173b631685d)
(cherry picked from commit 01badb78744bc48e35215556a49ac97a17cbce3a)

5 years agoBugreport: Fix SystemUI service from being dumped twice 1/2
Vishnu Nair [Mon, 2 Jul 2018 21:29:31 +0000 (14:29 -0700)]
Bugreport: Fix SystemUI service from being dumped twice 1/2

Bug: 110490179
Fix: 110490179

Test: Manual test dumpsys activity
  adb shell dumpsys activity service all-platform-non-critical
  adb shell dumpsys activity service all-platform
  adb shell dumpsys activity service
  Take bugreport and check contents

Test: atest FrameworksCoreTests:DumpUtilsTest

Change-Id: I9173d3fa0cc3aaf42e3ab03e7e2892cf4188b13b
Merged-In: I9173d3fa0cc3aaf42e3ab03e7e2892cf4188b13b
(cherry picked from commit c69cd4480ee7dc06de8aacee399e19e99362ecb0)

5 years agoMerge "using the correct intent extra for subId"
Chen Xu [Tue, 2 Oct 2018 04:26:23 +0000 (04:26 +0000)]
Merge "using the correct intent extra for subId"

5 years agoMerge "Add noexcept to move constructors and assignment operators."
Chih-hung Hsieh [Tue, 2 Oct 2018 00:37:46 +0000 (00:37 +0000)]
Merge "Add noexcept to move constructors and assignment operators."

5 years agoMerge "Prototype XML view compiler"
Treehugger Robot [Tue, 2 Oct 2018 00:28:15 +0000 (00:28 +0000)]
Merge "Prototype XML view compiler"

5 years agoMerge "Do not use StringPiece in ExtractJavaIdentifier"
Treehugger Robot [Mon, 1 Oct 2018 23:37:31 +0000 (23:37 +0000)]
Merge "Do not use StringPiece in ExtractJavaIdentifier"

5 years agoAdd libbinderthreadstate to LOCAL_JNI_SHARED_LIBS for some tests
Jayant Chowdhary [Fri, 28 Sep 2018 19:56:05 +0000 (12:56 -0700)]
Add libbinderthreadstate to LOCAL_JNI_SHARED_LIBS for some tests

libbinder and libhwbinder now also depend on libbinderthreadstate. Add
this dependency to LOCAL_JNI_SHARED_LIBS since these libraries need to
be packaged together.

Bug: 110364143

Test: atest FrameworksNetTests
Test: atest FrameworksServiceTests (no new failures)
Test: atest FrameworksUiServiceTests

Change-Id: Ibc63f041b8ee23cc4d0e9d82a508a128104e6025
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
5 years agousing the correct intent extra for subId
chen xu [Fri, 28 Sep 2018 22:53:43 +0000 (15:53 -0700)]
using the correct intent extra for subId

Some telephony subscription related intent uses hidden extra
PhoneConstants.SUBSCRIPTION_KEY. We should sent the public extra
SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX instead.

Bug: 116754807
Test: telephony unit test
Change-Id: I842df9b3fa7c0c8efed2db6ac5cd6a8c34ab3ee4

5 years agoPrototype XML view compiler
Eric Holk [Wed, 5 Sep 2018 17:43:31 +0000 (10:43 -0700)]
Prototype XML view compiler

This is an initial step towards a tool for pre-compiling layout XML files.  It
accepts an XML file and produces a Java language class called CompiledView with
a static method, inflate. Calling CompiledView.inflate should then return a view
object that is equivalent to calling LayoutInflater.inflate on the same
resource.

There are still several important limitations, but this works well enough to do
some experimentation. The limitations include:
* Currently only one layout can be compiled at a time.
* `merge` and `include` nodes are not supported.
* View compilation is a manual process that requires code changes in the
  application.
* The tests in this CL do not yet exercise any interesting behavior.

Bug: 111895153
Change-Id: I3e6880b08c52087d24ae7486495bd7fa282f4ff7

5 years agoMerge "Revert isResolvingImsBinding ITelephony interface"
Brad Ebinger [Mon, 1 Oct 2018 20:58:56 +0000 (20:58 +0000)]
Merge "Revert isResolvingImsBinding ITelephony interface"

5 years agoAdd noexcept to move constructors and assignment operators.
Chih-Hung Hsieh [Tue, 25 Sep 2018 19:01:21 +0000 (12:01 -0700)]
Add noexcept to move constructors and assignment operators.

Bug: 116614593
Test: build with WITH_TIDY=1
Change-Id: Ic3993d88eb3066aef402d74c4d543c56a1dfd5c3

5 years agoMerge "Add TEST_MAPPING for DexManager etc."
Treehugger Robot [Mon, 1 Oct 2018 19:08:22 +0000 (19:08 +0000)]
Merge "Add TEST_MAPPING for DexManager etc."

5 years agoMerge changes from topic "bugfix_content_path"
Jeff Sharkey [Mon, 1 Oct 2018 17:49:03 +0000 (17:49 +0000)]
Merge changes from topic "bugfix_content_path"

* changes:
  Add OEM_SOUNDS_DIR variable
  Fix the bug that secondary storage path is judged as internal
  Revert "MediaStore.Audio.Media.getContentUriForPath() returns unexpected content"

5 years agoMerge "Check for null socket name in socket_connect_local."
Treehugger Robot [Mon, 1 Oct 2018 17:26:56 +0000 (17:26 +0000)]
Merge "Check for null socket name in socket_connect_local."

5 years agoMerge "Fix: statsd path in whilelist of native processes"
Treehugger Robot [Mon, 1 Oct 2018 17:04:20 +0000 (17:04 +0000)]
Merge "Fix: statsd path in whilelist of native processes"

5 years agoFix ImsManager callback called once registered
Youming Ye [Tue, 25 Sep 2018 22:58:45 +0000 (15:58 -0700)]
Fix ImsManager callback called once registered

ImsRegistration callback now extends ImsRegistrationCallback stub, no
need of wrappings when registered in MmTelFeatureConnections.

Change-Id: Ia04202ef9c16815897eb3fd713125adac01f2550
Test: Unit
Bug: 112677827

5 years agoAllow wifi and ethenet connected at same time.
Leif Hendrik Wilden [Wed, 2 May 2018 19:05:24 +0000 (12:05 -0700)]
Allow wifi and ethenet connected at same time.

This will improve the user experience on Android TV devices,
see bug for details.

In addition when connecting adb to the device by ethernet
for cts, wifi will not connect, causing lots of tests to fail.
For example:
[CTS7.1]android.net.wifi.cts.WifiInfoTest#testWifiInfoProperties
[CTS7.1]android.net.cts.ConnectivityManagerTest#testConnectivityChanged_
manifestRequestOnlyPreN_shouldReceiveIntent

Use command:settings to put global wifi_data_always_on 1 to enable it.

Bug: 26102779
Test: Manual, CTS.
Change-Id: I711d93061a6bc7164d98a858912f781e1b967406

5 years agoAdd TEST_MAPPING for DexManager etc.
Alan Stokes [Mon, 1 Oct 2018 10:42:22 +0000 (11:42 +0100)]
Add TEST_MAPPING for DexManager etc.

Test: atest
Change-Id: I2a92ab9f32faf905aa6dc591e1991ba30c6a26c9

5 years agoFix: statsd path in whilelist of native processes
Rafal Slawik [Mon, 1 Oct 2018 10:39:58 +0000 (11:39 +0100)]
Fix: statsd path in whilelist of native processes

This whitelist is used when calling Process.getPidsForCommands. That
method reads all pid directories under /proc and returns only those
which /proc/pid/cmdline matches the whitelist. Statsd returns
/system/bin/statsd in its cmdline and therefore was not included in the
results and ignored from reporting.

Bug: 116784348
Test: cat /proc/pid/cmdline for statsd
Change-Id: I2c37a25dd26baac1ac043f9a559a391bdc32041e

5 years agoRemove unused / invalid import
Neil Fuller [Mon, 1 Oct 2018 10:32:36 +0000 (11:32 +0100)]
Remove unused / invalid import

NavigationBarCompat imports sun.misc.Resource though
it doesn't need it.

Bug: 113148576
Test: build only
Change-Id: I26d6e0b3d9a8948333fdf9f3659b87b3b46a75d5

5 years agoMerge "Cleanup."
Treehugger Robot [Mon, 1 Oct 2018 08:48:49 +0000 (08:48 +0000)]
Merge "Cleanup."

5 years agoMerge "ConnectivityService get INetd directly."
Luke Huang [Mon, 1 Oct 2018 07:28:42 +0000 (07:28 +0000)]
Merge "ConnectivityService get INetd directly."

5 years agoMerge "Remove spurious WTF in rematching networks."
Treehugger Robot [Mon, 1 Oct 2018 06:33:29 +0000 (06:33 +0000)]
Merge "Remove spurious WTF in rematching networks."

5 years agoMerge "Make requestRouteToHost a no-op for system callers."
Treehugger Robot [Mon, 1 Oct 2018 05:36:28 +0000 (05:36 +0000)]
Merge "Make requestRouteToHost a no-op for system callers."

5 years agoRemove spurious WTF in rematching networks.
Lorenzo Colitti [Mon, 1 Oct 2018 04:16:55 +0000 (13:16 +0900)]
Remove spurious WTF in rematching networks.

By construction, this WTF should never happen, since it's in an
if (nri.request.isRequest()) and by definition requests can only
be satisfied by one network at a time.

I don't think we've ever seen this particular WTF in an APR
report, which suggests that it's not happening in practice.

Test: atest FrameworksNetTests CtsNetTestCasesLegacyApi22 CtsNetTestCasesLegacyPermission22 android.net.cts.ConnectivityManagerTest
Change-Id: Icf4c7d2bb1da3c7db695cf0bcebc5806190a1677

5 years agoCleanup.
Chalard Jean [Mon, 1 Oct 2018 03:58:19 +0000 (12:58 +0900)]
Cleanup.

Test: runtest FrameworksNetTests
Change-Id: I8abb6de84dad79f6b15ef3af80da49da1d356cff

5 years agoConnectivityService get INetd directly.
Luke Huang [Thu, 27 Sep 2018 11:33:11 +0000 (19:33 +0800)]
ConnectivityService get INetd directly.

This is the first step for ConnectivityService
call into INetd directly.
Import INetd and get it by using NetdService.

Test: runtest frameworks-net passes
Test: manual testing of wakeupAdd/DelInterface works
Change-Id: I643dba5206c66958134152d062f3f3a19a34cf2c

5 years agoMake requestRouteToHost a no-op for system callers.
Lorenzo Colitti [Fri, 28 Sep 2018 02:31:55 +0000 (11:31 +0900)]
Make requestRouteToHost a no-op for system callers.

Everything in the system should now be using proper multinetwork
APIs instead of this insecure and error-prone API.

Make this method do nothing when called by the system. For now,
keep the code around for backwards compatibility for apps
targeting Android releases before M.

Bug: 25824776
Bug: 25876485
Test: FrameworksNetTests pass
Test: CtsNetTestCasesLegacyApi22 pass
Test: CtsNetTestCasesLegacyPermission22 pass
Test: android.net.cts.ConnectivityManagerTest passes
Change-Id: I9b3557faccccc95c7b954db6a13b853b4c7edea0

5 years agoMerge "Tether-related commands porting"
Luke Huang [Mon, 1 Oct 2018 03:02:25 +0000 (03:02 +0000)]
Merge "Tether-related commands porting"

5 years agoMerge "Rename object mNetd to mNetworkManagementService"
Luke Huang [Mon, 1 Oct 2018 03:01:33 +0000 (03:01 +0000)]
Merge "Rename object mNetd to mNetworkManagementService"

5 years agoMerge "Fix idle timer rule leakage"
Chiachang Wang [Mon, 1 Oct 2018 02:20:23 +0000 (02:20 +0000)]
Merge "Fix idle timer rule leakage"

5 years agoMerge changes I0f997d30,I288ba1f4
Treehugger Robot [Mon, 1 Oct 2018 02:18:46 +0000 (02:18 +0000)]
Merge changes I0f997d30,I288ba1f4

* changes:
  Enable new DHCP server by default
  Use new DHCP server in TetheringTest

5 years agoMerge "Handling potential SIGPIPE signals."
Treehugger Robot [Sat, 29 Sep 2018 07:39:04 +0000 (07:39 +0000)]
Merge "Handling potential SIGPIPE signals."

5 years agoMerge "Increasing TombstoneSection timeout to 2 minutes."
Treehugger Robot [Sat, 29 Sep 2018 07:38:59 +0000 (07:38 +0000)]
Merge "Increasing TombstoneSection timeout to 2 minutes."

5 years agoMerge "Replace libsuspend with android.system.suspend@1.0"
Treehugger Robot [Sat, 29 Sep 2018 01:08:18 +0000 (01:08 +0000)]
Merge "Replace libsuspend with android.system.suspend@1.0"

5 years agoMerge "Add vendor notice header at the top of Third-party licenses"
Treehugger Robot [Sat, 29 Sep 2018 00:33:11 +0000 (00:33 +0000)]
Merge "Add vendor notice header at the top of Third-party licenses"

5 years agoMerge "InetDiagSocketTest: enable UDP unit tests on all devices"
Treehugger Robot [Sat, 29 Sep 2018 00:16:11 +0000 (00:16 +0000)]
Merge "InetDiagSocketTest: enable UDP unit tests on all devices"

5 years agoAdd handleCallIntent method in TelecomManager.
Tyler Gunn [Fri, 28 Sep 2018 23:16:20 +0000 (16:16 -0700)]
Add handleCallIntent method in TelecomManager.

This is an @hide method usable only from within Telecom itself in order to
trampoline an ACTION_CALL intent from the UserCallActivity to
Telecom's system service.

Bug: 116719392
Test: Verify that calls initiated via CALL intent no longer get rebroadcast
and are instead sent directly to Telecom.

Change-Id: Ie765631bef8329a8ed12723d9c037a44b4f80882

5 years agoMerge "Add config to only allow auto select of networks"
Hall Liu [Fri, 28 Sep 2018 23:15:03 +0000 (23:15 +0000)]
Merge "Add config to only allow auto select of networks"

5 years agoMerge "Remove getNeighboringCell API"
Nathan Harold [Fri, 28 Sep 2018 21:40:47 +0000 (21:40 +0000)]
Merge "Remove getNeighboringCell API"

5 years agoAdd vendor notice header at the top of Third-party licenses
Jin Dong [Fri, 24 Aug 2018 09:34:54 +0000 (17:34 +0800)]
Add vendor notice header at the top of Third-party licenses

Vendor can add notice header at the top of "Third-party licenses"
by overlay the string notice_header.

Fixes: 116298367
Change-Id: If80d69180664970441d0addccd81d65d7ab55c3b
Merged-In: If80d69180664970441d0addccd81d65d7ab55c3b

5 years agoRevert isResolvingImsBinding ITelephony interface
Brad Ebinger [Thu, 14 Jun 2018 00:11:50 +0000 (17:11 -0700)]
Revert isResolvingImsBinding ITelephony interface

Reverting the only user of this interface.

Bug: 109762920
Bug: 116766786
Test: GTS/Unit tests for ImsService
Merged-In: I9c8cc1c4401590865f33fa13402152287063cecf
Change-Id: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f

5 years agoMerge "Don't check qtaguid file unless using them"
Treehugger Robot [Fri, 28 Sep 2018 18:35:47 +0000 (18:35 +0000)]
Merge "Don't check qtaguid file unless using them"

5 years agoReplace libsuspend with android.system.suspend@1.0
Tri Vo [Thu, 30 Aug 2018 04:11:37 +0000 (21:11 -0700)]
Replace libsuspend with android.system.suspend@1.0

This change only replaces libsuspend's suspend loop with the one in
android.system.suspend@1.0.

Native wake lock behavior is unaffected as they are still handled via
/sys/power/wake_[un]lock.

Bug: 78888165
Test: device boots, suspends when left alone
Change-Id: I5e1e9048b0fc316aa6692687684ac11f44466f7e

5 years agoInetDiagSocketTest: enable UDP unit tests on all devices
Jeff Vander Stoep [Fri, 28 Sep 2018 14:54:56 +0000 (07:54 -0700)]
InetDiagSocketTest: enable UDP unit tests on all devices

Bug: 116849885
Test: atest InetDiagSocketTest
Change-Id: I3b036818cccd0959feb3a93bc722d70e3ef2c4d7

5 years agoCheck for null socket name in socket_connect_local.
Torne (Richard Coles) [Thu, 16 Mar 2017 15:52:46 +0000 (15:52 +0000)]
Check for null socket name in socket_connect_local.

socket_bind_local checks if the name is null before using it, but
socket_connect_local doesn't, resulting in a segfault if you pass null
as the socket name. Check for this and convert it to
NullPointerException to make the crash more reasonable.

Test: am instrument -w -e class android.net.LocalSocketTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I67dedbe9ca1be6425e047496d0ead92eb7f64691

5 years agoFix idle timer rule leakage
Chiachang Wang [Fri, 28 Sep 2018 14:42:48 +0000 (22:42 +0800)]
Fix idle timer rule leakage

Idle timer rule is not cleared as expected if there is a
default network replacement.

Bug:37080406
Test: 1.run frameworks-net
      2.check iptables rule with default network replacement

Change-Id: I6bd29d79e4ca3e8de4b867c4fcb5f81d02ba6de4

5 years agoMerge "Call clearSettingsProvider before and after test"
Treehugger Robot [Fri, 28 Sep 2018 14:06:36 +0000 (14:06 +0000)]
Merge "Call clearSettingsProvider before and after test"

5 years agoMerge "Add new DelegateLastClassLoader API"
Nicolas Geoffray [Fri, 28 Sep 2018 12:12:12 +0000 (12:12 +0000)]
Merge "Add new DelegateLastClassLoader API"

5 years agoRename object mNetd to mNetworkManagementService
Luke Huang [Thu, 27 Sep 2018 08:58:23 +0000 (16:58 +0800)]
Rename object mNetd to mNetworkManagementService

No functionality change

Test: runtest frameworks-net passes
Change-Id: Ic3977eed9a86deb76ef0e4e12ffa17597bdecc30

5 years agoCall clearSettingsProvider before and after test
Remi NGUYEN VAN [Fri, 28 Sep 2018 05:33:11 +0000 (14:33 +0900)]
Call clearSettingsProvider before and after test

FakeSettingsProvider requires this method to be called before and after
use. Without this, the settings value or content provider may be cached
statically, so the test will be affected by code accessing settings
before it is run.

Bug: b/116668105
Test: atest FrameworksNetTests
Change-Id: I1480f3f3bbb17791752582a70327bb5c7c348d7c

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 "Don't throw a NPE in SharedLog#e"
Remi NGUYEN VAN [Fri, 28 Sep 2018 01:08:59 +0000 (01:08 +0000)]
Merge "Don't throw a NPE in SharedLog#e"

5 years agoMerge "Catch IllegalArgumentException on NetworkScan.stopScan"
Nathan Harold [Thu, 27 Sep 2018 23:55:01 +0000 (23:55 +0000)]
Merge "Catch IllegalArgumentException on NetworkScan.stopScan"

5 years agoMerge "Implement equal method in SubscriptionInfo."
Xiangyu/Malcolm Chen [Thu, 27 Sep 2018 20:51:00 +0000 (20:51 +0000)]
Merge "Implement equal method in SubscriptionInfo."

5 years agoImplement equal method in SubscriptionInfo.
Malcolm Chen [Sat, 15 Sep 2018 01:07:02 +0000 (18:07 -0700)]
Implement equal method in SubscriptionInfo.

Bug: 115541873 92796390
Test: manual with test app
Change-Id: I217f9d612df5cecac8f0359649f3e79a60a95dde
Merged-In: I217f9d612df5cecac8f0359649f3e79a60a95dde

5 years agoCatch IllegalArgumentException on NetworkScan.stopScan
Nathan Harold [Wed, 26 Sep 2018 03:10:48 +0000 (20:10 -0700)]
Catch IllegalArgumentException on NetworkScan.stopScan

IllegalArgumentException is thrown when a terminated
scan calls stop. This change softens the exception and
error type that is logged and considers this normal.

Bug: 113823866
Test: compilation
Change-Id: I7ce60d6badfac52156cceca83b39c1afe21b4eda

5 years agoAdd config to only allow auto select of networks
Mattias Nilsson [Mon, 11 Dec 2017 12:45:40 +0000 (13:45 +0100)]
Add config to only allow auto select of networks

Make it possible for carriers to prevent users from
doing a manual search of networks when in the home network.
This affects Advanced Networks Settings when the user
is not roaming.

This is sometimes called "Permanent automatic mode".

Test: Add an entry in vendor.xml
Bug: 70499144
Change-Id: I9fe91a8510683e4bb3d51efb168c0d159dbb4591

5 years agoMerge "Revert "Revert "new System API for preferred network mode"""
Lalit Maganti [Thu, 27 Sep 2018 15:00:12 +0000 (15:00 +0000)]
Merge "Revert "Revert "new System API for preferred network mode"""

5 years agoRevert "Revert "new System API for preferred network mode""
Lalit Maganti [Thu, 27 Sep 2018 14:57:06 +0000 (14:57 +0000)]
Revert "Revert "new System API for preferred network mode""

This reverts commit dada4c60d83730d706c4ebe549c3460e596a187e.

Reason for revert: Breaking aosp-master builds.

Change-Id: Ie48b2125025878ce13953706a7eec24bce38594b

5 years agoMerge "Make pre-scale for absolute volume configurable"
Jean-Michel Trivi [Thu, 27 Sep 2018 14:35:13 +0000 (14:35 +0000)]
Merge "Make pre-scale for absolute volume configurable"

5 years agoMerge "Revert "new System API for preferred network mode""
Lalit Maganti [Thu, 27 Sep 2018 12:17:40 +0000 (12:17 +0000)]
Merge "Revert "new System API for preferred network mode""

5 years agoRevert "new System API for preferred network mode"
Lalit Maganti [Thu, 27 Sep 2018 10:33:47 +0000 (10:33 +0000)]
Revert "new System API for preferred network mode"

This reverts commit 8a8832fd810710fd8fbd7868be49abff270a1013.

Reason for revert: Causing failures on git_pi-dev-plus-aosp for docs and aosp_sailfish.

Change-Id: I1801188e66420a67244b3223e26334c4650d56be
Merged-In: Ic108c484905f80783982a22e8152609257d684b5

5 years agoDon't throw a NPE in SharedLog#e
Remi NGUYEN VAN [Thu, 27 Sep 2018 02:33:24 +0000 (11:33 +0900)]
Don't throw a NPE in SharedLog#e

Some DhcpServer error code paths could cause a NPE, when the logError
callback was called without an exception. Allowing SharedLog#e to be
called with a null Throwable is less error-prone.

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

5 years agoMerge "Fix trial run in AppLaunch test"
Treehugger Robot [Thu, 27 Sep 2018 02:20:30 +0000 (02:20 +0000)]
Merge "Fix trial run in AppLaunch test"

5 years agoMerge "new System API for preferred network mode"
Chen Xu [Thu, 27 Sep 2018 00:30:29 +0000 (00:30 +0000)]
Merge "new System API for preferred network mode"

5 years agoMake pre-scale for absolute volume configurable
Tomoharu Kasahara [Thu, 6 Sep 2018 11:04:38 +0000 (20:04 +0900)]
Make pre-scale for absolute volume configurable

Audio gain for lower volume steps are restricted for
Bluetooth Absolute Volume scenario, but it's better
not to use the fixed value.
This CL makes it possible to configure the value of
pre-scale.

Bug: 114220617
Test: manual - gain is restricted as per the configuration

Change-Id: I1fd0c77476386ba9518e1819d5ea2c7b0c344a40
Merged-In: I1fd0c77476386ba9518e1819d5ea2c7b0c344a40

5 years agoMerge "Dismiss SIM lock page after correct SIM"
Jordan Liu [Wed, 26 Sep 2018 23:42:55 +0000 (23:42 +0000)]
Merge "Dismiss SIM lock page after correct SIM"

5 years agoMerge "Change FileStream test buffer from char* void*"
Ryan Mitchell [Wed, 26 Sep 2018 21:58:44 +0000 (21:58 +0000)]
Merge "Change FileStream test buffer from char* void*"

5 years agoMerge "Cleanup deprecated or removed telephony methods."
Tyler Gunn [Wed, 26 Sep 2018 21:55:36 +0000 (21:55 +0000)]
Merge "Cleanup deprecated or removed telephony methods."

5 years agoChange FileStream test buffer from char* void*
Ryan Mitchell [Wed, 26 Sep 2018 17:26:53 +0000 (10:26 -0700)]
Change FileStream test buffer from char* void*

It seems like GoogleTest prints string parameters before checking them.
This can be a problem in FileStream tests since these buffers are not
null terminated.  ASan reports heap-buffer-overflow.

Test: m SANITIZE_HOST=address
out/soong/.intermediates/frameworks/base/tools/aapt2/aapt2_tests/linux_glibc_x86_64_asan/aapt2_tests \
      LD_LIBRARY_PATH=out/soong/.intermediates/external/libcxx/libc++/linux_glibc_x86_64_shared
out/soong/.intermediates/frameworks/base/tools/aapt2/aapt2_tests/linux_glibc_x86_64_asan/aapt2_tests

Change-Id: I9a1956d815729de23c7038fb0d498240eb917070