Home
last modified time | relevance | path

Searched refs:fromBytes (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiSsidTest.java54 WifiSsid fromBytes = WifiSsid.createFromByteArray(TEST_SSID_BYTES); in testEquals() local
56 assertTrue(fromBytes != null); in testEquals()
58 assertEquals(fromBytes, fromString); in testEquals()
/frameworks/base/tests/net/java/android/net/
DMacAddressTest.java72 assertEquals(got, MacAddress.fromBytes(t.addr).getAddressType()); in testMacAddrTypes()
165 assertEquals(mac, MacAddress.fromBytes(bytesRepr)); in testMacAddressConversions()
168 assertEquals(mac, MacAddress.fromBytes(MacAddress.byteAddrFromStringAddr(stringRepr))); in testMacAddressConversions()
243 MacAddress mac = MacAddress.fromBytes(b); in testConstructorInputValidation()
251 MacAddress mac = MacAddress.fromBytes(null); in testConstructorInputValidation()
/frameworks/base/services/net/java/android/net/util/
DInterfaceParams.java72 this.macAddr = (macAddr != null) ? macAddr : MacAddress.fromBytes(new byte[] { in InterfaceParams()
92 return MacAddress.fromBytes(netif.getHardwareAddress()); in getMacAddress()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java391 PersistentData deserialized = PersistentData.fromBytes(serialized); in testPersistentData_serializeUnserialize()
399 PersistentData deserialized = PersistentData.fromBytes(null); in testPersistentData_unserializeNull()
404 PersistentData deserialized = PersistentData.fromBytes(new byte[0]); in testPersistentData_unserializeEmptyArray()
410 PersistentData deserialized = PersistentData.fromBytes(new byte[]{5}); in testPersistentData_unserializeInvalid()
425 PersistentData deserialized = PersistentData.fromBytes(serializedVersion1); in testPersistentData_unserialize_version1()
441 CredentialHash deserialized = CredentialHash.fromBytes(serialized); in testCredentialHash_serializeUnserialize()
458 CredentialHash deserialized = CredentialHash.fromBytes(serialized); in testCredentialHash_unserialize_versionGatekeeper()
DSyntheticPasswordTests.java539 PasswordData deserialized = PasswordData.fromBytes(data.toBytes()); in testPasswordData_serializeDeserialize()
562 PasswordData deserialized = PasswordData.fromBytes(serialized); in testPasswordData_deserialize()
/frameworks/base/core/java/android/net/
DMacAddress.java51 public static final MacAddress BROADCAST_ADDRESS = MacAddress.fromBytes(ETHER_ADDR_BROADCAST);
209 return MacAddress.fromBytes(addr).getAddressType(); in macAddressType()
334 public static @NonNull MacAddress fromBytes(@NonNull byte[] addr) { in fromBytes() method in MacAddress
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java239 public static PasswordData fromBytes(byte[] data) { in fromBytes() method in SyntheticPasswordManager.PasswordData
437 return PasswordData.fromBytes(passwordData).passwordType; in getCredentialType()
686 PasswordData pwd = PasswordData.fromBytes(persistentData.payload); in verifyFrpCredential()
693 PasswordData pwd = PasswordData.fromBytes(persistentData.payload); in verifyFrpCredential()
709 PasswordData pwd = PasswordData.fromBytes(loadState(PASSWORD_DATA_NAME, handle, in migrateFrpPasswordLocked()
867 PasswordData pwd = PasswordData.fromBytes(loadState(PASSWORD_DATA_NAME, handle, userId)); in unwrapPasswordBasedSyntheticPassword()
DLockSettingsStorage.java164 public static CredentialHash fromBytes(byte[] bytes) { in fromBytes() method in LockSettingsStorage.CredentialHash
640 return PersistentData.fromBytes(persistentDataBlock.getFrpCredentialHandle()); in readPersistentDataBlock()
670 public static PersistentData fromBytes(byte[] frpData) { in fromBytes() method in LockSettingsStorage.PersistentData
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java562 assertArrayEquals(MacAddress.fromBytes( in testMultipleNdpsOnSingleNdi()
686 assertArrayEquals(MacAddress.fromBytes( in testMultipleIdenticalRequests()
805 assertArrayEquals(MacAddress.fromBytes( in testMultipleNdi()
869 String linkLocalIpv6Address = MacAddress.fromBytes( in testDataPathInitiatorNetInfoLargeValuesExp1()
883 String linkLocalIpv6Address = MacAddress.fromBytes( in testDataPathInitiatorNetInfoLargeValuesExp2()
896 String linkLocalIpv6Address = MacAddress.fromBytes( in testDataPathInitiatorNetInfoLargeValuesExp3()
925 String linkLocalIpv6Address = MacAddress.fromBytes( in testDataPathInitiatorAddressValidationRetrySuccess()
940 String linkLocalIpv6Address = MacAddress.fromBytes( in testDataPathInitiatorAddressValidationRetryFail()
1287 String linkLocalIpv6Address = MacAddress.fromBytes( in testDataPathInitiatorUtility()
1531 assertArrayEquals(MacAddress.fromBytes( in testDataPathResponderUtility()
/frameworks/base/services/core/java/com/android/server/
DRuntimeService.java149 DistroVersion distroVersion = DistroVersion.fromBytes(versionBytes); in addDistroVersionDebugInfo()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java132 setUpAdbFiles(PersistentData.fromBytes(testHarnessModeData)); in completeTestHarnessModeSetup()
414 static PersistentData fromBytes(byte[] bytes) throws SetUpTestHarnessModeException { in fromBytes() method in TestHarnessModeService.PersistentData
/frameworks/base/core/java/android/app/admin/
DSecurityLog.java500 mEvent = Event.fromBytes(data); in SecurityEvent()
/frameworks/base/core/java/android/util/
DEventLog.java194 public static Event fromBytes(byte[] data) { in fromBytes() method in EventLog.Event
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttMetricsTest.java566 builder.addResponder(new ResponderConfig(MacAddress.fromBytes(dummyMacBase), in getDummyRangingRequest()
571 builder.addResponder(new ResponderConfig(MacAddress.fromBytes(dummyMacBase), in getDummyRangingRequest()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkSuggestion.java156 mBssid = MacAddress.fromBytes(bssid.toByteArray()); in setBssid()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java609 MacAddress.fromBytes(mac).getLinkLocalIpv6FromEui48Mac().getAddress(), in onDataPathConfirm()
738 Log.v(TAG, "onDataPathSchedUpdate: peerMac=" + MacAddress.fromBytes(peerMac).toString() in onDataPathSchedUpdate()
751 + MacAddress.fromBytes(peerMac).toString() + " doesn't match NDP NMI=" in onDataPathSchedUpdate()
752 + MacAddress.fromBytes(nnriE.getValue().peerDiscoveryMac).toString()); in onDataPathSchedUpdate()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java272 event.dstHwAddr = MacAddress.fromBytes(dstHw); in onWakeupEvent()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttMetrics.java166 MacAddress.fromBytes(result.addr)); in recordResult()
DRttServiceImpl.java1060 MacAddress.fromBytes(mac), in processReceivedAwarePeerMacAddresses()
1136 resultEntries.put(MacAddress.fromBytes(result.addr), result); in postProcessResults()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java578 static PAC fromBytes(byte data1, byte data2) { in fromBytes() method in Cea608CCParser.PAC
1072 return PAC.fromBytes(mData1, mData2); in getPAC()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java1098 return fromBytes(Base64.decode(s, Base64.DEFAULT)); in base64Decode()
1116 private static String fromBytes(byte[] bytes) { in fromBytes() method in SettingsState
/frameworks/base/wifi/java/android/net/wifi/rtt/
DResponderLocation.java743 MacAddress macAddress = MacAddress.fromBytes(bssid); in parseSubelementBssidList()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java284 MacAddress macAddress = MacAddress.fromBytes(Arrays.copyOfRange(bf.array(), 2, 8)); in calculatePersistentMacForConfiguration()
DWifiScoreCard.java637 MacAddress bssid = MacAddress.fromBytes(ap.getBssid().toByteArray()); in perBssidFromAccessPoint()
DWifiVendorHal.java1329 box.mac = MacAddress.fromBytes(macBytes); in getFactoryMacAddress()

12