Loading services/net/java/android/net/ip/IpClientManager.java +17 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.annotation.NonNull; import android.net.NattKeepalivePacketData; import android.net.ProxyInfo; import android.net.TcpKeepalivePacketData; import android.net.shared.Layer2Information; import android.net.shared.ProvisioningConfiguration; import android.net.util.KeepalivePacketDataUtil; import android.os.Binder; Loading Loading @@ -292,4 +293,20 @@ public class IpClientManager { Binder.restoreCallingIdentity(token); } } /** * Update the bssid, L2 key and group hint layer2 information. */ public boolean updateLayer2Information(Layer2Information info) { final long token = Binder.clearCallingIdentity(); try { mIpClient.updateLayer2Information(info.toStableParcelable()); return true; } catch (RemoteException e) { log("Error updating layer2 information", e); return false; } finally { Binder.restoreCallingIdentity(token); } } } Loading
services/net/java/android/net/ip/IpClientManager.java +17 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.annotation.NonNull; import android.net.NattKeepalivePacketData; import android.net.ProxyInfo; import android.net.TcpKeepalivePacketData; import android.net.shared.Layer2Information; import android.net.shared.ProvisioningConfiguration; import android.net.util.KeepalivePacketDataUtil; import android.os.Binder; Loading Loading @@ -292,4 +293,20 @@ public class IpClientManager { Binder.restoreCallingIdentity(token); } } /** * Update the bssid, L2 key and group hint layer2 information. */ public boolean updateLayer2Information(Layer2Information info) { final long token = Binder.clearCallingIdentity(); try { mIpClient.updateLayer2Information(info.toStableParcelable()); return true; } catch (RemoteException e) { log("Error updating layer2 information", e); return false; } finally { Binder.restoreCallingIdentity(token); } } }