OSDN Git Service
Yuka Anami [Fri, 26 May 2017 22:23:53 +0000 (22:23 +0000)]
Merge "Add ID_LENGTH field for Empty type record" am:
b1f0bb6f83
am:
0d9dfc4314
Change-Id: I8e3caa6df525879b820f0611ec751d18df3eb94f
Yuka Anami [Fri, 26 May 2017 22:17:15 +0000 (22:17 +0000)]
Merge "Add ID_LENGTH field for Empty type record"
am:
b1f0bb6f83
Change-Id: Ib63ba83f912f2047ec5bd795b57da423c1e78f59
Treehugger Robot [Fri, 26 May 2017 22:07:37 +0000 (22:07 +0000)]
Merge "Add 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
Rebecca Silberstein [Fri, 26 May 2017 16:45:19 +0000 (16:45 +0000)]
Merge "WifiManager: add iface name and mode labels" am:
21cc4bcd01
am:
78deb691cc
Change-Id: Ie5364ed53119969bd8750a86cb3d5be244ed591d
Rebecca Silberstein [Fri, 26 May 2017 16:37:21 +0000 (16:37 +0000)]
Merge "WifiManager: add iface name and mode labels"
am:
21cc4bcd01
Change-Id: Ia715be047c0e1c3ef5ea5d38d013276cf5a3eacc
Treehugger Robot [Fri, 26 May 2017 16:26:36 +0000 (16:26 +0000)]
Merge "WifiManager: add iface name and mode labels"
Erik Kline [Fri, 26 May 2017 10:22:33 +0000 (10:22 +0000)]
Merge "Support registration of offload control callbacks." am:
7ee96625c2
am:
66cc06c2c7
Change-Id: Ieab0ae324ccf8ddfea02adfe647407df6c12b945
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)
Erik Kline [Fri, 26 May 2017 10:16:26 +0000 (10:16 +0000)]
Merge "Support registration of offload control callbacks."
am:
7ee96625c2
Change-Id: Ica4f51762b577e3868e87622df3963cd89daacae
Treehugger Robot [Fri, 26 May 2017 10:07:25 +0000 (10:07 +0000)]
Merge "Support registration of offload control callbacks."
Nicolas Geoffray [Fri, 26 May 2017 08:13:49 +0000 (08:13 +0000)]
Merge "Pass bootComplete to dexopt." am:
18c3201986
am:
1e35b7b5bc
Change-Id: Id4633d3729c8532d901b33bb6720d8f34df1e6e9
Nicolas Geoffray [Fri, 26 May 2017 08:07:58 +0000 (08:07 +0000)]
Merge "Pass bootComplete to dexopt."
am:
18c3201986
Change-Id: I5d73692a887ef8f3fff888c310f9969d79ada970
Nicolas Geoffray [Fri, 26 May 2017 08:00:40 +0000 (08:00 +0000)]
Merge "Pass bootComplete to dexopt."
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
Hugo Benichi [Fri, 26 May 2017 00:51:23 +0000 (00:51 +0000)]
Merge changes If4deb106,Ib25d7658 am:
0388f0e47b
am:
41a57af66a
Change-Id: Ieea1398319d8235e823464239d233bf6f528126d
Hugo Benichi [Fri, 26 May 2017 00:43:06 +0000 (00:43 +0000)]
Merge changes If4deb106,Ib25d7658
am:
0388f0e47b
Change-Id: Id10b2a80388aff2307cefd95ffb5f2b4df5fbdc3
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
Brad Ebinger [Thu, 25 May 2017 23:00:29 +0000 (23:00 +0000)]
Merge "Add IMEI_NOT_ACCEPTED error code for IMS" am:
25ce41cf4c
am:
be34238840
Change-Id: Ie399093e992c7b15c72927080b5c20d378738785
Brad Ebinger [Thu, 25 May 2017 22:51:11 +0000 (22:51 +0000)]
Merge "Add IMEI_NOT_ACCEPTED error code for IMS"
am:
25ce41cf4c
Change-Id: Ic24b93e215995a18e1a2ecbb647af0cc8e1f67cb
Brad Ebinger [Thu, 25 May 2017 22:31:51 +0000 (22:31 +0000)]
Merge "Add IMEI_NOT_ACCEPTED error code for IMS"
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
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
Steven Moreland [Thu, 25 May 2017 16:39:40 +0000 (16:39 +0000)]
Merge "HIDL: C++ Java parity" am:
475d9b283c
am:
101aa88ad6
Change-Id: If341009ba5c22ec0e83170e856e83b23d8a925ce
Steven Moreland [Thu, 25 May 2017 16:34:21 +0000 (16:34 +0000)]
Merge "HIDL: C++ Java parity"
am:
475d9b283c
Change-Id: I8195a0a4de291f26c637f5cd6802d6bbaf0d17a3
Treehugger Robot [Thu, 25 May 2017 16:28:41 +0000 (16:28 +0000)]
Merge "HIDL: C++ Java parity"
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
Neil Fuller [Thu, 25 May 2017 10:54:07 +0000 (10:54 +0000)]
Merge "Remove time_zones_by_country.xml file" am:
3436fd4833
am:
1541ef3712
Change-Id: Iba095c44c332658f7eea448dcf653b46bce5d8e8
Neil Fuller [Thu, 25 May 2017 10:46:41 +0000 (10:46 +0000)]
Merge "Remove time_zones_by_country.xml file"
am:
3436fd4833
Change-Id: I75cf86290b0dcc5aa99b9d0ebacbc5aa07269aab
Neil Fuller [Thu, 25 May 2017 10:39:14 +0000 (10:39 +0000)]
Merge "Remove time_zones_by_country.xml file"
Hugo Benichi [Thu, 25 May 2017 01:06:48 +0000 (01:06 +0000)]
Merge "NsdServiceInfo: move test to tests/net" am:
48859e01d5
am:
1b0f4bf606
Change-Id: I2c27790f23d1ecc7b42dbbe28313f0533a1bab53
Hugo Benichi [Thu, 25 May 2017 01:01:15 +0000 (01:01 +0000)]
Merge "NsdServiceInfo: move test to tests/net"
am:
48859e01d5
Change-Id: I3e864d744b956eff62512419018dd7cd5f692333
Hugo Benichi [Thu, 25 May 2017 00:50:24 +0000 (00:50 +0000)]
Merge "NsdServiceInfo: move test to tests/net"
Joel Scherpelz [Thu, 25 May 2017 00:12:22 +0000 (00:12 +0000)]
Merge "Ignore flow label when comparing RAs in APF" am:
81fda77884
am:
6ccdb3fe19
Change-Id: I8a463109f896fe91f391c26f4b341e0e0c417d8a
Joel Scherpelz [Thu, 25 May 2017 00:04:12 +0000 (00:04 +0000)]
Merge "Ignore flow label when comparing RAs in APF"
am:
81fda77884
Change-Id: Id1a51e03e5065cabb4645d1e05f5e22ab4e98c0a
Joel Scherpelz [Wed, 24 May 2017 23:54:21 +0000 (23:54 +0000)]
Merge "Ignore flow label when comparing RAs in APF"
Tyler Gunn [Wed, 24 May 2017 22:52:40 +0000 (22:52 +0000)]
Merge "Add ability to dump events in a timeline view." am:
255a171c5d
am:
3b27d69612
Change-Id: I5363916199a33e795fcfb8497815687cda91f6ef
Tyler Gunn [Wed, 24 May 2017 22:45:55 +0000 (22:45 +0000)]
Merge "Add ability to dump events in a timeline view."
am:
255a171c5d
Change-Id: I7bb01946685f4e9c5b60fd0e8e2be4b071fd1a6f
Tyler Gunn [Wed, 24 May 2017 22:36:41 +0000 (22:36 +0000)]
Merge "Add ability to dump events in a timeline view."
Brad Ebinger [Wed, 24 May 2017 20:33:26 +0000 (20:33 +0000)]
Merge "Support RRO for emergency number conversion map" am:
671680e504
am:
8498a6cffd
Change-Id: I4b90f44a5ccf42ab1586ae8867f63c0a2e362d97
Brad Ebinger [Wed, 24 May 2017 20:27:48 +0000 (20:27 +0000)]
Merge "Support RRO for emergency number conversion map"
am:
671680e504
Change-Id: I74cc3235e07116f2f1e03f24f5ea51b73a86af82
Brad Ebinger [Wed, 24 May 2017 20:19:29 +0000 (20:19 +0000)]
Merge "Support RRO for emergency number conversion map"
zhoulei [Wed, 24 May 2017 14:43:04 +0000 (14:43 +0000)]
Merge "[NotificationManagerService]Support multi users to notification pulse" am:
8516a2025a
am:
19be2ee686
Change-Id: Ie32bf7de581e0a4ec1cdfe36417c9f8fb512932c
zhoulei [Wed, 24 May 2017 14:37:32 +0000 (14:37 +0000)]
Merge "[NotificationManagerService]Support multi users to notification pulse"
am:
8516a2025a
Change-Id: I1a2bb68ba34c48261d1c990445b0735d2449e21e
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
Treehugger Robot [Wed, 24 May 2017 14:28:48 +0000 (14:28 +0000)]
Merge "[NotificationManagerService]Support multi users to notification pulse"
Paul Duffin [Wed, 24 May 2017 08:19:09 +0000 (08:19 +0000)]
Merge "Fixed nfc-extras build files" am:
d3ff45985a
am:
c1f0962ea7
Change-Id: I562bec1735557ed6718da4004fdd54e822f1e7f3
Paul Duffin [Wed, 24 May 2017 08:11:37 +0000 (08:11 +0000)]
Merge "Fixed nfc-extras build files"
am:
d3ff45985a
Change-Id: I4786af397c556c72d1f7ac9ff7d762fa3efcf90b
Paul Duffin [Wed, 24 May 2017 08:01:36 +0000 (08:01 +0000)]
Merge "Fixed nfc-extras build files"
Hugo Benichi [Wed, 24 May 2017 07:07:11 +0000 (07:07 +0000)]
Merge "Move NsdServiceTest to correct directory" am:
0a76f99621
am:
ca9fcb79f6
Change-Id: Ia3f79fbcead21fdf4914b18905cd3b067ac7c806
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
Hugo Benichi [Wed, 24 May 2017 06:59:02 +0000 (06:59 +0000)]
Merge "Move NsdServiceTest to correct directory"
am:
0a76f99621
Change-Id: I37b614bec6dc4a9da55024c534dbfc9459e2764a
Treehugger Robot [Wed, 24 May 2017 06:47:29 +0000 (06:47 +0000)]
Merge "Move NsdServiceTest to correct directory"
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
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
Jayachandran C [Wed, 24 May 2017 02:09:09 +0000 (02:09 +0000)]
Merge "Fix up upstream interface types for case DUN_UNSPECIFIED" am:
485d103083
am:
0223c80846
Change-Id: I0fbddd65da2698eb8aa5291e3ed8e19af2924b1f
Jayachandran C [Wed, 24 May 2017 02:01:12 +0000 (02:01 +0000)]
Merge "Fix up upstream interface types for case DUN_UNSPECIFIED"
am:
485d103083
Change-Id: I8e7c513b206cbc5f19d582ec48e529ce067e2aa9
Treehugger Robot [Wed, 24 May 2017 01:51:04 +0000 (01:51 +0000)]
Merge "Fix up upstream interface types for case DUN_UNSPECIFIED"
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
Erik Wolsheimer [Tue, 23 May 2017 22:58:57 +0000 (22:58 +0000)]
Merge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev am:
90a6054805
am:
94b497bccc
Change-Id: I14f0b27d9d068df1defed18cd148ee331e0e876a
Erik Wolsheimer [Tue, 23 May 2017 22:51:25 +0000 (22:51 +0000)]
Merge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev
am:
90a6054805
Change-Id: I708fda61e866a891238d6dbbfc6a9b901e6da6b3
TreeHugger Robot [Tue, 23 May 2017 22:44:37 +0000 (22:44 +0000)]
Merge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev
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
Ruthwar Kumar Ambeer [Tue, 23 May 2017 20:50:12 +0000 (20:50 +0000)]
Merge "Consider the last inserted SIM for EmergencyAffordance" am:
65d3a457d2
am:
96926cac25
Change-Id: I663415938196335bd27d9172b59d5f169a0609e3
Ruthwar Kumar Ambeer [Tue, 23 May 2017 20:43:10 +0000 (20:43 +0000)]
Merge "Consider the last inserted SIM for EmergencyAffordance"
am:
65d3a457d2
Change-Id: I3b7bfb3963b61c4589811e8c27e4f89ff501096e
Treehugger Robot [Tue, 23 May 2017 20:34:54 +0000 (20:34 +0000)]
Merge "Consider the last inserted SIM for EmergencyAffordance"
Dan Willemsen [Tue, 23 May 2017 17:18:55 +0000 (17:18 +0000)]
Merge "Fix makefile warning." am:
f523227a6e
am:
9e317f8743
Change-Id: I8078c4dfbb3cbc55dd6d08888c67c31721a77397
Dan Willemsen [Tue, 23 May 2017 17:12:03 +0000 (17:12 +0000)]
Merge "Fix makefile warning."
am:
f523227a6e
Change-Id: I852b00eb0c562003307507d02e1dd80a7d42cf9f
Dan Willemsen [Tue, 23 May 2017 16:58:46 +0000 (16:58 +0000)]
Merge "Fix makefile warning."
Hugo Benichi [Tue, 23 May 2017 11:44:33 +0000 (11:44 +0000)]
Merge "Fix NetworkStatsObserversTest" am:
0dc35fa969
am:
25282c3e38
Change-Id: I8cc0dc340d3108d74cea96487560bbc8cfa2f650
Hugo Benichi [Tue, 23 May 2017 11:37:37 +0000 (11:37 +0000)]
Merge "Fix NetworkStatsObserversTest"
am:
0dc35fa969
Change-Id: I9b4e83b4e437089ea500d82990e59558ff55e02a
Hugo Benichi [Tue, 23 May 2017 11:29:47 +0000 (11:29 +0000)]
Merge "Fix NetworkStatsObserversTest"
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
Andrew Scull [Tue, 23 May 2017 10:47:09 +0000 (10:47 +0000)]
Merge "NetworkManagementService.java: fix error-prone warnings" am:
44b7e94a7c
am:
0ba1fa19bd
Change-Id: Ia89fdb05890d40b1299c666a4535b4e9a8640323
Andrew Scull [Tue, 23 May 2017 10:40:38 +0000 (10:40 +0000)]
Merge "NetworkManagementService.java: fix error-prone warnings"
am:
44b7e94a7c
Change-Id: I7cade535f2bca308446aa91d4368ee41b62daa9b
Treehugger Robot [Tue, 23 May 2017 10:31:57 +0000 (10:31 +0000)]
Merge "NetworkManagementService.java: fix error-prone warnings"
Hugo Benichi [Tue, 23 May 2017 06:56:48 +0000 (06:56 +0000)]
Merge "Fix NetworkStatsAccessTest" am:
ec1f25a4ba
am:
cdb75d321b
Change-Id: I5ef9861438bbe474b4e4670b8fdba4368531978d
Hugo Benichi [Tue, 23 May 2017 06:51:15 +0000 (06:51 +0000)]
Merge "Fix NetworkStatsAccessTest"
am:
ec1f25a4ba
Change-Id: If949493d9967fa723667947979262bf4f90841c2
Hugo Benichi [Tue, 23 May 2017 06:43:06 +0000 (06:43 +0000)]
Merge "Fix NetworkStatsAccessTest"
Hugo Benichi [Tue, 23 May 2017 06:30:48 +0000 (06:30 +0000)]
Merge "ConnectivityManager: simplify callback handler" am:
857e7d9c85
am:
7bce658dd6
Change-Id: Ica9d4fbb1dd0ba9da4aaea0fbc3571c3446110ef
Hugo Benichi [Tue, 23 May 2017 06:24:16 +0000 (06:24 +0000)]
Merge "ConnectivityManager: simplify callback handler"
am:
857e7d9c85
Change-Id: I8d5371b69fcec3f1f625923eb65191b4c018bb00
Treehugger Robot [Tue, 23 May 2017 06:16:47 +0000 (06:16 +0000)]
Merge "ConnectivityManager: simplify callback handler"
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
Erik Kline [Tue, 23 May 2017 05:03:05 +0000 (05:03 +0000)]
Merge "Refactor TISM add/remove code" am:
5041bbde19
am:
c85053f7eb
Change-Id: Id001b164a7eca7b4e681eefbadf4b87bb1f7dbd1
Erik Kline [Tue, 23 May 2017 04:56:40 +0000 (04:56 +0000)]
Merge "Refactor TISM add/remove code"
am:
5041bbde19
Change-Id: I2475a3cbff37248509e21dd058ed8f3d827fefd0
Hugo Benichi [Tue, 23 May 2017 04:49:09 +0000 (04:49 +0000)]
Merge "ConnectivityServiceTest: fix flakyness" am:
a82cac1452
am:
004f36d5bc
Change-Id: Id8468bd8e38927341cdbebe2925c0bfd4bb37c0c
Treehugger Robot [Tue, 23 May 2017 04:44:22 +0000 (04:44 +0000)]
Merge "Refactor TISM add/remove code"
Hugo Benichi [Tue, 23 May 2017 04:42:40 +0000 (04:42 +0000)]
Merge "ConnectivityServiceTest: fix flakyness"
am:
a82cac1452
Change-Id: I241192b2d9565c41f47bbe6227b50049898da679
Hugo Benichi [Tue, 23 May 2017 04:35:08 +0000 (04:35 +0000)]
Merge "ConnectivityServiceTest: fix flakyness"
Android Build Merger (Role) [Tue, 23 May 2017 03:34:41 +0000 (03:34 +0000)]
Merge "Merge "ConnectivityManager: improve argument validation" am:
cdfd3a186f am:
0187514f74" into nyc-mr2-dev-plus-aosp
Hugo Benichi [Tue, 23 May 2017 03:34:02 +0000 (03:34 +0000)]
Merge "ConnectivityManager: improve argument validation" am:
cdfd3a186f
am:
0187514f74
Change-Id: Ida4b1412270b54f6abe5aa75b7f83d2ffaca0669
Hugo Benichi [Tue, 23 May 2017 03:26:32 +0000 (03:26 +0000)]
Merge "ConnectivityManager: improve argument validation" am:
cdfd3a186f
am:
0187514f74
Change-Id: I7ffbc1799d9da901fb38db469720479760892bba
Hugo Benichi [Tue, 23 May 2017 03:20:33 +0000 (03:20 +0000)]
Merge "ConnectivityManager: improve argument validation"
am:
cdfd3a186f
Change-Id: I3adb40fe1bd1779d745bb122da06e33068ce48a3
Treehugger Robot [Tue, 23 May 2017 03:14:29 +0000 (03:14 +0000)]
Merge "ConnectivityManager: improve argument validation"
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
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
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
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
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
Jack Yu [Tue, 23 May 2017 01:16:30 +0000 (01:16 +0000)]
Merge "Added IWLAN metered APN support" am:
70fe11fc38
am:
ab48527680
Change-Id: Ib88c94860f6ef6c61531c9547c0ab993f8bdde37