History log of /frameworks/base/core/java/android/net/EthernetDataTracker.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f008ab727e46926bff018ef970ea8265ccc0f45d 12-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> am 5d33e76c: am 65208857: am 2415841c: Merge "EthernetDataTracker: indicate link up based on flags"

* commit '5d33e76cff65245d03f592a3dbcbf2e17a2f1581':
EthernetDataTracker: indicate link up based on flags
b6b72f5411d02b928441543dc4c5e8545e48920a 11-Sep-2012 Vishal Mahaveer <vishalm@ti.com> EthernetDataTracker: indicate link up based on flags

Indicate link up state based on flags/interface up, and not on IP address.
This is for ethernet interfaces that already exists.

Change-Id: Ib342d519c483bbb2dfa08cfac2c0c1a288cee7c0
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
/frameworks/base/core/java/android/net/EthernetDataTracker.java
da6da0907b28d4704aabbdb1bbeb4300954670d1 16-Aug-2012 Irfan Sheriff <isheriff@google.com> Captive portal handling

We now notify the user of a captive portal before switching to the network as default.
This allows background applications to continue to work until the user confirms he
wants to sign in to the captive portal.

Also, moved out captive portal handling out of wifi as a seperate component.

Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
/frameworks/base/core/java/android/net/EthernetDataTracker.java
db3c8678e5cbdfec011afaf25bde2091152c30ad 20-Jun-2012 Haoyu Bai <bhy@google.com> Network data activity change intent for network interfaces.

The activity notification is received from netd, an intent
DATA_ACTIVITY_CHANGE is then raised for other part of the system to
consume.

Change-Id: Idfcc4763c51c5b314c57f546c12557082f06bebf
/frameworks/base/core/java/android/net/EthernetDataTracker.java
b25f48f2be76a99088426ca068dd80fbf3e6dc5f 14-Jun-2012 Jason Simmons <jsimmons@google.com> am 1d28fef9: Stop any running DHCP client before bringup up an Ethernet interface

* commit '1d28fef92e516b0144d7844413194ba9e953b317':
Stop any running DHCP client before bringup up an Ethernet interface
1d28fef92e516b0144d7844413194ba9e953b317 14-Jun-2012 Jason Simmons <jsimmons@google.com> Stop any running DHCP client before bringup up an Ethernet interface

If the system server is restarted, the dhcpcd_eth0 service may have already
been started by the previous system server, and the new system server's
attempts to start the dhcpcd will do nothing.

Change-Id: Icfd480a5369eb9c7dfe86b43190294871a915529
/frameworks/base/core/java/android/net/EthernetDataTracker.java
198bc11d099008531b7e445d9715698421d6e644 07-May-2012 Robert Greenwalt <rgreenwalt@google.com> Bring up the ethernet interface when detected

We don't get link status info if it's down. If the device has been configured
for ethernet and we see the interface appear, we should make it active.

bug:6444395
Change-Id: Ibc233ab12942b069d7db9c0671936798c5161659
/frameworks/base/core/java/android/net/EthernetDataTracker.java
efeba018bde81e02e1255714e3d4eeeb43c055e7 15-Dec-2011 Mike Lockwood <lockwood@google.com> EthernetDataTracker: Don't run DHCP or set network available until link is up

Previously we were starting DHCP as soon as the interface was added,
which is at boot on devices with builtin ethernet.

Signed-off-by: Mike Lockwood <lockwood@google.com>
/frameworks/base/core/java/android/net/EthernetDataTracker.java
d60ae7f6688ea83df536c2eb1101a74ae1914ac6 03-Nov-2011 Doug Zongker <dougz@android.com> store the hw addr in the extraInfo field of ethernet NetworkInfos
/frameworks/base/core/java/android/net/EthernetDataTracker.java
4bcbefdc5f24702dbbae485d016997e3efb5e5cc 01-Oct-2011 Mike J. Chen <mjchen@google.com> Fix disconnect from wired ethernet issues.

When a cable was unplugged, we were telling the driver to release the
ip address so if a cable on a different network was plugged in, it would
still try to use it's old ip address on the new network, which probably
didn't work.

Also, we didn't notify ConnectivityService about the state change in
the unplug case. Some of this was done in the interface removed case,
but we never remove the interface in Tungsten, just unplug. So refactor
the common disconnect code into a disconnect() function that's called
by both the link status change (unplug) and interface removal (only applies
to things like USB ethernet dongles) cases.

Signed-off-by: Mike J. Chen <mjchen@google.com>
/frameworks/base/core/java/android/net/EthernetDataTracker.java
e41df2c9d479928c8aa3f1b4a3b01ff447a87116 15-Dec-2011 Mike Lockwood <lockwood@google.com> EthernetDataTracker: Don't run DHCP or set network available until link is up

Previously we were starting DHCP as soon as the interface was added,
which is at boot on devices with builtin ethernet.

Change-Id: I726c2b139cbf91455d159d7cbcd08e24a336942b
Signed-off-by: Mike Lockwood <lockwood@google.com>
/frameworks/base/core/java/android/net/EthernetDataTracker.java
fe30a1ef600b52d00c9233d1757cb3c2e8ae7377 03-Nov-2011 Doug Zongker <dougz@android.com> store the hw addr in the extraInfo field of ethernet NetworkInfos

Change-Id: Ic645396e81d1481d84061945eb9721f0eeb151eb
/frameworks/base/core/java/android/net/EthernetDataTracker.java
8f1667ac786538d34bfe94209d0e5942b141d29d 01-Oct-2011 Mike J. Chen <mjchen@google.com> Fix disconnect from wired ethernet issues.

When a cable was unplugged, we were telling the driver to release the
ip address so if a cable on a different network was plugged in, it would
still try to use it's old ip address on the new network, which probably
didn't work.

Also, we didn't notify ConnectivityService about the state change in
the unplug case. Some of this was done in the interface removed case,
but we never remove the interface in Tungsten, just unplug. So refactor
the common disconnect code into a disconnect() function that's called
by both the link status change (unplug) and interface removal (only applies
to things like USB ethernet dongles) cases.

Change-Id: I19d7ceb540d6a0e24df1b55314a13af78f1e593d
Signed-off-by: Mike J. Chen <mjchen@google.com>
/frameworks/base/core/java/android/net/EthernetDataTracker.java
8e28b7d78232f6cf08739ca0d129cc7f9e650801 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Proactively disable data when over policy limit.

Add policy controls to NetworkStateTracker which are combined with
other user preference and internal flags to decide if data connection
should be established. Better locking around enabled flags.

When data network would be over limit, proactively disable data on
that network. Enable when policy is snoozed or when cycle resets.

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
/frameworks/base/core/java/android/net/EthernetDataTracker.java
12b933d0d9252decaae9fee2456bb1e1cd94c085 15-Jul-2011 JP Abgrall <jpa@google.com> NetworkManagementService: receive bandwidth controller events

This is a 1st pass at receiving events that indicate
some quota has been reached e.g. warning quota, data collection quota,
cutoff quota,...

It needs:
- new kernel with quota2 logging support
- new net:bandwidthcontroller that supports
. quota2,
. setting alerts.
- new NetlinkEvent/NetlinkManager/NetlinkHandler to process
NETLINK NFLOG messages.

Change-Id: Ibfbb13512c5350cdee0e544ec14caa6f59812409
/frameworks/base/core/java/android/net/EthernetDataTracker.java
f59c7d0f2ac8d489b6d8118543a57ea4a603eacf 24-Jun-2011 Mike J. Chen <mjchen@google.com> Hookup interface status to other clients

After unreverting the linkstate change patch, hook up notification handlers
that didn't exist when the first patch was created, like
EthernetDataTracker.java and Vpn.java.

For the observers that handle interfaceStatusChanged(), I made
interfaceLinkStatusChanged() call it so they both do the same thing.

Change-Id: I0077e5e5f48f3932ba98f5bf363243892f2de6cc
Signed-off-by: Mike J. Chen <mjchen@google.com>
/frameworks/base/core/java/android/net/EthernetDataTracker.java
c96a667162fab44a250503caccb770109a9cb69a 13-Jun-2011 Mike J. Chen <mjchen@google.com> Handle always present wired ethernet interfaces at boot.

Devices with always present wired ethernet interfaces (as opposed
to usb ethernet dongles) don't have the interface added and removed.
Instead, it is present already at boot time. Change EthernetDataTracker
to support the already existing at boot time case.

Change-Id: I7b8e938f6b07aabd14f00ace55b35b7a05ea5a38
Signed-off-by: Mike J. Chen <mjchen@google.com>
/frameworks/base/core/java/android/net/EthernetDataTracker.java
af6eddb1c285a11841a2e1e0e3a41636f6bfd63d 08-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Fix build.

Change-Id: I9ac1c28de4f3f11f84b04923d4547ab64dd57f23
/frameworks/base/core/java/android/net/EthernetDataTracker.java
1997069436f0d47583a0b700c12ed63132cf3312 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: Ie75cbcdb1b0c8965b59b89675a05175a1e9ebdd6
/frameworks/base/core/java/android/net/EthernetDataTracker.java