Home
last modified time | relevance | path

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

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java150 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testInsertContentsEqualToBufferSize()
165 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testInsertContentsMoreThanBufferSize()
189 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testFlushAllWithSomeContents()
205 (Uri) EasyMock.anyObject(), (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testInsertContentsAfterFlushAll()
227 (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testInsertContentsWithDifferentSizePerContentType()
231 (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testInsertContentsWithDifferentSizePerContentType()
235 (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testInsertContentsWithDifferentSizePerContentType()
239 (ContentValues[]) EasyMock.anyObject())).andReturn(1); in testInsertContentsWithDifferentSizePerContentType()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java202 expect(mPolicyListener.asBinder()).andReturn(mStubBinder).atLeastOnce(); in setUp()
219 expect(mPowerManager.isInteractive()).andReturn(true).atLeastOnce(); in setUp()
220 expect(mNetworkManager.isBandwidthControlEnabled()).andReturn(true).atLeastOnce(); in setUp()
334 expect(mPowerManager.isInteractive()).andReturn(false).atLeastOnce(); in testScreenChangesRules()
344 expect(mPowerManager.isInteractive()).andReturn(true).atLeastOnce(); in testScreenChangesRules()
593 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in testNetworkPolicyAppliedCycleLastMonth()
606 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in testNetworkPolicyAppliedCycleLastMonth()
613 .andReturn(stats.getTotalBytes()).atLeastOnce(); in testNetworkPolicyAppliedCycleLastMonth()
674 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in testOverWarningLimitNotification()
676 .andReturn(stats.getTotalBytes()).atLeastOnce(); in testOverWarningLimitNotification()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java994 .andReturn(true); in testRegisterUsageCallback()
1072 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in expectNetworkState()
1075 expect(mConnManager.getActiveLinkProperties()).andReturn(linkProp).atLeastOnce(); in expectNetworkState()
1079 expect(mConnManager.getAllVpnInfo()).andReturn(new VpnInfo[0]).atLeastOnce(); in expectNetworkStatsSummary()
1086 expect(mNetManager.getNetworkStatsSummaryDev()).andReturn(summary).atLeastOnce(); in expectNetworkStatsSummaryDev()
1090 expect(mNetManager.getNetworkStatsSummaryXt()).andReturn(summary).atLeastOnce(); in expectNetworkStatsSummaryXt()
1100 expect(mNetManager.getNetworkStatsUidDetail(eq(UID_ALL))).andReturn(detail).atLeastOnce(); in expectNetworkStatsUidDetail()
1104 .andReturn(tetherStats).atLeastOnce(); in expectNetworkStatsUidDetail()
1113 expect(mSettings.getPollInterval()).andReturn(HOUR_IN_MILLIS).anyTimes(); in expectSettings()
1114 expect(mSettings.getTimeCacheMaxAge()).andReturn(DAY_IN_MILLIS).anyTimes(); in expectSettings()
[all …]
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java211 Behaviour andReturn(Object result); in andReturn() method
228 public Behaviour andReturn(final Object result) { in doCountDown()