OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Add new error codes in MbmsException"
Hall Liu [Sat, 27 May 2017 01:08:29 +0000 (01:08 +0000)]
Merge "Add new error codes in MbmsException"

7 years agoMerge "Add 32 and 128 bit Service Data parsing."
Treehugger Robot [Fri, 26 May 2017 22:53:27 +0000 (22:53 +0000)]
Merge "Add 32 and 128 bit Service Data parsing."

7 years agoAdd new error codes in MbmsException
Hall Liu [Fri, 26 May 2017 22:49:32 +0000 (15:49 -0700)]
Add new error codes in MbmsException

Test: builds
Change-Id: I523961f588ef5ada97e06f5a910875c123f97989

7 years agoMerge "Make NFC AIDL callbacks oneway"
Treehugger Robot [Fri, 26 May 2017 22:20:56 +0000 (22:20 +0000)]
Merge "Make NFC AIDL callbacks oneway"

7 years agoMerge "Add ID_LENGTH field for Empty type record"
Treehugger Robot [Fri, 26 May 2017 22:07:37 +0000 (22:07 +0000)]
Merge "Add ID_LENGTH field for Empty type record"

7 years agoAdd 32 and 128 bit Service Data parsing.
Jakub Pawlowski [Fri, 26 May 2017 20:59:55 +0000 (13:59 -0700)]
Add 32 and 128 bit Service Data parsing.

Bug: 62078132
Change-Id: I79ff75cd5ccbe346dca79693b074ff3cd09112dd

7 years agoMake NFC AIDL callbacks oneway
Ruchi Kandoi [Fri, 28 Apr 2017 22:48:02 +0000 (15:48 -0700)]
Make NFC AIDL callbacks oneway

Test: Read NFC tags, Android Beam
Bug: 32288773
Change-Id: I6294ec29be2af8feb578e9bfd5e0770ad9c09cc0
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
7 years agoAdd ID_LENGTH field for Empty type record
Yuka Anami [Mon, 15 May 2017 04:53:04 +0000 (13:53 +0900)]
Add ID_LENGTH field for Empty type record

If ID_LENGTH field is omitted from Empty Type record, it cannot be
detected as Ndef since the data is strictly checked by e3fc7d9954.
But it is not possible to create raw bytes of Empty Type record
which can meet this condition by using NdefRecord/NdefMessage.
To fix this issue, added ID_LENGTH field to Empty type record.

Bug: 38299566
Test: Write and read NDEF tag with empty type record
Change-Id: Idb58c80cf8562a8b314f4ddeccdc627dc0c6f5b4

7 years agoMerge "WifiManager: add iface name and mode labels"
Treehugger Robot [Fri, 26 May 2017 16:26:36 +0000 (16:26 +0000)]
Merge "WifiManager: add iface name and mode labels"

7 years agoWifiManager: add iface name and mode labels
Rebecca Silberstein [Thu, 25 May 2017 08:53:08 +0000 (01:53 -0700)]
WifiManager: add iface name and mode labels

Connectivity service needs to get the interface name and intended ip
configuration mode for softap.
This CL adds the interface name and softap target mode variables to
use to insert the extra info into the wifi ap state change broadcast.

Note: additional CLs are needed to verify the iface name and mode.  The
mode tracking is still in progress.

Bug: 62076211
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually verified the name in the broadcast
Merged-In: I67f82525b5c0fa5b81235311988c9b186d16077a
Merged-In: Ieff7af7c1ac2113b8044c16a01cad0f96cb70158
Change-Id: I64e1d13a9e422945fe9c4c268c206da365d0a3eb
(cherry picked from commit 4ac2cab8fd8cb6ef877f4e5c37f554f1a09b79dc)

7 years agoMerge "Support registration of offload control callbacks."
Treehugger Robot [Fri, 26 May 2017 10:07:25 +0000 (10:07 +0000)]
Merge "Support registration of offload control callbacks."

7 years agoMerge "Pass bootComplete to dexopt."
Nicolas Geoffray [Fri, 26 May 2017 08:00:40 +0000 (08:00 +0000)]
Merge "Pass bootComplete to dexopt."

7 years agoSupport registration of offload control callbacks.
Erik Kline [Tue, 25 Apr 2017 10:19:59 +0000 (19:19 +0900)]
Support registration of offload control callbacks.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 29337859
Bug: 32163131
Bug: 34361337
Change-Id: I054cdf6a277c77e4cbf5c81145446a9be1c5fe39

7 years agoMerge changes If4deb106,Ib25d7658
Hugo Benichi [Fri, 26 May 2017 00:34:03 +0000 (00:34 +0000)]
Merge changes If4deb106,Ib25d7658

* changes:
  NsdService: do not use ContentResolver directly
  @Ignore ConnectivityServiceTest#testRequestBenchmark

7 years agoMerge "Add IMEI_NOT_ACCEPTED error code for IMS"
Brad Ebinger [Thu, 25 May 2017 22:31:51 +0000 (22:31 +0000)]
Merge "Add IMEI_NOT_ACCEPTED error code for IMS"

7 years agoNsdService: do not use ContentResolver directly
Hugo Benichi [Thu, 25 May 2017 04:49:32 +0000 (13:49 +0900)]
NsdService: do not use ContentResolver directly

This patch changes NsdService to call registerContentObserver in the
ContentResolver class indirectly through NsdSettings.

This allows to easily intercept it and mock it in unit tests, and solves
test failures on the internal master branch where
registerContentObserver uses final or static methods that cannot be
worked around.

Bug: 32561414
Bug: 62044295
Test: runtest -x frameworks/base/tests/net/../NsdServiceTest.java
Change-Id: If4deb106de551746babb70196b20f21ece478850

7 years ago@Ignore ConnectivityServiceTest#testRequestBenchmark
Hugo Benichi [Thu, 25 May 2017 04:42:31 +0000 (13:42 +0900)]
@Ignore ConnectivityServiceTest#testRequestBenchmark

Ignore the last remaining test in ConnectivityServiceTest with spurious
failures. testRequestBenchmark has some intrinsic chances of failure due
to the fact it attempts to assert elapsed time durations against a
reference target.

Bug: 32561414
Test: no functional change
Change-Id: Ib25d76581b47997b2ef84df3e6a9fd9224b85d92

7 years agoMerge "HIDL: C++ Java parity"
Treehugger Robot [Thu, 25 May 2017 16:28:41 +0000 (16:28 +0000)]
Merge "HIDL: C++ Java parity"

7 years agoPass bootComplete to dexopt.
Nicolas Geoffray [Thu, 25 May 2017 12:53:22 +0000 (13:53 +0100)]
Pass bootComplete to dexopt.

bug: 37165062
Test: After OTA, check bootComplete=false on package updates
Change-Id: I6fc00216020bb16d8ed4f6e839b5e1df0e942700

7 years agoMerge "Remove time_zones_by_country.xml file"
Neil Fuller [Thu, 25 May 2017 10:39:14 +0000 (10:39 +0000)]
Merge "Remove time_zones_by_country.xml file"

7 years agoMerge "NsdServiceInfo: move test to tests/net"
Hugo Benichi [Thu, 25 May 2017 00:50:24 +0000 (00:50 +0000)]
Merge "NsdServiceInfo: move test to tests/net"

7 years agoMerge "Ignore flow label when comparing RAs in APF"
Joel Scherpelz [Wed, 24 May 2017 23:54:21 +0000 (23:54 +0000)]
Merge "Ignore flow label when comparing RAs in APF"

7 years agoMerge "Add ability to dump events in a timeline view."
Tyler Gunn [Wed, 24 May 2017 22:36:41 +0000 (22:36 +0000)]
Merge "Add ability to dump events in a timeline view."

7 years agoMerge "Support RRO for emergency number conversion map"
Brad Ebinger [Wed, 24 May 2017 20:19:29 +0000 (20:19 +0000)]
Merge "Support RRO for emergency number conversion map"

7 years agoRemove time_zones_by_country.xml file
Neil Fuller [Fri, 31 Mar 2017 12:05:01 +0000 (13:05 +0100)]
Remove time_zones_by_country.xml file

time_zones_by_country.xml has been replaced by a file that can
be updated outside of an OTA and can be accessed via
libcore.util.TimeZoneFinder. This means parsing code has been
removed from this class and replaced by calls to libcore code.

libcore code uses ICU so this class adapts to
java.util.TimeZone for published public APIs as well as other
knock-ons to reduce impact of this change in telephony code.
All use of classes called TimeZone are fully-qualified to
reduce confusion.

Several public-but-hidden methods have been removed. These
can be returned if there are any important apps relying on
them.

Bug: 25338903
Test: Ran CtsUtilTestCases
Change-Id: I699b4e7420e8d7e61ee68ec96552ab3144c9bab2

7 years agoMerge "[NotificationManagerService]Support multi users to notification pulse"
Treehugger Robot [Wed, 24 May 2017 14:28:48 +0000 (14:28 +0000)]
Merge "[NotificationManagerService]Support multi users to notification pulse"

7 years agoMerge "Fixed nfc-extras build files"
Paul Duffin [Wed, 24 May 2017 08:01:36 +0000 (08:01 +0000)]
Merge "Fixed nfc-extras build files"

7 years agoNsdServiceInfo: move test to tests/net
Hugo Benichi [Wed, 24 May 2017 06:39:39 +0000 (15:39 +0900)]
NsdServiceInfo: move test to tests/net

This patch also
  - adds a license plate to NsdServiceInfoTest
  - fixes some formatting and style issues
      package name
      uses of canonical junit asserts
  - update NsdServiceInfoTest to not use the deprecated AndroidTestCase

Bug: 62044295
Bug: 32561414
Test: $ runtest frameworks-net passes
Change-Id: Ie5ebb00172aef4eec19e6ecd2b41c4467901b93d

7 years agoMerge "Move NsdServiceTest to correct directory"
Treehugger Robot [Wed, 24 May 2017 06:47:29 +0000 (06:47 +0000)]
Merge "Move NsdServiceTest to correct directory"

7 years agoIgnore flow label when comparing RAs in APF
Joel Scherpelz [Wed, 24 May 2017 06:08:39 +0000 (15:08 +0900)]
Ignore flow label when comparing RAs in APF

This change modifies the RA filter generation code to ignore bytes 1-3
of the IPv6 header. It also updates testApfFilterRa such that it fails
without the updates to ApfFilter.

Test: as follows
        - built
        - flashed
        - booted
        - sent RAs from OS X with differing flow labels and observed
      that they were filtered
- ApfTest passes
Bug: 31166495

(cherry picked from commit 7006bd4fe5eba4b6fad43dd28d9cad2d26ce140a)

Change-Id: I32153238193ac13a0e59be1875d983a0567c41c7

7 years agoMove NsdServiceTest to correct directory
Hugo Benichi [Wed, 24 May 2017 05:16:55 +0000 (14:16 +0900)]
Move NsdServiceTest to correct directory

Test: no functional change
Bug: 62044295
Change-Id: Iad3af646e8d252f84978d1a367878a78c2869982

7 years agoMerge "Fix up upstream interface types for case DUN_UNSPECIFIED"
Treehugger Robot [Wed, 24 May 2017 01:51:04 +0000 (01:51 +0000)]
Merge "Fix up upstream interface types for case DUN_UNSPECIFIED"

7 years agoHIDL: C++ Java parity
Steven Moreland [Tue, 23 May 2017 19:45:16 +0000 (12:45 -0700)]
HIDL: C++ Java parity

Add same restrictions to Java that we have in C++ HIDL
code for C++ services.

Test: hidl_test_java, multiple internal devices work
Bug: 38415912
Change-Id: I48571a5cd94b0ba6b1f722d032e45aac6e9527ed

7 years agoFix up upstream interface types for case DUN_UNSPECIFIED
Jayachandran C [Thu, 18 May 2017 06:53:59 +0000 (23:53 -0700)]
Fix up upstream interface types for case DUN_UNSPECIFIED

The existing logic will add TYPE_MOBILE and TYPE_MOBILE_HIPRI
even if the carrier config has TYPE_DUN for DUN_UNSPECIFIED.

A check is added not to modify the upstream interface types
if there is already a cellular interface type. Add TYPE_MOBILE
and TYPE_MOBILE_HIPRI if there is no cellular types found.

Test: Hotspot on Verizon and T-Mobile US.
      Verified the requestNetwork has the DUN capability.

Bug: 38186915
Change-Id: I74fc5c791fee2885bf66df8975e92c2b48f1668c

7 years agoMerge "Consider the last inserted SIM for EmergencyAffordance"
Treehugger Robot [Tue, 23 May 2017 20:34:54 +0000 (20:34 +0000)]
Merge "Consider the last inserted SIM for EmergencyAffordance"

7 years agoMerge "Fix makefile warning."
Dan Willemsen [Tue, 23 May 2017 16:58:46 +0000 (16:58 +0000)]
Merge "Fix makefile warning."

7 years agoMerge "Fix NetworkStatsObserversTest"
Hugo Benichi [Tue, 23 May 2017 11:29:47 +0000 (11:29 +0000)]
Merge "Fix NetworkStatsObserversTest"

7 years agoFixed nfc-extras build files
Paul Duffin [Mon, 22 May 2017 14:58:56 +0000 (15:58 +0100)]
Fixed nfc-extras build files

The com.android.nfc_extras target was including the test class.
The nfc-extras/tests/Android.mk file was not being included so
was not being built by continuous build and could not be built
using make NfcExtrasTests.

Bug: 38487370
Bug: 30188076
Test: make checkbuild
Change-Id: I17f6723b899f26de329a2e74177bd02ba864b7b2

7 years agoMerge "NetworkManagementService.java: fix error-prone warnings"
Treehugger Robot [Tue, 23 May 2017 10:31:57 +0000 (10:31 +0000)]
Merge "NetworkManagementService.java: fix error-prone warnings"

7 years agoMerge "Fix NetworkStatsAccessTest"
Hugo Benichi [Tue, 23 May 2017 06:43:06 +0000 (06:43 +0000)]
Merge "Fix NetworkStatsAccessTest"

7 years agoMerge "ConnectivityManager: simplify callback handler"
Treehugger Robot [Tue, 23 May 2017 06:16:47 +0000 (06:16 +0000)]
Merge "ConnectivityManager: simplify callback handler"

7 years agoFix makefile warning.
Tomasz Wasilczyk [Tue, 11 Apr 2017 18:06:34 +0000 (11:06 -0700)]
Fix makefile warning.

Test: it builds.
Bug: b/37159108
Change-Id: I73c09c8eeb0bab5f506c3d81072cc80c71f63779
Merged-In: I73c09c8eeb0bab5f506c3d81072cc80c71f63779

7 years agoMerge "Refactor TISM add/remove code"
Treehugger Robot [Tue, 23 May 2017 04:44:22 +0000 (04:44 +0000)]
Merge "Refactor TISM add/remove code"

7 years agoMerge "ConnectivityServiceTest: fix flakyness"
Hugo Benichi [Tue, 23 May 2017 04:35:08 +0000 (04:35 +0000)]
Merge "ConnectivityServiceTest: fix flakyness"

7 years agoMerge "ConnectivityManager: improve argument validation"
Treehugger Robot [Tue, 23 May 2017 03:14:29 +0000 (03:14 +0000)]
Merge "ConnectivityManager: improve argument validation"

7 years agoConnectivityManager: simplify callback handler
Hugo Benichi [Tue, 9 May 2017 05:36:02 +0000 (14:36 +0900)]
ConnectivityManager: simplify callback handler

Bug: 36701874
Test: $ runtest frameworks-net
Change-Id: I4d5f08903a54f8dced7cb6ae86703847b908b784

7 years agoConnectivityManager: improve argument validation
Hugo Benichi [Tue, 9 May 2017 06:19:01 +0000 (15:19 +0900)]
ConnectivityManager: improve argument validation

Using Preconditions and dedicated static methods for checking arguments
to improve error stack traces without error messages.

Test: covered by previously added unit test
Bug: 36701874
Change-Id: Id872b2c887a4bca43a8c3644622add1c2ee57c6d

7 years agoFix NetworkStatsObserversTest
Hugo Benichi [Mon, 22 May 2017 06:09:25 +0000 (15:09 +0900)]
Fix NetworkStatsObserversTest

This patch fixes several spurious unit tests in
NetworkStatsObserversTest by using the updated waitForIdleHandler of
ConnectivityServiceTest. More specifically this fixes the following
tests:
  - testUnregister_knownRequest_releasesCaller
  - testUpdateStats_deviceAccess_notifies
  - testUpdateStats_userAccess_usageSameUser_notifies
  - testUpdateStats_defaultAccess_notifiesSameUid

This patch also removes the dummy message with type -1 sent at the end
of tests in NetworkStatsObserversTest and the associated assert, because
nothing is exercised or asserted immediately after.

This patch also updates NetworkStatsObserversTest to not depend on the
deprecated junit.framework.TestCase.

Bug: 32561414
Test: runtest -x frameworks/base/tests/../NetworkStatsObserversTest.java
Change-Id: I4fc909ee9bacc964c859fa7a3db34f9dc86b89cf

7 years agoFix NetworkStatsAccessTest
Hugo Benichi [Mon, 22 May 2017 05:33:05 +0000 (14:33 +0900)]
Fix NetworkStatsAccessTest

This patch fixes NetworkStatsAccessTest by taking into account
DEVICESUMMARY which was added in commit
3a8b343ce5220086c4f71e63f5d42f2d28434c4b.

Doing $ git revert 3a8b343ce5220086c4f71e63f5d42f2d28434c4b shows that
the existing assertions of NetworkStatsAccessTest passed before that
commit.

This patch also changes NetworkStatsAccessTest to use up-to-date testing
style and not depend on the deprecated junit.framework.TestCase.

Bug: 32561414
Test: runtest -x frameworks/base/../NetworkStatsAccessTest.java
Change-Id: Ib78f137578cf35e1c766b377b7f812a09173c49e

7 years agoConnectivityServiceTest: fix flakyness
Hugo Benichi [Mon, 22 May 2017 01:44:02 +0000 (10:44 +0900)]
ConnectivityServiceTest: fix flakyness

This patch attempts to fix the remaining spurious failures in
ConnectivityServiceTest, which have two causes:
 - waitForIdle() does not take into account the NetworkAgents handlers.
 - the deadlines in testRequestBenchmark are sometimes exceeded.

To fix the first issue, waitForIdle() is moved to a test level instance
method and also calls waitForIdleHandler on any non null
MockNetworkAgent. This is expected to fix spurious errors for the
following tests:
  - testMobildeDataAlwaysOn
  - testLingering
  - testPacketKeepAlive
  - testMMSonWiFi

To fix the second issue, the deadlines for testRequestBenchmark are
extended by 10ms. Also, the failure message is made more actionable by
providing the total time it took for the operation, instead of printing
the number of dispatches that were achieved before the deadline.

Bug: 32561414
Test: tests pass many times in a row (~500).
Change-Id: Id33c6ac1edfb0b89634fa7789dccb2da237e2709

7 years agoMerge "Added IWLAN metered APN support"
Treehugger Robot [Tue, 23 May 2017 01:02:31 +0000 (01:02 +0000)]
Merge "Added IWLAN metered APN support"

7 years agoAdded IWLAN metered APN support
Jack Yu [Sun, 21 May 2017 00:06:33 +0000 (17:06 -0700)]
Added IWLAN metered APN support

If the device is in IWLAN mode, when checking if the APN
type is metered, we read the settings from the IWLAN
metered APN list.

Test: Telephony unit tests
bug: 38304530

Merged-In: I46c9e1a15dd0dd40811d5a959d558fc78608b127
Change-Id: I46c9e1a15dd0dd40811d5a959d558fc78608b127

7 years agoNetworkManagementService.java: fix error-prone warnings
Andrew Scull [Fri, 19 May 2017 14:37:20 +0000 (15:37 +0100)]
NetworkManagementService.java: fix error-prone warnings

- Lock objects should be final
- Inner classes should be static if possible

Change-Id: Idca268e03ea1e9f80e64012d1e011dc8bca1d9a8
Merged-In: Idca268e03ea1e9f80e64012d1e011dc8bca1d9a8
Fix: 38446237
Test: Build

7 years agoMerge "Creat a new notification to avoid the mTetheredNotificationBuilder changed"
Treehugger Robot [Mon, 22 May 2017 10:41:38 +0000 (10:41 +0000)]
Merge "Creat a new notification to avoid the mTetheredNotificationBuilder changed"

7 years agoRefactor TISM add/remove code
Erik Kline [Wed, 26 Apr 2017 02:11:07 +0000 (11:11 +0900)]
Refactor TISM add/remove code

This de-duplicates all the TISM adding and teardown code.
It does not yet change the locking or threading semantics.

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - manual tethering of WiFi and USB start normally
Bug: 32163131
Bug: 36216864
Change-Id: I44a57660d23e76a7c13368cb8f60eaeac5830a0a

7 years ago[NotificationManagerService]Support multi users to notification pulse
zhoulei [Wed, 17 May 2017 10:41:25 +0000 (18:41 +0800)]
[NotificationManagerService]Support multi users to notification pulse

Turning off the notification light pulse in main userspace, while
all other userspaces would be turned off.

Change-Id: I3a3def7c842bcbe026be21b84c4e855d6f9ff50b
Signed-off-by: zhoulei <zhoulei5@xiaomi.com>
7 years agoMerge "OBEX: Add required parameters TAG ID's for PBAP 1.2"
Andre Eisenbach [Sat, 20 May 2017 00:28:59 +0000 (00:28 +0000)]
Merge "OBEX: Add required parameters TAG ID's for PBAP 1.2"

7 years agoOBEX: Add required parameters TAG ID's for PBAP 1.2
Hemant Gupta [Sat, 17 Oct 2015 14:10:53 +0000 (19:40 +0530)]
OBEX: Add required parameters TAG ID's for PBAP 1.2

Add required OBEX application parameters TAGID's and length
declarations required to support PBAP 1.2 specification.

Test: Connected with Remote PBAP Client supporting PBAP 1.2 and
verified that connection and transfer happens over L2CAP.
Connected with Remote PBAP Client supporting PBAP 1.1 and
and verified that connection and transfer happens over RFCOMM.

Bug: 33011817
Change-Id: I8a772b0dddf6ecf74b057e12d7596421c0e0f558

7 years agoMerge "Address ConnectivityManager API comments."
Hugo Benichi [Fri, 19 May 2017 23:05:55 +0000 (23:05 +0000)]
Merge "Address ConnectivityManager API comments."

7 years agoMerge "Implement stopStreaming API for MBMS"
Hall Liu [Fri, 19 May 2017 22:32:01 +0000 (22:32 +0000)]
Merge "Implement stopStreaming API for MBMS"

7 years agoAdd ability to dump events in a timeline view.
Tyler Gunn [Fri, 19 May 2017 17:10:23 +0000 (10:10 -0700)]
Add ability to dump events in a timeline view.

Adding new event dump which shows the events for all call, sorted by
time of event.

Test: Manual
Bug: 38450166
Change-Id: I9fd4ce92bdf62ef48d6940f03db1f2388003e9fc

7 years agoMerge "Add a method to start the captive portal login app."
Hugo Benichi [Fri, 19 May 2017 02:29:19 +0000 (02:29 +0000)]
Merge "Add a method to start the captive portal login app."

7 years agoMerge "Add test coverage for explicitlySelected networks."
Lorenzo Colitti [Fri, 19 May 2017 02:05:54 +0000 (02:05 +0000)]
Merge "Add test coverage for explicitlySelected networks."

7 years agoAdd a method to start the captive portal login app.
Lorenzo Colitti [Thu, 27 Apr 2017 05:30:21 +0000 (14:30 +0900)]
Add a method to start the captive portal login app.

Bug: 36203355
Bug: 36656914
Test: ConnectivityServiceTest (including new test) passes
Change-Id: Ide82858af67024623560ab79beea27c201b63447
Merged-In: I82a9a9a8da47870ba3f1bbef5941b37e970c844f

(cherry picked from commit 4734cdbbc38752765376aedb0d5208463674535e)

7 years agoImplement stopStreaming API for MBMS
Hall Liu [Thu, 18 May 2017 01:15:27 +0000 (18:15 -0700)]
Implement stopStreaming API for MBMS

Test: testapps
Change-Id: Ic0477bf489a89a67697a318ff0fab065e0327e08

7 years agoMerge "Also pin vdex file for camera"
Calin Juravle [Thu, 18 May 2017 21:03:48 +0000 (21:03 +0000)]
Merge "Also pin vdex file for camera"

7 years agoMerge "Consolidated all data allow/disallow logic into one method"
Przemyslaw Szczepaniak [Thu, 18 May 2017 08:58:26 +0000 (08:58 +0000)]
Merge "Consolidated all data allow/disallow logic into one method"

7 years agoConsolidated all data allow/disallow logic into one method
Jack Yu [Tue, 2 May 2017 00:01:11 +0000 (17:01 -0700)]
Consolidated all data allow/disallow logic into one method

Consolidated all data allow/disallow logic into one method
and got rid of the obsolete isDataPossible. This is the
preliminary work for checking if data is allowed just right
before data connection entering connected state.

Test: Telephony sanity tests and unit tests
bug: 33847610
Merged-In: I24f1415bbb59990e9e8e9920724be9e3f17e3e60
Change-Id: I24f1415bbb59990e9e8e9920724be9e3f17e3e60

7 years agoMerge "Expand logging capabilities of Tethering subsystem"
Treehugger Robot [Thu, 18 May 2017 03:25:28 +0000 (03:25 +0000)]
Merge "Expand logging capabilities of Tethering subsystem"

7 years agoMerge "Fix NetworkNotificationManagerTest"
Hugo Benichi [Thu, 18 May 2017 03:20:50 +0000 (03:20 +0000)]
Merge "Fix NetworkNotificationManagerTest"

7 years agoMerge "Captive portals: reinspect http result after fallback probe"
Hugo Benichi [Thu, 18 May 2017 02:50:48 +0000 (02:50 +0000)]
Merge "Captive portals: reinspect http result after fallback probe"

7 years agoFix NetworkNotificationManagerTest
Hugo Benichi [Thu, 23 Mar 2017 03:32:27 +0000 (12:32 +0900)]
Fix NetworkNotificationManagerTest

The testNotificationsShownAndCleared test was not doing anything
because the list of notification to show was always empty.

This patch fixes this issue and actually makes the test loop on
non-empty collections, and also fixes another ordering issue in
assertions themselves, hidden until now by the first issue.

Bug: 32561414
Test: runtest -x frameworks/base/tests/net/java/com/android/server/connectivity/NetworkNotificationManagerTest.java
Merged-In: I4837b1175d7c9133e9156e33acaa1e7e3341cc62
Change-Id: Ia30587bd68a87b83b62f57eeeb28fef7d95dbf81

(cherry picked from commit f8b804be5aeb5d0a36ff88649d7c5ecdc47c3ad1)

7 years agoCreat a new notification to avoid the mTetheredNotificationBuilder changed
zhouzhijie [Thu, 18 May 2017 02:02:59 +0000 (10:02 +0800)]
Creat a new notification to avoid the mTetheredNotificationBuilder changed

Now the method NotificationBuilder.build() is different with m.
it is not creat new notification. But here it need to creat a
new notification to avoid the mTetheredNotificationBuilder
changed. So we use buildInto to replace build

Change-Id: I274ec833de4ade4a778e1937a09d1e6242d92a7f
Signed-off-by: zhouzhijie <zhouzhijie@xiaomi.com>
7 years agoMerge "Move NetworkNotificationManagerTest to tests/net"
Hugo Benichi [Thu, 18 May 2017 02:01:39 +0000 (02:01 +0000)]
Merge "Move NetworkNotificationManagerTest to tests/net"

7 years agoExpand logging capabilities of Tethering subsystem
Erik Kline [Fri, 12 May 2017 07:52:48 +0000 (16:52 +0900)]
Expand logging capabilities of Tethering subsystem

Introduce a SharedLog that can be shared among all Tethering
components.  All log entries go to the same log, and each includes
its subsystem name.  Additionally, all entries emitted to the
system log shared the same tag, so can easily be watched.

More subsystems can inherit a SharedLog, but to minimize cherry-pick
conflicts we limit ourselves to these changes only.

Test: as follows
    - built
    - flashed
    - booted
    - log output observed via dumpsys
    - runtest frameworks-net passes
Bug: 32163131
Bug: 36988090
Bug: 38218697
Change-Id: I1229d4c55987402d84b0d4a2c8a595e0c829aa3e

7 years agoMerge "Finish moving NetworkStats tests to tests/net"
Hugo Benichi [Thu, 18 May 2017 00:09:53 +0000 (00:09 +0000)]
Merge "Finish moving NetworkStats tests to tests/net"

7 years agoMerge "Convert libsoundpool to Android.bp"
Treehugger Robot [Wed, 17 May 2017 21:31:16 +0000 (21:31 +0000)]
Merge "Convert libsoundpool to Android.bp"

7 years agoConvert libsoundpool to Android.bp
Colin Cross [Tue, 16 May 2017 20:08:19 +0000 (13:08 -0700)]
Convert libsoundpool to Android.bp

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

Test: m -j checkbuild
Change-Id: If0b7cb1e2c86ff1be41c00d98fd9ddec31287a53
Merged-In: If0b7cb1e2c86ff1be41c00d98fd9ddec31287a53
(cherry picked from commit 98c127f8cc652d1179871ad47cac99d15ea1a5a0)

7 years agoMerge "Fix for Bluetooth not restarting on User Switch"
Treehugger Robot [Wed, 17 May 2017 17:24:02 +0000 (17:24 +0000)]
Merge "Fix for Bluetooth not restarting on User Switch"

7 years agoAdd test coverage for explicitlySelected networks.
Lorenzo Colitti [Tue, 16 May 2017 16:28:09 +0000 (01:28 +0900)]
Add test coverage for explicitlySelected networks.

Also, make all tests start with mobile data always on disabled.

This is because some tests only pass when mobile data always on
is disabled. This doesn't cause any problems when running all
the tests in the file, because these tests are always run after
one or more calls to tearDown, which disables mobile data always
on. However, it does cause issues when those tests are run alone.

Test: new test passes 50 times in a row
Test: ConnectivityServiceTest passes
Change-Id: I1eef5d7f5ec5464e0f9a1d7f1130d9ba6dea4557

7 years agoMerge "Convert libmedia_jni to Android.bp"
Colin Cross [Wed, 17 May 2017 15:19:25 +0000 (15:19 +0000)]
Merge "Convert libmedia_jni to Android.bp"

7 years agoMove NetworkNotificationManagerTest to tests/net
Hugo Benichi [Tue, 16 May 2017 01:56:46 +0000 (10:56 +0900)]
Move NetworkNotificationManagerTest to tests/net

Bug: 32561414
Test: no functional change
Change-Id: Iad17e3336a4a589da5cf88fd6359323e34b747e1

7 years agoFinish moving NetworkStats tests to tests/net
Hugo Benichi [Mon, 15 May 2017 00:53:44 +0000 (09:53 +0900)]
Finish moving NetworkStats tests to tests/net

Follow-up of commit c86013be936f36c61fa0cdfad95141f6de3c6ef7.

Also add @SmallTest annotation to classes moved to tests/net.

Test: no functional change
Bug: 32561414
Change-Id: I0a0e8865d37ba7bae06ce352d3fc385989adc300

7 years agoCaptive portals: reinspect http result after fallback probe
Hugo Benichi [Wed, 17 May 2017 01:30:40 +0000 (10:30 +0900)]
Captive portals: reinspect http result after fallback probe

When DNS queries that precede the http and https probe take a long time
to complete, it is possible that the fallback probe fires earlier than
either the http and https probes.

This causes the detection logic to ignore the result of the http probe,
which may cause the system to miss captive portals advertising
themselves on the url used by the http probe but not on the url used by
the fallback probe.

This patch fixes that issue by forcing the detection to wait on the
result of the http probe if the fallback probe does not find a portal.

Bug: 38259299
Bug: 36532213
Test: manually tested with nearby captive portal networks
Change-Id: I07ea23a2b5f694c5ada9633169af98409efedff1

7 years agoAddress ConnectivityManager API comments.
Hugo Benichi [Mon, 15 May 2017 06:15:33 +0000 (15:15 +0900)]
Address ConnectivityManager API comments.

This patch is a cherry pick of the two following commits:
  - 15fd4395e13b4662a262ee67a5f75f5c521c62ef which addresses several
    issues in the public api of ConnectivityManager.
  - e2d48ff57c5529b32a9cd7bfdcf21d29df539f73 which fixes the documentation
    of several methods in ConnectivityManager public api.

Because the first commit change the public api that is referenced in
the documentation fixed by the second commit, it is not possible to one
without the other. In both cases trying to cherry pick only one of them
results in a build error.

The first commit was submitted successfully on an internal branch before
the checks done in the built got stricter.

Bug: 36370941
Test: marlin builds and boots
Change-Id: I86dcf056e6b165e527c3ee88dbabc2764ac09a08
Merged-In: I693ee5270bf186c88c7c5056293519f7237504ff

(cherry picked from commit 15fd4395e13b4662a262ee67a5f75f5c521c62ef)

7 years agoMerge "Add tethering offload HAL call via JNI"
Treehugger Robot [Wed, 17 May 2017 07:09:13 +0000 (07:09 +0000)]
Merge "Add tethering offload HAL call via JNI"

7 years agoConvert libmedia_jni to Android.bp
Colin Cross [Tue, 16 May 2017 01:10:40 +0000 (18:10 -0700)]
Convert libmedia_jni to Android.bp

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

Test: m -j checkbuild
Change-Id: I1817c75ee45537ca0d5fc40a035f94a3dfeccc11
Merged-In: I1817c75ee45537ca0d5fc40a035f94a3dfeccc11
(cherry picked from commit 76de4f6b4d09423b3a5d3603527ce79acae4ed32)

7 years agoAdd tethering offload HAL call via JNI
Erik Kline [Sun, 30 Apr 2017 10:36:15 +0000 (19:36 +0900)]
Add tethering offload HAL call via JNI

Additionally, try to locate java Control interface.

Test: as follows
    - built
    - flashed
    - booted
    - OffloadController log messages observed, but only ever
      "not enabled" messages (needs a supporting implementation)
Bug: 29337859
Bug: 32163131
Bug: 34361337
Merged-In: I5251d05f2d2fd732a33a8955a6c346b3a2401e46
Change-Id: I5251d05f2d2fd732a33a8955a6c346b3a2401e46
(cherry picked from commit 58ed1b051bdffd239d92919170a0bb41a4cc197c)

7 years agoMerge "Add the new RIL requests and NetworkScanResult."
Ying Xu [Tue, 16 May 2017 23:04:39 +0000 (23:04 +0000)]
Merge "Add the new RIL requests and NetworkScanResult."

7 years agoMerge "Zygote: Allow arbitrary-length wrap property names"
Treehugger Robot [Tue, 16 May 2017 20:49:54 +0000 (20:49 +0000)]
Merge "Zygote: Allow arbitrary-length wrap property names"

7 years agoAdd the new RIL requests and NetworkScanResult.
yinxu [Thu, 20 Apr 2017 22:33:57 +0000 (15:33 -0700)]
Add the new RIL requests and NetworkScanResult.

Those new RIL requests will be used to start and stop network scan, and
the scan result will be returned from RIL in the format of
NetworkScanResult.

Test: Telephony sanity tests
Bug: 30954762
Change-Id: I2bfd0fb8cbb3815cc62ec4385594dec9c5e4d279
(cherry picked from commit b36a4cb40222e1c0a61b13c1eca601ba761bd26e)

7 years agoMerge "Discover primary service by UUID for PTS tests (4/4)"
Treehugger Robot [Tue, 16 May 2017 20:20:16 +0000 (20:20 +0000)]
Merge "Discover primary service by UUID for PTS tests (4/4)"

7 years agoMerge "startStreaming for MBMS apis"
Hall Liu [Tue, 16 May 2017 19:45:10 +0000 (19:45 +0000)]
Merge "startStreaming for MBMS apis"

7 years agoMerge "Support different SIM power states"
Grace Chen [Tue, 16 May 2017 19:30:25 +0000 (19:30 +0000)]
Merge "Support different SIM power states"

7 years agoAlso pin vdex file for camera
Calin Juravle [Tue, 16 May 2017 03:20:50 +0000 (20:20 -0700)]
Also pin vdex file for camera

Test: device boots
Bug: 33168521
Change-Id: I157e9684f9b8d64950b96c07e35b6101eccd4045

7 years agoDiscover primary service by UUID for PTS tests (4/4)
Jakub Pawlowski [Tue, 16 May 2017 17:56:35 +0000 (10:56 -0700)]
Discover primary service by UUID for PTS tests (4/4)

Bug: 38123054
Test: manual
Change-Id: I89e088e60f4325f1ece59d22efda0c907a3b716a

7 years agoSupport different SIM power states
Grace Chen [Tue, 9 May 2017 17:44:42 +0000 (10:44 -0700)]
Support different SIM power states

Test: Verify SIM power states
Bug:  35844036
Merged-In: I968269e88eec40af6e3ca71cbb805a77e016da0f
Change-Id: I968269e88eec40af6e3ca71cbb805a77e016da0f

7 years agoMerge "Set the decay timer for all forked apps."
Christopher Ferris [Tue, 16 May 2017 14:02:51 +0000 (14:02 +0000)]
Merge "Set the decay timer for all forked apps."

7 years agoMerge "Remove unused import in ConnectivityManager"
Treehugger Robot [Tue, 16 May 2017 13:04:36 +0000 (13:04 +0000)]
Merge "Remove unused import in ConnectivityManager"

7 years agoMerge "Fix broken DUN evaluation logic"
Treehugger Robot [Tue, 16 May 2017 07:58:00 +0000 (07:58 +0000)]
Merge "Fix broken DUN evaluation logic"