Home
last modified time | relevance | path

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

/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/events/
DDockPackageChangeReceiverTest.kt31 private val packageManagerMock = mock<PackageManager> {} in <lambda>() constant in com.android.car.docklib.events.DockPackageChangeReceiverTest
33 on { packageManager } doReturn packageManagerMock in <lambda>()
119 whenever(packageManagerMock.getApplicationEnabledSetting(eq(TEST_PKG_NAME))) in onReceive_actionPackageChanged_isEnabled_noop()
132 whenever(packageManagerMock.getApplicationEnabledSetting(eq(TEST_PKG_NAME))) in onReceive_actionPackageChanged_isDisabled_packageRemovedCalled()
145 whenever(packageManagerMock.getApplicationEnabledSetting(eq(TEST_PKG_NAME))) in onReceive_actionPackageChanged_isDisabledForUser_packageRemovedCalled()
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/media/
DMediaUtilsTest.kt42 private val packageManagerMock = mock<PackageManager> {} in <lambda>() constant
85 MediaUtils.fetchMediaServiceComponents(packageManagerMock, pkg) in fetchMediaServiceComponents_packageNotNull_queriesOnlyForThatPackage()
87 verify(packageManagerMock).queryIntentServices(intentCaptor.capture(), anyInt()) in fetchMediaServiceComponents_packageNotNull_queriesOnlyForThatPackage()
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/
DDockViewModelTest.kt71 private val packageManagerMock = mock<PackageManager> { in <lambda>() constant
591 packageManager = packageManagerMock, in <lambda>()
645 whenever(packageManagerMock.getPackageInfo(eq(pkg), any<PackageManager.PackageInfoFlags>())) in <lambda>()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeE2ETest.java1196 PackageManager packageManagerMock = mock(PackageManager.class); in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression() local
1197 when(mSpyContext.getPackageManager()).thenReturn(packageManagerMock); in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression()
1198 when(packageManagerMock.getPackagesForUid(Process.myUid())) in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression()
1359 PackageManager packageManagerMock = mock(PackageManager.class); in testFledgeFlowFailsWithWrongPackageNameReportInteraction() local
1360 when(mSpyContext.getPackageManager()).thenReturn(packageManagerMock); in testFledgeFlowFailsWithWrongPackageNameReportInteraction()
1361 when(packageManagerMock.getPackagesForUid(Process.myUid())) in testFledgeFlowFailsWithWrongPackageNameReportInteraction()