Home
last modified time | relevance | path

Searched refs:controller (Results 1 – 24 of 24) sorted by relevance

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java74 final MagnificationController controller = mService.getMagnificationController(); in testSetScale() local
78 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testSetScale()
81 assertEquals("Failed to apply scale", scale, controller.getScale()); in testSetScale()
83 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScale()
86 assertEquals("Failed to apply reset", 1.0f, controller.getScale()); in testSetScale()
90 final MagnificationController controller = mService.getMagnificationController(); in testSetScaleAndCenter() local
91 final Region region = controller.getMagnificationRegion(); in testSetScaleAndCenter()
101 setScale.set(controller.setScale(scale, false)); in testSetScaleAndCenter()
102 setCenter.set(controller.setCenter(x, y, false)); in testSetScaleAndCenter()
106 assertEquals("Failed to apply scale", scale, controller.getScale()); in testSetScaleAndCenter()
[all …]
DAccessibilitySoftKeyboardModesTest.java75 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() local
78 assertEquals(SHOW_MODE_AUTO, controller.getShowMode()); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback()
80 controller.addOnShowModeChangedListener(mListener); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback()
86 assertTrue(controller.removeOnShowModeChangedListener(mListener)); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback()
93 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() local
95 assertEquals(SHOW_MODE_AUTO, controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService()
101 controller.addOnShowModeChangedListener(mListener); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService()
114 final int showMode = mService.getOnService(() -> controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService()
121 final SoftKeyboardController controller = service.getSoftKeyboardController(); in assertCanSetAndGetShowModeAndCallbackHappens() local
124 service.getOnService(() -> controller.setShowMode(mode)); in assertCanSetAndGetShowModeAndCallbackHappens()
[all …]
DAccessibilityButtonTest.java45 public void onClicked(AccessibilityButtonController controller) {
50 public void onAvailabilityChanged(AccessibilityButtonController controller,
DMagnificationGestureHandlerTest.java118 (controller, region, scale, centerX, centerY) -> { in setUp()
/cts/tests/tests/media/src/android/media/cts/
DMediaController2Test.java202 MediaSession2.ControllerInfo controller) { in testBuilder_setConnectionHints_withFrameworkParcelable()
203 if (controller.getUid() == Process.myUid()) { in testBuilder_setConnectionHints_withFrameworkParcelable()
204 controllerInfoList.add(controller); in testBuilder_setConnectionHints_withFrameworkParcelable()
220 MediaController2 controller = new MediaController2.Builder(mContext, session.getToken()) in testBuilder_setConnectionHints_withFrameworkParcelable() local
242 try (MediaController2 controller = new MediaController2.Builder(mContext, token) in testBuilder_setConnectionHints_withCustomParcelable() argument
253 try (MediaController2 controller = in testCreatingControllerWithoutCallback() argument
265 try (MediaController2 controller = in testGetConnectedToken() argument
270 assertEquals(controller, controllerCallback.mController); in testGetConnectedToken()
271 assertEquals(mSession.getToken(), controller.getConnectedToken()); in testGetConnectedToken()
274 controller.getConnectedToken().getExtras(); in testGetConnectedToken()
[all …]
DMediaSession2Test.java241 MediaController2 controller = in testGetConnectedControllers_newController() local
267 MediaController2 controller = in testGetConnectedControllers_closedController() local
272 controller.close(); in testGetConnectedControllers_closedController()
327 public Session2Command.Result onSessionCommand(MediaController2 controller, in testBroadcastSessionCommand()
345 public Session2Command.Result onSessionCommand(MediaController2 controller, in testBroadcastSessionCommand()
382 MediaController2 controller = in testCallback_onConnect_onDisconnect() local
401 controller.close(); in testCallback_onConnect_onDisconnect()
416 MediaController2 controller = in testCallback_onPostConnect_connected() local
431 MediaSession2.ControllerInfo controller) { in testCallback_onPostConnect_rejected()
441 MediaController2 controller = in testCallback_onPostConnect_rejected() local
[all …]
DMediaSession2ServiceTest.java105 for (MediaController2 controller : mControllers) { in cleanUp()
106 controller.close(); in cleanUp()
131 MediaController2 controller = new MediaController2.Builder(mContext, mToken) in testOnGetSessionIsCalled() local
136 mControllers.add(controller); in testOnGetSessionIsCalled()
160 ControllerInfo controller) { in testOnGetSession_returnsSession()
161 if (controller.getUid() == Process.myUid()) { in testOnGetSession_returnsSession()
162 controllerInfoList.add(controller); in testOnGetSession_returnsSession()
181 MediaController2 controller = new MediaController2.Builder(mContext, mToken) in testOnGetSession_returnsSession() local
186 mControllers.add(controller); in testOnGetSession_returnsSession()
194 assertNotEquals(mToken, controller.getConnectedToken()); in testOnGetSession_returnsSession()
[all …]
DMediaSessionTest.java103 MediaController controller = mSession.getController(); in testCreateSession() local
104 assertNotNull(controller); in testCreateSession()
105 verifyNewSession(controller); in testCreateSession()
131 MediaController controller = mSession.getController(); in testConfigureSession() local
132 controller.registerCallback(mCallback, mHandler); in testConfigureSession()
150 extrasOut = controller.getExtras(); in testConfigureSession()
156 assertEquals(5, controller.getFlags()); in testConfigureSession()
172 metadataOut = controller.getMetadata(); in testConfigureSession()
189 stateOut = controller.getPlaybackState(); in testConfigureSession()
214 assertEquals(TEST_VALUE, controller.getQueueTitle()); in testConfigureSession()
[all …]
DMediaSessionTestActivity.java36 MediaController controller = new MediaController(this, token); in onResume() local
37 setMediaController(controller); in onResume()
DStubMediaSession2Service.java112 ControllerInfo controller) { in onGetSession()
113 if (controller.getUid() == Process.myUid()) { in onGetSession()
DMediaSessionManagerTest.java252 MediaController controller = new MediaController(context, session.getSessionToken()); in testRemoteUserInfo() local
254 controller.dispatchMediaButtonEvent(event); in testRemoteUserInfo()
256 controller.dispatchMediaButtonEvent(event); in testRemoteUserInfo()
494 MediaSession2.ControllerInfo controller) { in onConnect() argument
495 if (controller.getUid() == Process.SYSTEM_UID) { in onConnect()
DJetPlayerTest.java205 byte controller, byte value) { in onJetEvent() argument
/cts/tests/tests/telecom/CallRedirectionServiceTestApp/src/android/telecom/cts/redirectiontestapp/
DCtsCallRedirectionService.java44 CtsCallRedirectionServiceController controller = in onPlaceCall() local
46 if (controller != null) { in onPlaceCall()
47 controller.setDestinationUri(handle); in onPlaceCall()
48 controller.setOriginalPhoneAccount(initialPhoneAccount); in onPlaceCall()
49 int decision = controller.getCallRedirectionDecision(); in onPlaceCall()
55 redirectCall(controller.getTargetHandle(), controller.getTargetPhoneAccount(), in onPlaceCall()
56 controller.isConfirmFirst()); in onPlaceCall()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java90 GridLayoutAnimationController controller = in testConstructor() local
93 assertEquals(DEFAULT_DELAY, controller.getRowDelay(), 0.0f); in testConstructor()
94 assertEquals(DEFAULT_DELAY, controller.getColumnDelay(), 0.0f); in testConstructor()
285 MyGridLayoutAnimationController controller = new MyGridLayoutAnimationController(animation);
327 AnimationTestUtils.assertRunController(mActivityRule, mGridView, controller,
330 assertEquals(0, controller.getDelayForView(child1));
331 assertEquals(1000, controller.getDelayForView(child2));
332 assertEquals(2000, controller.getDelayForView(child3));
333 assertEquals(1000, controller.getDelayForView(child4));
334 assertEquals(2000, controller.getDelayForView(child5));
[all …]
DLayoutAnimationControllerTest.java350 LayoutAnimationController controller = new LayoutAnimationController(mDefaultAnimation);
351 assertEquals(DEFAULT_DELAY, controller.getDelay(), 0.0f);
358 MyLayoutAnimationController controller = new MyLayoutAnimationController(animation);
376 AnimationTestUtils.assertRunController(mActivityRule, mListView, controller,
379 assertEquals(0, controller.getDelayForView(child1));
380 assertEquals(1000, controller.getDelayForView(child2));
381 assertEquals(2000, controller.getDelayForView(child3));
398 MyLayoutAnimationController controller = new MyLayoutAnimationController(animation); in testGetTransformedIndex() local
405 assertEquals(0, controller.getTransformedIndex(animationParams)); in testGetTransformedIndex()
407 assertEquals(1, controller.getTransformedIndex(animationParams)); in testGetTransformedIndex()
[all …]
DAnimationUtilsTest.java80 LayoutAnimationController controller = AnimationUtils.loadLayoutAnimation(mActivity, in testLoad() local
82 assertTrue(controller instanceof GridLayoutAnimationController); in testLoad()
83 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
84 assertEquals(0.1f, controller.getDelay(), 0.001f); in testLoad()
DAnimationTestUtils.java90 final ViewGroup view, final LayoutAnimationController controller, in assertRunController() argument
94 view.setLayoutAnimation(controller); in assertRunController()
/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java777 final ServiceProcessController controller = new ServiceProcessController(mContext, in testBackgroundCheckBroadcastService() local
781 final WatchUidRunner uidWatcher = controller.getUidWatcher(); in testBackgroundCheckBroadcastService()
785 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService()
788 controller.denyBackgroundOp(); in testBackgroundCheckBroadcastService()
789 controller.makeUidIdle(); in testBackgroundCheckBroadcastService()
790 controller.removeFromWhitelist(); in testBackgroundCheckBroadcastService()
812 controller.tempWhitelist(TEMP_WHITELIST_DURATION_MS); in testBackgroundCheckBroadcastService()
839 controller.removeFromTempWhitelist(); in testBackgroundCheckBroadcastService()
846 controller.makeUidIdle(); in testBackgroundCheckBroadcastService()
851 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService()
[all …]
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/
DMediaSessionManagerTest.java62 for (MediaController controller : controllers) { in testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper()
63 if (controller.getPackageName().equals(MEDIA_SESSION_TEST_HELPER_PKG)) { in testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper()
76 for (MediaController controller : controllers) { in testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper()
77 if (controller.getPackageName().equals(MEDIA_SESSION_TEST_HELPER_PKG)) { in testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DCtsAugmentedAutofillService.java189 FillController controller, FillCallback callback) { in onFillRequest() argument
199 cancellationSignal, controller, callback)); in onFillRequest() local
222 public final FillController controller; field in CtsAugmentedAutofillService.AugmentedFillRequest
226 FillController controller, FillCallback callback) { in AugmentedFillRequest() argument
229 this.controller = controller; in AugmentedFillRequest()
340 @NonNull CancellationSignal cancellationSignal, @NonNull FillController controller, in handleOnFillRequest() argument
343 cancellationSignal, controller, callback); in handleOnFillRequest()
382 controller); in handleOnFillRequest()
DCannedAugmentedFillResponse.java91 @NonNull FillController controller) { in asFillResponse() argument
140 controller.autofill(values); in asFillResponse()
DAugmentedHelper.java93 assertWithMessage("no FillController on %s", request).that(request.controller).isNotNull(); in assertBasicRequestInfo()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTestUtil.java156 final FragmentController[] controller = new FragmentController[1]; in createController() local
160 controller[0] = FragmentController.createController(hostCallbacks); in createController()
162 return controller[0]; in createController()
/cts/tests/tests/widget/src/android/widget/cts/
DListViewTest.java564 LayoutAnimationController controller = new LayoutAnimationController( in testCanAnimate() local
566 listView.setLayoutAnimation(controller); in testCanAnimate()