Home
last modified time | relevance | path

Searched refs:mockResolver (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt50 lateinit var mockResolver: DnsResolver variable in com.android.networkstack.netlink.util.DnsUtilsTest
56 fakeDns = FakeDns(mockResolver) in setup()
75 DnsUtils.getAllByName(mockResolver, fakeNetwork, name, type, FLAG_EMPTY, DEFAULT_TIMEOUT_MS, in verifyGetAllByName()
88 DnsUtils.getAllByName(mockResolver, fakeNetwork, name, type, in verifyGetAllByNameFails()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DFakeDns.kt33 class FakeDns(val mockResolver: DnsResolver) { constant in com.android.testutils.FakeDns
61 }.`when`(mockResolver).query(any() /* network */, any() /* domain */, anyInt() /* flags */, in startMocking()
66 }.`when`(mockResolver).query(any() /* network */, any() /* domain */, anyInt() /* nsType */, in startMocking()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DEventTest.java70 MockContentResolver mockResolver = new MockContentResolver(); in setUp() local
73 mockResolver.addProvider("sms", mockProvider); in setUp()
81 when(mockContext.getContentResolver()).thenReturn(mockResolver); in setUp()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java240 final MockContentResolver mockResolver = new MockContentResolver(); in selectionsAreImportedAndDisabledOnSubsequentImports() local
241 mockResolver.addProvider(SimPhonebookContract.AUTHORITY, simPhonebookProvider); in selectionsAreImportedAndDisabledOnSubsequentImports()
244 mockResolver.addProvider(ContactsContract.AUTHORITY, new ForwardingContentProvider( in selectionsAreImportedAndDisabledOnSubsequentImports()
251 mContext, mockResolver, in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java589 final MockContentResolver mockResolver = new MockContentResolver(); in setUp() local
591 mockResolver.addProvider(SimPhonebookContract.AUTHORITY, mMockSimPhonebookProvider); in setUp()
592 when(mContext.getContentResolver()).thenReturn(mockResolver); in setUp()
684 final MockContentResolver mockResolver = new MockContentResolver(); in returnsEmptyListForNullCursor() local
693 mockResolver.addProvider("icc", mockProvider); in returnsEmptyListForNullCursor()
694 when(mContext.getContentResolver()).thenReturn(mockResolver); in returnsEmptyListForNullCursor()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPickerSyncControllerTest.java1942 ContentResolver mockResolver = mock(ContentResolver.class); in createControllerWithDefaultProvider() local
1952 when(mockContext.getContentResolver()).thenReturn(mockResolver); in createControllerWithDefaultProvider()