OSDN Git Service
sj.cha [Fri, 17 Feb 2017 13:21:34 +0000 (13:21 +0000)]
Merge "Infinite reboot when OS upgrade from M to N with set Always-on VPN" am:
1a69570fe8
am:
3b92631a69
Change-Id: I82c297e654af6690c6a3be216a0da08a3aff5b9d
sj.cha [Fri, 17 Feb 2017 13:17:00 +0000 (13:17 +0000)]
Merge "Infinite reboot when OS upgrade from M to N with set Always-on VPN"
am:
1a69570fe8
Change-Id: I21a69eb02b13b20f66996836d54b8aadadfa80ec
Treehugger Robot [Fri, 17 Feb 2017 13:07:20 +0000 (13:07 +0000)]
Merge "Infinite reboot when OS upgrade from M to N with set Always-on VPN"
Jerry Zhang [Fri, 17 Feb 2017 02:16:11 +0000 (02:16 +0000)]
Merge changes from topic 'svcusb' am:
5e2a2ee39e
am:
6f44072d03
Change-Id: Ic30bca41e088c2d077dc5aa09e373a02acb60be6
Jerry Zhang [Fri, 17 Feb 2017 02:11:45 +0000 (02:11 +0000)]
Merge changes from topic 'svcusb'
am:
5e2a2ee39e
Change-Id: I4b628b80e348e25377d0855301374e71cb8f2c64
Treehugger Robot [Fri, 17 Feb 2017 02:01:54 +0000 (02:01 +0000)]
Merge changes from topic 'svcusb'
* changes:
Add data unlock argument to set function command.
Allow the shell to set USB functions.
Jack Yu [Fri, 17 Feb 2017 01:31:49 +0000 (01:31 +0000)]
Merge "Added the new RIL request to set SIM power state" am:
2f21f71da4
am:
bf21df3306
Change-Id: I7d11f132ca483272963f12363496d70651076f0b
Jack Yu [Fri, 17 Feb 2017 01:22:22 +0000 (01:22 +0000)]
Merge "Added the new RIL request to set SIM power state"
am:
2f21f71da4
Change-Id: I75402ea985f81fd4f420cf7bfb4b07680a11ef2f
Treehugger Robot [Fri, 17 Feb 2017 01:13:25 +0000 (01:13 +0000)]
Merge "Added the new RIL request to set SIM power state"
Hugo Benichi [Fri, 17 Feb 2017 00:09:11 +0000 (00:09 +0000)]
Merge "IP connectivity metrics: delete obsolete logger service" am:
37e3f22c2e
am:
c54962a4bd
Change-Id: Iccc3ee97bd2ac267b312c6c7d9269ac02a2bd68e
Hugo Benichi [Fri, 17 Feb 2017 00:00:14 +0000 (00:00 +0000)]
Merge "IP connectivity metrics: delete obsolete logger service"
am:
37e3f22c2e
Change-Id: Ib335bc5e19c2c703d23267bf2835fc89fcf5a957
Hugo Benichi [Thu, 16 Feb 2017 23:52:12 +0000 (23:52 +0000)]
Merge "IP connectivity metrics: delete obsolete logger service"
Leonard Mosescu [Thu, 16 Feb 2017 23:29:16 +0000 (23:29 +0000)]
Merge "Adding "attach-agent" to ActivityManagerShellCommand" am:
05dfd10254
am:
db0803b4e8
Change-Id: I4493e6b3bd2cf8447e8c3043878ad0f531c0e677
Leonard Mosescu [Thu, 16 Feb 2017 23:24:32 +0000 (23:24 +0000)]
Merge "Adding "attach-agent" to ActivityManagerShellCommand"
am:
05dfd10254
Change-Id: I3623f617319f03bad87f65b61959ec2ce822ac7e
Leonard Mosescu [Thu, 16 Feb 2017 23:12:26 +0000 (23:12 +0000)]
Merge "Adding "attach-agent" to ActivityManagerShellCommand"
Eino-Ville Talvala [Thu, 16 Feb 2017 21:48:53 +0000 (21:48 +0000)]
Merge "camera case fail for testSceneModes" am:
b59cd66e93
am:
a22c40839e
Change-Id: I52fca667fcd8b8ff501bb145ee49934ba47f92a3
Eino-Ville Talvala [Thu, 16 Feb 2017 21:44:56 +0000 (21:44 +0000)]
Merge "camera case fail for testSceneModes"
am:
b59cd66e93
Change-Id: I509c87e5b69e4bd26dc97e86063f7a24860e8b3b
Eino-Ville Talvala [Thu, 16 Feb 2017 21:35:35 +0000 (21:35 +0000)]
Merge "camera case fail for testSceneModes"
Leonard Mosescu [Fri, 7 Oct 2016 00:32:05 +0000 (17:32 -0700)]
Adding "attach-agent" to ActivityManagerShellCommand
This new command is used to attach runtime agents to a running application:
attach-agent <PROCESS> <FILE>
Attach an agent to the specified <PROCESS>,
which may be either a process name or a PID.
Test: m test-art-host, manual testing:
. invalid syntax, missing arguments
. invalid syntax, extra arguments
. invalid numeric PID
. invalid process name
. valid process, not debuggable
. valid process, missing agent
. valid process, valid agent
Bug:
31682382
Change-Id: I61cc8bf20addb1702acc8e7aae65b2f9ed7c5ca0
Merged-In: Ife88dbf23991dde7945d9208e54cd014bb7ecdc6
Jerry Zhang [Wed, 15 Feb 2017 22:15:30 +0000 (14:15 -0800)]
Add data unlock argument to set function command.
This allows automated switches into file transfer mode,
which makes automated Mtp testing possible.
Test: adb shell svc setFunction mtp true
Bug:
25596495
Change-Id: I67be58853b002789dc22b75d82af9eb6cfb7a361
Philip P. Moltmann [Tue, 29 Nov 2016 22:25:59 +0000 (14:25 -0800)]
Allow the shell to set USB functions.
Bug:
25596495
Test: Issed a shell command and saw it handled correctly
Change-Id: I4472464a1c7ed100cb257dbad83d1d8cfef88fc6
Narayan Kamath [Thu, 16 Feb 2017 17:24:40 +0000 (17:24 +0000)]
Merge "Track libcore change
d7d594236d66c4d595f7622a264fd51." am:
97ebc29e9c
am:
b872486722
Change-Id: Ia7111f2be312494fbdb816efae9a7b465ce6b1a4
Narayan Kamath [Thu, 16 Feb 2017 17:20:26 +0000 (17:20 +0000)]
Merge "Track libcore change
d7d594236d66c4d595f7622a264fd51."
am:
97ebc29e9c
Change-Id: Ied575c14661753a56241f0cea62391b057ab4316
Narayan Kamath [Thu, 16 Feb 2017 17:12:48 +0000 (17:12 +0000)]
Neil Fuller [Thu, 16 Feb 2017 16:09:10 +0000 (16:09 +0000)]
Merge "TimeZoneBundleInstaller -> TimeZoneDistroInstaller" am:
eb82e3de87
am:
c1867dedfa
Change-Id: If2f639d07a44861b96b4497cc3dc02364dc85c51
Neil Fuller [Thu, 16 Feb 2017 16:02:33 +0000 (16:02 +0000)]
Merge "TimeZoneBundleInstaller -> TimeZoneDistroInstaller"
am:
eb82e3de87
Change-Id: I7666ae9c9472f11cafe0df5a2f259df1c499d44b
Neil Fuller [Thu, 16 Feb 2017 15:51:26 +0000 (15:51 +0000)]
Merge "TimeZoneBundleInstaller -> TimeZoneDistroInstaller"
Narayan Kamath [Thu, 16 Feb 2017 14:37:39 +0000 (14:37 +0000)]
Track libcore change
d7d594236d66c4d595f7622a264fd51.
Test: make update-api docs
Change-Id: Icfe470034b53afff60469d5bcfd58d959cea2488
Etan Cohen [Thu, 16 Feb 2017 14:29:29 +0000 (14:29 +0000)]
Merge changes from topic 'cm_request_to' am:
6fb97e8fd8
am:
ede9f94e32
Change-Id: I2720e64e4af88df9d3a7b6209e9fcef4a0340986
Etan Cohen [Thu, 16 Feb 2017 14:28:29 +0000 (14:28 +0000)]
[CM] Remove non-functional timeout from request network am:
e9aea9d397
am:
a6be89aa40
Change-Id: Ie00ac8dee9302fafc0cdad95ec08d376ad908ab9
Etan Cohen [Thu, 16 Feb 2017 14:23:18 +0000 (14:23 +0000)]
Merge changes from topic 'cm_request_to'
am:
6fb97e8fd8
Change-Id: I9ca18c0570be831ab37cdf200c28b0778117198d
Etan Cohen [Thu, 16 Feb 2017 14:21:44 +0000 (14:21 +0000)]
[CM] Remove non-functional timeout from request network
am:
e9aea9d397
Change-Id: Ica347b2c2181fe04a7efb2769d7498a31c888e5a
Etan Cohen [Thu, 16 Feb 2017 14:15:43 +0000 (14:15 +0000)]
Merge changes from topic 'cm_request_to'
* changes:
[CM] Remove maximum timeout value for request network
[CM] Remove non-functional timeout from request network
Etan Cohen [Sun, 5 Feb 2017 18:42:27 +0000 (10:42 -0800)]
[CM] Remove maximum timeout value for request network
The request network with timeout was originally created with a
check of max timeout against a constant of 100 minutes. However,
the API was not public and did not implement a timeout. Any users
were internal and never got any onUnavailable() callback (since
timeout never triggered).
There is no reason to have a max timeout so the constant is
remove.
Bug:
31399536
Test: unit tests and CTS of ConnectivityManager
Change-Id: Icbedfb4299d75b6a7e3e43720111531f1faafd06
Hemant Gupta [Thu, 16 Feb 2017 13:14:22 +0000 (13:14 +0000)]
Merge "OBEX: Set Min maxPacketLength negotiated in CONNECT Operation." am:
3ac3170a4b
am:
1112046506
Change-Id: Ib406bdcd0f388c7fe1f226da2ae17a2c588739c9
Hemant Gupta [Thu, 16 Feb 2017 13:10:19 +0000 (13:10 +0000)]
Merge "OBEX: Set Min maxPacketLength negotiated in CONNECT Operation."
am:
3ac3170a4b
Change-Id: I477f407d94a43a14083fa68a7b271f5d4fe8445d
Shigeki Yokomichi [Thu, 16 Feb 2017 13:06:27 +0000 (13:06 +0000)]
Merge "Fix the "Alarm volume" icon is displayed incorrectly" am:
e0ba81110a
am:
657abc315d
Change-Id: I295d50e9513775dddb2aea3686275264d7e0f12c
Treehugger Robot [Thu, 16 Feb 2017 12:59:15 +0000 (12:59 +0000)]
Merge "OBEX: Set Min maxPacketLength negotiated in CONNECT Operation."
Shigeki Yokomichi [Thu, 16 Feb 2017 12:58:17 +0000 (12:58 +0000)]
Merge "Fix the "Alarm volume" icon is displayed incorrectly"
am:
e0ba81110a
Change-Id: Id7996cd16fea9eccbdcd389206e77d7390cd25a2
Treehugger Robot [Thu, 16 Feb 2017 12:47:41 +0000 (12:47 +0000)]
Merge "Fix the "Alarm volume" icon is displayed incorrectly"
Hugo Benichi [Thu, 16 Feb 2017 07:08:27 +0000 (07:08 +0000)]
Merge "Captive portal: better detect empty responses" am:
c217f7a9f3
am:
af8e749820
Change-Id: I0b2cd45fb92e2f8accb53ef4e050d2b6e7f7fd1c
Hugo Benichi [Thu, 16 Feb 2017 07:04:25 +0000 (07:04 +0000)]
Merge "Captive portal: better detect empty responses"
am:
c217f7a9f3
Change-Id: If6229a3a5c0ccc3575d44d11ed9f486cab35eac3
Hugo Benichi [Thu, 16 Feb 2017 06:54:46 +0000 (06:54 +0000)]
Merge "Captive portal: better detect empty responses"
Jack Yu [Wed, 15 Feb 2017 23:31:47 +0000 (15:31 -0800)]
Added the new RIL request to set SIM power state
The new RIL request for powering up/down the SIM card.
Test: Telephony sanity tests
bug:
32224755
Merged-In: Ia20f824eb9a0bf6d5f63f782a8d42a22a0355938
Change-Id: Ia20f824eb9a0bf6d5f63f782a8d42a22a0355938
Hugo Benichi [Wed, 11 Jan 2017 07:23:26 +0000 (16:23 +0900)]
Captive portal: better detect empty responses
The captive portal detection logic treats empty http responses with a
Content-Length of 0 as not coming from a portal.
However when the Content-Length is missing from the response header, the
empty response is not detected as such and is classified as a captive
portal answer.
When this happens for the http probe, the portal detection logic will
short circuit the detection and wrongly report a portal. The system
validates the network in such conditions only if the https probe
returns a successful connection faster than the http probe.
This patch attempts to better detect empty responses by trying to read
the first byte from the response body when the Content-Length is missing
for 200 responses.
Test: build, flashed + manual tests.
Bug:
33498325
(cherry picked from commit
cb4aa4d412c7940386df9b8dd681e0d2efebfd1d)
Change-Id: Ibb9914cba72a4dab3ae76746d8889bbf083be812
Hall Liu [Wed, 15 Feb 2017 22:30:44 +0000 (22:30 +0000)]
Merge "Add extra key for app-specified outgoing call timeout" am:
decc6c9d56
am:
2bc24e252e
Change-Id: I1912bfa8856e78f375587d94bf589ef2fd25bee8
Hall Liu [Wed, 15 Feb 2017 22:24:23 +0000 (22:24 +0000)]
Merge "Add extra key for app-specified outgoing call timeout"
am:
decc6c9d56
Change-Id: I58a70b265f4b5af735e93c9004616bd44d5c51de
Hall Liu [Wed, 15 Feb 2017 21:41:21 +0000 (21:41 +0000)]
Merge "Add extra key for app-specified outgoing call timeout"
Badhri Jagan Sridharan [Wed, 15 Feb 2017 20:20:15 +0000 (20:20 +0000)]
Merge changes from topic 'dual_role_chargers' am:
37b939a180
am:
0a3efc2622
Change-Id: I2c0ba36c46674ff7f9a0b963543e271eec93858c
Badhri Jagan Sridharan [Wed, 15 Feb 2017 20:13:53 +0000 (20:13 +0000)]
Merge changes from topic 'dual_role_chargers'
am:
37b939a180
Change-Id: I2b9eda605ae85347eb2e3e4202a6c7ec176778af
Badhri Jagan Sridharan [Wed, 15 Feb 2017 20:00:24 +0000 (20:00 +0000)]
Merge changes from topic 'dual_role_chargers'
* changes:
Introduce debounce to filter rapidly toggling type-c ports
Fix handling usb dialog for wall chargers.
Badhri Jagan Sridharan [Fri, 10 Feb 2017 03:45:21 +0000 (19:45 -0800)]
Introduce debounce to filter rapidly toggling type-c ports
Type-c ports can quickly toggle between connected/disconnected
states. Introduce debounce to prevent sending spurious notifications.
Bug:
34972898
Test: notification should not be queued for a pixel-c charger not connected
to the power outlet.
Change-Id: I4aa19f9f864fe5b77e65f6a07a3184d8aba1f5fc
Badhri Jagan Sridharan [Mon, 13 Feb 2017 21:14:40 +0000 (13:14 -0800)]
Fix handling usb dialog for wall chargers.
UsbPort.POWER_ROLE_SINK is orthogonal to the type of the charger
attached. POWER_ROLE_SINK would be the case for AC charging and
USB charging. Therefore query BatteryManager for the charger
type.
Bug:
34972898
Test: Charging notification should not show for pixel-c chargers.
Change-Id: I8dddcd7727b6af973bd173d2c6e325aa4be2ca3a
Hugo Benichi [Fri, 10 Feb 2017 17:15:04 +0000 (02:15 +0900)]
IP connectivity metrics: delete obsolete logger service
Test: - runtest frameworks-net
- manually verified $ adb shell dumpsys connmetrics
Bug:
32648597
Change-Id: I69f7dee5871508398d7f7209658a00c768e2d18e
Hall Liu [Wed, 15 Feb 2017 02:11:11 +0000 (18:11 -0800)]
Add extra key for app-specified outgoing call timeout
Bug:
34474757
Test: manual
Change-Id: Ia93d68d6a01308b0b93b88977daf983a0ed3a22c
Hugo Benichi [Wed, 15 Feb 2017 01:09:58 +0000 (01:09 +0000)]
Merge "ConnectivityManager: fix potential NPE" am:
b688dd18ab
am:
ab453cd565
Change-Id: I72e114037ce6a0ec53863749b8ffa34513c9fdce
Hugo Benichi [Wed, 15 Feb 2017 01:05:24 +0000 (01:05 +0000)]
Merge "ConnectivityManager: fix potential NPE"
am:
b688dd18ab
Change-Id: If562fc6a921569ad9d3141cac72b6f395a30da9e
Erik Kline [Wed, 15 Feb 2017 00:54:07 +0000 (00:54 +0000)]
Merge "Split chooseUpstreamType() into two separate functions" am:
7a42d3ad83
am:
f6d55d7e9e
Change-Id: Ibd6b1fae52ec31ae488484be727b5261820e6ecb
Hugo Benichi [Wed, 15 Feb 2017 00:53:44 +0000 (00:53 +0000)]
Merge "ConnectivityManager: fix potential NPE"
Erik Kline [Wed, 15 Feb 2017 00:52:57 +0000 (00:52 +0000)]
Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" am:
63445824d6
am:
4650762557
Change-Id: Ie004da6fe1252ddec90204637ff17c3ed73f2923
Erik Kline [Wed, 15 Feb 2017 00:49:20 +0000 (00:49 +0000)]
Merge "Split chooseUpstreamType() into two separate functions"
am:
7a42d3ad83
Change-Id: I77649e11e74140ec985dcdadab226e3e73e67642
Erik Kline [Wed, 15 Feb 2017 00:48:24 +0000 (00:48 +0000)]
Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage"
am:
63445824d6
Change-Id: Ie921ee1a2f1dbdd338c9f0700b24808e1cb6435e
Erik Kline [Wed, 15 Feb 2017 00:38:50 +0000 (00:38 +0000)]
Merge "Split chooseUpstreamType() into two separate functions"
Erik Kline [Wed, 15 Feb 2017 00:38:31 +0000 (00:38 +0000)]
Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage"
Michael Peck [Tue, 14 Feb 2017 23:55:07 +0000 (23:55 +0000)]
Merge "Pass targetSdkVersion specifier for SELinux labeling" am:
4516240b47
am:
f8cefed995
Change-Id: Ie71368e7b4571d209d8c3a824bbf1a8c738f56a8
Michael Peck [Tue, 14 Feb 2017 23:50:17 +0000 (23:50 +0000)]
Merge "Pass targetSdkVersion specifier for SELinux labeling"
am:
4516240b47
Change-Id: Ic61c4dc30f075d01a85d8b60cfe4ae1de773aa09
Treehugger Robot [Tue, 14 Feb 2017 23:42:57 +0000 (23:42 +0000)]
Merge "Pass targetSdkVersion specifier for SELinux labeling"
Michael Kwan [Tue, 14 Feb 2017 22:53:44 +0000 (22:53 +0000)]
Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev
am:
c61cd1a635
Change-Id: I02c70d3be50c00927e78282c9f3635b7ed9ae197
TreeHugger Robot [Tue, 14 Feb 2017 22:46:57 +0000 (22:46 +0000)]
Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev
Etan Cohen [Fri, 10 Feb 2017 02:16:58 +0000 (18:16 -0800)]
[CM] Remove non-functional timeout from request network
Until now the request network with timeout was non-functional
(see b/
31402633). Any caller which was using the timeout getting
the request network without a timeout.
While the timeout version has now been implemented, a max
timeout value is being removed since the large number used
(100 minutes) had no rationale for existing.
Updating the code to reflect the functionality which was
actually used - without a timeout.
Bug:
31399536
Bug:
35354391
Test: unit tests and CTS of ConnectivityManager
Change-Id: I0ebf0917a4478036a5ae532dd1e0784479057eb8
Michael Kwan [Tue, 14 Feb 2017 20:04:38 +0000 (12:04 -0800)]
Fix incorrect values for VelocityTracker in SwipeDismissLayout.
The offset used to adjust MotionEvents for swipe velocity tracking
was incorrect, and caused issues when touch points where close
together. Fixed the offset used, which resolved swiping issues.
Bug:
34673753
Change-Id: Ide6060b511510bcf299e3db778e6ffc6afda5e19
Colin Cross [Tue, 14 Feb 2017 19:17:24 +0000 (19:17 +0000)]
Merge "Use asm-5.2 prebuilt" am:
6b32770d6d
am:
6c1ac4dd80
Change-Id: Icc01bcd92c5b23198bb39ff382610c72b4bf1867
Colin Cross [Tue, 14 Feb 2017 19:10:18 +0000 (19:10 +0000)]
Merge "Use asm-5.2 prebuilt"
am:
6b32770d6d
Change-Id: I7dc856be1a10ea7a65c7b3f889b37d9afaadbd5c
Colin Cross [Tue, 14 Feb 2017 19:03:45 +0000 (19:03 +0000)]
Merge "Use asm-5.2 prebuilt"
Michael Peck [Tue, 14 Feb 2017 17:07:04 +0000 (09:07 -0800)]
Pass targetSdkVersion specifier for SELinux labeling
Motivation:
Provide the ability to phase in new security policies by
applying them to apps with a minimum targetSdkVersion
Test: Marlin builds and boots. Apps targeting targetSdkVersion<=25
run in untrusted_app_25 domain. Apps targeting the current development
build >=26 run in the untrusted_app domain with fewer permissions. No
new denials observed during testing.
Bug:
34115651
Change-Id: Ib9f6ded9bd2f426861a6d843861b4074084253b0
Orion Hodson [Tue, 14 Feb 2017 16:14:08 +0000 (16:14 +0000)]
Merge "Import CallSite classes and BootstrapMethodError class from ojdk8u60" am:
3023906b1b
am:
49e0cad3e1
Change-Id: I16775763cb63e18d35765b807acb91fc57286b85
Orion Hodson [Tue, 14 Feb 2017 16:07:28 +0000 (16:07 +0000)]
Merge "Import CallSite classes and BootstrapMethodError class from ojdk8u60"
am:
3023906b1b
Change-Id: If332034df3b7afac1f7fdb92ca40adfb420ba768
Orion Hodson [Tue, 14 Feb 2017 16:02:32 +0000 (16:02 +0000)]
Merge "Import CallSite classes and BootstrapMethodError class from ojdk8u60"
songjinshi [Tue, 14 Feb 2017 14:34:13 +0000 (14:34 +0000)]
Merge "[NotificationManagerService]: Fixes the thread-safe issue." am:
d530d1bf18
am:
f69a73793d
Change-Id: Ifcce0699f9434cf490f9b4b596ba7604208275c6
songjinshi [Tue, 14 Feb 2017 14:29:36 +0000 (14:29 +0000)]
Merge "[NotificationManagerService]: Fixes the thread-safe issue."
am:
d530d1bf18
Change-Id: I661207bb52d84b1928d7ff3ad262cfe89e71e60b
Treehugger Robot [Tue, 14 Feb 2017 14:23:18 +0000 (14:23 +0000)]
Merge "[NotificationManagerService]: Fixes the thread-safe issue."
Erik Kline [Tue, 14 Feb 2017 10:03:09 +0000 (19:03 +0900)]
Split chooseUpstreamType() into two separate functions
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest frameworks-net passes
Bug:
32163131
Change-Id: If892864ff59a6f38340791597c2d9e5b4022bbfa
Erik Kline [Tue, 14 Feb 2017 09:26:04 +0000 (18:26 +0900)]
Slightly simplify mTryCell and requestUpstreamMobileConnection() usage
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest frameworks-net passes
Bug:
32163131
Change-Id: I46fbd176a71e61552d7d92660c1debe6487a1edf
Erik Kline [Tue, 14 Feb 2017 09:45:56 +0000 (09:45 +0000)]
Merge "Verify duplicate upstream notifications are ignored" am:
3d57eb0bdc
am:
02e71f6245
Change-Id: I0e62e4f6f371aa43eae1a0e5c62787c4e84ddd9a
Erik Kline [Tue, 14 Feb 2017 09:41:53 +0000 (09:41 +0000)]
Merge "Verify duplicate upstream notifications are ignored"
am:
3d57eb0bdc
Change-Id: Iff84a1a12714047b20408f03e3bb2252a463b74b
Treehugger Robot [Tue, 14 Feb 2017 09:32:55 +0000 (09:32 +0000)]
Merge "Verify duplicate upstream notifications are ignored"
Hugo Benichi [Fri, 3 Feb 2017 05:18:44 +0000 (14:18 +0900)]
ConnectivityManager: fix potential NPE
ConnectivityManager static sCallbackHandler is referenced and directly
used in a way that is not ensuring its proper initialization.
This patch fixes this potential NPE by using getHandler() instead.
Also this patch changes sendRequestForNetwork's signature to only accept
the subtype CallbackHandler instead of Handler: without using
CallbackHandler the NetworkCallbacks are not triggered properly and
bookkeeping of sCallbacks does not happen. sendRequestForNetwork's
signature now makes this explicit.
This step prepares the addition of overloaded versions of
registerNetworkCallback and cie that takes custom Handlers.
Test: build, flashed, manually checked connectivity
Change-Id: I52e8a2cb5075e7aef7b35e30c9845cacba927d13
Erik Kline [Tue, 14 Feb 2017 06:55:00 +0000 (15:55 +0900)]
Verify duplicate upstream notifications are ignored
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest .../tethering/TetherInterfaceStateMachineTest.java passes
Bug:
32163131
Change-Id: I3c097d766fe4c416a8e3f02640809fe1199c6ef2
Erik Kline [Tue, 14 Feb 2017 06:21:44 +0000 (06:21 +0000)]
Merge "Cleanup in the face of upstream error" am:
ed6d75d5f3
am:
76e6f790db
Change-Id: I097318f3edc5257288d582a0f17744e1f984856c
Erik Kline [Tue, 14 Feb 2017 06:17:38 +0000 (06:17 +0000)]
Merge "Cleanup in the face of upstream error"
am:
ed6d75d5f3
Change-Id: If8dbf882bd8c4a8d53ae026d8f83a00a52590830
Erik Kline [Tue, 14 Feb 2017 06:09:21 +0000 (06:09 +0000)]
Merge "Cleanup in the face of upstream error"
Erik Kline [Mon, 13 Feb 2017 08:28:53 +0000 (17:28 +0900)]
Cleanup in the face of upstream error
If either enableNat() or startInterfaceForwarding() fail, be sure
to cleanup any commands that might have succeeded.
Most of this change is a refactoring of cleanupUpstreamIface() into
two methods, one of which (cleanupUpstreamInterface()) is reused
in error handling scenarios.
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest -x .../tethering/TetherInterfaceStateMachineTest.java passes
Bug:
32031803
Bug:
32163131
Change-Id: Ia4d56e03beeab1908d8b8c2202e94992f1aa58a4
Ningyuan Wang [Tue, 14 Feb 2017 02:24:30 +0000 (02:24 +0000)]
Merge "Create createFromByteArray() for WifiSsid" am:
fb19d8d7c1
am:
18b3a7f586
Change-Id: Iea1e8282f0a9d2b58d48ab67dd856fafce95daf0
Ningyuan Wang [Tue, 14 Feb 2017 02:20:23 +0000 (02:20 +0000)]
Merge "Create createFromByteArray() for WifiSsid"
am:
fb19d8d7c1
Change-Id: I8b88c2259950b81b452452a2b56fd0ceaf2b7180
Ningyuan Wang [Tue, 14 Feb 2017 02:13:33 +0000 (02:13 +0000)]
Merge "Create createFromByteArray() for WifiSsid"
Chen Xu [Tue, 14 Feb 2017 01:42:00 +0000 (01:42 +0000)]
Merge "Add simActivationState to PhoneStateListener" am:
132842efc9
am:
b206f5b382
Change-Id: I3feca80a72ee4a7ef3fe1583aa563451b91a68f4
Chen Xu [Tue, 14 Feb 2017 01:34:02 +0000 (01:34 +0000)]
Merge "Add simActivationState to PhoneStateListener"
am:
132842efc9
Change-Id: I0b35d7d8f5b6237ff55aaab0cab0b86d75699a7a
Chen Xu [Tue, 14 Feb 2017 01:26:18 +0000 (01:26 +0000)]
Merge "Add simActivationState to PhoneStateListener"
Amith Yamasani [Tue, 14 Feb 2017 01:02:54 +0000 (01:02 +0000)]
Merge "DO NOT MERGE : Revert "DO NOT MERGE. No direct Uri grants from system."" into nyc-mr1-dev am:
7556690cf5
am:
c510e19d18
Change-Id: I532b675a10ae9e21f28f3aa38d0f2e85ac080faa
Amith Yamasani [Tue, 14 Feb 2017 00:57:56 +0000 (00:57 +0000)]
Merge "DO NOT MERGE : Revert "DO NOT MERGE. No direct Uri grants from system."" into nyc-mr1-dev
am:
7556690cf5
Change-Id: Ib0446301e56751f6a72403155c576516cd7e559c