Home
last modified time | relevance | path

Searched refs:wfdInfo (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java47 if (devA.wfdInfo != null) { in compareWifiP2pDevices()
48 assertEquals(devA.wfdInfo.isWfdEnabled(), devB.wfdInfo.isWfdEnabled()); in compareWifiP2pDevices()
49 assertEquals(devA.wfdInfo.getDeviceInfoHex(), devB.wfdInfo.getDeviceInfoHex()); in compareWifiP2pDevices()
50 assertEquals(devA.wfdInfo.getControlPort(), devB.wfdInfo.getControlPort()); in compareWifiP2pDevices()
51 assertEquals(devA.wfdInfo.getMaxThroughput(), devB.wfdInfo.getMaxThroughput()); in compareWifiP2pDevices()
53 assertEquals(devA.wfdInfo, devB.wfdInfo); in compareWifiP2pDevices()
95 device.wfdInfo = new WifiP2pWfdInfo(); in testCopyConstructorWithUpdatedValues()
114 device.wfdInfo = null; in testCopyConstructorWithNullWfdInfo()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDevice.java127 public WifiP2pWfdInfo wfdInfo; field in WifiP2pDevice
228 wfdInfo = new WifiP2pWfdInfo(parseHex(str.substring(0,4)), in WifiP2pDevice()
310 wfdInfo = device.wfdInfo; in updateSupplicantDetails()
341 sbuf.append("\n wfdInfo: ").append(wfdInfo); in toString()
362 if (source.wfdInfo != null) { in WifiP2pDevice()
363 wfdInfo = new WifiP2pWfdInfo(source.wfdInfo); in WifiP2pDevice()
379 if (wfdInfo != null) { in writeToParcel()
381 wfdInfo.writeToParcel(dest, flags); in writeToParcel()
402 device.wfdInfo = WifiP2pWfdInfo.CREATOR.createFromParcel(in);
DWifiP2pDeviceList.java103 d.wfdInfo = device.wfdInfo; in updateSupplicantDetails()
DWifiP2pManager.java1628 Channel c, WifiP2pWfdInfo wfdInfo, in setWFDInfo() argument
1636 c.mAsyncChannel.sendMessage(SET_WFD_INFO, 0, c.putListener(listener), wfdInfo); in setWFDInfo()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java284 WifiP2pWfdInfo wfdInfo = new WifiP2pWfdInfo(); in updateWfdEnableState() local
285 wfdInfo.setWfdEnabled(true); in updateWfdEnableState()
286 wfdInfo.setDeviceType(WifiP2pWfdInfo.WFD_SOURCE); in updateWfdEnableState()
287 wfdInfo.setSessionAvailable(true); in updateWfdEnableState()
288 wfdInfo.setControlPort(DEFAULT_CONTROL_PORT); in updateWfdEnableState()
289 wfdInfo.setMaxThroughput(MAX_THROUGHPUT); in updateWfdEnableState()
290 mWifiP2pManager.setWFDInfo(mWifiP2pChannel, wfdInfo, new ActionListener() { in updateWfdEnableState()
316 WifiP2pWfdInfo wfdInfo = new WifiP2pWfdInfo(); in updateWfdEnableState() local
317 wfdInfo.setWfdEnabled(false); in updateWfdEnableState()
318 mWifiP2pManager.setWFDInfo(mWifiP2pChannel, wfdInfo, new ActionListener() { in updateWfdEnableState()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java475 Messenger replyMessenger, WifiP2pWfdInfo wfdInfo) throws Exception { in sendSetWfdInfoMsg() argument
479 msg.obj = wfdInfo; in sendSetWfdInfoMsg()
663 if (mTestThisDevice.wfdInfo != null) { in checkSendThisDeviceChangedBroadcast()
664 assertEquals(mTestThisDevice.wfdInfo.isWfdEnabled(), in checkSendThisDeviceChangedBroadcast()
665 device.wfdInfo.isWfdEnabled()); in checkSendThisDeviceChangedBroadcast()
666 assertEquals(mTestThisDevice.wfdInfo.getDeviceInfoHex(), in checkSendThisDeviceChangedBroadcast()
667 device.wfdInfo.getDeviceInfoHex()); in checkSendThisDeviceChangedBroadcast()
668 assertEquals(mTestThisDevice.wfdInfo.getControlPort(), in checkSendThisDeviceChangedBroadcast()
669 device.wfdInfo.getControlPort()); in checkSendThisDeviceChangedBroadcast()
670 assertEquals(mTestThisDevice.wfdInfo.getMaxThroughput(), in checkSendThisDeviceChangedBroadcast()
[all …]
DSupplicantP2pIfaceCallbackTest.java168 assertNotNull(device.wfdInfo); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
171 device.wfdInfo.getControlPort()); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
173 device.wfdInfo.getMaxThroughput()); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallback.java129 device.wfdInfo = new WifiP2pWfdInfo( in onDeviceFound()
DSupplicantP2pIfaceHal.java1882 byte[] wfdInfo = null; in setWfdDeviceInfo()
1884 wfdInfo = NativeUtil.hexStringToByteArray(info); in setWfdDeviceInfo()
1893 result.setResult(mISupplicantP2pIface.setWfdDeviceInfo(wfdInfo)); in setWfdDeviceInfo()
DWifiP2pServiceImpl.java3668 private boolean setWfdInfo(WifiP2pWfdInfo wfdInfo) { in setWfdInfo() argument
3671 if (!wfdInfo.isWfdEnabled()) { in setWfdInfo()
3676 && mWifiNative.setWfdDeviceInfo(wfdInfo.getDeviceInfoHex()); in setWfdInfo()
3684 mThisDevice.wfdInfo = wfdInfo; in setWfdInfo()