Home
last modified time | relevance | path

Searched refs:WifiP2pGroup (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pGroupList.java43 private final LruCache<Integer, WifiP2pGroup> mGroups;
62 mGroups = new LruCache<Integer, WifiP2pGroup>(CREDENTIAL_MAX_NUM) { in WifiP2pGroupList()
65 WifiP2pGroup oldValue, WifiP2pGroup newValue) { in WifiP2pGroupList()
73 for (Map.Entry<Integer, WifiP2pGroup> item : source.mGroups.snapshot().entrySet()) { in WifiP2pGroupList()
83 public List<WifiP2pGroup> getGroupList() { in getGroupList()
93 public void add(WifiP2pGroup group) { in add()
141 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId()
142 for (WifiP2pGroup grp : groups) { in getNetworkId()
170 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId()
171 for (WifiP2pGroup grp : groups) { in getNetworkId()
[all …]
DWifiP2pGroup.java53 public class WifiP2pGroup implements Parcelable { class
155 public WifiP2pGroup() { in WifiP2pGroup() method in WifiP2pGroup
176 public WifiP2pGroup(String supplicantEvent) throws IllegalArgumentException { in WifiP2pGroup() method in WifiP2pGroup
457 public WifiP2pGroup(WifiP2pGroup source) { in WifiP2pGroup() method in WifiP2pGroup
492 public static final @android.annotation.NonNull Creator<WifiP2pGroup> CREATOR =
493 new Creator<WifiP2pGroup>() {
494 public WifiP2pGroup createFromParcel(Parcel in) {
495 WifiP2pGroup group = new WifiP2pGroup();
513 public WifiP2pGroup[] newArray(int size) {
514 return new WifiP2pGroup[size];
DIWifiP2pListener.aidl22 import android.net.wifi.p2p.WifiP2pGroup;
40 void onGroupCreated(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onGroupCreated()
41 void onPeerClientJoined(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onPeerClientJoined()
42 void onPeerClientDisconnected(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onPeerClientDisconnected()
43 void onFrequencyChanged(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onFrequencyChanged()
DWifiP2pConfig.java193 public int netId = WifiP2pGroup.NETWORK_ID_PERSISTENT;
410 private int mNetId = WifiP2pGroup.NETWORK_ID_TEMPORARY;
600 mNetId = WifiP2pGroup.NETWORK_ID_PERSISTENT; in enablePersistentMode()
602 mNetId = WifiP2pGroup.NETWORK_ID_TEMPORARY; in enablePersistentMode()
DWifiP2pManager.java954 public void onGroupInfoAvailable(WifiP2pGroup group); in onGroupInfoAvailable()
1368 @NonNull WifiP2pGroup p2pGroup) { in onGroupCreated()
1379 @NonNull WifiP2pGroup p2pGroup) { in onPeerClientJoined()
1390 @NonNull WifiP2pGroup p2pGroup) { in onPeerClientDisconnected()
1401 @NonNull WifiP2pGroup p2pGroup) { in onFrequencyChanged()
1536 public void onGroupCreated(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onGroupCreated()
1542 public void onPeerClientJoined(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientJoined()
1548 public void onPeerClientDisconnected(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientDisconnected()
1554 public void onFrequencyChanged(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onFrequencyChanged()
1810 WifiP2pGroup group = (WifiP2pGroup) message.obj; in handleMessage()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMetricsTest.java27 import android.net.wifi.p2p.WifiP2pGroup;
157 WifiP2pGroup group = new WifiP2pGroup(); in startAndEndGroupEventSucceeds()
244 WifiP2pGroup group1 = new WifiP2pGroup(); in updatePersistentGroup()
246 WifiP2pGroup group2 = new WifiP2pGroup(); in updatePersistentGroup()
248 WifiP2pGroup group3 = new WifiP2pGroup(); in updatePersistentGroup()
266 WifiP2pGroup group = new WifiP2pGroup(); in updateGroupEvent()
303 WifiP2pGroup group = new WifiP2pGroup(); in updateGroupEventWithNoCurrentGroup()
333 WifiP2pGroup group = new WifiP2pGroup(); in updateGroupEventWithDifferentGroup()
335 WifiP2pGroup differentGroup = new WifiP2pGroup(); in updateGroupEventWithDifferentGroup()
DSupplicantP2pIfaceCallbackAidlImplTest.java52 import android.net.wifi.p2p.WifiP2pGroup;
498 public void answer(String iface, WifiP2pGroup group) { in testOnGroupStarted_success()
502 assertEquals(group.getNetworkId(), WifiP2pGroup.NETWORK_ID_PERSISTENT); in testOnGroupStarted_success()
508 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_success()
521 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_success()
537 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_invalidArguments()
543 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_invalidArguments()
549 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_invalidArguments()
568 public void answer(String iface, WifiP2pGroup group) { in testOnGroupStartedWithParams_success()
572 assertEquals(group.getNetworkId(), WifiP2pGroup.NETWORK_ID_PERSISTENT); in testOnGroupStartedWithParams_success()
[all …]
DSupplicantP2pIfaceCallbackHidlImplTest.java38 import android.net.wifi.p2p.WifiP2pGroup;
358 public void answer(String iface, WifiP2pGroup group) { in testOnGroupStarted_success()
362 assertEquals(group.getNetworkId(), WifiP2pGroup.NETWORK_ID_PERSISTENT); in testOnGroupStarted_success()
368 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_success()
381 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_success()
403 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_invalidArguments()
409 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_invalidArguments()
415 anyString(), any(WifiP2pGroup.class)); in testOnGroupStarted_invalidArguments()
655 ArgumentCaptor<WifiP2pGroup> groupCaptor = ArgumentCaptor.forClass(WifiP2pGroup.class); in testOnGroupRemovedForGroupOwner()
668 ArgumentCaptor<WifiP2pGroup> groupCaptor = ArgumentCaptor.forClass(WifiP2pGroup.class); in testOnGroupRemovedForGroupClient()
[all …]
DWifiP2pNativeTest.java38 import android.net.wifi.p2p.WifiP2pGroup;
120 private WifiP2pGroup createP2pGroup( in createP2pGroup()
122 WifiP2pGroup group = new WifiP2pGroup(); in createP2pGroup()
165 for (WifiP2pGroup g : mWifiP2pGroupList.getGroupList()) { in setUp()
785 when(mSupplicantP2pIfaceHalMock.invite(any(WifiP2pGroup.class), anyString())) in testP2pInvite()
787 WifiP2pGroup group = new WifiP2pGroup(); in testP2pInvite()
789 ArgumentCaptor<WifiP2pGroup> groupCaptor = ArgumentCaptor.forClass(WifiP2pGroup.class); in testP2pInvite()
DWifiP2pServiceImplTest.java102 import android.net.wifi.p2p.WifiP2pGroup;
242 private WifiP2pGroup mTestWifiP2pNewPersistentGoGroup;
243 private WifiP2pGroup mTestWifiP2pGroup;
309 mTestWifiP2pGroup = new WifiP2pGroup(); in generatorTestData()
334 mTestWifiP2pNewPersistentGoGroup = new WifiP2pGroup(); in generatorTestData()
335 mTestWifiP2pNewPersistentGoGroup.setNetworkId(WifiP2pGroup.NETWORK_ID_PERSISTENT); in generatorTestData()
342 WifiP2pGroup group1 = new WifiP2pGroup(); in generatorTestData()
349 WifiP2pGroup group2 = new WifiP2pGroup(); in generatorTestData()
356 WifiP2pGroup group3 = new WifiP2pGroup(); in generatorTestData()
640 private void sendGroupStartedMsg(WifiP2pGroup group) throws Exception { in sendGroupStartedMsg()
[all …]
DWifiP2pShellCommandTest.java33 import android.net.wifi.p2p.WifiP2pGroup;
367 ? WifiP2pGroup.NETWORK_ID_PERSISTENT in testP2pCreateGroupWithConfig()
368 : WifiP2pGroup.NETWORK_ID_TEMPORARY; in testP2pCreateGroupWithConfig()
390 ? WifiP2pGroup.NETWORK_ID_PERSISTENT in testP2pConnectWithConfig()
391 : WifiP2pGroup.NETWORK_ID_TEMPORARY; in testP2pConnectWithConfig()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pGroupListTest.java42 private WifiP2pGroup mTestGroup1;
43 private WifiP2pGroup mTestGroup2;
44 private WifiP2pGroup mTestGroup3;
45 private WifiP2pGroup mTestGroup4;
47 private WifiP2pGroup createGroup( in createGroup()
51 WifiP2pGroup group = new WifiP2pGroup(); in createGroup()
DWifiP2pGroupTest.java66 WifiP2pGroup group = new WifiP2pGroup(); in testSetterGetter()
130 WifiP2pGroup fromParcel = WifiP2pGroup.CREATOR.createFromParcel(parcelR); in testSetterGetter()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPersistentGroup.java20 import android.net.wifi.p2p.WifiP2pGroup;
26 public WifiP2pGroup mGroup;
28 public WifiP2pPersistentGroup(Context context, WifiP2pGroup group) { in WifiP2pPersistentGroup()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackHidlImpl.java26 import android.net.wifi.p2p.WifiP2pGroup;
279 WifiP2pGroup group = new WifiP2pGroup(); in onGroupStarted()
295 group.setNetworkId(WifiP2pGroup.NETWORK_ID_PERSISTENT); in onGroupStarted()
297 group.setNetworkId(WifiP2pGroup.NETWORK_ID_TEMPORARY); in onGroupStarted()
327 WifiP2pGroup group = new WifiP2pGroup(); in onGroupRemoved()
345 WifiP2pGroup group = new WifiP2pGroup(); in onInvitationReceived()
DSupplicantP2pIfaceCallbackAidlImpl.java42 import android.net.wifi.p2p.WifiP2pGroup;
311 WifiP2pGroup group = new WifiP2pGroup(); in onGroupStarted()
328 group.setNetworkId(WifiP2pGroup.NETWORK_ID_PERSISTENT); in onGroupStarted()
330 group.setNetworkId(WifiP2pGroup.NETWORK_ID_TEMPORARY); in onGroupStarted()
348 new WifiP2pGroup.P2pGroupClientEapolIpAddressData( in onGroupStarted()
381 WifiP2pGroup group = new WifiP2pGroup(); in onGroupRemoved()
432 WifiP2pGroup group = new WifiP2pGroup(); in handleInvitationReceivedEvent()
DWifiP2pMonitor.java23 import android.net.wifi.p2p.WifiP2pGroup;
352 public void broadcastP2pGroupStarted(String iface, WifiP2pGroup group) { in broadcastP2pGroupStarted()
364 public void broadcastP2pGroupRemoved(String iface, WifiP2pGroup group) { in broadcastP2pGroupRemoved()
376 public void broadcastP2pInvitationReceived(String iface, WifiP2pGroup group) { in broadcastP2pInvitationReceived()
DISupplicantP2pIfaceHal.java26 import android.net.wifi.p2p.WifiP2pGroup;
236 boolean invite(WifiP2pGroup group, String peerAddress); in invite()
DWifiP2pMetrics.java26 import android.net.wifi.p2p.WifiP2pGroup;
358 final Collection<WifiP2pGroup> list = groups.getGroupList(); in updatePersistentGroup()
641 public void startGroupEvent(WifiP2pGroup group) { in startGroupEvent()
678 public void updateGroupEvent(WifiP2pGroup group) { in updateGroupEvent()
DWifiP2pServiceImpl.java75 import android.net.wifi.p2p.WifiP2pGroup;
807 WifiP2pGroup.P2pGroupClientEapolIpAddressData p2pClientEapolIpInfo) { in startIpClient()
816 WifiP2pGroup.P2pGroupClientEapolIpAddressData p2pClientEapolIpInfo) { in makeStaticIpConfigurationFromEapolIpAddressInfo()
844 private WifiP2pGroup.P2pGroupClientEapolIpAddressData mP2pClientEapolIpInfo;
848 WifiP2pGroup.P2pGroupClientEapolIpAddressData p2pClientEapolIpInfo) { in IpClientCallbacksImpl()
1246 private void onGroupCreated(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onGroupCreated()
1258 private void onPeerClientJoined(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientJoined()
1270 private void onPeerClientDisconnected(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientDisconnected()
1283 private void onFrequencyChanged(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onFrequencyChanged()
1449 private WifiP2pGroup mGroup;
[all …]
DWifiP2pNative.java29 import android.net.wifi.p2p.WifiP2pGroup;
703 (config.netId == WifiP2pGroup.NETWORK_ID_PERSISTENT), in p2pGroupAdd()
756 public boolean p2pInvite(WifiP2pGroup group, String deviceAddress) { in p2pInvite()
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pConnectionProcedure.java27 import android.net.wifi.p2p.WifiP2pGroup;
133 WifiP2pGroup group = intent.getParcelableExtra(WifiP2pManager.EXTRA_WIFI_P2P_GROUP); in onReceive()
186 private boolean isConnectedToPeer(WifiP2pGroup group) { in isConnectedToPeer()
/packages/modules/Wifi/framework/aidl-export/android/net/wifi/p2p/
DWifiP2pGroup.aidl19 parcelable WifiP2pGroup;
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2pSettingsTest.java37 import android.net.wifi.p2p.WifiP2pGroup;
86 private WifiP2pGroup mWifiP2pGroup;
459 final List<WifiP2pGroup> groupList = new ArrayList<>(); in persistentController_withOneGroup_shouldBeAvailable()
475 final List<WifiP2pGroup> groupList = new ArrayList<>(); in persistentController_withNoGroup_shouldBeUnavailable()
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/direct/
DWifiDirectSnippet.java27 import android.net.wifi.p2p.WifiP2pGroup;
51 private WifiP2pGroup mP2pGroup;

12