Home
last modified time | relevance | path

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

123456

/packages/modules/Connectivity/tests/unit/java/android/net/
DMacAddressTest.java95 assertEquals(expected, MacAddress.fromString(mac).toOuiString()); in testToOuiString()
109 assertEquals(mac, MacAddress.fromString(mac).toString()); in testHexPaddingWhenPrinting()
119 MacAddress.fromString("07:00:d3:56:8a:c4"), in testIsMulticastAddress()
120 MacAddress.fromString("33:33:aa:bb:cc:dd"), in testIsMulticastAddress()
124 MacAddress.fromString("00:01:44:55:66:77"), in testIsMulticastAddress()
125 MacAddress.fromString("08:00:22:33:44:55"), in testIsMulticastAddress()
126 MacAddress.fromString("06:00:00:00:00:00"), in testIsMulticastAddress()
142 MacAddress.fromString("06:00:00:00:00:00"), in testIsLocallyAssignedAddress()
143 MacAddress.fromString("07:00:d3:56:8a:c4"), in testIsLocallyAssignedAddress()
144 MacAddress.fromString("33:33:aa:bb:cc:dd"), in testIsLocallyAssignedAddress()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMacAddressTest.java92 MacAddress mac = MacAddress.fromString(tc.macAddress); in testMacAddress()
137 MacAddress mac = MacAddress.fromString(s); in testConstructorInputValidation()
144 MacAddress mac = MacAddress.fromString(null); in testConstructorInputValidation()
174 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
175 MacAddress.fromString("aa:bb:cc:dd:00:00"), in testMatches()
176 MacAddress.fromString("ff:ff:ff:ff:00:00"))); in testMatches()
179 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
180 MacAddress.fromString("aa:bb:cc:00:00:11"), in testMatches()
181 MacAddress.fromString("ff:ff:ff:00:00:ff"))); in testMatches()
184 assertTrue(MacAddress.fromString("aa:bb:cc:dd:ee:11").matches( in testMatches()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiNetworkSpecifierTest.java88 .setBssidPattern(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
89 MacAddress.fromString(TEST_BSSID_OUI_MASK)) in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
98 assertEquals(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
100 assertEquals(MacAddress.fromString(TEST_BSSID_OUI_MASK), in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
121 .setBssid(MacAddress.fromString(TEST_BSSID)) in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
131 assertEquals(MacAddress.fromString(TEST_BSSID), in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
566 .setBssidPattern(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierBuilderWithBssidMatchPatternForHiddenNetwork()
567 MacAddress.fromString(TEST_BSSID_OUI_MASK)) in testWifiNetworkSpecifierBuilderWithBssidMatchPatternForHiddenNetwork()
654 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkSpecifierParcel()
655 MacAddress.fromString(TEST_BSSID_OUI_MASK)), in testWifiNetworkSpecifierParcel()
[all …]
DWifiNetworkAgentSpecifierTest.java218 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
219 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
247 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
248 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
308 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierBandMatching()
309 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierBandMatching()
353 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierLocalOnlyMatching()
354 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierLocalOnlyMatching()
419 Pair.create(MacAddress.fromString(TEST_BSSID_OUI_BASE_ADDRESS), in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern()
420 MacAddress.fromString(TEST_BSSID_OUI_MASK)); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern()
[all …]
DWifiSsidTest.java55 WifiSsid fromString = WifiSsid.createFromAsciiEncoded(TEST_SSID); in testEquals() local
57 assertTrue(fromString != null); in testEquals()
58 assertEquals(fromBytes, fromString); in testEquals()
DSoftApConfigurationTest.java76 MacAddress testBssid = MacAddress.fromString(TEST_BSSID); in testBasicSettings()
139 testBlockedClientList.add(MacAddress.fromString("11:22:33:44:55:66")); in testWpa2WithAllFieldCustomized()
140 testAllowedClientList.add(MacAddress.fromString("aa:bb:cc:dd:ee:ff")); in testWpa2WithAllFieldCustomized()
256 .setBssid(MacAddress.fromString("01:aa:bb:cc:dd:ee")) in testInvalidMulticastBssid()
309 final MacAddress testMacAddress_1 = MacAddress.fromString("22:33:44:55:66:77"); in testSetClientListExceptionWhenExistMacAddressInBothList()
310 final MacAddress testMacAddress_2 = MacAddress.fromString("aa:bb:cc:dd:ee:ff"); in testSetClientListExceptionWhenExistMacAddressInBothList()
/packages/modules/GeoTZ/common/src/test/java/com/android/timezone/location/common/
DPiiLoggablesTest.java46 PiiLoggable piiLoggable = PiiLoggables.fromString(null); in fromString_null()
49 assertEquals(piiLoggable, PiiLoggables.fromString(null)); in fromString_null()
50 assertNotEquals(piiLoggable, PiiLoggables.fromString("Hello")); in fromString_null()
54 public void fromString() { in fromString() method in PiiLoggablesTest
57 PiiLoggable piiLoggable = PiiLoggables.fromString(string1); in fromString()
60 assertEquals(piiLoggable, PiiLoggables.fromString(string1)); in fromString()
61 assertNotEquals(piiLoggable, PiiLoggables.fromString(string2)); in fromString()
/packages/modules/Connectivity/framework/src/android/net/
DMacAddress.java85 private static final long LOCALLY_ASSIGNED_MASK = MacAddress.fromString("2:0:0:0:0:0").mAddr;
86 private static final long MULTICAST_MASK = MacAddress.fromString("1:0:0:0:0:0").mAddr;
87 private static final long OUI_MASK = MacAddress.fromString("ff:ff:ff:0:0:0").mAddr;
88 private static final long NIC_MASK = MacAddress.fromString("0:0:0:ff:ff:ff").mAddr;
89 private static final MacAddress BASE_GOOGLE_MAC = MacAddress.fromString("da:a1:19:0:0:0");
92 MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS);
315 public static @NonNull MacAddress fromString(@NonNull String addr) { in fromString() method in MacAddress
/packages/apps/Dialer/java/com/android/dialer/common/database/
DSelection.java113 public static Selection fromString(@Nullable String selection, @Nullable String... args) { in fromString() method in Selection
119 public static Selection fromString(@Nullable String selection, Collection<String> args) { in fromString() method in Selection
127 return fromString("NOT " + selection.getSelection(), selection.getSelectionArgs()); in not()
151 return fromString(column + " " + Assert.isNotNull(operator) + " ?", value.toString()); in is()
160 return fromString(column + " " + Assert.isNotNull(condition)); in is()
168 return fromString( in in()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApBackupRestoreTest.java249 mTestBlockedList.add(MacAddress.fromString(TEST_BLOCKED_CLIENT)); in testSoftApConfigBackupAndRestoreWithMaxShutdownClientList()
250 mTestAllowedList.add(MacAddress.fromString(TEST_ALLOWED_CLIENT)); in testSoftApConfigBackupAndRestoreWithMaxShutdownClientList()
277 mTestBlockedList.add(MacAddress.fromString(TEST_BLOCKED_CLIENT)); in testSoftApConfigBackupAndRestoreWithAllConfigInS()
278 mTestAllowedList.add(MacAddress.fromString(TEST_ALLOWED_CLIENT)); in testSoftApConfigBackupAndRestoreWithAllConfigInS()
310 mTestBlockedList.add(MacAddress.fromString(TEST_BLOCKED_CLIENT)); in testSoftApConfigRestoreFromVersion5()
311 mTestAllowedList.add(MacAddress.fromString(TEST_ALLOWED_CLIENT)); in testSoftApConfigRestoreFromVersion5()
371 mTestBlockedList.add(MacAddress.fromString(TEST_BLOCKED_CLIENT)); in testSoftApConfigRestoreFromVersion6()
372 mTestAllowedList.add(MacAddress.fromString(TEST_ALLOWED_CLIENT)); in testSoftApConfigRestoreFromVersion6()
397 mTestBlockedList.add(MacAddress.fromString(TEST_BLOCKED_CLIENT)); in testSoftApConfigRestoreFromVersion7()
398 mTestAllowedList.add(MacAddress.fromString(TEST_ALLOWED_CLIENT)); in testSoftApConfigRestoreFromVersion7()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttNativeTest.java152 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequest()
162 equalTo(MacAddress.fromString("0A:0B:0C:0D:0E:00").toByteArray())); in testRangeRequest()
172 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequest()
220 equalTo(MacAddress.fromString("00:01:02:03:04:00").toByteArray())); in testRangeRequestWithLimitedCapabilities()
232 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilities()
274 equalTo(MacAddress.fromString("08:09:08:07:06:05").toByteArray())); in testRangeRequestWithLimitedCapabilitiesNoOverlap()
380 equalTo(MacAddress.fromString("05:06:07:08:09:0A").toByteArray())); in testRangeResults()
433 MacAddress.fromString("08:09:08:07:06:88"), ResponderConfig.RESPONDER_AP, true, in testRangingWithInvalidParameterCombination()
435 ResponderConfig config = new ResponderConfig(MacAddress.fromString("08:09:08:07:06:89"), in testRangingWithInvalidParameterCombination()
DRttTestUtils.java69 MacAddress mac1 = MacAddress.fromString("08:09:08:07:06:05"); in getDummyRangingRequest()
148 MacAddress.fromString("10:01:02:03:04:05"), rangeCmBase++, in getDummyRangingResults()
152 MacAddress.fromString("1A:0B:0C:0D:0E:0F"), rangeCmBase++, in getDummyRangingResults()
156 MacAddress.fromString("08:09:08:07:06:05"), rangeCmBase++, in getDummyRangingResults()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DMediaSetUtils.java48 Path.fromString("/local/all/" + CAMERA_BUCKET_ID),
49 Path.fromString("/local/image/" + CAMERA_BUCKET_ID),
50 Path.fromString("/local/video/" + CAMERA_BUCKET_ID)};
/packages/services/Car/service/src/com/android/car/
DFastPairGattServer.java72 .fromString("0000FE2C-0000-1000-8000-00805f9b34fb");
74 .fromString("FE2C1233-8366-4814-8EB0-01DE32100BEA");
76 .fromString("FE2C1234-8366-4814-8EB0-01DE32100BEA");
78 .fromString("FE2C1235-8366-4814-8EB0-01DE32100BEA");
80 .fromString("FE2C1236-8366-4814-8EB0-01DE32100BEA");
82 .fromString("00002902-0000-1000-8000-00805f9b34fb");
84 .fromString("00002A00-0000-1000-8000-00805f9b34fb");
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java153 final MacAddress srcMac = MacAddress.fromString("33:33:ff:66:77:88"); in createDadPacket()
155 final MacAddress dstMac = MacAddress.fromString("01:02:03:04:05:06"); in createDadPacket()
192 byte[] ll_target = MacAddress.fromString("01:02:03:04:05:06").toByteArray(); in createDadPacket()
285 updateDstMac(out, MacAddress.fromString("33:33:00:00:00:01")); in testNaForwardingFromUpstreamToTether()
297 updateDstMac(out, MacAddress.fromString("33:33:00:00:00:01")); in testNaForwardingFromTetherToUpstream()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java147 MacAddress mac1 = MacAddress.fromString("00:01:02:03:04:05"); in testRangingRequestParcel()
273 MacAddress mac1 = MacAddress.fromString("00:01:02:03:04:05"); in testRangingRequestAtLimit()
310 MacAddress mac1 = MacAddress.fromString("00:01:02:03:04:05"); in testRangingRequestPastLimit()
344 final MacAddress mac = MacAddress.fromString("00:01:02:03:04:05"); in testRangingResultsParcel()
395 final MacAddress mac = MacAddress.fromString("00:01:02:03:04:05"); in testRangingResultsEqualityLciLcr()
422 ResponderConfig config = new ResponderConfig(MacAddress.fromString("00:01:02:03:04:05"), in testResponderConfigParcel()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DProvisioningConfigurationTest.java102 MacAddress.fromString("00:01:02:03:04:05")); in setUp()
189 "some cluster", MacAddress.fromString("00:01:02:03:04:05"))); in testEquals()
191 "another cluster", MacAddress.fromString("00:01:02:03:04:05"))); in testEquals()
193 "some cluster", MacAddress.fromString("01:02:03:04:05:06"))); in testEquals()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalSource.java145 return Path.fromString("/local/image").getChild(id); in getAlbumPath()
147 return Path.fromString("/local/video").getChild(id); in getAlbumPath()
149 return Path.fromString("/local/all").getChild(id); in getAlbumPath()
185 return Path.fromString("/local/all").getChild( in getDefaultSetOf()
DDataSourceType.java27 private static final Path PICASA_ROOT = Path.fromString("/picasa");
28 private static final Path LOCAL_ROOT = Path.fromString("/local");
DLocalAlbumSet.java43 public static final Path PATH_ALL = Path.fromString("/local/all");
44 public static final Path PATH_IMAGE = Path.fromString("/local/image");
45 public static final Path PATH_VIDEO = Path.fromString("/local/video");
DSnailSource.java64 return Path.fromString("/snail/set").getChild(id); in getSetPath()
68 return Path.fromString("/snail/item").getChild(id); in getItemPath()
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
DOfflineLocationTimeZoneDelegate.java177 PiiLoggable entryCause = PiiLoggables.fromString("onBind() called"); in onBind()
194 PiiLoggable entryCause = PiiLoggables.fromString("onDestroy() called"); in onDestroy()
212 PiiLoggable debugInfo = PiiLoggables.fromString("onStartUpdates()," in onStartUpdates()
240 PiiLoggable debugInfo = PiiLoggables.fromString("onStopUpdates()"); in onStopUpdates()
420 PiiLoggable debugInfo = PiiLoggables.fromString( in onPassiveListeningEnded()
/packages/modules/Connectivity/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")
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java91 Path path = Path.fromString(entry.albumPath); in migrateGalleryWidgetsInternal()
143 String newAlbumPath = Path.fromString(entry.albumPath) in updatePath()
162 String newAlbumPath = Path.fromString(entry.albumPath) in updateEntryUsingRelativePath()
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DPreferredShortcutTest.java40 final PreferredShortcut shortcut = PreferredShortcut.fromString(preferredShortcutString); in fromString_matchMemberObject()
58 final PreferredShortcut targetShortcut = PreferredShortcut.fromString( in assertSameObject()

123456