Home
last modified time | relevance | path

Searched refs:p2pInfo (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DIWifiP2pListener.aidl40 void onGroupCreated(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onGroupCreated() argument
41 void onPeerClientJoined(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onPeerClientJoined() argument
42 void onPeerClientDisconnected(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onPeerClientDisconnected() argument
43 void onFrequencyChanged(in WifiP2pInfo p2pInfo, in WifiP2pGroup p2pGroup); in onFrequencyChanged() argument
DWifiP2pManager.java1367 default void onGroupCreated(@NonNull WifiP2pInfo p2pInfo, in onGroupCreated() argument
1378 default void onPeerClientJoined(@NonNull WifiP2pInfo p2pInfo, in onPeerClientJoined() argument
1389 default void onPeerClientDisconnected(@NonNull WifiP2pInfo p2pInfo, in onPeerClientDisconnected() argument
1400 default void onFrequencyChanged(@NonNull WifiP2pInfo p2pInfo, in onFrequencyChanged() argument
1536 public void onGroupCreated(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onGroupCreated() argument
1538 mExecutor.execute(() -> mListener.onGroupCreated(p2pInfo, p2pGroup)); in onGroupCreated()
1542 public void onPeerClientJoined(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientJoined() argument
1544 mExecutor.execute(() -> mListener.onPeerClientJoined(p2pInfo, p2pGroup)); in onPeerClientJoined()
1548 public void onPeerClientDisconnected(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientDisconnected() argument
1550 mExecutor.execute(() -> mListener.onPeerClientDisconnected(p2pInfo, p2pGroup)); in onPeerClientDisconnected()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsSocketProvider.java147 final WifiP2pInfo p2pInfo = in getWifiP2pInterface() local
149 if (group == null || p2pInfo == null) { in getWifiP2pInterface()
153 if (!p2pInfo.groupFormed) { in getWifiP2pInterface()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DHalDeviceManager.java2179 private boolean isDisconnectedP2p(WifiIfaceInfo p2pInfo) {
2182 if (p2pInfo.createType == HDM_CREATE_IFACE_P2P
2186 Pair.create(p2pInfo.name, getType(p2pInfo.iface)));
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java1309 final WifiP2pInfo p2pInfo = in handleWifiP2pAction()
1314 mLog.i("WifiP2pAction: P2pInfo: " + p2pInfo + " Group: " + group); in handleWifiP2pAction()
1317 if (p2pInfo == null || !p2pInfo.groupFormed) { in handleWifiP2pAction()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java7957 WifiP2pInfo p2pInfo = intent.getParcelableExtra(WifiP2pManager.EXTRA_WIFI_P2P_INFO); in testSendP2pConnectionChangedBroadcast() local
7960 assert p2pInfo != null; in testSendP2pConnectionChangedBroadcast()
7964 && !p2pInfo.groupFormed && Objects.isNull(p2pGroup); in testSendP2pConnectionChangedBroadcast()
7975 WifiP2pInfo p2pInfo = intent.getParcelableExtra(WifiP2pManager.EXTRA_WIFI_P2P_INFO); in testSendP2pConnectionChangedBroadcast() local
7977 assert p2pInfo != null; in testSendP2pConnectionChangedBroadcast()
7978 assertFalse(p2pInfo.groupFormed); in testSendP2pConnectionChangedBroadcast()
7979 assertFalse(p2pInfo.isGroupOwner); in testSendP2pConnectionChangedBroadcast()
8045 WifiP2pInfo p2pInfo = intent.getParcelableExtra(WifiP2pManager.EXTRA_WIFI_P2P_INFO); in testSendP2pConnectionChangedBroadcast() local
8046 assert p2pInfo != null; in testSendP2pConnectionChangedBroadcast()
8047 assertFalse(p2pInfo.groupFormed); in testSendP2pConnectionChangedBroadcast()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1246 private void onGroupCreated(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onGroupCreated() argument
1250 mWifiP2pListeners.getBroadcastItem(i).onGroupCreated(p2pInfo, p2pGroup); in onGroupCreated()
1258 private void onPeerClientJoined(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientJoined() argument
1262 mWifiP2pListeners.getBroadcastItem(i).onPeerClientJoined(p2pInfo, p2pGroup); in onPeerClientJoined()
1270 private void onPeerClientDisconnected(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onPeerClientDisconnected() argument
1274 mWifiP2pListeners.getBroadcastItem(i).onPeerClientDisconnected(p2pInfo, in onPeerClientDisconnected()
1283 private void onFrequencyChanged(WifiP2pInfo p2pInfo, WifiP2pGroup p2pGroup) { in onFrequencyChanged() argument
1287 mWifiP2pListeners.getBroadcastItem(i).onFrequencyChanged(p2pInfo, p2pGroup); in onFrequencyChanged()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java804 WifiP2pInfo p2pInfo = new WifiP2pInfo(); in sendWifiP2pConnectionChanged() local
805 p2pInfo.groupFormed = isGroupFormed; in sendWifiP2pConnectionChanged()
807 p2pInfo.isGroupOwner = isGroupOwner; in sendWifiP2pConnectionChanged()
815 when(intent.getParcelableExtra(WifiP2pManager.EXTRA_WIFI_P2P_INFO)).thenReturn(p2pInfo); in sendWifiP2pConnectionChanged()