Home
last modified time | relevance | path

Searched refs:pseudonymInfo (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/
DPseudonymInfoTest.java45 PseudonymInfo pseudonymInfo = new PseudonymInfo(PSEUDONYM, IMSI); in pseudonymInfoWithoutTtl() local
46 assertEquals(PSEUDONYM, pseudonymInfo.getPseudonym()); in pseudonymInfoWithoutTtl()
47 assertEquals(IMSI, pseudonymInfo.getImsi()); in pseudonymInfoWithoutTtl()
48 assertEquals(PseudonymInfo.DEFAULT_PSEUDONYM_TTL_IN_MILLIS, pseudonymInfo.getTtlInMillis()); in pseudonymInfoWithoutTtl()
53 PseudonymInfo pseudonymInfo = new PseudonymInfo(PSEUDONYM, IMSI, TTL_IN_MILLIS); in pseudonymInfoWithTtl() local
54 assertEquals(PSEUDONYM, pseudonymInfo.getPseudonym()); in pseudonymInfoWithTtl()
55 assertEquals(TTL_IN_MILLIS, pseudonymInfo.getTtlInMillis()); in pseudonymInfoWithTtl()
57 - pseudonymInfo.getLttrInMillis()); in pseudonymInfoWithTtl()
60 assertFalse(pseudonymInfo.hasExpired()); in pseudonymInfoWithTtl()
61 assertFalse(pseudonymInfo.isOldEnoughToRefresh()); in pseudonymInfoWithTtl()
[all …]
DCarrierSpecificServiceEntitlementTest.java129 PseudonymInfo pseudonymInfo = mPseudonymInfoArgumentCaptor.getValue(); in getImsiPseudonymSuccess() local
130 assertEquals(IMSI_PSEUDONYM, pseudonymInfo.getPseudonym()); in getImsiPseudonymSuccess()
131 assertEquals(REFRESH_INTERVAL * HOUR_IN_MILLIS, pseudonymInfo.getTtlInMillis()); in getImsiPseudonymSuccess()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiPseudonymManager.java166 PseudonymInfo pseudonymInfo = optionalPseudonymInfo.get(); in getValidPseudonymInfo() local
167 if (pseudonymInfo.hasExpired()) { in getValidPseudonymInfo()
180 if (!imsi.equalsIgnoreCase(pseudonymInfo.getImsi())) { in getValidPseudonymInfo()
188 PseudonymInfo pseudonymInfo; in getPseudonymInfo() local
189 pseudonymInfo = mPseudonymInfoArray.get(carrierId); in getPseudonymInfo()
190 vlogd("getPseudonymInfo(" + carrierId + ") = " + pseudonymInfo); in getPseudonymInfo()
191 return Optional.ofNullable(pseudonymInfo); in getPseudonymInfo()
332 void setPseudonymAndScheduleRefresh(int carrierId, @NonNull PseudonymInfo pseudonymInfo) { in setPseudonymAndScheduleRefresh() argument
333 mPseudonymInfoArray.put(carrierId, pseudonymInfo); in setPseudonymAndScheduleRefresh()
334 scheduleToRetrieveDelayed(carrierId, pseudonymInfo.getLttrInMillis()); in setPseudonymAndScheduleRefresh()
[all …]
DNetworkSuggestionNominator.java357 Optional<PseudonymInfo> pseudonymInfo = in isSimBasedNetworkAvailableToAutoConnect() local
359 if (pseudonymInfo.isEmpty()) { in isSimBasedNetworkAvailableToAutoConnect()
DWifiCarrierInfoManager.java1014 Optional<PseudonymInfo> pseudonymInfo = in getSimIdentity() local
1016 if (pseudonymInfo.isEmpty()) { in getSimIdentity()
1019 return Pair.create(pseudonymInfo.get().getPseudonym(), ""); in getSimIdentity()
DWifiServiceImpl.java6823 Optional<PseudonymInfo> pseudonymInfo =
6826 if (pseudonymInfo.isEmpty()) {
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/response/
DGetImsiPseudonymResponseTest.java69 PseudonymInfo pseudonymInfo = response.toPseudonymInfo(IMSI).get(); in responseBodyCorrectWithRefreshInterval() local
70 assertEquals(IMSI_PSEUDONYM, pseudonymInfo.getPseudonym()); in responseBodyCorrectWithRefreshInterval()
71 assertEquals(REFRESH_INTERVAL * HOUR_IN_MILLIS, pseudonymInfo.getTtlInMillis()); in responseBodyCorrectWithRefreshInterval()
72 assertEquals(IMSI, pseudonymInfo.getImsi()); in responseBodyCorrectWithRefreshInterval()
92 PseudonymInfo pseudonymInfo = response.toPseudonymInfo(IMSI).get(); in responseBodyCorrectWithoutRefreshInterval() local
93 assertEquals(IMSI_PSEUDONYM, pseudonymInfo.getPseudonym()); in responseBodyCorrectWithoutRefreshInterval()
94 assertEquals(DEFAULT_PSEUDONYM_TTL_IN_MILLIS, pseudonymInfo.getTtlInMillis()); in responseBodyCorrectWithoutRefreshInterval()
95 assertEquals(IMSI, pseudonymInfo.getImsi()); in responseBodyCorrectWithoutRefreshInterval()
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/response/
DGetImsiPseudonymResponse.java86 PseudonymInfo pseudonymInfo = null; in toPseudonymInfo() local
92 pseudonymInfo = new PseudonymInfo(mImsiPseudonym, imsi); in toPseudonymInfo()
94 pseudonymInfo = new PseudonymInfo(mImsiPseudonym, imsi, in toPseudonymInfo()
98 return Optional.ofNullable(pseudonymInfo); in toPseudonymInfo()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiPseudonymManagerTest.java311 PseudonymInfo pseudonymInfo = new PseudonymInfo(PSEUDONYM, IMSI); in setPseudonymAndScheduleRefresh_freshPseudonym_schedule() local
312 mWifiPseudonymManager.setPseudonymAndScheduleRefresh(CARRIER_ID, pseudonymInfo); in setPseudonymAndScheduleRefresh_freshPseudonym_schedule()
322 long maxStartTime = Instant.now().toEpochMilli() + pseudonymInfo.getLttrInMillis(); in setPseudonymAndScheduleRefresh_freshPseudonym_schedule()
517 PseudonymInfo pseudonymInfo = new PseudonymInfo(PSEUDONYM, IMSI, in mRetrieveCallback_success_scheduleRefresh() local
519 mWifiPseudonymManager.mRetrieveCallback.onSuccess(CARRIER_ID, pseudonymInfo); in mRetrieveCallback_success_scheduleRefresh()
529 long maxStartTime = Instant.now().toEpochMilli() + pseudonymInfo.getLttrInMillis(); in mRetrieveCallback_success_scheduleRefresh()
534 PseudonymInfo pseudonymInfo = new PseudonymInfo(PSEUDONYM, IMSI, ttl, in setAnExpiredPseudonym() local
536 wifiPseudonymManager.setPseudonymAndScheduleRefresh(CARRIER_ID, pseudonymInfo); in setAnExpiredPseudonym()
540 PseudonymInfo pseudonymInfo = in setAFreshPseudonym() local
546 wifiPseudonymManager.setPseudonymAndScheduleRefresh(CARRIER_ID, pseudonymInfo); in setAFreshPseudonym()
DWifiCarrierInfoManagerTest.java788 PseudonymInfo pseudonymInfo = mock(PseudonymInfo.class); in getEncryptedIdentityWithOobPseudonymEnabled() local
789 when(pseudonymInfo.getPseudonym()).thenReturn(expectedPseudonym); in getEncryptedIdentityWithOobPseudonymEnabled()
791 .thenReturn(Optional.of(pseudonymInfo)); in getEncryptedIdentityWithOobPseudonymEnabled()
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/
DCarrierSpecificServiceEntitlement.java275 void onSuccess(int carrierId, PseudonymInfo pseudonymInfo); in onSuccess() argument