Android4.4版本源碼變化

來源:互聯網
上載者:User

標籤:

一,WifiManager

  新增:

 1 public void setTdlsEnabled (InetAddress remoteIPAddress, boolean enable) 2      3 Enable/Disable TDLS on a specific local route. 4  5 TDLS enables two wireless endpoints to talk to each other directly without going through the access point that is managing the local network. It saves bandwidth and improves quality of the link. 6  7 This API enables/disables the option of using TDLS. If enabled, the underlying hardware is free to use TDLS or a hop through the access point. If disabled, existing TDLS session is torn down and hardware is restricted to use access point for transferring wireless packets. Default value for all routes is ‘disabled‘, meaning restricted to use access point for transferring packets. 8  9 Parameters10 remoteIPAddress    IP address of the endpoint to setup TDLS with11 enable    true = setup and false = tear down TDLS
public void setTdlsEnabledWithMacAddress (String remoteMacAddress, boolean enable)Similar to setTdlsEnabled(InetAddress, boolean), except this version allows you to specify remote endpoint with a MAC address.ParametersremoteMacAddress    MAC address of the remote endpoint such as 00:00:0c:9f:f2:abenable    true = setup and false = tear down TDLS

 

  變更:

public DhcpInfo getDhcpInfo ()Return the DHCP-assigned addresses from the last successful DHCP request, if any.Returnsthe DHCP information/*Change from deprecated to undeprecated.*/

 

TDLS簡介
日前WiFi聯盟推出了名為TDLS(Tunneled Direct Link Setup,通道直接鏈路建立)的無線標準,這項標準允許兩款裝置通過WiFi網路進行點對點直連,與早起提倡的WiFi Direct相似,不過功能則更加完善。

 

前後版源碼版本差異查看:frameworks\base\docs\html\sdk\api_diff\19\changes

 轉載請註明出處:http://www.cnblogs.com/Miami/p/4380381.html

Android4.4版本源碼變化

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.