Home
last modified time | relevance | path

Searched refs:WifiP2pDevice (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java38 private void compareWifiP2pDevices(WifiP2pDevice devA, WifiP2pDevice devB) { in compareWifiP2pDevices()
62 WifiP2pDevice dev_a = new WifiP2pDevice(); in testEqualsWithHashCode()
64 WifiP2pDevice dev_b = new WifiP2pDevice(); in testEqualsWithHashCode()
76 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithDefaultValues()
77 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithDefaultValues()
86 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithUpdatedValues()
94 device.status = WifiP2pDevice.CONNECTED; in testCopyConstructorWithUpdatedValues()
96 WifiP2pDevice copy = new WifiP2pDevice(device); in testCopyConstructorWithUpdatedValues()
105 WifiP2pDevice device = new WifiP2pDevice(); in testCopyConstructorWithNullWfdInfo()
113 device.status = WifiP2pDevice.CONNECTED; in testCopyConstructorWithNullWfdInfo()
[all …]
DWifiP2pDeviceListTest.java33 private static final WifiP2pDevice TEST_DEVICE_1 = new WifiP2pDevice("aa:bb:cc:dd:ee:ff");
34 private static final WifiP2pDevice TEST_DEVICE_2 = new WifiP2pDevice("aa:bb:cc:dd:ee:f1");
35 private static final WifiP2pDevice TEST_DEVICE_3 = new WifiP2pDevice("11:22:33:44:55:66");
36 private static final WifiP2pDevice TEST_DEVICE_4 = new WifiP2pDevice("a0:b0:c0:d0:e0:f0");
DWifiP2pGroupListTest.java35 private static final WifiP2pDevice TEST_GROUP_OWNER_1 = new WifiP2pDevice("aa:bb:cc:dd:ee:f0");
36 private static final WifiP2pDevice TEST_GROUP_OWNER_2 = new WifiP2pDevice("aa:bb:cc:dd:ee:f1");
37 private static final WifiP2pDevice TEST_GROUP_OWNER_3 = new WifiP2pDevice("aa:bb:cc:dd:ee:f2");
38 private static final WifiP2pDevice TEST_GROUP_OWNER_OTHER =
39 new WifiP2pDevice("aa:bb:cc:dd:ee:f3");
49 WifiP2pDevice goDev) { in createGroup()
DWifiP2pGroupTest.java39 private static final WifiP2pDevice GROUP_OWNER = new WifiP2pDevice("de:ad:be:ef:00:01");
41 private static final WifiP2pDevice CLIENT_1 = new WifiP2pDevice("aa:bb:cc:dd:ee:01");
42 private static final WifiP2pDevice CLIENT_2 = new WifiP2pDevice("aa:bb:cc:dd:ee:02");
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDeviceList.java22 import android.net.wifi.p2p.WifiP2pDevice;
38 private final HashMap<String, WifiP2pDevice> mDevices = new HashMap<String, WifiP2pDevice>();
46 for (WifiP2pDevice d : source.getDeviceList()) { in WifiP2pDeviceList()
47 mDevices.put(d.deviceAddress, new WifiP2pDevice(d)); in WifiP2pDeviceList()
53 public WifiP2pDeviceList(ArrayList<WifiP2pDevice> devices) { in WifiP2pDeviceList()
54 for (WifiP2pDevice device : devices) { in WifiP2pDeviceList()
56 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList()
61 private void validateDevice(WifiP2pDevice device) { in validateDevice()
88 public void update(WifiP2pDevice device) { in update()
94 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails()
[all …]
DWifiP2pGroup.java54 private WifiP2pDevice mOwner;
60 private List<WifiP2pDevice> mClients = new ArrayList<WifiP2pDevice>();
127 mOwner = new WifiP2pDevice(match.group(5)); in WifiP2pGroup()
144 WifiP2pDevice dev = new WifiP2pDevice(); in WifiP2pGroup()
151 mOwner = new WifiP2pDevice(nameValue[1]); in WifiP2pGroup()
190 public void setOwner(WifiP2pDevice device) { in setOwner()
195 public WifiP2pDevice getOwner() { in getOwner()
201 addClient(new WifiP2pDevice(address)); in addClient()
205 public void addClient(WifiP2pDevice device) { in addClient()
206 for (WifiP2pDevice client : mClients) { in addClient()
[all …]
DWifiP2pDevice.java34 public class WifiP2pDevice implements Parcelable { class
166 public WifiP2pDevice() { in WifiP2pDevice() method in WifiP2pDevice
187 public WifiP2pDevice(String string) throws IllegalArgumentException { in WifiP2pDevice() method in WifiP2pDevice
288 public void update(WifiP2pDevice device) { in update()
294 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails()
316 if (!(obj instanceof WifiP2pDevice)) return false; in equals()
318 WifiP2pDevice other = (WifiP2pDevice) obj; in equals()
352 public WifiP2pDevice(WifiP2pDevice source) { in WifiP2pDevice() method in WifiP2pDevice
388 public static final @android.annotation.NonNull Creator<WifiP2pDevice> CREATOR =
389 new Creator<WifiP2pDevice>() {
[all …]
DWifiP2pProvDiscEvent.java41 public WifiP2pDevice device;
49 device = new WifiP2pDevice(); in WifiP2pProvDiscEvent()
77 device = new WifiP2pDevice(); in WifiP2pProvDiscEvent()
DWifiP2pDevice.aidl19 parcelable WifiP2pDevice;
DWifiP2pManager.java685 byte[] responseData, WifiP2pDevice srcDevice); in onServiceAvailable()
706 String registrationType, WifiP2pDevice srcDevice); in onDnsSdServiceAvailable()
728 WifiP2pDevice srcDevice); in onDnsSdTxtRecordAvailable()
748 WifiP2pDevice srcDevice); in onUpnpServiceAvailable()
826 void onDeviceInfoAvailable(@Nullable WifiP2pDevice wifiP2pDevice); in onDeviceInfoAvailable()
1037 .onDeviceInfoAvailable((WifiP2pDevice) message.obj); in handleMessage()
1620 WifiP2pDevice d = new WifiP2pDevice(); in setDeviceName()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackTest.java32 import android.net.wifi.p2p.WifiP2pDevice;
101 public void answer(String iface, WifiP2pDevice device) { in testOnDeviceFound_success()
111 assertEquals(device.status, WifiP2pDevice.AVAILABLE); in testOnDeviceFound_success()
115 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_success()
133 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_success()
156 ArgumentCaptor<WifiP2pDevice> deviceCaptor = ArgumentCaptor.forClass(WifiP2pDevice.class); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
159 WifiP2pDevice device = deviceCaptor.getValue(); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
166 assertEquals(WifiP2pDevice.AVAILABLE, device.status); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
177 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess()
199 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_invalidArguments()
[all …]
DWifiP2pServiceImplTest.java54 import android.net.wifi.p2p.WifiP2pDevice;
128 private WifiP2pDevice mTestWifiP2pDevice;
130 private WifiP2pDevice mTestThisDevice;
155 mTestWifiP2pDevice = spy(new WifiP2pDevice()); in generatorTestData()
173 mTestWifiP2pNewPersistentGoGroup.setOwner(new WifiP2pDevice(thisDeviceMac)); in generatorTestData()
187 group2.setOwner(new WifiP2pDevice("12:34:56:78:90:ab")); in generatorTestData()
194 group3.setOwner(new WifiP2pDevice(thisDeviceMac)); in generatorTestData()
198 mTestThisDevice = new WifiP2pDevice(); in generatorTestData()
399 private void sendDeviceFoundEventMsg(WifiP2pDevice device) throws Exception { in sendDeviceFoundEventMsg()
459 Messenger replyMessenger, WifiP2pDevice dev) throws Exception { in sendSetDeviceNameMsg()
[all …]
DWifiP2pNativeTest.java34 import android.net.wifi.p2p.WifiP2pDevice;
95 group.setOwner(new WifiP2pDevice(goAddr)); in createP2pGroup()
DSupplicantP2pIfaceHalTest.java43 import android.net.wifi.p2p.WifiP2pDevice;
2875 WifiP2pDevice owner = new WifiP2pDevice(); in createDummyP2pGroup()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallback.java23 import android.net.wifi.p2p.WifiP2pDevice;
102 WifiP2pDevice device = new WifiP2pDevice(); in onDeviceFound()
126 device.status = WifiP2pDevice.AVAILABLE; in onDeviceFound()
145 WifiP2pDevice device = new WifiP2pDevice(); in onDeviceLost()
154 device.status = WifiP2pDevice.UNAVAILABLE; in onDeviceLost()
293 WifiP2pDevice owner = new WifiP2pDevice(); in onGroupStarted()
341 WifiP2pDevice client = new WifiP2pDevice(); in onInvitationReceived()
352 WifiP2pDevice owner = new WifiP2pDevice(); in onInvitationReceived()
402 event.device = new WifiP2pDevice(); in onProvisionDiscoveryCompleted()
464 private WifiP2pDevice createStaEventDevice(byte[] srcAddress, byte[] p2pDeviceAddress) { in createStaEventDevice()
[all …]
DWifiP2pServiceImpl.java46 import android.net.wifi.p2p.WifiP2pDevice;
220 private WifiP2pDevice mThisDevice = new WifiP2pDevice();
1462 WifiP2pDevice d = (WifiP2pDevice) message.obj; in processMessage()
1580 WifiP2pDevice device = (WifiP2pDevice) message.obj; in processMessage()
1590 device = (WifiP2pDevice) message.obj; in processMessage()
1652 WifiP2pDevice dev = in processMessage()
1800 WifiP2pDevice.INVITED); in processMessage()
1837 WifiP2pDevice owner = group.getOwner(); in processMessage()
1847 group.setOwner(new WifiP2pDevice(addr)); in processMessage()
1894 WifiP2pDevice device = provDisc.device; in processMessage()
[all …]
DWifiP2pMonitor.java20 import android.net.wifi.p2p.WifiP2pDevice;
269 public void broadcastP2pDeviceFound(String iface, WifiP2pDevice device) { in broadcastP2pDeviceFound()
281 public void broadcastP2pDeviceLost(String iface, WifiP2pDevice device) { in broadcastP2pDeviceLost()
470 public void broadcastP2pApStaConnected(String iface, WifiP2pDevice device) { in broadcastP2pApStaConnected()
479 public void broadcastP2pApStaDisconnected(String iface, WifiP2pDevice device) { in broadcastP2pApStaDisconnected()
DSupplicantP2pIfaceHal.java34 import android.net.wifi.p2p.WifiP2pDevice;
2047 WifiP2pDevice device = new WifiP2pDevice(); in loadGroups()
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceResponse.java19 import android.net.wifi.p2p.WifiP2pDevice;
60 protected WifiP2pDevice mDevice;
119 WifiP2pDevice device, byte[] data) { in WifiP2pServiceResponse()
175 public WifiP2pDevice getSrcDevice() { in getSrcDevice()
180 public void setSrcDevice(WifiP2pDevice dev) { in setSrcDevice()
198 WifiP2pDevice dev = new WifiP2pDevice(); in newInstance()
360 WifiP2pDevice dev = (WifiP2pDevice)in.readParcelable(null);
DWifiP2pUpnpServiceResponse.java19 import android.net.wifi.p2p.WifiP2pDevice;
81 int transId, WifiP2pDevice dev, byte[] data) { in WifiP2pUpnpServiceResponse()
147 int transId, WifiP2pDevice device, byte[] data) { in newInstance()
DWifiP2pDnsSdServiceResponse.java19 import android.net.wifi.p2p.WifiP2pDevice;
153 int tranId, WifiP2pDevice dev, byte[] data) { in WifiP2pDnsSdServiceResponse()
296 int transId, WifiP2pDevice dev, byte[] data) { in newInstance()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java35 import android.net.wifi.p2p.WifiP2pDevice;
105 private final ArrayList<WifiP2pDevice> mAvailableWifiDisplayPeers =
106 new ArrayList<WifiP2pDevice>();
118 private WifiP2pDevice mDesiredDevice;
122 private WifiP2pDevice mConnectingDevice;
125 private WifiP2pDevice mDisconnectingDevice;
128 private WifiP2pDevice mCancelingDevice;
131 private WifiP2pDevice mConnectedDevice;
160 private WifiP2pDevice mThisDevice;
235 for (WifiP2pDevice device : mAvailableWifiDisplayPeers) { in dump()
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...