/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityMagnificationTest.java | 116 final MagnificationController controller = mService.getMagnificationController(); in testSetScale() local 120 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testSetScale() 123 assertEquals("Failed to apply scale", scale, controller.getScale(), 0f); in testSetScale() 125 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScale() 128 assertEquals("Failed to apply reset", 1.0f, controller.getScale(), 0f); in testSetScale() 133 final MagnificationController controller = mService.getMagnificationController(); in testSetScaleAndCenter() local 134 final Region region = controller.getMagnificationRegion(); in testSetScaleAndCenter() 144 setScale.set(controller.setScale(scale, false)); in testSetScaleAndCenter() 145 setCenter.set(controller.setCenter(x, y, false)); in testSetScaleAndCenter() 149 assertEquals("Failed to apply scale", scale, controller.getScale(), 0f); in testSetScaleAndCenter() [all …]
|
D | AccessibilitySoftKeyboardTest.java | 90 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() local 93 assertEquals(SHOW_MODE_AUTO, controller.getShowMode()); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 95 controller.addOnShowModeChangedListener(mListener); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 101 assertTrue(controller.removeOnShowModeChangedListener(mListener)); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 108 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() local 110 assertEquals(SHOW_MODE_AUTO, controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 116 controller.addOnShowModeChangedListener(mListener); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 129 final int showMode = mService.getOnService(() -> controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 135 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testSwitchToInputMethod() local 142 final boolean success = controller.switchToInputMethod(Ime1Constants.IME_ID); in testSwitchToInputMethod() [all …]
|
D | AccessibilityButtonTest.java | 63 public void onClicked(AccessibilityButtonController controller) { 68 public void onAvailabilityChanged(AccessibilityButtonController controller,
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowInsetsAnimationUtils.java | 56 public void onReady(@NonNull WindowInsetsAnimationController controller, in requestControlThenTransitionToVisibility() 58 mAnimator = runTransition(controller, show); in requestControlThenTransitionToVisibility() 63 @NonNull WindowInsetsAnimationController controller) { in requestControlThenTransitionToVisibility() 68 @Nullable WindowInsetsAnimationController controller) { in requestControlThenTransitionToVisibility() 76 private static ValueAnimator runTransition(WindowInsetsAnimationController controller, in runTransition() argument 80 show ? controller.getHiddenStateInsets() in runTransition() 81 : controller.getShownStateInsets(), in runTransition() 82 show ? controller.getShownStateInsets() in runTransition() 83 : controller.getHiddenStateInsets() in runTransition() 87 if (!controller.isReady()) { in runTransition() [all …]
|
/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/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 | SystemMediaRouter2Test.java | 186 RoutingController controller = mSystemRouter2ForCts.getSystemController(); in testGetSystemController() local 187 assertNotNull(controller); in testGetSystemController() 189 assertSame(controller, mSystemRouter2ForCts.getSystemController()); in testGetSystemController() 521 public void onStop(RoutingController controller) { in testTransferToTwice() 644 public void onStop(RoutingController controller) { in testStop() 646 || !TextUtils.equals(controllers.get(0).getId(), controller.getId())) { in testStop() 655 public void onControllerUpdated(RoutingController controller) { in testStop() 657 || !TextUtils.equals(controllers.get(0).getId(), controller.getId())) { in testStop() 671 RoutingController controller = controllers.get(0); in testStop() local 681 controller.selectRoute(routeToSelect); in testStop() [all …]
|
D | MediaRouter2Test.java | 326 public void onStop(RoutingController controller) { in testTransferToTwice() 500 public void onControllerUpdated(MediaRouter2.RoutingController controller) { in testSetSessionVolume() 501 if (!TextUtils.equals(targetController.getId(), controller.getId())) { in testSetSessionVolume() 504 if (controller.getVolume() == targetVolume) { in testSetSessionVolume() 602 public void onControllerUpdated(RoutingController controller) { in testRoutingControllerSelectAndDeselectRoute() 604 || !TextUtils.equals(controllers.get(0).getId(), controller.getId())) { in testRoutingControllerSelectAndDeselectRoute() 609 assertEquals(2, controller.getSelectedRoutes().size()); in testRoutingControllerSelectAndDeselectRoute() 610 assertTrue(getOriginalRouteIds(controller.getSelectedRoutes()) in testRoutingControllerSelectAndDeselectRoute() 612 assertTrue(getOriginalRouteIds(controller.getSelectedRoutes()) in testRoutingControllerSelectAndDeselectRoute() 614 assertFalse(getOriginalRouteIds(controller.getSelectableRoutes()) in testRoutingControllerSelectAndDeselectRoute() [all …]
|
D | MediaSessionTest.java | 116 MediaController controller = mSession.getController(); in testCreateSession() local 117 assertNotNull(controller); in testCreateSession() 118 verifyNewSession(controller); in testCreateSession() 170 MediaController controller = mSession.getController(); in testConfigureSession() local 171 controller.registerCallback(mCallback, mHandler); in testConfigureSession() 189 extrasOut = controller.getExtras(); in testConfigureSession() 195 assertEquals(5, controller.getFlags()); in testConfigureSession() 211 metadataOut = controller.getMetadata(); in testConfigureSession() 228 stateOut = controller.getPlaybackState(); in testConfigureSession() 253 assertEquals(TEST_VALUE, controller.getQueueTitle()); in testConfigureSession() [all …]
|
D | MediaSessionTestActivity.java | 104 MediaController controller = new MediaController(this, token); in setMediaControllerIfInForeground() local 105 setMediaController(controller); in setMediaControllerIfInForeground()
|
D | StubMediaSession2Service.java | 112 ControllerInfo controller) { in onGetSession() 113 if (controller.getUid() == Process.myUid()) { in onGetSession()
|
D | MediaRoute2ProviderServiceTest.java | 397 public void onControllerUpdated(RoutingController controller) { in testSessionRelatedCallbacks() 398 List<MediaRoute2Info> selectedRoutes = controller.getSelectedRoutes(); in testSessionRelatedCallbacks() 433 RoutingController controller = controllers.get(0); in testSessionRelatedCallbacks() local 435 controller.selectRoute(routes.get(ROUTE_ID4_TO_SELECT_AND_DESELECT)); in testSessionRelatedCallbacks() 439 controller.deselectRoute(routes.get(ROUTE_ID4_TO_SELECT_AND_DESELECT)); in testSessionRelatedCallbacks() 449 controller.release(); in testSessionRelatedCallbacks() 506 public void onStop(RoutingController controller){ in testNotifySessionReleased() 507 if (SESSION_ID_1.equals(controller.getOriginalId())) { in testNotifySessionReleased() 508 assertTrue(controller.isReleased()); in testNotifySessionReleased()
|
/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/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarActivity.java | 68 final WindowInsetsController controller = in setLightBarAppearance() local 70 int appearance = controller.getSystemBarsAppearance(); in setLightBarAppearance() 76 controller.setSystemBarsAppearance(appearance, appearanceFlag); in setLightBarAppearance()
|
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/ |
D | MediaSessionManagerTest.java | 66 for (MediaController controller : controllers) { in testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper() 67 if (controller.getPackageName().equals(MEDIA_SESSION_TEST_HELPER_PKG)) { in testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper() 81 for (MediaController controller : controllers) { in testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper() 82 if (controller.getPackageName().equals(MEDIA_SESSION_TEST_HELPER_PKG)) { in testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 821 final ServiceProcessController controller = new ServiceProcessController(mContext, in testBackgroundCheckBroadcastService() local 825 final WatchUidRunner uidWatcher = controller.getUidWatcher(); in testBackgroundCheckBroadcastService() 829 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService() 832 controller.denyBackgroundOp(); in testBackgroundCheckBroadcastService() 833 controller.makeUidIdle(); in testBackgroundCheckBroadcastService() 834 controller.removeFromWhitelist(); in testBackgroundCheckBroadcastService() 858 controller.tempWhitelist(TEMP_WHITELIST_DURATION_MS); in testBackgroundCheckBroadcastService() 886 controller.removeFromTempWhitelist(); in testBackgroundCheckBroadcastService() 893 controller.makeUidIdle(); in testBackgroundCheckBroadcastService() 898 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsAnimationControllerTests.java | 210 OnControllableInsetsChangedListener listener = (controller, controllableTypes) -> { in awaitControl() 655 public void onReady(@NonNull WindowInsetsAnimationController controller, int types) { in onReady() argument 656 mController = controller; in onReady() 660 mErrorCollector.checkThat(controller, notNullValue()); in onReady() 662 mErrorCollector.checkThat("isReady", controller.isReady(), is(true)); in onReady() 663 mErrorCollector.checkThat("isFinished", controller.isFinished(), is(false)); in onReady() 664 mErrorCollector.checkThat("isCancelled", controller.isCancelled(), is(false)); in onReady() 669 public void onFinished(@NonNull WindowInsetsAnimationController controller) { in onFinished() argument 670 mErrorCollector.checkThat(controller, notNullValue()); in onFinished() 671 mErrorCollector.checkThat(controller, sameInstance(mController)); in onFinished() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ImeInsetsControllerTest.java | 134 @NonNull WindowInsetsController controller, int typeMask) { in testChangeSizeWhileControlling() 137 controller.controlWindowInsetsAnimation(ime(), -1, null, null, in testChangeSizeWhileControlling() 188 @NonNull WindowInsetsAnimationController controller, in createControlListener() 190 outController[0] = controller; in createControlListener() 196 @NonNull WindowInsetsAnimationController controller) { in createControlListener() 201 @Nullable WindowInsetsAnimationController controller) { in createControlListener()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | CtsAugmentedAutofillService.java | 212 FillController controller, FillCallback callback) { in onFillRequest() argument 222 cancellationSignal, controller, callback)); in onFillRequest() local 245 public final FillController controller; field in AugmentedFillRequest 249 FillController controller, FillCallback callback) { in AugmentedFillRequest() argument 252 this.controller = controller; in AugmentedFillRequest() 363 @NonNull CancellationSignal cancellationSignal, @NonNull FillController controller, in handleOnFillRequest() argument 366 cancellationSignal, controller, callback); in handleOnFillRequest() 405 controller); in handleOnFillRequest()
|
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
D | RemoteDpc.java | 152 public static RemoteDpc forDevicePolicyController(DevicePolicyController controller) { in forDevicePolicyController() argument 153 if (controller == null) { in forDevicePolicyController() 156 if (!controller.componentName().equals(DPC_COMPONENT_NAME)) { in forDevicePolicyController() 158 + controller); in forDevicePolicyController() 161 return new RemoteDpc(controller); in forDevicePolicyController()
|