Home
last modified time | relevance | path

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

/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java47 if (devA.wfdInfo != null) { in compareWifiP2pDevices()
48 assertEquals(devA.wfdInfo.isEnabled(), devB.wfdInfo.isEnabled()); 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()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pDevice.java132 public WifiP2pWfdInfo wfdInfo; field in WifiP2pDevice
235 wfdInfo = new WifiP2pWfdInfo(parseHex(str.substring(0,4)), in WifiP2pDevice()
241 wfdInfo.setR2DeviceType(parseHex(r2str.substring(0, 4))); in WifiP2pDevice()
255 return wfdInfo; in getWfdInfo()
327 wfdInfo = device.wfdInfo; in updateSupplicantDetails()
358 sbuf.append("\n wfdInfo: ").append(wfdInfo); in toString()
379 if (source.wfdInfo != null) { in WifiP2pDevice()
380 wfdInfo = new WifiP2pWfdInfo(source.wfdInfo); in WifiP2pDevice()
396 if (wfdInfo != null) { in writeToParcel()
398 wfdInfo.writeToParcel(dest, flags); in writeToParcel()
[all …]
DWifiP2pDeviceList.java104 d.wfdInfo = device.wfdInfo; in updateSupplicantDetails()
DWifiP2pManager.java1695 public void setWfdInfo(@NonNull Channel c, @NonNull WifiP2pWfdInfo wfdInfo, in setWfdInfo() argument
1697 setWFDInfo(c, wfdInfo, listener); in setWfdInfo()
1703 public void setWFDInfo(@NonNull Channel c, @NonNull WifiP2pWfdInfo wfdInfo, in setWFDInfo() argument
1711 c.mAsyncChannel.sendMessage(SET_WFD_INFO, 0, c.putListener(listener), wfdInfo); in setWFDInfo()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java541 Messenger replyMessenger, WifiP2pWfdInfo wfdInfo) throws Exception { in sendSetWfdInfoMsg() argument
545 msg.obj = wfdInfo; in sendSetWfdInfoMsg()
775 if (mTestThisDevice.wfdInfo != null) { in checkSendThisDeviceChangedBroadcast()
776 assertEquals(mTestThisDevice.wfdInfo.isEnabled(), in checkSendThisDeviceChangedBroadcast()
777 device.wfdInfo.isEnabled()); in checkSendThisDeviceChangedBroadcast()
778 assertEquals(mTestThisDevice.wfdInfo.getDeviceInfoHex(), in checkSendThisDeviceChangedBroadcast()
779 device.wfdInfo.getDeviceInfoHex()); in checkSendThisDeviceChangedBroadcast()
780 assertEquals(mTestThisDevice.wfdInfo.getControlPort(), in checkSendThisDeviceChangedBroadcast()
781 device.wfdInfo.getControlPort()); in checkSendThisDeviceChangedBroadcast()
782 assertEquals(mTestThisDevice.wfdInfo.getMaxThroughput(), in checkSendThisDeviceChangedBroadcast()
[all …]
DSupplicantP2pIfaceCallbackImplTest.java174 assertNotNull(device.wfdInfo); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
177 device.wfdInfo.getControlPort()); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
179 device.wfdInfo.getMaxThroughput()); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackV1_4Impl.java312 device.wfdInfo = new WifiP2pWfdInfo( in onR2DeviceFound()
318 device.wfdInfo.setR2DeviceInfo( in onR2DeviceFound()
DWifiP2pServiceImpl.java4023 private boolean setWfdInfo(WifiP2pWfdInfo wfdInfo) { in setWfdInfo() argument
4024 final boolean enabled = wfdInfo.isEnabled(); in setWfdInfo()
4032 if (!mWifiNative.setWfdDeviceInfo(wfdInfo.getDeviceInfoHex())) { in setWfdInfo()
4036 if (!setWfdR2InfoIfNecessary(wfdInfo)) { in setWfdInfo()
4041 mThisDevice.wfdInfo = wfdInfo; in setWfdInfo()
4046 private boolean setWfdR2InfoIfNecessary(WifiP2pWfdInfo wfdInfo) { in setWfdR2InfoIfNecessary() argument
4048 if (!wfdInfo.isR2Supported()) return true; in setWfdR2InfoIfNecessary()
4049 return mWifiNative.setWfdR2DeviceInfo(wfdInfo.getR2DeviceInfoHex()); in setWfdR2InfoIfNecessary()
DSupplicantP2pIfaceCallbackImpl.java134 device.wfdInfo = new WifiP2pWfdInfo( in onDeviceFound()
DSupplicantP2pIfaceHal.java1993 byte[] wfdInfo = null; in setWfdDeviceInfo()
1995 wfdInfo = NativeUtil.hexStringToByteArray(info); in setWfdDeviceInfo()
2004 result.setResult(mISupplicantP2pIface.setWfdDeviceInfo(wfdInfo)); in setWfdDeviceInfo()