Home
last modified time | relevance | path

Searched refs:mSafetySource (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/
DNullCipherNotifierTest.java112 private CellularNetworkSecuritySafetySource mSafetySource; field in NullCipherNotifierTest
118 mSafetySource = mock(CellularNetworkSecuritySafetySource.class); in setUp()
123 NullCipherNotifier notifier = new NullCipherNotifier(mExecutor, mSafetySource); in initializeNotifier_notifierAndSafetySourceDisabled()
126 verify(mSafetySource, never()).setNullCipherIssueEnabled(any(), anyBoolean()); in initializeNotifier_notifierAndSafetySourceDisabled()
131 NullCipherNotifier notifier = new NullCipherNotifier(mExecutor, mSafetySource); in enable_enablesSafetySource()
136 verify(mSafetySource, times(1)).setNullCipherIssueEnabled(eq(mContext), eq(true)); in enable_enablesSafetySource()
141 NullCipherNotifier notifier = new NullCipherNotifier(mExecutor, mSafetySource); in disable_disablesSafetySource()
147 verify(mSafetySource, times(1)).setNullCipherIssueEnabled(eq(mContext), eq(false)); in disable_disablesSafetySource()
152 NullCipherNotifier notifier = new NullCipherNotifier(mExecutor, mSafetySource); in onSecurityAlgorithmUpdate_enabled_unprotectedEmergency_noSafetySourceUpdate()
165 verify(mSafetySource, never()).setNullCipherState(any(), anyInt(), anyInt()); in onSecurityAlgorithmUpdate_enabled_unprotectedEmergency_noSafetySourceUpdate()
[all …]
DCellularNetworkSecuritySafetySourceTest.java102 mSafetySource = new CellularNetworkSecuritySafetySource(mSafetyCenterManagerWrapper); in setUp()
117 mSafetySource.setNullCipherIssueEnabled(mContext, false); in disableNullCipherIssue_nullData()
126 mSafetySource.setNullCipherIssueEnabled(mContext, true); in enableNullCipherIssue_statusWithoutIssues()
137 mSafetySource.setNullCipherIssueEnabled(mContext, true); in setNullCipherState_encrypted_statusWithoutIssue()
138 mSafetySource.setNullCipherState(mContext, 0, NULL_CIPHER_STATE_ENCRYPTED); in setNullCipherState_encrypted_statusWithoutIssue()
149 mSafetySource.setNullCipherIssueEnabled(mContext, true); in setNullCipherState_notifyEncrypted_statusWithIssue()
150 mSafetySource.setNullCipherState(mContext, 0, NULL_CIPHER_STATE_NOTIFY_ENCRYPTED); in setNullCipherState_notifyEncrypted_statusWithIssue()
161 mSafetySource.setNullCipherIssueEnabled(mContext, true); in setNullCipherState_notifyNonEncrypted_statusWithIssue()
162 mSafetySource.setNullCipherState(mContext, 0, NULL_CIPHER_STATE_NOTIFY_NON_ENCRYPTED); in setNullCipherState_notifyNonEncrypted_statusWithIssue()
173 mSafetySource.setNullCipherIssueEnabled(mContext, true); in setNullCipherState_multipleNonEncrypted_statusWithTwoIssues()
[all …]
DCellularIdentifierDisclosureNotifierTest.java57 private CellularNetworkSecuritySafetySource mSafetySource; field in CellularIdentifierDisclosureNotifierTest
72 mSafetySource = mock(CellularNetworkSecuritySafetySource.class); in setUp()
77 mInOrder = inOrder(mSafetySource); in setUp()
85 verify(mSafetySource, never()).setIdentifierDisclosureIssueEnabled(any(), anyBoolean()); in testInitializeDisabled()
95 verify(mSafetySource, never()) in testDisableAddDisclosureNop()
114 verify(mSafetySource, never()) in testAddDisclosureEmergencyNop()
128 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureCountIncrements()
130 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureCountIncrements()
132 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureCountIncrements()
145 mInOrder.verify(mSafetySource, times(1)) in testSingleDisclosureStartAndEndTimesAreEqual()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/security/
DCellularIdentifierDisclosureNotifier.java56 private final CellularNetworkSecuritySafetySource mSafetySource; field in CellularIdentifierDisclosureNotifier
96 mSafetySource = safetySource; in CellularIdentifierDisclosureNotifier()
228 mSafetySource.setIdentifierDisclosure( in incrementAndNotify()
243 mSafetySource.setIdentifierDisclosureIssueEnabled(context, false);
250 mSafetySource.setIdentifierDisclosureIssueEnabled(context, true);
381 mSafetySource.clearIdentifierDisclosure(context, mSubId);
DNullCipherNotifier.java57 private final CellularNetworkSecuritySafetySource mSafetySource; field in NullCipherNotifier
87 mSafetySource = safetySource; in NullCipherNotifier()
118 mSafetySource.setNullCipherState(context, subId, nullCipherState); in onSecurityAlgorithmUpdate()
161 mSafetySource.clearNullCipherState(context, oldSubId); in maybeUpdateSubscriptionMapping()
202 mSafetySource.setNullCipherIssueEnabled(context, enabled); in scheduleOnEnabled()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java290 protected CellularNetworkSecuritySafetySource mSafetySource; field in TelephonyTest
577 mSafetySource = Mockito.mock(CellularNetworkSecuritySafetySource.class); in setUp()
698 doReturn(mSafetySource).when(mTelephonyComponentFactory) in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaPhone.java305 private CellularNetworkSecuritySafetySource mSafetySource; field in GsmCdmaPhone
549 mSafetySource = in initOnce()
561 .makeIdentifierDisclosureNotifier(mSafetySource); in initOnce()
574 .makeNullCipherNotifier(mSafetySource); in initOnce()
5497 mSafetySource.refresh(mContext, refreshBroadcastId); in refreshSafetySources()