Home
last modified time | relevance | path

Searched refs:sessionIdFromNetId (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java618 assertEquals(-1, WifiScoreReport.sessionIdFromNetId(Integer.MIN_VALUE));
619 assertEquals(-1, WifiScoreReport.sessionIdFromNetId(-42));
620 assertEquals(-1, WifiScoreReport.sessionIdFromNetId(-1));
621 assertEquals(-1, WifiScoreReport.sessionIdFromNetId(0));
622 assertEquals(18, WifiScoreReport.sessionIdFromNetId(1));
623 assertEquals(3339, WifiScoreReport.sessionIdFromNetId(333));
624 assertEquals(TEST_SESSION_ID, WifiScoreReport.sessionIdFromNetId(TEST_NETWORK_ID));
627 assertEquals(2147483646, WifiScoreReport.sessionIdFromNetId(dangerOfOverflow));
628 assertEquals(8, WifiScoreReport.sessionIdFromNetId(dangerOfOverflow + 1));
629 assertEquals(8, WifiScoreReport.sessionIdFromNetId(Integer.MAX_VALUE));
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java382 return sessionIdFromNetId(getCurrentNetId()); in getCurrentSessionId()
393 public static int sessionIdFromNetId(final int netId) { in sessionIdFromNetId() method in WifiScoreReport