Home
last modified time | relevance | path

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

12

/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.java37 private final HashMap<String, WifiP2pDevice> mDevices = new HashMap<String, WifiP2pDevice>();
45 for (WifiP2pDevice d : source.getDeviceList()) { in WifiP2pDeviceList()
46 mDevices.put(d.deviceAddress, new WifiP2pDevice(d)); in WifiP2pDeviceList()
52 public WifiP2pDeviceList(ArrayList<WifiP2pDevice> devices) { in WifiP2pDeviceList()
53 for (WifiP2pDevice device : devices) { in WifiP2pDeviceList()
55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList()
60 private void validateDevice(WifiP2pDevice device) { in validateDevice()
87 public void update(WifiP2pDevice device) { in update()
93 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails()
95 WifiP2pDevice d = mDevices.get(device.deviceAddress); 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()
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.java49 import android.net.wifi.p2p.WifiP2pDevice;
229 private WifiP2pDevice mThisDevice = new WifiP2pDevice();
1481 WifiP2pDevice d = (WifiP2pDevice) message.obj; in processMessage()
1599 WifiP2pDevice device = (WifiP2pDevice) message.obj; in processMessage()
1609 device = (WifiP2pDevice) message.obj; in processMessage()
1671 WifiP2pDevice dev = in processMessage()
1818 WifiP2pDevice.INVITED); in processMessage()
1855 WifiP2pDevice owner = group.getOwner(); in processMessage()
1865 group.setOwner(new WifiP2pDevice(addr)); in processMessage()
1912 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/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/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/wifi/aidl-export/android/net/wifi/p2p/
DWifiP2pDevice.aidl19 parcelable WifiP2pDevice;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt46592 …id/net/wifi/p2p/nsd/WifiP2pDnsSdServiceResponse;-><init>(IILandroid/net/wifi/p2p/WifiP2pDevice;[B)V
46603 …nsd/WifiP2pDnsSdServiceResponse;->newInstance(IILandroid/net/wifi/p2p/WifiP2pDevice;[B)Landroid/ne…
46626 Landroid/net/wifi/p2p/nsd/WifiP2pServiceResponse;-><init>(IIILandroid/net/wifi/p2p/WifiP2pDevice;[B…
46631 …ndroid/net/wifi/p2p/nsd/WifiP2pServiceResponse;->getSrcDevice()Landroid/net/wifi/p2p/WifiP2pDevice;
46637 Landroid/net/wifi/p2p/nsd/WifiP2pServiceResponse;->mDevice:Landroid/net/wifi/p2p/WifiP2pDevice;
46642 Landroid/net/wifi/p2p/nsd/WifiP2pServiceResponse;->setSrcDevice(Landroid/net/wifi/p2p/WifiP2pDevice
46648 Landroid/net/wifi/p2p/nsd/WifiP2pUpnpServiceResponse;-><init>(IILandroid/net/wifi/p2p/WifiP2pDevice
46653 …/nsd/WifiP2pUpnpServiceResponse;->newInstance(IILandroid/net/wifi/p2p/WifiP2pDevice;[B)Landroid/ne…
46657 Landroid/net/wifi/p2p/WifiP2pDevice;->detailedDevicePattern:Ljava/util/regex/Pattern;
46658 Landroid/net/wifi/p2p/WifiP2pDevice;->DEVICE_CAPAB_CLIENT_DISCOVERABILITY:I
[all …]
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt18150 public class WifiP2pDevice implements android.os.Parcelable {
18151 ctor public WifiP2pDevice();
18152 ctor public WifiP2pDevice(android.net.wifi.p2p.WifiP2pDevice);
18162 …field public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pDevice> CREATO…
18177 method public android.net.wifi.p2p.WifiP2pDevice get(java.lang.String);
18178 method public java.util.Collection<android.net.wifi.p2p.WifiP2pDevice> getDeviceList();
18187 method public java.util.Collection<android.net.wifi.p2p.WifiP2pDevice> getClientList();
18190 method public android.net.wifi.p2p.WifiP2pDevice getOwner();
18268 …id onDnsSdServiceAvailable(java.lang.String, java.lang.String, android.net.wifi.p2p.WifiP2pDevice);
18272 …ang.String, java.util.Map<java.lang.String, java.lang.String>, android.net.wifi.p2p.WifiP2pDevice);
[all …]
/frameworks/base/non-updatable-api/
Dcurrent.txt30533 public class WifiP2pDevice implements android.os.Parcelable {
30534 ctor public WifiP2pDevice();
30535 ctor public WifiP2pDevice(android.net.wifi.p2p.WifiP2pDevice);
30545 …Null public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pDevice> CREATOR;
30560 method public android.net.wifi.p2p.WifiP2pDevice get(String);
30561 method public java.util.Collection<android.net.wifi.p2p.WifiP2pDevice> getDeviceList();
30570 method public java.util.Collection<android.net.wifi.p2p.WifiP2pDevice> getClientList();
30574 method public android.net.wifi.p2p.WifiP2pDevice getOwner();
30658 method public void onDeviceInfoAvailable(@Nullable android.net.wifi.p2p.WifiP2pDevice);
30666 method public void onDnsSdServiceAvailable(String, String, android.net.wifi.p2p.WifiP2pDevice);
[all …]

12