Home
last modified time | relevance | path

Searched refs:mPersistMmsAtomsStorage (Results 1 – 4 of 4) sorted by relevance

/packages/services/Mms/tests/unittests/src/com/android/mms/service/metrics/
DMmsMetricsCollectorTest.java50 private PersistMmsAtomsStorage mPersistMmsAtomsStorage; field in MmsMetricsCollectorTest
56 mPersistMmsAtomsStorage = mock(PersistMmsAtomsStorage.class); in setUp()
57 mMmsMetricsCollector = new MmsMetricsCollector(mContext, mPersistMmsAtomsStorage); in setUp()
63 mPersistMmsAtomsStorage = null; in tearDown()
69 doReturn(new ArrayList<>()).when(mPersistMmsAtomsStorage).getIncomingMms(anyLong()); in onPullAtom_incomingMms_empty()
80 doReturn(null).when(mPersistMmsAtomsStorage).getIncomingMms(anyLong()); in onPullAtom_incomingMms_tooFrequent()
87 verify(mPersistMmsAtomsStorage, times(1)) in onPullAtom_incomingMms_tooFrequent()
89 verifyNoMoreInteractions(mPersistMmsAtomsStorage); in onPullAtom_incomingMms_tooFrequent()
96 .when(mPersistMmsAtomsStorage).getIncomingMms(anyLong()); in onPullAtom_incomingMms_multipleMms()
107 doReturn(new ArrayList<>()).when(mPersistMmsAtomsStorage).getOutgoingMms(anyLong()); in onPullAtom_outgoingMms_empty()
[all …]
DMmsStatsTest.java50 private PersistMmsAtomsStorage mPersistMmsAtomsStorage; field in MmsStatsTest
57 mPersistMmsAtomsStorage = mock(PersistMmsAtomsStorage.class); in setUp()
68 mPersistMmsAtomsStorage = null; in tearDown()
77 MmsStats mmsStats = new MmsStats(mContext, mPersistMmsAtomsStorage, inactiveSubId, in addAtomToStorage_incomingMms_default()
82 verify(mPersistMmsAtomsStorage).addIncomingMms(incomingMmsCaptor.capture()); in addAtomToStorage_incomingMms_default()
97 verifyNoMoreInteractions(mPersistMmsAtomsStorage); in addAtomToStorage_incomingMms_default()
105 MmsStats mmsStats = new MmsStats(mContext, mPersistMmsAtomsStorage, inactiveSubId, in addAtomToStorage_outgoingMms_default()
110 verify(mPersistMmsAtomsStorage).addOutgoingMms(outgoingMmsCaptor.capture()); in addAtomToStorage_outgoingMms_default()
126 verifyNoMoreInteractions(mPersistMmsAtomsStorage); in addAtomToStorage_outgoingMms_default()
133 MmsStats mmsStats = new MmsStats(mContext, mPersistMmsAtomsStorage, 1, in getDataRoamingType_serviceState_notNull()
[all …]
/packages/services/Mms/src/com/android/mms/service/metrics/
DMmsStats.java51 private final PersistMmsAtomsStorage mPersistMmsAtomsStorage; field in MmsStats
61 mPersistMmsAtomsStorage = persistMmsAtomsStorage; in MmsStats()
117 mPersistMmsAtomsStorage.addIncomingMms(incomingMms); in onIncomingMms()
138 mPersistMmsAtomsStorage.addOutgoingMms(outgoingMms); in onOutgoingMms()
/packages/services/Mms/tests/robotests/src/com/android/mms/service/
DMmsRequestRoboTest.java62 private PersistMmsAtomsStorage mPersistMmsAtomsStorage; field in MmsRequestRoboTest
82 mPersistMmsAtomsStorage = mock(PersistMmsAtomsStorage.class); in setUp()
83 mMmsStats = new MmsStats(mContext, mPersistMmsAtomsStorage, mSubId, in setUp()