Home
last modified time | relevance | path

Searched refs:NativeUtil (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DNativeUtilTest.java39 NativeUtil.macAddressToByteArray("61:52:43:34:25:16")); in testMacAddressToByteArray()
48 NativeUtil.macAddressToByteArray("")); in testEmptyMacAddressToByteArray()
50 NativeUtil.macAddressToByteArray(null)); in testEmptyMacAddressToByteArray()
60 NativeUtil.macAddressFromByteArray(new byte[]{0x61, 0x52, 0x43, 0x34, 0x25, 0x16})); in testByteArrayToMacAddress()
69 NativeUtil.macAddressOuiToByteArray("61:52:43")); in testMacAddressOuiToByteArray()
78 NativeUtil.hexStringToByteArray("45122334")); in testHexStringToByteArray()
87 NativeUtil.hexStringFromByteArray(new byte[]{0x45, 0x12, 0x23, 0x34})); in testHexStringFromByteArray()
100 NativeUtil.decodeSsid("\"ssid_test123\"")); in testAsciiSsidDecode()
115 NativeUtil.decodeSsid("\"AndroidAPください\"")); in testUtf8SsidDecode()
124 NativeUtil.decodeSsid("\"\ud800\""); in testNonUtf8SsidDecodeFails()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallback.java31 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 …]
DSupplicantP2pIfaceHal.java45 import com.android.server.wifi.util.NativeUtil;
760 NativeUtil.decodeSsid("\"" + postfix + "\""))); in setSsidPostfix()
810 peerAddress = NativeUtil.macAddressToByteArray(config.deviceAddress); in connect()
910 macAddress = NativeUtil.macAddressToByteArray(config.deviceAddress); in provisionDiscovery()
964 ownerMacAddress = NativeUtil.macAddressToByteArray(group.getOwner().deviceAddress); in invite()
977 peerMacAddress = NativeUtil.macAddressToByteArray(peerAddress); in invite()
1018 macAddress = NativeUtil.macAddressToByteArray(peerAddress); in reject()
1051 parsedAddress = NativeUtil.macAddressFromByteArray(address); in getDeviceAddress()
1085 macAddress = NativeUtil.macAddressToByteArray(address); in getSsid()
1099 ssidString = NativeUtil.removeEnclosingQuotes( in getSsid()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalTest.java49 import com.android.server.wifi.util.NativeUtil;
208 NativeUtil.removeEnclosingQuotes(config.preSharedKey)); in testPskNetworkWifiConfigurationSaveRemovesPskQuotes()
510 String paramsStr = ":" + NativeUtil.hexStringFromByteArray(kc) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
511 + ":" + NativeUtil.hexStringFromByteArray(sres) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
512 + ":" + NativeUtil.hexStringFromByteArray(kc) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
513 + ":" + NativeUtil.hexStringFromByteArray(sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
543 String paramsStr = ":" + NativeUtil.hexStringFromByteArray(kc1) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
544 + ":" + NativeUtil.hexStringFromByteArray(sres1) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
545 + ":" + NativeUtil.hexStringFromByteArray(kc2) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
546 + ":" + NativeUtil.hexStringFromByteArray(sres2) in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
[all …]
DSupplicantStaIfaceHalTest.java77 import com.android.server.wifi.util.NativeUtil;
1079 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testAnqpDoneCallback()
1101 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testIconDoneCallback()
1105 bssid, ICON_FILE_NAME, NativeUtil.byteArrayToArrayList(iconData)); in testIconDoneCallback()
1126 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testHs20SubscriptionRemediationCallback()
1168 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeCallbackWithNoConfiguredNetwork()
1169 NativeUtil.decodeSsid(SUPPLICANT_SSID)); in testStateChangeCallbackWithNoConfiguredNetwork()
1189 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToAssociatedCallback()
1190 NativeUtil.decodeSsid(SUPPLICANT_SSID)); in testStateChangeToAssociatedCallback()
1210 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToCompletedCallback()
[all …]
DHostapdHalTest.java41 import com.android.server.wifi.util.NativeUtil;
241 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band2G()
274 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Open_Band5G()
308 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band5G_Hidden()
345 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band2G_WithACS()
383 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC()
420 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_BandAny_WithACS()
459 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_BandAny_Downgraded_WithoutACS()
526 assertEquals(NativeUtil.stringToByteArrayList(NETWORK_SSID), in testAddAccessPointSuccess_Psk_BandAny_WithACS_AcsChannels()
DWifiVendorHalTest.java100 import com.android.server.wifi.util.NativeUtil;
1149 byte[] oui = NativeUtil.macAddressOuiToByteArray("DA:A1:19"); in testSetScanningMacOui()
1150 byte[] zzz = NativeUtil.macAddressOuiToByteArray("00:00:00"); in testSetScanningMacOui()
1170 byte[] srcMac = NativeUtil.macAddressToByteArray("4007b2088c81"); in testStartSendingOffloadedPacket()
1171 byte[] dstMac = NativeUtil.macAddressToByteArray("4007b8675309"); in testStartSendingOffloadedPacket()
1517 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetTxPktFates()
1559 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetTxPktFatesExceedsInputArrayLength()
1601 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetRxPktFates()
1643 NativeUtil.byteArrayToArrayList(frameContentBytes)); in testGetRxPktFatesExceedsInputArrayLength()
2038 byte [] sample = NativeUtil.hexStringToByteArray("268c7a3fbfa4661c0bdd6a36"); in testGetFwMemoryDump()
[all …]
DWifiNetworkSelectorTestUtil.java36 import com.android.server.wifi.util.NativeUtil;
140 byte[] ssid = NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(ssids[index])); in buildScanDetails()
DWificondControlTest.java62 import com.android.server.wifi.util.NativeUtil;
1299 ssidSet.add(NativeUtil.encodeSsid( in matches()
1300 NativeUtil.byteArrayToArrayList(network.ssid))); in matches()
1346 if (!mExpectedPnoSettings.networkList[i].ssid.equals(NativeUtil.encodeSsid( in matches()
1347 NativeUtil.byteArrayToArrayList(settings.pnoNetworks.get(i).ssid)))) { in matches()
DWifiCandidatesTest.java19 import static com.android.server.wifi.util.NativeUtil.removeEnclosingQuotes;
DWifiScoreCardTest.java19 import static com.android.server.wifi.util.NativeUtil.hexStringFromByteArray;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkHal.java34 import com.android.server.wifi.util.NativeUtil;
169 config.SSID = NativeUtil.encodeSsid(mSsid); in loadWifiConfiguration()
186 NativeUtil.macAddressFromByteArray(mBssid)); in loadWifiConfiguration()
206 config.wepKeys[i] = NativeUtil.bytesToHexOrQuotedString(mWepKey); in loadWifiConfiguration()
212 config.preSharedKey = NativeUtil.addEnclosingQuotes(mPskPassphrase); in loadWifiConfiguration()
214 config.preSharedKey = NativeUtil.hexStringFromByteArray(mPsk); in loadWifiConfiguration()
272 if (!setSsid(NativeUtil.decodeSsid(config.SSID))) { in saveWifiConfiguration()
280 byte[] bssid = NativeUtil.macAddressToByteArray(bssidStr); in saveWifiConfiguration()
294 NativeUtil.removeEnclosingQuotes(config.preSharedKey))) { in saveWifiConfiguration()
300 NativeUtil.removeEnclosingQuotes(config.preSharedKey))) { in saveWifiConfiguration()
[all …]
DWrongPasswordNotifier.java29 import com.android.server.wifi.util.NativeUtil;
83 intent.putExtra("wifi_start_connect_ssid", NativeUtil.removeEnclosingQuotes(ssid)); in showNotification()
DSupplicantStaIfaceHal.java77 import com.android.server.wifi.util.NativeUtil;
1372 byte[] oui = NativeUtil.hexStringToByteArray(match.group(2)); in setWpsDeviceType()
1620 ifaceName, NativeUtil.macAddressToByteArray(macAddress)); in initiateTdlsDiscover()
1653 return initiateTdlsSetup(ifaceName, NativeUtil.macAddressToByteArray(macAddress)); in initiateTdlsSetup()
1686 ifaceName, NativeUtil.macAddressToByteArray(macAddress)); in initiateTdlsTeardown()
1726 NativeUtil.macAddressToByteArray(bssid), infoElements, hs20SubTypes); in initiateAnqpQuery()
1764 ifaceName, NativeUtil.macAddressToByteArray(bssid), fileName); in initiateHs20IconQuery()
1805 gotMac.value = NativeUtil.macAddressFromByteArray(macAddr); in getMacAddress()
2038 byte[] countryCodeBytes = NativeUtil.stringToByteArray(codeStr); in setCountryCode()
2073 ifaceName, NativeUtil.macAddressToByteArray(bssidStr), pin); in startWpsRegistrar()
[all …]
DWifiVendorHal.java69 import com.android.server.wifi.util.NativeUtil;
1382 ArrayList<Byte> program = NativeUtil.byteArrayToArrayList(filter); in installPacketFilter()
1418 answer.data = NativeUtil.byteArrayFromArrayList(dataByteArray); in readPacketFilter()
1440 code = NativeUtil.stringToByteArray(countryCode); in setCountryCodeHal()
1716 ans.value = NativeUtil.byteArrayFromArrayList(blob); in getFwMemoryDump()
1739 ans.value = NativeUtil.byteArrayFromArrayList(blob); in getDriverStateDump()
1866 NativeUtil.byteArrayFromArrayList( in getTxPktFates()
1908 NativeUtil.byteArrayFromArrayList( in getRxPktFates()
1941 ArrayList<Byte> data = NativeUtil.byteArrayToArrayList(packet); in startSendingOffloadedPacket()
2226 byte[] mac = NativeUtil.macAddressToByteArray(bssid); in configureRoaming()
[all …]
DWificondControl.java45 import com.android.server.wifi.util.NativeUtil;
586 bssid = NativeUtil.macAddressFromByteArray(result.bssid); in getScanResults()
700 network.ssid = NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(ssid)); in scan()
745 NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(network.ssid)); in startPnoScan()
DWifiConfigurationUtil.java19 import static com.android.server.wifi.util.NativeUtil.addEnclosingQuotes;
39 import com.android.server.wifi.util.NativeUtil;
484 NativeUtil.decodeSsid(ssid); in validateSsid()
569 NativeUtil.hexOrQuotedStringToBytes(password); in validatePassword()
DWifiScoreCard.java41 import com.android.server.wifi.util.NativeUtil;
588 NativeUtil.byteArrayFromArrayList(NativeUtil.decodeSsid(ssid)), in computeHashLong()
DHostapdHal.java36 import com.android.server.wifi.util.NativeUtil;
341 nwParams.ssid.addAll(NativeUtil.stringToByteArrayList(config.SSID)); in addAccessPoint()
DWifiBackupRestore.java29 import com.android.server.wifi.util.NativeUtil;
656 NativeUtil.removeEnclosingQuotes(idString)); in createWifiConfiguration()
DWifiNative.java40 import com.android.server.wifi.util.NativeUtil;
1462 NativeUtil.macAddressToByteArray(senderMacStr)); in probeLink()
3104 byte[] srcMac = NativeUtil.macAddressToByteArray(getMacAddress(ifaceName)); in startSendingOffloadedPacket()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java54 import com.android.server.wifi.util.NativeUtil;
614 when(mISupplicantP2pIfaceMock.setSsidPostfix(eq(NativeUtil.decodeSsid("\"" + ssid + "\"")))) in testSetSsidPostfix_success()
630 when(mISupplicantP2pIfaceMock.setSsidPostfix(eq(NativeUtil.decodeSsid("\"" + ssid + "\"")))) in testSetSsidPostfix_failure()
644 when(mISupplicantP2pIfaceMock.setSsidPostfix(eq(NativeUtil.decodeSsid("\"" + ssid + "\"")))) in testSetSsidPostfix_exception()
1133 assertEquals(NativeUtil.removeEnclosingQuotes(mSsid), mDut.getSsid(mPeerMacAddress)); in testGetSsid_success()
1303 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigSuccess()
1322 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigSuccess()
1344 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigFailure()
1393 eq(NativeUtil.decodeSsid("\"" + mNetworkName + "\"")), in testGroupAddWithConfigException()
2459 NativeUtil.macAddressToByteArray("56:34:ab:12:12:34"), in testLoadGroups()
[all …]
DSupplicantP2pIfaceCallbackTest.java40 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/util/
DNativeUtil.java39 public class NativeUtil { class
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java63 import com.android.server.wifi.util.NativeUtil;
1167 byte[] lci = NativeUtil.byteArrayFromArrayList(resultForRequest.lci.data); in postProcessResults()
1168 byte[] lcr = NativeUtil.byteArrayFromArrayList(resultForRequest.lcr.data); in postProcessResults()

12