OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "ConnectivityServiceTest: fix flakyness" am: a82cac1452
Hugo Benichi [Tue, 23 May 2017 04:49:09 +0000 (04:49 +0000)]
Merge "ConnectivityServiceTest: fix flakyness" am: a82cac1452
am: 004f36d5bc

Change-Id: Id8468bd8e38927341cdbebe2925c0bfd4bb37c0c

7 years agoMerge "ConnectivityServiceTest: fix flakyness"
Hugo Benichi [Tue, 23 May 2017 04:42:40 +0000 (04:42 +0000)]
Merge "ConnectivityServiceTest: fix flakyness"
am: a82cac1452

Change-Id: I241192b2d9565c41f47bbe6227b50049898da679

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 "Merge "ConnectivityManager: improve argument validation" am: cdfd3a186f am...
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

7 years agoMerge "ConnectivityManager: improve argument validation" am: cdfd3a186f
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

7 years agoMerge "ConnectivityManager: improve argument validation" am: cdfd3a186f
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

7 years agoMerge "ConnectivityManager: improve argument validation"
Hugo Benichi [Tue, 23 May 2017 03:20:33 +0000 (03:20 +0000)]
Merge "ConnectivityManager: improve argument validation"
am: cdfd3a186f

Change-Id: I3adb40fe1bd1779d745bb122da06e33068ce48a3

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: 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 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" am: 70fe11fc38
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

7 years agoMerge "Added IWLAN metered APN support"
Jack Yu [Tue, 23 May 2017 01:10:29 +0000 (01:10 +0000)]
Merge "Added IWLAN metered APN support"
am: 70fe11fc38

Change-Id: I12573353fca921d1454d6829302a379cd6b2cc8b

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 agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Tue, 23 May 2017 00:47:08 +0000 (00:47 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab am: 55c8a1ede9 am: 66a08a5413 am: 7a06357519 am: a07389b446 am: 5f4382e2a6 am: 3946a75cb3 am: 3c529012d3
am: ce8a0dea71

Change-Id: I7f963478355bf0019520c6d9242a6670398698f0

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Tue, 23 May 2017 00:46:08 +0000 (00:46 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d am: 982b8018af am: 7fd2d8ea31 am: 5bfe82c3ee am: 12c5f0da9f am: dc87ac995a am: 02f0044d98 am: 6cadbad153
am: fdf1fdfc1b

Change-Id: I76b74d2ec3f72bfc6b3ec6247beb40589112fdfd

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Tue, 23 May 2017 00:39:49 +0000 (00:39 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab am: 55c8a1ede9 am: 66a08a5413 am: 7a06357519 am: a07389b446 am: 5f4382e2a6 am: 3946a75cb3
am: 3c529012d3

Change-Id: I9b3ea4577928b601f81525390fa6dae525275323

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Tue, 23 May 2017 00:38:33 +0000 (00:38 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d am: 982b8018af am: 7fd2d8ea31 am: 5bfe82c3ee am: 12c5f0da9f am: dc87ac995a am: 02f0044d98
am: 6cadbad153

Change-Id: I05c01c682c89b4ae42ef9f66a94da611c7378148

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Tue, 23 May 2017 00:25:35 +0000 (00:25 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab am: 55c8a1ede9 am: 66a08a5413 am: 7a06357519 am: a07389b446 am: 5f4382e2a6
am: 3946a75cb3

Change-Id: I9992c35cfc2b2ad8c4bbff7bf4bf9ca79b6f4568

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Tue, 23 May 2017 00:24:33 +0000 (00:24 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d am: 982b8018af am: 7fd2d8ea31 am: 5bfe82c3ee am: 12c5f0da9f am: dc87ac995a
am: 02f0044d98

Change-Id: I8fbd6580c4b6c1595b0ff1c34faaec5e1b9ad4de

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Tue, 23 May 2017 00:18:31 +0000 (00:18 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab am: 55c8a1ede9 am: 66a08a5413 am: 7a06357519 am: a07389b446
am: 5f4382e2a6

Change-Id: Ieab172a133b0d9198cef008b037c4a1107d0746c

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Tue, 23 May 2017 00:17:22 +0000 (00:17 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d am: 982b8018af am: 7fd2d8ea31 am: 5bfe82c3ee am: 12c5f0da9f
am: dc87ac995a

Change-Id: Ic7e65852a72cde3d2e285774e9cb85e9590e7fd2

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Tue, 23 May 2017 00:07:43 +0000 (00:07 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab am: 55c8a1ede9 am: 66a08a5413 am: 7a06357519
am: a07389b446

Change-Id: I5e8fdff89b3d8d1e36f24767dc60efa1dc352dcb

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Tue, 23 May 2017 00:06:55 +0000 (00:06 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d am: 982b8018af am: 7fd2d8ea31 am: 5bfe82c3ee
am: 12c5f0da9f

Change-Id: I8ce1d6a2399967cf0408adf7ffbe1839f471e1e7

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 agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Mon, 22 May 2017 23:51:48 +0000 (23:51 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab am: 55c8a1ede9 am: 66a08a5413
am: 7a06357519

Change-Id: I9301189268f519d4b87d8c9bfa88d1da4e8a53cd

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Mon, 22 May 2017 23:50:57 +0000 (23:50 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d am: 982b8018af am: 7fd2d8ea31
am: 5bfe82c3ee

Change-Id: I95333a7ff3d6ee1a3161d436a2a0b312931b663e

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Mon, 22 May 2017 23:36:12 +0000 (23:36 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab am: 55c8a1ede9
am: 66a08a5413

Change-Id: Ica5cb7828a37bd597dc0d83f7a65e89380d1e31c

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Mon, 22 May 2017 23:35:04 +0000 (23:35 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d am: 982b8018af
am: 7fd2d8ea31

Change-Id: I4b57d119b9b8d512a017ede0fb62658fb25f9580

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39...
Nick Kralevich [Mon, 22 May 2017 23:19:09 +0000 (23:19 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39 am: 47beaa8fab
am: 55c8a1ede9

Change-Id: Ia3e4d749c5b5475640325fd47eb4260d52e61365

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am...
Nick Kralevich [Mon, 22 May 2017 23:18:24 +0000 (23:18 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2 am: f5bd84b82d
am: 982b8018af

Change-Id: I8cb5052694668ee8021f75778244e4d1b6cc3bb5

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39
Nick Kralevich [Mon, 22 May 2017 23:02:54 +0000 (23:02 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8 am: 8965cd6a39
am: 47beaa8fab

Change-Id: Ie697e5e8bfb7664b410d564a84ae5784be890f90

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2
Nick Kralevich [Mon, 22 May 2017 23:02:13 +0000 (23:02 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973 am: c46889e2d2
am: f5bd84b82d

Change-Id: I163a9224d6b0ff5f42f52656773e1c297661b977

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8
Nick Kralevich [Mon, 22 May 2017 22:46:18 +0000 (22:46 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c am: 1cc9ec47c8
am: 8965cd6a39

Change-Id: If549cda5fd1a640fee746311745b9b08ebf63b91

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973
Nick Kralevich [Mon, 22 May 2017 22:45:44 +0000 (22:45 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab am: b8d972e973
am: c46889e2d2

Change-Id: I840740012d9ba0c434f7de0fd9ca83a44926d018

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c
Nick Kralevich [Mon, 22 May 2017 22:24:39 +0000 (22:24 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE am: 4911af2b8c
am: 1cc9ec47c8

Change-Id: Ic81685686dabbc1f0004a30785a021bf89420846

7 years agosystem_server: add CAP_SYS_PTRACE am: 966619d0ab
Nick Kralevich [Mon, 22 May 2017 22:23:47 +0000 (22:23 +0000)]
system_server: add CAP_SYS_PTRACE am: 966619d0ab
am: b8d972e973

Change-Id: I4d9e2d9b53523b9182a9f9272d06a93a87b0c61b

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE
Nick Kralevich [Mon, 22 May 2017 22:05:18 +0000 (22:05 +0000)]
ZygoteInit: Remove CAP_SYS_RESOURCE
am: 4911af2b8c

Change-Id: I4aa46981edb8fd711e1aec8c889528e596e5c233

7 years agosystem_server: add CAP_SYS_PTRACE
Nick Kralevich [Mon, 22 May 2017 22:04:57 +0000 (22:04 +0000)]
system_server: add CAP_SYS_PTRACE
am: 966619d0ab

Change-Id: Ie5f95f2c078cd0bec7a2b2321c3303301ec9ec74

7 years agoZygoteInit: Remove CAP_SYS_RESOURCE
Nick Kralevich [Tue, 14 Mar 2017 17:25:35 +0000 (10:25 -0700)]
ZygoteInit: Remove CAP_SYS_RESOURCE

Please see commit 3082eb7c7253c62a06aa151a80487a4eabd49914 for an
explanation of this change.

This capability is not used by system_server.

Bug: 34951864
Bug: 38496951
Test: code compiles, device boots, no selinux errors ever reported.
Change-Id: I4242b1abaa8679b9bfa0d31a1df565b46b7b3cc3
(cherry picked from commit 35775783fc6609035136184e3843bc743b59945d)

7 years agosystem_server: add CAP_SYS_PTRACE
Nick Kralevich [Wed, 15 Feb 2017 23:12:31 +0000 (15:12 -0800)]
system_server: add CAP_SYS_PTRACE

Commit https://android.googlesource.com/kernel/common/+/f0ce0eee added
CAP_SYS_RESOURCE as a capability check which would allow access to
sensitive /proc/PID files. system_server uses this capability to collect
smaps from managed processes. Presumably this was done to avoid the
implications of granting CAP_SYS_PTRACE to system_server.

However, with SELinux enforcement, we can grant CAP_SYS_PTRACE but not
allow ptrace attach() to other processes. The net result of this is that
CAP_SYS_PTRACE and CAP_SYS_RESOURCE have identical security controls, as
long as system_server:process ptrace is never granted.

Add CAP_SYS_PTRACE to the set of capabilities granted to system_server.

Don't delete CAP_SYS_RESOURCE for now. SELinux has blocked the use of
CAP_SYS_RESOURCE, but we still want to generate audit logs if it's
triggered. CAP_SYS_RESOURCE can be deleted in a future commit.

Bug: 34951864
Bug: 38496951
Test: Device boots, functionality remains identical, no sys_resource
denials from system_server.
Change-Id: I2570266165396dba2b600eac7c42c94800d9c65b
(cherry picked from commit 3082eb7c7253c62a06aa151a80487a4eabd49914)

7 years agoMerge "Creat a new notification to avoid the mTetheredNotificationBuilder changed...
zhouzhijie [Mon, 22 May 2017 11:02:28 +0000 (11:02 +0000)]
Merge "Creat a new notification to avoid the mTetheredNotificationBuilder changed" am: 99cf40a25a
am: 3818d4187c

Change-Id: Iafc7ccd9bdd120100ae4063d72379479693142f9

7 years agoMerge "Creat a new notification to avoid the mTetheredNotificationBuilder changed"
zhouzhijie [Mon, 22 May 2017 10:52:28 +0000 (10:52 +0000)]
Merge "Creat a new notification to avoid the mTetheredNotificationBuilder changed"
am: 99cf40a25a

Change-Id: I9d45fc368e746efa40df96c39719566a201dad45

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 agoMerge "OBEX: Add required parameters TAG ID's for PBAP 1.2" am: a2663b0060
Andre Eisenbach [Sat, 20 May 2017 00:43:16 +0000 (00:43 +0000)]
Merge "OBEX: Add required parameters TAG ID's for PBAP 1.2" am: a2663b0060
am: b04d7ceaeb

Change-Id: I66bdfd02f8d5322173ba85a2c427158a237cb215

7 years agoMerge "OBEX: Add required parameters TAG ID's for PBAP 1.2"
Andre Eisenbach [Sat, 20 May 2017 00:36:15 +0000 (00:36 +0000)]
Merge "OBEX: Add required parameters TAG ID's for PBAP 1.2"
am: a2663b0060

Change-Id: I015534f9fb860fd0f875bab3d9130de029dc16b9

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." am: b5d6e45e8d
Hugo Benichi [Fri, 19 May 2017 23:24:56 +0000 (23:24 +0000)]
Merge "Address ConnectivityManager API comments." am: b5d6e45e8d
am: b57db6ef97

Change-Id: If38be1435c55c66890bb5c702a7b9b23240c0b64

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

Change-Id: I4a29a929e2482d664a969ca38e5f73c3ed816175

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" am: e245bf9067
Hall Liu [Fri, 19 May 2017 22:47:06 +0000 (22:47 +0000)]
Merge "Implement stopStreaming API for MBMS" am: e245bf9067
am: a7fffdc0d9

Change-Id: I2c1231a3690067edf90070d7d2a5f3919172caf3

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

Change-Id: I4b70f26a5579ddf3af7d426a04aea8ba33312790

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 agoMerge "Add a method to start the captive portal login app." am: 30f2544f0c
Hugo Benichi [Fri, 19 May 2017 02:48:01 +0000 (02:48 +0000)]
Merge "Add a method to start the captive portal login app." am: 30f2544f0c
am: f238a96172

Change-Id: Ie42fa5148bc7fcaf5b64b767c06aba9f618c0aa7

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

Change-Id: I7bc42e7f9cbc3635684257b920ea4a1ba7b55740

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." am: 1bc1936ae9
Lorenzo Colitti [Fri, 19 May 2017 02:25:32 +0000 (02:25 +0000)]
Merge "Add test coverage for explicitlySelected networks." am: 1bc1936ae9
am: 3d55c5539c

Change-Id: If07a9e0f400c434fd7df6f52dbd43a6dab1b4d51

7 years agoMerge "Add test coverage for explicitlySelected networks."
Lorenzo Colitti [Fri, 19 May 2017 02:15:53 +0000 (02:15 +0000)]
Merge "Add test coverage for explicitlySelected networks."
am: 1bc1936ae9

Change-Id: I42ce887005325eee9fb1a60762cee375cff176a6

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" am: d4ae914be2
Calin Juravle [Thu, 18 May 2017 21:21:11 +0000 (21:21 +0000)]
Merge "Also pin vdex file for camera" am: d4ae914be2
am: a433a9d9f4

Change-Id: I943815b1e8b29734224d49140a667bf4d7d23b8f

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

Change-Id: I0d1a687ea2d90e968fe4e9705de223dc8b181238

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" am: 449d73251f
Przemyslaw Szczepaniak [Thu, 18 May 2017 09:15:30 +0000 (09:15 +0000)]
Merge "Consolidated all data allow/disallow logic into one method" am: 449d73251f
am: ab0f6fc5d2

Change-Id: I31606372f361ad0cb8d9600f79c41257e121c7f4

7 years agoMerge "Consolidated all data allow/disallow logic into one method"
Przemyslaw Szczepaniak [Thu, 18 May 2017 09:07:24 +0000 (09:07 +0000)]
Merge "Consolidated all data allow/disallow logic into one method"
am: 449d73251f

Change-Id: I861d75dad60ab83039aa06565141a2eb5b294386

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" am: 0373340b07
Erik Kline [Thu, 18 May 2017 03:47:16 +0000 (03:47 +0000)]
Merge "Expand logging capabilities of Tethering subsystem" am: 0373340b07
am: 96f9371a66

Change-Id: I58f88c3f5505b83539654c75e05de4eb29b64f15

7 years agoMerge "Expand logging capabilities of Tethering subsystem"
Erik Kline [Thu, 18 May 2017 03:38:43 +0000 (03:38 +0000)]
Merge "Expand logging capabilities of Tethering subsystem"
am: 0373340b07

Change-Id: I1381b8457781dcfafe52371a5dc7628282cb8efc

7 years agoMerge "Fix NetworkNotificationManagerTest" am: c13a80deee
Hugo Benichi [Thu, 18 May 2017 03:36:50 +0000 (03:36 +0000)]
Merge "Fix NetworkNotificationManagerTest" am: c13a80deee
am: 13f0d10115

Change-Id: Icf4e4e9c9dde7f6c8308adb79e3ca8b63d6f604b

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

Change-Id: I8f02be13da5790d0fd60f04886e87de04c96de08

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" am: 3a7c4f3337
Hugo Benichi [Thu, 18 May 2017 03:08:46 +0000 (03:08 +0000)]
Merge "Captive portals: reinspect http result after fallback probe" am: 3a7c4f3337
am: 3bda223110

Change-Id: Ib154e58cab427aa60740246f3eef930a09261733

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

Change-Id: Ia9dfbb764909aeb8586066121ddc8106fa14bb7e

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 agoMerge "Move NetworkNotificationManagerTest to tests/net" am: c01fbf0f0c
Hugo Benichi [Thu, 18 May 2017 02:30:44 +0000 (02:30 +0000)]
Merge "Move NetworkNotificationManagerTest to tests/net" am: c01fbf0f0c
am: 9fdc903af7

Change-Id: I06cec2595d67d029e08e4d556130c5956bfb387e

7 years agoMerge "Move NetworkNotificationManagerTest to tests/net"
Hugo Benichi [Thu, 18 May 2017 02:23:12 +0000 (02:23 +0000)]
Merge "Move NetworkNotificationManagerTest to tests/net"
am: c01fbf0f0c

Change-Id: I10ce85211ac0305e8d05ca02b58b819297f59bbf

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" am: 1ae1b6b960
Hugo Benichi [Thu, 18 May 2017 00:37:40 +0000 (00:37 +0000)]
Merge "Finish moving NetworkStats tests to tests/net" am: 1ae1b6b960
am: cd821b231a

Change-Id: Ic9f06631a7f937a0f3730b167e5db7d8c0dcf775

7 years agoMerge "Finish moving NetworkStats tests to tests/net"
Hugo Benichi [Thu, 18 May 2017 00:27:06 +0000 (00:27 +0000)]
Merge "Finish moving NetworkStats tests to tests/net"
am: 1ae1b6b960

Change-Id: If85e483d5b44872c10e42ef55ddaf209601c7cfa

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" am: dde9ee9edd
Colin Cross [Wed, 17 May 2017 21:55:19 +0000 (21:55 +0000)]
Merge "Convert libsoundpool to Android.bp" am: dde9ee9edd
am: e9ffa404ae

Change-Id: I792b4f48d57181b4ee55b2a73c597272826844e2

7 years agoMerge "Convert libsoundpool to Android.bp"
Colin Cross [Wed, 17 May 2017 21:45:33 +0000 (21:45 +0000)]
Merge "Convert libsoundpool to Android.bp"
am: dde9ee9edd

Change-Id: Ia7bb54b658031c68036ee2a218e5b229d32b1d25

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" am: 196b72aae5
Ram Periathiruvadi [Wed, 17 May 2017 17:41:05 +0000 (17:41 +0000)]
Merge "Fix for Bluetooth not restarting on User Switch" am: 196b72aae5
am: 543261753a

Change-Id: I008ff84f3d3eb0b7c51993d213a9d3a590cd93a6

7 years agoMerge "Fix for Bluetooth not restarting on User Switch"
Ram Periathiruvadi [Wed, 17 May 2017 17:33:28 +0000 (17:33 +0000)]
Merge "Fix for Bluetooth not restarting on User Switch"
am: 196b72aae5

Change-Id: Id0ef82b93b047f13683f7538740f0544549b0eca

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" am: 85faffa7ef
Colin Cross [Wed, 17 May 2017 15:36:06 +0000 (15:36 +0000)]
Merge "Convert libmedia_jni to Android.bp" am: 85faffa7ef
am: 162d19f590

Change-Id: Iac2f159014051604d36f61dd253fa4e83127030a

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

Change-Id: I7afbf6dda3dab6a3c36576e2c118b1accdcc2a17

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