Home
last modified time | relevance | path

Searched refs:contextMock (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/events/
DDockPackageChangeReceiverTest.kt32 private val contextMock = mock<Context> { in <lambda>() constant in com.android.car.docklib.events.DockPackageChangeReceiverTest
47 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_uidNotSent_noop()
57 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_pkgNotSend_noop()
70 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageRemoved_replacing_noop()
83 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageRemoved_notReplacing_packageRemovedCalled()
96 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageAdded_replacing_noop()
109 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageAdded_notReplacing_packageAddedCalled()
122 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageChanged_isEnabled_noop()
135 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageChanged_isDisabled_packageRemovedCalled()
148 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageChanged_isDisabledForUser_packageRemovedCalled()
/packages/apps/Car/Launcher/libs/car-launcher-common/tests/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItemTest.kt46 private val contextMock = mock<Context> { in <lambda>() constant in com.android.car.carlaunchercommon.shortcuts.ForceStopShortcutItemTest
68 contextMock, in forceStop_nonMediaApp_forceStopPackageCalled()
80 contextMock, in forceStop_nonMediaApp_shouldNotChangeMediaSource()
105 contextMock, in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_forceStopPackageCalled()
129 contextMock, in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_browseMediaSrcSet()
156 contextMock, in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_playbackMediaSrcNotSet()
182 contextMock, in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_browseMediaSrcSet()
207 contextMock, in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_noMediaService_browseMediaSrcNotSet()
234 contextMock, in forceStop_activePlaybackMediaSrc_lastPlaybackSrcFound_forceStopPackageCalled()
258 contextMock, in forceStop_activePlaybackMediaSrc_lastPlaybackSrcFound_playbackMediaSrcSet()
[all …]
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/view/
DDockItemLongClickListenerTest.kt27 private val contextMock = mock<Context> { in <lambda>() constant
31 private val viewMock = mock<View> { on { context } doReturn contextMock } in <lambda>()
95 contextMock, in createDockItemLongClickListener()
DDockAdapterTest.kt36 private val contextMock = mock<Context> {} in <lambda>() constant
37 private val dockAdapter: DockAdapter = spy(DockAdapter(dockInterfaceMock, contextMock))
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/
DDockViewModelTest.kt67 private val contextMock = mock<Context> { in <lambda>() constant
590 context = contextMock, in <lambda>()