Home
last modified time | relevance | path

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

/frameworks/av/services/audiopolicy/permission/tests/
DValidatedAttributionSourceStateTest.cpp56 MockPermissionProvider mMockProvider; member in ValidatedAttributionSourceStateTest
63 EXPECT_CALL(mMockProvider, validateUidPackagePair(mUid, package)).WillOnce(Return(true)); in TEST_F()
67 EXPECT_THAT(ValidatedAttributionSourceState::createFromTrustedUidNoPackage(attr, mMockProvider), in TEST_F()
73 EXPECT_CALL(mMockProvider, validateUidPackagePair(mUid, package)).WillOnce(Return(false)); in TEST_F()
77 EXPECT_THAT(ValidatedAttributionSourceState::createFromTrustedUidNoPackage(attr, mMockProvider), in TEST_F()
82 EXPECT_CALL(mMockProvider, getPackagesForUid(mUid)).WillOnce(Return(mPackageList)); in TEST_F()
88 EXPECT_THAT(ValidatedAttributionSourceState::createFromTrustedUidNoPackage(attr, mMockProvider), in TEST_F()
93 EXPECT_CALL(mMockProvider, getPackagesForUid(mUid)).WillOnce(Return(mPackageList)); in TEST_F()
100 EXPECT_THAT(ValidatedAttributionSourceState::createFromTrustedUidNoPackage(attr, mMockProvider), in TEST_F()
105 EXPECT_CALL(mMockProvider, getPackagesForUid(mUid)) in TEST_F()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java51 private @Mock IContentProvider mMockProvider; field in MediaInserterTest
96 .getContentResolver(), mMockProvider, true); in setUp()
153 verify(mMockProvider, never()).bulkInsert(eq(mAttributionSource), any(), in testInsertContentsLessThanBufferSize()
159 when(mMockProvider.bulkInsert(eq(mAttributionSource), any(), in testInsertContentsEqualToBufferSize()
167 verify(mMockProvider, times(4)).bulkInsert(eq(mAttributionSource), any(), in testInsertContentsEqualToBufferSize()
173 when(mMockProvider.bulkInsert(eq(mAttributionSource), any(), in testInsertContentsMoreThanBufferSize()
181 verify(mMockProvider, times(4)).bulkInsert(eq(mAttributionSource), any(), in testInsertContentsMoreThanBufferSize()
192 when(mMockProvider.bulkInsert(eq(mAttributionSource), any(), in testFlushAllWithSomeContents()
201 verify(mMockProvider, times(4)).bulkInsert(eq(mAttributionSource), any(), in testFlushAllWithSomeContents()
207 when(mMockProvider.bulkInsert(eq(mAttributionSource), any(), in testInsertContentsAfterFlushAll()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DMockableLocationProviderTest.java57 private MockLocationProvider mMockProvider; field in MockableLocationProviderTest
68 mMockProvider = new MockLocationProvider( in setUp()
88 mProvider.setMockProvider(mMockProvider); in testSetProvider()
89 assertThat(mProvider.getProvider()).isEqualTo(mMockProvider); in testSetProvider()
118 mProvider.setMockProvider(mMockProvider); in testSetRequest()
142 mProvider.setMockProvider(mMockProvider); in testFlush()
154 mProvider.setMockProvider(mMockProvider); in testSendExtraCommand()
170 mProvider.setMockProvider(mMockProvider); in testSetState()
175 mMockProvider.setAllowed(true); in testSetState()
197 mProvider.setMockProvider(mMockProvider); in testReportLocation()
[all …]
/frameworks/base/services/core/java/com/android/server/location/provider/
DMockableLocationProvider.java58 private @Nullable MockLocationProvider mMockProvider; field in MockableLocationProvider
119 if (mMockProvider == provider) { in setMockProvider()
123 mMockProvider = provider; in setMockProvider()
124 if (mMockProvider != null) { in setMockProvider()
125 setProviderLocked(mMockProvider); in setMockProvider()
178 return mMockProvider != null && mProvider == mMockProvider; in isMock()
189 mMockProvider.setProviderAllowed(allowed); in setMockProviderAllowed()
199 mMockProvider.setProviderLocation(location); in setMockProviderLocation()