Home
last modified time | relevance | path

Searched refs:controller2 (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/render/
DShadeViewDifferTest.kt42 private val controller2 = FakeController(mContext, "Controller2") constant
61 node(controller2, node(controller3), node(controller4)), in testAddInitialViews()
71 node(controller2, node(controller3), node(controller4)), in testDetachViews()
85 node(controller2, node(controller3), node(controller4)), in testReparentChildren()
94 node(controller3, node(controller2)) in testReparentChildren()
103 node(controller2), in testReorderChildren()
112 node(controller2), in testReorderChildren()
123 node(controller2, node(controller3), node(controller4), node(controller5)) in testRemovedGroupsAreBrokenApart()
133 verifyDetachingChildLogged(controller3, oldParent = controller2) in testRemovedGroupsAreBrokenApart()
134 verifyDetachingChildLogged(controller4, oldParent = controller2) in testRemovedGroupsAreBrokenApart()
[all …]
/frameworks/native/services/inputflinger/tests/
DSlopController_test.cpp33 SlopController controller2 = SlopController(/*slopThreshold=*/5, /*slopDurationNanos=*/100); in TEST() local
35 ASSERT_EQ(0, controller2.consumeEvent(1000, 5)); in TEST()
36 ASSERT_EQ(3, controller2.consumeEvent(1003, 3)); in TEST()
37 ASSERT_EQ(4, controller2.consumeEvent(1005, 4)); in TEST()
48 SlopController controller2 = SlopController(/*slopThreshold=*/5, /*slopDurationNanos=*/100); in TEST() local
50 ASSERT_EQ(0, controller2.consumeEvent(1000, -5)); in TEST()
51 ASSERT_EQ(-3, controller2.consumeEvent(1003, -3)); in TEST()
52 ASSERT_EQ(-4, controller2.consumeEvent(1005, -4)); in TEST()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaSessionBasedFilterTest.kt74 @Mock private lateinit var controller2: MediaController variable in com.android.systemui.media.controls.domain.pipeline.MediaSessionBasedFilterTest
116 whenever(controller2.getSessionToken()).thenReturn(token2) in setUp()
121 whenever(controller2.getPackageName()).thenReturn(PACKAGE) in setUp()
134 whenever(controller2.getPlaybackInfo()).thenReturn(localPlaybackInfo) in setUp()
223 val controllers = listOf(controller1, controller2) in remoteAndLocalSessions_localLoadedEventFiltered()
252 whenever(controller2.getPlaybackInfo()).thenReturn(remotePlaybackInfo) in remoteAndLocalSessions_remoteSessionWithoutNotification()
253 val controllers = listOf(controller1, controller2) in remoteAndLocalSessions_remoteSessionWithoutNotification()
272 val controllers = listOf(controller1, controller2) in remoteAndLocalHaveDifferentKeys_localLoadedEventFiltered()
305 whenever(controller2.getPlaybackInfo()).thenReturn(remotePlaybackInfo) in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification()
306 val controllers = listOf(controller1, controller2) in remoteAndLocalHaveDifferentKeys_remoteSessionWithoutNotification()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRowAppearanceCoordinatorTest.kt61 @Mock private lateinit var controller2: NotifRowController variable in com.android.systemui.statusbar.notification.collection.coordinator.RowAppearanceCoordinatorTest
90 afterRenderEntryListener.onAfterRenderEntry(entry2, controller2) in testSetSystemExpandedOnlyOnFirst()
91 verify(controller2).setSystemExpanded(eq(false)) in testSetSystemExpandedOnlyOnFirst()
101 afterRenderEntryListener.onAfterRenderEntry(entry2, controller2) in testSetSystemExpandedNeverIfMinimized()
102 verify(controller2).setSystemExpanded(eq(false)) in testSetSystemExpandedNeverIfMinimized()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DSwitchesProviderTest.java101 final TestSwitchController controller2 = new TestSwitchController(); in attachInfo_duplicateSwitchKey_shouldThrowIllegalArgumentException() local
103 controller2.setKey("123"); in attachInfo_duplicateSwitchKey_shouldThrowIllegalArgumentException()
105 controller2.setMetaData(new MetaData("category")); in attachInfo_duplicateSwitchKey_shouldThrowIllegalArgumentException()
107 mSwitchesProvider.addSwitchController(controller2); in attachInfo_duplicateSwitchKey_shouldThrowIllegalArgumentException()
115 final TestSwitchController controller2 = new TestSwitchController(); in attachInfo_hasDifferentControllers_shouldNotThrowException() local
117 controller2.setKey("456"); in attachInfo_hasDifferentControllers_shouldNotThrowException()
119 controller2.setMetaData(new MetaData("category")); in attachInfo_hasDifferentControllers_shouldNotThrowException()
121 mSwitchesProvider.addSwitchController(controller2); in attachInfo_hasDifferentControllers_shouldNotThrowException()
DEntriesProviderTest.java107 final TestEntryController controller2 = new TestEntryController(); in attachInfo_duplicateKey_shouldThrowIllegalArgumentException() local
109 controller2.setKey("123"); in attachInfo_duplicateKey_shouldThrowIllegalArgumentException()
111 controller2.setMetaData(new MetaData("category")); in attachInfo_duplicateKey_shouldThrowIllegalArgumentException()
113 mEntriesProvider.addController(controller2); in attachInfo_duplicateKey_shouldThrowIllegalArgumentException()
121 final TestEntryController controller2 = new TestEntryController(); in attachInfo_hasDifferentControllers_shouldNotThrowException() local
123 controller2.setKey("456"); in attachInfo_hasDifferentControllers_shouldNotThrowException()
125 controller2.setMetaData(new MetaData("category")); in attachInfo_hasDifferentControllers_shouldNotThrowException()
127 mEntriesProvider.addController(controller2); in attachInfo_hasDifferentControllers_shouldNotThrowException()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModelTest.kt123 val controller2 = mock(MediaController::class.java) in updateDifferentControllerRegistersCallback() constant
124 whenever(controller2.sessionToken).thenReturn(token2) in updateDifferentControllerRegistersCallback()
125 viewModel.updateController(controller2) in updateDifferentControllerRegistersCallback()
126 verify(controller2).registerCallback(any()) in updateDifferentControllerRegistersCallback()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorControlServiceTest.java122 FakeVibratorController controller2 = new FakeVibratorController(mTestLooper.getLooper()); in testUnregisterVibratorController_providingAnInvalidController_ignoresRequest() local
124 mVibratorControlService.unregisterVibratorController(controller2); in testUnregisterVibratorController_providingAnInvalidController_ignoresRequest()