/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/ |
D | WifiP2pDeviceTest.java | 38 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 …]
|
D | WifiP2pGroupListTest.java | 35 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()
|
D | WifiP2pDeviceListTest.java | 33 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");
|
D | WifiP2pGroupTest.java | 39 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");
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pDeviceList.java | 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() 96 WifiP2pDevice d = mDevices.get(device.deviceAddress); in updateSupplicantDetails() [all …]
|
D | WifiP2pGroup.java | 66 private WifiP2pDevice mOwner; 72 private List<WifiP2pDevice> mClients = new ArrayList<WifiP2pDevice>(); 139 mOwner = new WifiP2pDevice(match.group(5)); in WifiP2pGroup() 156 WifiP2pDevice dev = new WifiP2pDevice(); in WifiP2pGroup() 163 mOwner = new WifiP2pDevice(nameValue[1]); in WifiP2pGroup() 202 public void setOwner(WifiP2pDevice device) { in setOwner() 207 public WifiP2pDevice getOwner() { in getOwner() 213 addClient(new WifiP2pDevice(address)); in addClient() 217 public void addClient(WifiP2pDevice device) { in addClient() 218 for (WifiP2pDevice client : mClients) { in addClient() [all …]
|
D | WifiP2pDevice.java | 39 public class WifiP2pDevice implements Parcelable { class 172 public WifiP2pDevice() { in WifiP2pDevice() method in WifiP2pDevice 193 public WifiP2pDevice(String string) throws IllegalArgumentException { in WifiP2pDevice() method in WifiP2pDevice 305 public void update(@NonNull WifiP2pDevice device) { in update() 311 public void updateSupplicantDetails(WifiP2pDevice device) { in updateSupplicantDetails() 333 if (!(obj instanceof WifiP2pDevice)) return false; in equals() 335 WifiP2pDevice other = (WifiP2pDevice) obj; in equals() 369 public WifiP2pDevice(WifiP2pDevice source) { in WifiP2pDevice() method in WifiP2pDevice 405 public static final @android.annotation.NonNull Creator<WifiP2pDevice> CREATOR = 406 new Creator<WifiP2pDevice>() { [all …]
|
D | WifiP2pProvDiscEvent.java | 41 public WifiP2pDevice device; 49 device = new WifiP2pDevice(); in WifiP2pProvDiscEvent() 77 device = new WifiP2pDevice(); in WifiP2pProvDiscEvent()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackImplTest.java | 36 import android.net.wifi.p2p.WifiP2pDevice; 108 public void answer(String iface, WifiP2pDevice device) { in testOnDeviceFound_success() 118 assertEquals(device.status, WifiP2pDevice.AVAILABLE); in testOnDeviceFound_success() 121 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_success() 139 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_success() 162 ArgumentCaptor<WifiP2pDevice> deviceCaptor = ArgumentCaptor.forClass(WifiP2pDevice.class); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 165 WifiP2pDevice device = deviceCaptor.getValue(); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 172 assertEquals(WifiP2pDevice.AVAILABLE, device.status); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 183 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFoundWithSignBitInDeviceInfoBytesSuccess() 205 anyString(), any(WifiP2pDevice.class)); in testOnDeviceFound_invalidArguments() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/ |
D | P2pDiscoveryProcedure.java | 22 import android.net.wifi.p2p.WifiP2pDevice; 51 private final List<WifiP2pDevice> mPeers = new ArrayList<>(); 77 Collection<WifiP2pDevice> newPeers = list.getDeviceList(); in P2pDiscoveryProcedure() 98 for (WifiP2pDevice peer : mPeers) { in addListener() 115 private void updatePeers(Collection<WifiP2pDevice> newPeers) { in updatePeers() 116 List<WifiP2pDevice> oldPeers = new ArrayList<>(mPeers); in updatePeers() 120 for (WifiP2pDevice peer : newPeers) { in updatePeers() 128 for (WifiP2pDevice peer : mPeers) { in updatePeers() 130 WifiP2pDevice old = getDevice(oldPeers, peer.deviceAddress); in updatePeers() 139 for (WifiP2pDevice oldPeer : oldPeers) { in updatePeers() [all …]
|
D | P2pMonitor.java | 20 import android.net.wifi.p2p.WifiP2pDevice; 46 public static String toString(WifiP2pDevice device) { in toString() 57 case WifiP2pDevice.AVAILABLE: in statusString() 59 case WifiP2pDevice.CONNECTED: in statusString() 61 case WifiP2pDevice.FAILED: in statusString() 63 case WifiP2pDevice.INVITED: in statusString() 65 case WifiP2pDevice.UNAVAILABLE: in statusString() 107 public void connect(WifiP2pDevice peer, P2pConnectionListener listener) { in connect()
|
D | P2pConnectionProcedure.java | 25 import android.net.wifi.p2p.WifiP2pDevice; 51 private final WifiP2pDevice mPeer; 62 WifiP2pDevice peer, P2pConnectionListener listener) { in P2pConnectionProcedure() 75 private WifiP2pConfig configForPeer(WifiP2pDevice peer) { in configForPeer() 89 public WifiP2pDevice getPeer() { in getPeer() 169 WifiP2pDevice device = list.get(mPeer.deviceAddress); in onReceive() 172 if (!mInvited && device != null && device.status == WifiP2pDevice.INVITED) { in onReceive() 187 WifiP2pDevice owner = group.getOwner(); in isConnectedToPeer() 191 for (WifiP2pDevice client : group.getClientList()) { in isConnectedToPeer()
|
D | P2pPrinterConnection.java | 19 import android.net.wifi.p2p.WifiP2pDevice; 51 private WifiP2pDevice mPeer; 62 public P2pPrinterConnection(BuiltInPrintService service, WifiP2pDevice peer, in P2pPrinterConnection() 75 WifiP2pDevice peer = service.getP2pMonitor().getConnection().getPeer(); in P2pPrinterConnection() 84 private void connectToPeer(WifiP2pDevice peer) { in connectToPeer() 90 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() 105 public void onPeerLost(WifiP2pDevice peer) { in onPeerLost()
|
D | P2pPeerListener.java | 19 import android.net.wifi.p2p.WifiP2pDevice; 26 void onPeerFound(WifiP2pDevice peer); in onPeerFound() 29 void onPeerLost(WifiP2pDevice peer); in onPeerLost()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackImpl.java | 24 import android.net.wifi.p2p.WifiP2pDevice; 107 WifiP2pDevice device = new WifiP2pDevice(); in onDeviceFound() 131 device.status = WifiP2pDevice.AVAILABLE; in onDeviceFound() 150 WifiP2pDevice device = new WifiP2pDevice(); in onDeviceLost() 159 device.status = WifiP2pDevice.UNAVAILABLE; in onDeviceLost() 298 WifiP2pDevice owner = new WifiP2pDevice(); in onGroupStarted() 346 WifiP2pDevice client = new WifiP2pDevice(); in onInvitationReceived() 357 WifiP2pDevice owner = new WifiP2pDevice(); in onInvitationReceived() 407 event.device = new WifiP2pDevice(); in onProvisionDiscoveryCompleted() 469 private WifiP2pDevice createStaEventDevice(byte[] srcAddress, byte[] p2pDeviceAddress) { in createStaEventDevice() [all …]
|
D | WifiP2pServiceImpl.java | 55 import android.net.wifi.p2p.WifiP2pDevice; 291 private final WifiP2pDevice mThisDevice = new WifiP2pDevice(); 1674 WifiP2pDevice d = (WifiP2pDevice) message.obj; in processMessage() 1788 WifiP2pDevice device = (WifiP2pDevice) message.obj; in processMessage() 1798 device = (WifiP2pDevice) message.obj; in processMessage() 1861 WifiP2pDevice dev = in processMessage() 2051 WifiP2pDevice.INVITED); in processMessage() 2092 WifiP2pDevice owner = group.getOwner(); in processMessage() 2102 group.setOwner(new WifiP2pDevice(addr)); in processMessage() 2149 WifiP2pDevice device = provDisc.device; in processMessage() [all …]
|
D | SupplicantP2pIfaceCallbackV1_4Impl.java | 20 import android.net.wifi.p2p.WifiP2pDevice; 285 WifiP2pDevice device = new WifiP2pDevice(); in onR2DeviceFound() 309 device.status = WifiP2pDevice.AVAILABLE; in onR2DeviceFound()
|
D | WifiP2pMonitor.java | 20 import android.net.wifi.p2p.WifiP2pDevice; 244 public void broadcastP2pDeviceFound(String iface, WifiP2pDevice device) { in broadcastP2pDeviceFound() 256 public void broadcastP2pDeviceLost(String iface, WifiP2pDevice device) { in broadcastP2pDeviceLost() 445 public void broadcastP2pApStaConnected(String iface, WifiP2pDevice device) { in broadcastP2pApStaConnected() 454 public void broadcastP2pApStaDisconnected(String iface, WifiP2pDevice device) { in broadcastP2pApStaDisconnected()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pServiceResponse.java | 19 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);
|
D | WifiP2pUpnpServiceResponse.java | 19 import android.net.wifi.p2p.WifiP2pDevice; 81 int transId, WifiP2pDevice dev, byte[] data) { in WifiP2pUpnpServiceResponse() 147 int transId, WifiP2pDevice device, byte[] data) { in newInstance()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettingsTest.java | 34 import android.net.wifi.p2p.WifiP2pDevice; 208 setupOneP2pPeer(WifiP2pDevice.INVITED); in clickCancel_withInvitedPeerDialog_shouldCallCancelConnection() 219 setupOneP2pPeer(WifiP2pDevice.FAILED); in wifiP2pManager_clickOnFailedPeer_shouldTryToConnect() 305 setupOneP2pPeer(WifiP2pDevice.CONNECTED); in pressDisconnectDialog_clickDisconnectDialog_shouldRemoveGroup() 382 setupOneP2pPeer(WifiP2pDevice.CONNECTED); in onSaveInstanceState_withWiFiPeer_shouldGetP2pDeviceType() 389 assertThat(object instanceof WifiP2pDevice).isTrue(); in onSaveInstanceState_withWiFiPeer_shouldGetP2pDeviceType() 453 final WifiP2pDevice wifiP2pDevice = mock(WifiP2pDevice.class); in peersCategoryController_withOnePeerDevice_shouldBeAvailable() 454 final ArrayList<WifiP2pDevice> deviceList = new ArrayList<>(); in peersCategoryController_withOnePeerDevice_shouldBeAvailable() 466 final ArrayList<WifiP2pDevice> deviceList = new ArrayList<>(); in peersCategoryController_withNoPeerDevice_shouldBeUnavailable() 477 final WifiP2pDevice wifiP2pDevice = mock(WifiP2pDevice.class); in thisDeviceController_onDeviceInfoAvailable_shouldUpdateDeviceName() [all …]
|
D | WifiP2pPeerTest.java | 25 import android.net.wifi.p2p.WifiP2pDevice; 48 private WifiP2pDevice mWifiP2pDevice; 88 mWifiP2pDevice.status = WifiP2pDevice.FAILED; in compareTo_withLowerDeviceStatus_shouldBeOne() 114 final WifiP2pDevice wifiP2pDevice = mock(WifiP2pDevice.class); in setupOneOtherP2pPeer() 115 wifiP2pDevice.status = WifiP2pDevice.CONNECTED; in setupOneOtherP2pPeer()
|
D | P2pThisDevicePreferenceControllerTest.java | 24 import android.net.wifi.p2p.WifiP2pDevice; 61 WifiP2pDevice device = new WifiP2pDevice(); in updateDeviceName_emptyName_shouldUseIpAddress() 71 WifiP2pDevice device = new WifiP2pDevice(); in updateDeviceName_hasName_shouldUseName()
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | P2pDiscovery.java | 20 import android.net.wifi.p2p.WifiP2pDevice; 43 public static DiscoveredPrinter toPrinter(WifiP2pDevice device) { in toPrinter() 53 public static Uri toPath(WifiP2pDevice device) { in toPath() 95 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() 108 public void onPeerLost(WifiP2pDevice peer) { in onPeerLost()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettings.java | 31 import android.net.wifi.p2p.WifiP2pDevice; 107 private WifiP2pDevice mThisDevice; 219 WifiP2pDevice device = savedInstanceState.getParcelable(SAVE_DIALOG_PEER); in onActivityCreated() 434 if (mSelectedWifiPeer.device.status == WifiP2pDevice.CONNECTED) { in onPreferenceTreeClick() 436 } else if (mSelectedWifiPeer.device.status == WifiP2pDevice.INVITED) { in onPreferenceTreeClick() 576 for (WifiP2pDevice peer: mPeers.getDeviceList()) { in handlePeersChanged() 579 if (peer.status == WifiP2pDevice.CONNECTED) mConnectedDevices++; in handlePeersChanged() 615 public void onDeviceInfoAvailable(WifiP2pDevice wifiP2pDevice) { in onDeviceInfoAvailable()
|