/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/ |
D | PseudonymInfoTest.java | 45 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 …]
|
D | CarrierSpecificServiceEntitlementTest.java | 129 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/ |
D | WifiPseudonymManager.java | 166 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 …]
|
D | NetworkSuggestionNominator.java | 357 Optional<PseudonymInfo> pseudonymInfo = in isSimBasedNetworkAvailableToAutoConnect() local 359 if (pseudonymInfo.isEmpty()) { in isSimBasedNetworkAvailableToAutoConnect()
|
D | WifiCarrierInfoManager.java | 1014 Optional<PseudonymInfo> pseudonymInfo = in getSimIdentity() local 1016 if (pseudonymInfo.isEmpty()) { in getSimIdentity() 1019 return Pair.create(pseudonymInfo.get().getPseudonym(), ""); in getSimIdentity()
|
D | WifiServiceImpl.java | 6823 Optional<PseudonymInfo> pseudonymInfo = 6826 if (pseudonymInfo.isEmpty()) {
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/response/ |
D | GetImsiPseudonymResponseTest.java | 69 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/ |
D | GetImsiPseudonymResponse.java | 86 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/ |
D | WifiPseudonymManagerTest.java | 311 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()
|
D | WifiCarrierInfoManagerTest.java | 788 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/ |
D | CarrierSpecificServiceEntitlement.java | 275 void onSuccess(int carrierId, PseudonymInfo pseudonymInfo); in onSuccess() argument
|