/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityMagnificationTest.java | 74 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 …]
|
D | AccessibilitySoftKeyboardModesTest.java | 75 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 …]
|
D | AccessibilityButtonTest.java | 45 public void onClicked(AccessibilityButtonController controller) { 50 public void onAvailabilityChanged(AccessibilityButtonController controller,
|
D | MagnificationGestureHandlerTest.java | 118 (controller, region, scale, centerX, centerY) -> { in setUp()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaController2Test.java | 202 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 …]
|
D | MediaSession2Test.java | 241 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 …]
|
D | MediaSession2ServiceTest.java | 105 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 …]
|
D | MediaSessionTest.java | 102 MediaController controller = mSession.getController(); in testCreateSession() local 103 assertNotNull(controller); in testCreateSession() 104 verifyNewSession(controller); in testCreateSession() 130 MediaController controller = mSession.getController(); in testConfigureSession() local 131 controller.registerCallback(mCallback, mHandler); in testConfigureSession() 149 extrasOut = controller.getExtras(); in testConfigureSession() 155 assertEquals(5, controller.getFlags()); in testConfigureSession() 171 metadataOut = controller.getMetadata(); in testConfigureSession() 188 stateOut = controller.getPlaybackState(); in testConfigureSession() 213 assertEquals(TEST_VALUE, controller.getQueueTitle()); in testConfigureSession() [all …]
|
D | MediaSessionTestActivity.java | 36 MediaController controller = new MediaController(this, token); in onResume() local 37 setMediaController(controller); in onResume()
|
D | StubMediaSession2Service.java | 112 ControllerInfo controller) { in onGetSession() 113 if (controller.getUid() == Process.myUid()) { in onGetSession()
|
D | MediaSessionManagerTest.java | 251 MediaController controller = new MediaController(context, session.getSessionToken()); in testRemoteUserInfo() local 253 controller.dispatchMediaButtonEvent(event); in testRemoteUserInfo() 255 controller.dispatchMediaButtonEvent(event); in testRemoteUserInfo() 479 MediaSession2.ControllerInfo controller) { in onConnect() argument 480 if (controller.getUid() == Process.SYSTEM_UID) { in onConnect()
|
D | JetPlayerTest.java | 204 byte controller, byte value) { in onJetEvent() argument
|
/cts/tests/tests/telecom/CallRedirectionServiceTestApp/src/android/telecom/cts/redirectiontestapp/ |
D | CtsCallRedirectionService.java | 44 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/ |
D | GridLayoutAnimationControllerTest.java | 90 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 …]
|
D | LayoutAnimationControllerTest.java | 350 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 …]
|
D | AnimationUtilsTest.java | 80 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()
|
D | AnimationTestUtils.java | 90 final ViewGroup view, final LayoutAnimationController controller, in assertRunController() argument 94 view.setLayoutAnimation(controller); in assertRunController()
|
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/ |
D | MediaSessionManagerTest.java | 62 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/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 749 final ServiceProcessController controller = new ServiceProcessController(mContext, in testBackgroundCheckBroadcastService() local 753 final WatchUidRunner uidWatcher = controller.getUidWatcher(); in testBackgroundCheckBroadcastService() 757 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService() 760 controller.denyBackgroundOp(); in testBackgroundCheckBroadcastService() 761 controller.makeUidIdle(); in testBackgroundCheckBroadcastService() 762 controller.removeFromWhitelist(); in testBackgroundCheckBroadcastService() 784 controller.tempWhitelist(TEMP_WHITELIST_DURATION_MS); in testBackgroundCheckBroadcastService() 811 controller.removeFromTempWhitelist(); in testBackgroundCheckBroadcastService() 818 controller.makeUidIdle(); in testBackgroundCheckBroadcastService() 823 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | CtsAugmentedAutofillService.java | 189 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()
|
D | CannedAugmentedFillResponse.java | 91 @NonNull FillController controller) { in asFillResponse() argument 140 controller.autofill(values); in asFillResponse()
|
D | AugmentedHelper.java | 93 assertWithMessage("no FillController on %s", request).that(request.controller).isNotNull(); in assertBasicRequestInfo()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTestUtil.java | 156 final FragmentController[] controller = new FragmentController[1]; in createController() local 160 controller[0] = FragmentController.createController(hostCallbacks); in createController() 162 return controller[0]; in createController()
|
/cts/tools/utils/ |
D | DescriptionGenerator.java | 556 String controller = ""; in getTestMethods() local 564 controller = getAnnotationDescription(cAnnot); in getTestMethods() 583 name, method.commentText(), controller, supportedAbis, in getTestMethods() 653 TestMethod(String name, String description, String controller, Set<String> abis, in TestMethod() argument 660 mController = controller; in TestMethod()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ListViewTest.java | 564 LayoutAnimationController controller = new LayoutAnimationController( in testCanAnimate() local 566 listView.setLayoutAnimation(controller); in testCanAnimate()
|