Home
last modified time | relevance | path

Searched refs:WifiP2pConfig (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pConfigTest.java19 import static android.net.wifi.p2p.WifiP2pConfig.GROUP_CLIENT_IP_PROVISIONING_MODE_IPV4_DHCP;
20 import static android.net.wifi.p2p.WifiP2pConfig.GROUP_CLIENT_IP_PROVISIONING_MODE_IPV6_LINK_LOCAL;
50 WifiP2pConfig.Builder b = new WifiP2pConfig.Builder(); in testBuilderInvalidNetworkName()
110 WifiP2pConfig.Builder b = new WifiP2pConfig.Builder(); in testBuilderInvalidPassphrase()
148 WifiP2pConfig c = new WifiP2pConfig.Builder() in testBuildDefaultConfig()
156 WifiP2pConfig c = new WifiP2pConfig.Builder() in testBuildNonPersistentConfig()
166 WifiP2pConfig c = new WifiP2pConfig.Builder() in testBuildConfigWithGroupClientIpProvisioningModeDefault()
178 WifiP2pConfig c = new WifiP2pConfig.Builder() in testBuildConfigWithGroupClientIpProvisioningModeIpv4Dhcp()
191 WifiP2pConfig c = new WifiP2pConfig.Builder() in testBuildConfigWithGroupClientIpProvisioningModeIpv6LinkLocal()
208 WifiP2pConfig c = new WifiP2pConfig.Builder().setGroupClientIpProvisioningMode(5).build(); in testBuilderWithInvalidGroupClientIpProvisioningMode()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pShellCommand.java23 import android.net.wifi.p2p.WifiP2pConfig;
370 WifiP2pConfig config = buildWifiP2pConfig(pw); in handleCommand()
388 WifiP2pConfig config = prepareWifiP2pConfig(pw); in handleCommand()
398 WifiP2pConfig config = prepareWifiP2pConfig(pw); in handleCommand()
466 private WifiP2pConfig buildWifiP2pConfig(PrintWriter pw) { in buildWifiP2pConfig()
468 int goIntent = WifiP2pConfig.GROUP_OWNER_INTENT_AUTO; in buildWifiP2pConfig()
469 int ipProvisioningMode = WifiP2pConfig.GROUP_CLIENT_IP_PROVISIONING_MODE_IPV4_DHCP; in buildWifiP2pConfig()
480 if (goIntent < WifiP2pConfig.GROUP_OWNER_INTENT_MIN in buildWifiP2pConfig()
481 || goIntent > WifiP2pConfig.GROUP_OWNER_INTENT_MAX) { in buildWifiP2pConfig()
484 + WifiP2pConfig.GROUP_OWNER_INTENT_MIN + " to " in buildWifiP2pConfig()
[all …]
DISupplicantP2pIfaceHal.java23 import android.net.wifi.p2p.WifiP2pConfig;
197 String connect(WifiP2pConfig config, boolean joinExistingGroup); in connect()
221 boolean provisionDiscovery(WifiP2pConfig config); in provisionDiscovery()
DWifiP2pNative.java26 import android.net.wifi.p2p.WifiP2pConfig;
622 public String p2pConnect(WifiP2pConfig config, boolean joinExistingGroup) { in p2pConnect()
650 public boolean p2pProvisionDiscovery(WifiP2pConfig config) { in p2pProvisionDiscovery()
686 public boolean p2pGroupAdd(WifiP2pConfig config, boolean join) { in p2pGroupAdd()
689 case WifiP2pConfig.GROUP_OWNER_BAND_2GHZ: in p2pGroupAdd()
692 case WifiP2pConfig.GROUP_OWNER_BAND_5GHZ: in p2pGroupAdd()
DWifiP2pMetrics.java25 import android.net.wifi.p2p.WifiP2pConfig;
390 public void startConnectionEvent(int connectionType, WifiP2pConfig config, int groupRole, in startConnectionEvent()
597 case WifiP2pConfig.GROUP_OWNER_BAND_AUTO: in convertGroupOwnerBand()
599 case WifiP2pConfig.GROUP_OWNER_BAND_2GHZ: in convertGroupOwnerBand()
601 case WifiP2pConfig.GROUP_OWNER_BAND_5GHZ: in convertGroupOwnerBand()
DSupplicantP2pIfaceCallbackHidlImpl.java24 import android.net.wifi.p2p.WifiP2pConfig;
185 WifiP2pConfig config = new WifiP2pConfig(); in onGoNegotiationRequest()
DWifiP2pServiceImpl.java19 import static android.net.wifi.p2p.WifiP2pConfig.GROUP_CLIENT_IP_PROVISIONING_MODE_IPV4_DHCP;
20 import static android.net.wifi.p2p.WifiP2pConfig.GROUP_CLIENT_IP_PROVISIONING_MODE_IPV6_LINK_LOCAL;
70 import android.net.wifi.p2p.WifiP2pConfig;
446 private WifiP2pConfig mSavedRejectedPeerConfig = null;
1456 private WifiP2pConfig mSavedPeerConfig = new WifiP2pConfig();
1820 WifiP2pConfig config, int groupRole, int uid, String attributionTag) { in reportConnectionEventTakeBugReportIfOverlapped()
1866 case WifiP2pConfig.GROUP_OWNER_BAND_AUTO: in getGroupOwnerBandToString()
1868 case WifiP2pConfig.GROUP_OWNER_BAND_2GHZ: in getGroupOwnerBandToString()
1870 case WifiP2pConfig.GROUP_OWNER_BAND_5GHZ: in getGroupOwnerBandToString()
2421 WifiP2pConfig peerConfig = (WifiP2pConfig) message.obj; in processMessageImpl()
[all …]
DSupplicantP2pIfaceHal.java23 import android.net.wifi.p2p.WifiP2pConfig;
375 public String connect(WifiP2pConfig config, boolean joinExistingGroup) { in connect()
416 public boolean provisionDiscovery(WifiP2pConfig config) { in provisionDiscovery()
DWifiP2pMonitor.java21 import android.net.wifi.p2p.WifiP2pConfig;
298 public void broadcastP2pGoNegotiationRequest(String iface, WifiP2pConfig config) { in broadcastP2pGoNegotiationRequest()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pConfig.java53 public class WifiP2pConfig implements Parcelable { class
246 public WifiP2pConfig() { in WifiP2pConfig() method in WifiP2pConfig
259 public WifiP2pConfig(String supplicantEvent) throws IllegalArgumentException { in WifiP2pConfig() method in WifiP2pConfig
331 public WifiP2pConfig(WifiP2pConfig source) { in WifiP2pConfig() method in WifiP2pConfig
362 public static final Creator<WifiP2pConfig> CREATOR =
363 new Creator<WifiP2pConfig>() {
364 public WifiP2pConfig createFromParcel(Parcel in) {
365 WifiP2pConfig config = new WifiP2pConfig();
379 public WifiP2pConfig[] newArray(int size) {
380 return new WifiP2pConfig[size];
[all …]
DWifiP2pManager.java1122 void onOngoingPeerAvailable(WifiP2pConfig peerConfig); in onOngoingPeerAvailable()
1239 @RequestType int requestType, @NonNull WifiP2pConfig config, in onConnectionRequested()
1837 WifiP2pConfig peerConfig = (WifiP2pConfig) message.obj; in handleMessage()
1890 WifiP2pConfig config = bundle.getParcelable(EXTRA_PARAM_KEY_CONFIG); in handleMessage()
1992 private void checkP2pConfig(WifiP2pConfig c) { in checkP2pConfig()
2329 public void connect(Channel channel, WifiP2pConfig config, ActionListener listener) { in connect()
2432 @Nullable WifiP2pConfig config, in createGroup()
3292 public void setOngoingPeerConfig(@NonNull Channel c, @NonNull WifiP2pConfig config, in setOngoingPeerConfig()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pShellCommandTest.java32 import android.net.wifi.p2p.WifiP2pConfig;
322 ArgumentCaptor<WifiP2pConfig> captor = ArgumentCaptor.forClass(WifiP2pConfig.class); in testP2pConnect()
324 WifiP2pConfig config = captor.getValue(); in testP2pConnect()
364 final int operatingBand = WifiP2pConfig.GROUP_OWNER_BAND_5GHZ; in testP2pCreateGroupWithConfig()
374 ArgumentCaptor<WifiP2pConfig> captor = ArgumentCaptor.forClass(WifiP2pConfig.class); in testP2pCreateGroupWithConfig()
376 WifiP2pConfig c = captor.getValue(); in testP2pCreateGroupWithConfig()
387 final int operatingBand = WifiP2pConfig.GROUP_OWNER_BAND_5GHZ; in testP2pConnectWithConfig()
397 ArgumentCaptor<WifiP2pConfig> captor = ArgumentCaptor.forClass(WifiP2pConfig.class); in testP2pConnectWithConfig()
399 WifiP2pConfig c = captor.getValue(); in testP2pConnectWithConfig()
DWifiP2pNativeTest.java36 import android.net.wifi.p2p.WifiP2pConfig;
675 WifiP2pConfig config = new WifiP2pConfig(); in testP2pConnect()
678 ArgumentCaptor<WifiP2pConfig> configCaptor = ArgumentCaptor.forClass(WifiP2pConfig.class); in testP2pConnect()
699 when(mSupplicantP2pIfaceHalMock.provisionDiscovery(any(WifiP2pConfig.class))) in testP2pProvisionDiscovery()
701 WifiP2pConfig config = new WifiP2pConfig(); in testP2pProvisionDiscovery()
704 ArgumentCaptor<WifiP2pConfig> configCaptor = in testP2pProvisionDiscovery()
705 ArgumentCaptor.forClass(WifiP2pConfig.class); in testP2pProvisionDiscovery()
739 WifiP2pConfig config = new WifiP2pConfig.Builder() in testJoinGroupWithConfig()
DWifiP2pMetricsTest.java26 import android.net.wifi.p2p.WifiP2pConfig;
88 WifiP2pConfig config = new WifiP2pConfig(); in startAndEndConnectionEventSucceeds()
368 WifiP2pConfig config = new WifiP2pConfig(); in testConnectionTryCount()
369 config.groupOwnerBand = WifiP2pConfig.GROUP_OWNER_BAND_5GHZ; in testConnectionTryCount()
DSupplicantP2pIfaceHalTest.java34 import android.net.wifi.p2p.WifiP2pConfig;
334 WifiP2pConfig config = mock(WifiP2pConfig.class); in testConnect()
335 when(mP2pIfaceHalAidlMock.connect(any(WifiP2pConfig.class), anyBoolean())).thenReturn(PIN); in testConnect()
357 WifiP2pConfig config = mock(WifiP2pConfig.class); in testProvisionDiscovery()
358 when(mP2pIfaceHalAidlMock.provisionDiscovery(any(WifiP2pConfig.class))).thenReturn(true); in testProvisionDiscovery()
DWifiP2pServiceImplTest.java98 import android.net.wifi.p2p.WifiP2pConfig;
239 private WifiP2pConfig mTestWifiP2pPeerConfig;
240 private WifiP2pConfig mTestWifiP2pFastConnectionConfig;
241 private WifiP2pConfig mTestWifiP2pJoinExistingGroupConfig;
318 mTestWifiP2pPeerConfig = new WifiP2pConfig(); in generatorTestData()
322 mTestWifiP2pJoinExistingGroupConfig = new WifiP2pConfig.Builder() in generatorTestData()
328 mTestWifiP2pFastConnectionConfig = new WifiP2pConfig.Builder() in generatorTestData()
593 private void sendNegotiationRequestEvent(WifiP2pConfig config) throws Exception { in sendNegotiationRequestEvent()
798 Messenger replyMessenger, WifiP2pConfig config) throws Exception { in sendSetOngoingPeerConfigMsg()
846 WifiP2pConfig config) throws Exception { in sendConnectMsg()
[all …]
DSupplicantP2pIfaceHalAidlImplTest.java64 import android.net.wifi.p2p.WifiP2pConfig;
160 final int mGroupOwnerBand = WifiP2pConfig.GROUP_OWNER_BAND_5GHZ;
694 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.DISPLAY, ""); in testConnect_V2_success()
749 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.DISPLAY, ""); in testConnect_V3_success()
789 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.DISPLAY, ""); in testConnect_invalidArguments()
819 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, in testConnect_failure()
839 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, in testConnect_exception()
894 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.PBC, ""); in testProvisionDiscovery_success()
913 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.PBC, ""); in testProvisionDiscovery_invalidArguments()
931 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.PBC, ""); in testProvisionDiscovery_failure()
[all …]
DSupplicantP2pIfaceHalHidlImplTest.java52 import android.net.wifi.p2p.WifiP2pConfig;
173 final int mGroupOwnerBand = WifiP2pConfig.GROUP_OWNER_BAND_5GHZ;
743 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.DISPLAY, ""); in testConnect_success()
785 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.DISPLAY, ""); in testConnect_invalidArguments()
815 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, in testConnect_failure()
840 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, in testConnect_exception()
899 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.PBC, ""); in testProvisionDiscovery_success()
920 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.PBC, ""); in testProvisionDiscovery_invalidArguments()
938 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.PBC, ""); in testProvisionDiscovery_failure()
954 WifiP2pConfig config = createPlaceholderP2pConfig(mPeerMacAddress, WpsInfo.PBC, ""); in testProvisionDiscovery_exception()
[all …]
DSupplicantP2pIfaceCallbackHidlImplTest.java36 import android.net.wifi.p2p.WifiP2pConfig;
297 public void answer(String iface, WifiP2pConfig config) { in testOnGoNegotiationRequest_success()
304 anyString(), any(WifiP2pConfig.class)); in testOnGoNegotiationRequest_success()
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/direct/snippet/
DJsonDeserializer.java20 import android.net.wifi.p2p.WifiP2pConfig;
40 public static WifiP2pConfig jsonToWifiP2pConfig(JSONObject jsonObject) throws JSONException { in jsonToWifiP2pConfig()
41 WifiP2pConfig.Builder builder = new WifiP2pConfig.Builder(); in jsonToWifiP2pConfig()
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/direct/
DWifiDirectSnippet.java25 import android.net.wifi.p2p.WifiP2pConfig;
127 private WifiP2pConfig buildWifiP2pConfig(String networkName, String passphrase, in buildWifiP2pConfig()
129 WifiP2pConfig.Builder builder = new WifiP2pConfig.Builder(); in buildWifiP2pConfig()
192 WifiP2pConfig wifiP2pConfig = buildWifiP2pConfig(networkName, passphrase, frequency); in p2pCreateGroup()
206 WifiP2pConfig wifiP2pConfig = buildWifiP2pConfig(networkName, passphrase, frequency); in p2pConnect()
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pConnectionProcedure.java24 import android.net.wifi.p2p.WifiP2pConfig;
75 private WifiP2pConfig configForPeer(WifiP2pDevice peer) { in configForPeer()
76 WifiP2pConfig config = new WifiP2pConfig(); in configForPeer()
/packages/modules/Wifi/framework/aidl-export/android/net/wifi/p2p/
DWifiP2pConfig.aidl19 parcelable WifiP2pConfig;
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/direct/
Dconstants.py102 class WifiP2pConfig: class
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java30 import android.net.wifi.p2p.WifiP2pConfig;
432 WifiP2pConfig config = new WifiP2pConfig(); in onPreferenceTreeClick()

12