/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | NativeUtilTest.java | 41 NativeUtil.macAddressToByteArray("61:52:43:34:25:16")); in testMacAddressToByteArray() 50 NativeUtil.macAddressToByteArray("")); in testEmptyMacAddressToByteArray() 52 NativeUtil.macAddressToByteArray(null)); in testEmptyMacAddressToByteArray() 62 NativeUtil.macAddressFromByteArray(new byte[]{0x61, 0x52, 0x43, 0x34, 0x25, 0x16})); in testByteArrayToMacAddress() 71 NativeUtil.macAddressOuiToByteArray("61:52:43")); in testMacAddressOuiToByteArray() 80 NativeUtil.hexStringToByteArray("45122334")); in testHexStringToByteArray() 89 NativeUtil.hexStringFromByteArray(new byte[]{0x45, 0x12, 0x23, 0x34})); in testHexStringFromByteArray() 102 NativeUtil.decodeSsid("\"ssid_test123\"")); in testAsciiSsidDecode() 117 NativeUtil.decodeSsid("\"AndroidAPください\"")); in testUtf8SsidDecode() 126 NativeUtil.decodeSsid("\"\ud800\""); in testNonUtf8SsidDecodeFails() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallback.java | 31 import com.android.server.wifi.util.NativeUtil; 110 device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onDeviceFound() 117 device.primaryDeviceType = NativeUtil.wpsDevTypeStringFromByteArray(primaryDeviceType); in onDeviceFound() 148 device.deviceAddress = NativeUtil.macAddressFromByteArray(p2pDeviceAddress); in onDeviceLost() 181 config.deviceAddress = NativeUtil.macAddressFromByteArray(srcAddress); in onGoNegotiationRequest() 276 String quotedSsid = NativeUtil.encodeSsid(ssid); in onGroupStarted() 277 group.setNetworkName(NativeUtil.removeEnclosingQuotes(quotedSsid)); in onGroupStarted() 296 owner.deviceAddress = NativeUtil.macAddressFromByteArray(goDeviceAddress); in onGroupStarted() 344 client.deviceAddress = NativeUtil.macAddressFromByteArray(srcAddress); in onInvitationReceived() 355 owner.deviceAddress = NativeUtil.macAddressFromByteArray(goDeviceAddress); in onInvitationReceived() [all …]
|
D | SupplicantP2pIfaceHal.java | 45 import com.android.server.wifi.util.NativeUtil; 766 NativeUtil.decodeSsid("\"" + postfix + "\""))); in setSsidPostfix() 816 peerAddress = NativeUtil.macAddressToByteArray(config.deviceAddress); in connect() 916 macAddress = NativeUtil.macAddressToByteArray(config.deviceAddress); in provisionDiscovery() 970 ownerMacAddress = NativeUtil.macAddressToByteArray(group.getOwner().deviceAddress); in invite() 983 peerMacAddress = NativeUtil.macAddressToByteArray(peerAddress); in invite() 1024 macAddress = NativeUtil.macAddressToByteArray(peerAddress); in reject() 1057 parsedAddress = NativeUtil.macAddressFromByteArray(address); in getDeviceAddress() 1091 macAddress = NativeUtil.macAddressToByteArray(address); in getSsid() 1105 ssidString = NativeUtil.removeEnclosingQuotes( in getSsid() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaIfaceCallbackImpl.java | 43 import com.android.server.wifi.util.NativeUtil; 114 infoID, ByteBuffer.wrap(NativeUtil.byteArrayFromArrayList(payload))) in parseAnqpElement() 116 infoID, ByteBuffer.wrap(NativeUtil.byteArrayFromArrayList(payload))); in parseAnqpElement() 167 WifiSsid.createFromByteArray(NativeUtil.byteArrayFromArrayList(ssid)); in onStateChanged() 168 String bssidStr = NativeUtil.macAddressFromByteArray(bssid); in onStateChanged() 199 mIfaceName, new AnqpEvent(NativeUtil.macAddressToLong(bssid), elementsMap)); in onAnqpQueryDone() 210 new IconEvent(NativeUtil.macAddressToLong(bssid), fileName, data.size(), in onHs20IconQueryDone() 211 NativeUtil.byteArrayFromArrayList(data))); in onHs20IconQueryDone() 221 new WnmData(NativeUtil.macAddressToLong(bssid), url, osuMethod)); in onHs20SubscriptionRemediation() 232 new WnmData(NativeUtil.macAddressToLong(bssid), url, in onHs20DeauthImminentNotice() [all …]
|
D | SupplicantStaNetworkHal.java | 34 import com.android.server.wifi.util.NativeUtil; 170 config.SSID = NativeUtil.encodeSsid(mSsid); in loadWifiConfiguration() 187 NativeUtil.macAddressFromByteArray(mBssid)); in loadWifiConfiguration() 207 config.wepKeys[i] = NativeUtil.bytesToHexOrQuotedString(mWepKey); in loadWifiConfiguration() 249 config.preSharedKey = NativeUtil.addEnclosingQuotes(mPskPassphrase); in loadWifiConfiguration() 252 config.preSharedKey = NativeUtil.hexStringFromByteArray(mPsk); in loadWifiConfiguration() 292 if (!setSsid(NativeUtil.decodeSsid(config.SSID))) { in saveWifiConfiguration() 300 byte[] bssid = NativeUtil.macAddressToByteArray(bssidStr); in saveWifiConfiguration() 374 NativeUtil.removeEnclosingQuotes(config.preSharedKey))) { in saveWifiConfiguration() 380 NativeUtil.removeEnclosingQuotes(config.preSharedKey))) { in saveWifiConfiguration() [all …]
|
D | WrongPasswordNotifier.java | 34 import com.android.server.wifi.util.NativeUtil; 107 .putExtra("wifi_start_connect_ssid", NativeUtil.removeEnclosingQuotes(ssid)); in showNotification()
|
D | SupplicantStaIfaceCallbackV1_3Impl.java | 29 import com.android.server.wifi.util.NativeUtil; 112 NativeUtil.macAddressFromByteArray(bssid)); in onDisconnected() 372 WifiSsid.createFromByteArray(NativeUtil.byteArrayFromArrayList(ssid)); in onStateChanged_1_3() 373 String bssidStr = NativeUtil.macAddressFromByteArray(bssid); in onStateChanged_1_3()
|
D | WifiVendorHal.java | 71 import com.android.server.wifi.util.NativeUtil; 1440 ArrayList<Byte> program = NativeUtil.byteArrayToArrayList(filter); in installPacketFilter() 1476 answer.data = NativeUtil.byteArrayFromArrayList(dataByteArray); in readPacketFilter() 1498 code = NativeUtil.stringToByteArray(countryCode); in setCountryCodeHal() 1774 ans.value = NativeUtil.byteArrayFromArrayList(blob); in getFwMemoryDump() 1797 ans.value = NativeUtil.byteArrayFromArrayList(blob); in getDriverStateDump() 1924 NativeUtil.byteArrayFromArrayList( in getTxPktFates() 1966 NativeUtil.byteArrayFromArrayList( in getRxPktFates() 1999 ArrayList<Byte> data = NativeUtil.byteArrayToArrayList(packet); in startSendingOffloadedPacket() 2284 byte[] mac = NativeUtil.macAddressToByteArray(bssid); in configureRoaming() [all …]
|
D | SupplicantStaIfaceCallbackV1_2Impl.java | 29 import com.android.server.wifi.util.NativeUtil; 162 WifiSsid.createFromByteArray(NativeUtil.byteArrayFromArrayList(ssid)); in onDppSuccessConfigReceived()
|
D | WifiConfigurationUtil.java | 21 import static com.android.server.wifi.util.NativeUtil.addEnclosingQuotes; 36 import com.android.server.wifi.util.NativeUtil; 358 NativeUtil.decodeSsid(ssid); in validateSsid() 443 NativeUtil.hexOrQuotedStringToBytes(password); in validatePassword()
|
D | SupplicantStaIfaceHal.java | 63 import com.android.server.wifi.util.NativeUtil; 1484 byte[] oui = NativeUtil.hexStringToByteArray(match.group(2)); in setWpsDeviceType() 1732 ifaceName, NativeUtil.macAddressToByteArray(macAddress)); in initiateTdlsDiscover() 1765 return initiateTdlsSetup(ifaceName, NativeUtil.macAddressToByteArray(macAddress)); in initiateTdlsSetup() 1798 ifaceName, NativeUtil.macAddressToByteArray(macAddress)); in initiateTdlsTeardown() 1838 NativeUtil.macAddressToByteArray(bssid), infoElements, hs20SubTypes); in initiateAnqpQuery() 1876 ifaceName, NativeUtil.macAddressToByteArray(bssid), fileName); in initiateHs20IconQuery() 1917 gotMac.value = NativeUtil.macAddressFromByteArray(macAddr); in getMacAddress() 2150 byte[] countryCodeBytes = NativeUtil.stringToByteArray(codeStr); in setCountryCode() 2239 ArrayList<Byte> payload = NativeUtil.byteArrayToArrayList(hlpPacket); in addHlpReq() [all …]
|
D | WifiNative.java | 47 import com.android.server.wifi.util.NativeUtil; 1444 NativeUtil.byteArrayFromArrayList( in scan() 1445 NativeUtil.decodeSsid(hiddenNetworkSsid))); in scan() 1655 NativeUtil.macAddressToByteArray(senderMacStr)); 2727 NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(ssid))); 3373 byte[] srcMac = NativeUtil.macAddressToByteArray(getMacAddress(ifaceName));
|
D | WifiBackupRestore.java | 29 import com.android.server.wifi.util.NativeUtil; 709 NativeUtil.removeEnclosingQuotes(idString)); in createWifiConfiguration()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | SupplicantStaIfaceHalTest.java | 92 import com.android.server.wifi.util.NativeUtil; 878 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testAnqpDoneCallback() 900 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testIconDoneCallback() 904 bssid, ICON_FILE_NAME, NativeUtil.byteArrayToArrayList(iconData)); in testIconDoneCallback() 925 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testHs20SubscriptionRemediationCallback() 967 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeCallbackWithNoConfiguredNetwork() 968 NativeUtil.decodeSsid(SUPPLICANT_SSID)); in testStateChangeCallbackWithNoConfiguredNetwork() 988 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToAssociatedCallback() 989 NativeUtil.decodeSsid(SUPPLICANT_SSID)); in testStateChangeToAssociatedCallback() 1009 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToCompletedCallback() [all …]
|
D | SupplicantStaNetworkHalTest.java | 49 import com.android.server.wifi.util.NativeUtil; 245 NativeUtil.removeEnclosingQuotes(config.preSharedKey)); in testPskNetworkWifiConfigurationSaveRemovesPskQuotes() 494 String paramsStr = ":" + NativeUtil.hexStringFromByteArray(kc) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair() 495 + ":" + NativeUtil.hexStringFromByteArray(sres) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair() 496 + ":" + NativeUtil.hexStringFromByteArray(kc) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair() 497 + ":" + NativeUtil.hexStringFromByteArray(sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair() 527 String paramsStr = ":" + NativeUtil.hexStringFromByteArray(kc1) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair() 528 + ":" + NativeUtil.hexStringFromByteArray(sres1) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair() 529 + ":" + NativeUtil.hexStringFromByteArray(kc2) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair() 530 + ":" + NativeUtil.hexStringFromByteArray(sres2) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair() [all …]
|
D | HostapdHalTest.java | 46 import com.android.server.wifi.util.NativeUtil; 274 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band2G() 307 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Open_Band5G() 342 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band5G_Hidden() 381 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band2G_WithACS() 421 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC() 458 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_BandAny_WithACS() 493 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_WithoutACS() 567 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_BandAny_WithACS_AcsChannels() 964 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_SAE_WithoutACS() [all …]
|
D | WifiNetworkSelectorTestUtil.java | 40 import com.android.server.wifi.util.NativeUtil; 211 byte[] ssid = NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(ssids[index])); in buildScanDetails() 238 byte[] ssid = NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(ssids[index])); in buildScanDetailsWithNetworkDetails()
|
D | ScanResults.java | 24 import com.android.server.wifi.util.NativeUtil; 103 return NativeUtil.byteArrayFromArrayList(ieRawData); in generateIERawDatafromScanResultIE()
|
D | WifiVendorHalTest.java | 99 import com.android.server.wifi.util.NativeUtil; 1216 byte[] srcMac = NativeUtil.macAddressToByteArray("4007b2088c81"); in testStartSendingOffloadedPacket() 1217 byte[] dstMac = NativeUtil.macAddressToByteArray("4007b8675309"); in testStartSendingOffloadedPacket() 1563 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetTxPktFates() 1605 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetTxPktFatesExceedsInputArrayLength() 1647 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetRxPktFates() 1689 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetRxPktFatesExceedsInputArrayLength() 2084 byte [] sample = NativeUtil.hexStringToByteArray("268c7a3fbfa4661c0bdd6a36"); in testGetFwMemoryDump() 2085 ArrayList<Byte> halBlob = NativeUtil.byteArrayToArrayList(sample); in testGetFwMemoryDump() 2106 byte [] sample = NativeUtil.hexStringToByteArray("e83ff543cf80083e6459d20f"); in testGetDriverStateDump() [all …]
|
D | WifiNativeTest.java | 46 import com.android.server.wifi.util.NativeUtil; 152 add(NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(TEST_QUOTED_SSID_1))); 153 add(NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(TEST_QUOTED_SSID_2)));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalTest.java | 55 import com.android.server.wifi.util.NativeUtil; 634 when(mISupplicantP2pIfaceMock.setSsidPostfix(eq(NativeUtil.decodeSsid("\"" + ssid + "\"")))) in testSetSsidPostfix_success() 650 when(mISupplicantP2pIfaceMock.setSsidPostfix(eq(NativeUtil.decodeSsid("\"" + ssid + "\"")))) in testSetSsidPostfix_failure() 664 when(mISupplicantP2pIfaceMock.setSsidPostfix(eq(NativeUtil.decodeSsid("\"" + ssid + "\"")))) in testSetSsidPostfix_exception() 1153 assertEquals(NativeUtil.removeEnclosingQuotes(mSsid), mDut.getSsid(mPeerMacAddress)); in testGetSsid_success() 1323 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigSuccess() 1342 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigSuccess() 1364 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigFailure() 1413 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigException() 2479 NativeUtil.macAddressToByteArray("56:34:ab:12:12:34"), in testLoadGroups() [all …]
|
D | SupplicantP2pIfaceCallbackTest.java | 41 import com.android.server.wifi.util.NativeUtil; 496 mDut.onStaAuthorized(mDeviceAddress1Bytes, NativeUtil.ANY_MAC_BYTES); in testStaAuth_noDeviceAddress_success() 525 ArrayList<Byte> tlvs = NativeUtil.byteArrayToArrayList(hexStr2Bin(SERV_DISC_RESP_TLVS)); in testOnServiceDiscoveryResponseCompleted_success()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/ |
D | RttNative.java | 44 import com.android.server.wifi.util.NativeUtil; 755 byte[] lci = NativeUtil.byteArrayFromArrayList(rttResult.lci.data); in convertHalResultsRangingResults() 756 byte[] lcr = NativeUtil.byteArrayFromArrayList(rttResult.lcr.data); in convertHalResultsRangingResults() 791 byte[] lci = NativeUtil.byteArrayFromArrayList(rttResult.lci.data); in convertHalResultsRangingResults14() 792 byte[] lcr = NativeUtil.byteArrayFromArrayList(rttResult.lcr.data); in convertHalResultsRangingResults14()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WificondScannerImpl.java | 34 import com.android.server.wifi.util.NativeUtil; 494 pw.println(NativeUtil.hexStringFromByteArray( in dump()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | NativeUtil.java | 38 public class NativeUtil { class
|