Home
last modified time | relevance | path

Searched refs:fromString (Results 1 – 25 of 92) sorted by relevance

1234

/frameworks/base/tests/net/java/android/net/
DMacAddressTest.java91 assertEquals(expected, MacAddress.fromString(mac).toOuiString()); in testToOuiString()
105 assertEquals(mac, MacAddress.fromString(mac).toString()); in testHexPaddingWhenPrinting()
115 MacAddress.fromString("07:00:d3:56:8a:c4"), in testIsMulticastAddress()
116 MacAddress.fromString("33:33:aa:bb:cc:dd"), in testIsMulticastAddress()
120 MacAddress.fromString("00:01:44:55:66:77"), in testIsMulticastAddress()
121 MacAddress.fromString("08:00:22:33:44:55"), in testIsMulticastAddress()
122 MacAddress.fromString("06:00:00:00:00:00"), in testIsMulticastAddress()
138 MacAddress.fromString("06:00:00:00:00:00"), in testIsLocallyAssignedAddress()
139 MacAddress.fromString("07:00:d3:56:8a:c4"), in testIsLocallyAssignedAddress()
140 MacAddress.fromString("33:33:aa:bb:cc:dd"), in testIsLocallyAssignedAddress()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothUuid.java50 ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB");
55 ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB");
60 ParcelUuid.fromString("0000110D-0000-1000-8000-00805F9B34FB");
65 ParcelUuid.fromString("00001108-0000-1000-8000-00805F9B34FB");
70 ParcelUuid.fromString("00001112-0000-1000-8000-00805F9B34FB");
75 ParcelUuid.fromString("0000111E-0000-1000-8000-00805F9B34FB");
80 ParcelUuid.fromString("0000111F-0000-1000-8000-00805F9B34FB");
85 ParcelUuid.fromString("0000110E-0000-1000-8000-00805F9B34FB");
90 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB");
95 ParcelUuid.fromString("00001105-0000-1000-8000-00805f9b34fb");
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSpecifierTest.java82 .setBssidPattern(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
83 MacAddress.fromString(TEST_BSSID_OUI_MASK)) in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
92 assertEquals(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
94 assertEquals(MacAddress.fromString(TEST_BSSID_OUI_MASK), in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
115 .setBssid(MacAddress.fromString(TEST_BSSID)) in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
125 assertEquals(MacAddress.fromString(TEST_BSSID), in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
279 .setBssidPattern(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierBuilderWithBssidMatchPatternForHiddenNetwork()
280 MacAddress.fromString(TEST_BSSID_OUI_MASK)) in testWifiNetworkSpecifierBuilderWithBssidMatchPatternForHiddenNetwork()
365 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierParcel()
366 MacAddress.fromString(TEST_BSSID_OUI_MASK)), in testWifiNetworkSpecifierParcel()
[all …]
DWifiNetworkAgentSpecifierTest.java228 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
229 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
257 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
258 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
324 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern()
325 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern()
358 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidAndBssidPattern()
359 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidAndBssidPattern()
387 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithDifferentKeyMgmt()
388 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithDifferentKeyMgmt()
[all …]
DWifiSsidTest.java55 WifiSsid fromString = WifiSsid.createFromAsciiEncoded(TEST_SSID); in testEquals() local
57 assertTrue(fromString != null); in testEquals()
58 assertEquals(fromBytes, fromString); in testEquals()
DWifiClientTest.java38 private static final MacAddress MAC_ADDRESS = MacAddress.fromString(MAC_ADDRESS_STRING);
68 final MacAddress macAddressNotEquals = MacAddress.fromString("00:00:00:00:00:00"); in testWifiClientNotEquals()
DWifiConfigurationTest.java200 MacAddress defaultMac = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in testGetOrCreateRandomizedMacAddress_SavesAndReturnsSameAddress()
213 MacAddress defaultMac = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in testSetRandomizedMacAddress_ChangesSavedAddress()
227 MacAddress defaultMac = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in testGetOrCreateRandomizedMacAddress_ReRandomizesInvalidAddress()
229 MacAddress macAddressMulticast = MacAddress.fromString("03:ff:ff:ff:ff:ff"); in testGetOrCreateRandomizedMacAddress_ReRandomizesInvalidAddress()
230 MacAddress macAddressGlobal = MacAddress.fromString("fc:ff:ff:ff:ff:ff"); in testGetOrCreateRandomizedMacAddress_ReRandomizesInvalidAddress()
256 MacAddress defaultMac = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in testSetRandomizedMacAddress_DoesNothingWhenNull()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothUuidTest.java36 assertEquals(ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"), in testUuidParser()
41 assertEquals(ParcelUuid.fromString("FE33110B-0000-1000-8000-00805F9B34FB"), in testUuidParser()
47 assertEquals(ParcelUuid.fromString("FF0F0E0D-0C0B-0A09-0807-0060504030201"), in testUuidParser()
54 ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
56 ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
59 ParcelUuid.fromString("FE33110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
61 ParcelUuid.fromString("FE33110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
63 ParcelUuid.fromString("FE33110B-1000-1000-8000-00805F9B34FB"))); in testUuidType()
/frameworks/libs/net/common/tests/unit/src/android/net/util/
DMacAddressUtilsTest.java40 MacAddress.fromString("ff:ff:ff:ff:ff:ff"), in testIsMulticastAddress()
41 MacAddress.fromString("07:00:d3:56:8a:c4"), in testIsMulticastAddress()
42 MacAddress.fromString("33:33:aa:bb:cc:dd"), in testIsMulticastAddress()
46 MacAddress.fromString("00:00:00:00:00:00"), in testIsMulticastAddress()
47 MacAddress.fromString("00:01:44:55:66:77"), in testIsMulticastAddress()
48 MacAddress.fromString("08:00:22:33:44:55"), in testIsMulticastAddress()
49 MacAddress.fromString("06:00:00:00:00:00"), in testIsMulticastAddress()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanFilterTest.java82 ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter()
86 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter()
90 .setServiceUuid(ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB"), in testsetServiceUuidFilter()
91 ParcelUuid.fromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF")) in testsetServiceUuidFilter()
100 ParcelUuid serviceDataUuid = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testsetServiceDataFilter()
166 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB")).build(); in testReadWriteParcel()
170 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB"), in testReadWriteParcel()
171 ParcelUuid.fromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF")).build(); in testReadWriteParcel()
177 ParcelUuid serviceDataUuid = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testReadWriteParcel()
DAdvertiseDataTest.java80 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testEmptyServiceData()
95 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testServiceUuid()
96 ParcelUuid uuid2 = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testServiceUuid()
111 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testManufacturerData()
112 ParcelUuid uuid2 = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testManufacturerData()
132 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testServiceData()
DScanRecordTest.java48 ParcelUuid uuid1 = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testParser()
49 ParcelUuid uuid2 = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testParser()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java300 KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString("1000-1999"); in testUidPredicate_singleRange()
313 KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString("1234-1234"); in testUidPredicate_singleUid()
324 KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString( in testUidPredicate_uidAndRange()
339 KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString( in testUidPredicate_multiple()
359 KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString("0-0"); in testUidPredicate_zero()
371 () -> KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString("")); in testUidPredicate_emptyRangeString()
378 () -> KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString("1000")); in testUidPredicate_singleNumber()
385 () -> KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString( in testUidPredicate_lettersInRange()
393 () -> KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString("abc")); in testUidPredicate_onlyLetters()
400 () -> KernelCpuThreadReaderSettingsObserver.UidPredicate.fromString("20-10")); in testUidPredicate_backwardsRange()
[all …]
/frameworks/base/core/java/android/net/
DMacAddress.java84 private static final long LOCALLY_ASSIGNED_MASK = MacAddress.fromString("2:0:0:0:0:0").mAddr;
85 private static final long MULTICAST_MASK = MacAddress.fromString("1:0:0:0:0:0").mAddr;
86 private static final long OUI_MASK = MacAddress.fromString("ff:ff:ff:0:0:0").mAddr;
87 private static final long NIC_MASK = MacAddress.fromString("0:0:0:ff:ff:ff").mAddr;
88 private static final MacAddress BASE_GOOGLE_MAC = MacAddress.fromString("da:a1:19:0:0:0");
91 MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS);
314 public static @NonNull MacAddress fromString(@NonNull String addr) { in fromString() method in MacAddress
/frameworks/libs/net/common/framework/android/net/util/
DMacAddressUtils.java36 MacAddress.fromString("2:0:0:0:0:0").toByteArray());
38 MacAddress.fromString("1:0:0:0:0:0").toByteArray());
40 MacAddress.fromString("ff:ff:ff:0:0:0").toByteArray());
42 MacAddress.fromString("0:0:0:ff:ff:ff").toByteArray());
/frameworks/base/media/java/android/media/audiofx/
DAudioEffect.java93 .fromString("c2e5d5f0-94bd-4763-9cac-4e234d06839e");
98 .fromString("47382d60-ddd8-11db-bf3a-0002a5d5c51b");
103 .fromString("0bed4300-ddd6-11db-8f34-0002a5d5c51b");
108 .fromString("0634f220-ddd4-11db-a0fc-0002a5d5c51b");
113 .fromString("37cc2c00-dddd-11db-8577-0002a5d5c51b");
122 .fromString("0a8abfe0-654c-11e0-ba26-0002a5d5c51b");
128 .fromString("7b491460-8d4d-11e0-bd61-0002a5d5c51b");
134 .fromString("58b4b260-8e06-11e0-aa8e-0002a5d5c51b");
140 .fromString("fe3199be-aed0-413f-87bb-11260eb63cf1");
146 .fromString("7261676f-6d75-7369-6364-28e2fd3ac39e");
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttNativeTest.java144 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequest()
152 equalTo(MacAddress.fromString("0A:0B:0C:0D:0E:00").toByteArray())); in testRangeRequest()
160 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequest()
194 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequestNotPrivilegedNo80211mcSupportMixed()
202 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestNotPrivilegedNo80211mcSupportMixed()
247 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequestWithLimitedCapabilities()
259 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilities()
301 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilitiesNoOverlap()
425 equalTo(MacAddress.fromString("05:06:07:08:09:0A").toByteArray())); in testRangeResults()
478 MacAddress.fromString("08:09:08:07:06:88"), ResponderConfig.RESPONDER_AP, true, in testRangingWithInvalidParameterCombination()
[all …]
DRttTestUtils.java71 MacAddress mac1 = MacAddress.fromString("08:09:08:07:06:05"); in getDummyRangingRequest()
146 MacAddress.fromString("10:01:02:03:04:05"), rangeCmBase++, in getDummyRangingResults()
150 MacAddress.fromString("1A:0B:0C:0D:0E:0F"), rangeCmBase++, in getDummyRangingResults()
154 MacAddress.fromString("08:09:08:07:06:05"), rangeCmBase++, in getDummyRangingResults()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnSettingTest.java151 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
160 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
168 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
176 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
186 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
197 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
207 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
217 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
226 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
235 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
[all …]
/frameworks/base/core/java/android/os/
DParcelUuid.java53 public static ParcelUuid fromString(String uuid) { in fromString() method in ParcelUuid
54 return new ParcelUuid(UUID.fromString(uuid)); in fromString()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderSettingsObserver.java95 NUM_BUCKETS_DEFAULT, UidPredicate.fromString(COLLECTED_UIDS_DEFAULT)); in KernelCpuThreadReaderSettingsObserver()
126 UidPredicate.fromString( in updateReader()
164 public static UidPredicate fromString(String predicateString) throws NumberFormatException { in fromString() method in KernelCpuThreadReaderSettingsObserver.UidPredicate
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java140 MacAddress mac1 = MacAddress.fromString("00:01:02:03:04:05"); in testRangingRequestParcel()
174 MacAddress mac1 = MacAddress.fromString("00:01:02:03:04:05"); in testRangingRequestAtLimit()
199 MacAddress mac1 = MacAddress.fromString("00:01:02:03:04:05"); in testRangingRequestPastLimit()
233 final MacAddress mac = MacAddress.fromString("00:01:02:03:04:05"); in testRangingResultsParcel()
283 final MacAddress mac = MacAddress.fromString("00:01:02:03:04:05"); in testRangingResultsEqualityLciLcr()
308 ResponderConfig config = new ResponderConfig(MacAddress.fromString("00:01:02:03:04:05"), in testResponderConfigParcel()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DConnectedClientsTrackerTest.kt47 private val client1Addr = MacAddress.fromString("01:23:45:67:89:0A")
52 private val client2Addr = MacAddress.fromString("02:34:56:78:90:AB")
60 private val client3Addr = MacAddress.fromString("03:45:67:89:0A:BC")
/frameworks/av/media/libmediahelper/
DTypeConverter.cpp418 return InputDeviceConverter::fromString(literalDevice, device) || in deviceFromString()
419 OutputDeviceConverter::fromString(literalDevice, device); in deviceFromString()
444 FormatConverter::fromString(literalFormat, format); in formatFromString()
451 if (!OutputChannelConverter::fromString(literalChannels, channels) && in channelMaskFromString()
452 !InputChannelConverter::fromString(literalChannels, channels)) { in channelMaskFromString()
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothMidiDevice.java56 private static final UUID MIDI_SERVICE = UUID.fromString(
59 private static final UUID MIDI_CHARACTERISTIC = UUID.fromString(
62 private static final UUID CLIENT_CHARACTERISTIC_CONFIG = UUID.fromString(

1234