Searched refs:packageManagerMock (Results 1 – 4 of 4) sorted by relevance
31 private val packageManagerMock = mock<PackageManager> {} in <lambda>() constant in com.android.car.docklib.events.DockPackageChangeReceiverTest33 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()
42 private val packageManagerMock = mock<PackageManager> {} in <lambda>() constant85 MediaUtils.fetchMediaServiceComponents(packageManagerMock, pkg) in fetchMediaServiceComponents_packageNotNull_queriesOnlyForThatPackage()87 verify(packageManagerMock).queryIntentServices(intentCaptor.capture(), anyInt()) in fetchMediaServiceComponents_packageNotNull_queriesOnlyForThatPackage()
71 private val packageManagerMock = mock<PackageManager> { in <lambda>() constant591 packageManager = packageManagerMock, in <lambda>()645 whenever(packageManagerMock.getPackageInfo(eq(pkg), any<PackageManager.PackageInfoFlags>())) in <lambda>()
1196 PackageManager packageManagerMock = mock(PackageManager.class); in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression() local1197 when(mSpyContext.getPackageManager()).thenReturn(packageManagerMock); in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression()1198 when(packageManagerMock.getPackagesForUid(Process.myUid())) in testFledgeFlowFailsWithMismatchedPackageNamesReportImpression()1359 PackageManager packageManagerMock = mock(PackageManager.class); in testFledgeFlowFailsWithWrongPackageNameReportInteraction() local1360 when(mSpyContext.getPackageManager()).thenReturn(packageManagerMock); in testFledgeFlowFailsWithWrongPackageNameReportInteraction()1361 when(packageManagerMock.getPackagesForUid(Process.myUid())) in testFledgeFlowFailsWithWrongPackageNameReportInteraction()