/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityMagnificationTest.java | 216 final MagnificationController controller = mService.getMagnificationController(); in testSetScale() local 220 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testSetScale() 223 assertEquals("Failed to apply scale", scale, controller.getScale(), 0f); in testSetScale() 225 mService.runOnServiceSync(() -> result.set(controller.reset(false))); in testSetScale() 228 assertEquals("Failed to apply reset", 1.0f, controller.getScale(), 0f); in testSetScale() 233 final MagnificationController controller = mService.getMagnificationController(); in testSetScaleAndCenter() local 234 final Region region = controller.getMagnificationRegion(); in testSetScaleAndCenter() 244 setScale.set(controller.setScale(scale, false)); in testSetScaleAndCenter() 245 setCenter.set(controller.setCenter(x, y, false)); in testSetScaleAndCenter() 249 assertEquals("Failed to apply scale", scale, controller.getScale(), 0f); in testSetScaleAndCenter() [all …]
|
D | AccessibilitySoftKeyboardTest.java | 102 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() local 105 assertEquals(SHOW_MODE_AUTO, controller.getShowMode()); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 107 controller.addOnShowModeChangedListener(mListener); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 113 assertTrue(controller.removeOnShowModeChangedListener(mListener)); in testApiReturnValues_shouldChangeValueOnRequestAndSendCallback() 120 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() local 122 assertEquals(SHOW_MODE_AUTO, controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 128 controller.addOnShowModeChangedListener(mListener); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 141 final int showMode = mService.getOnService(() -> controller.getShowMode()); in secondServiceChangingTheShowMode_updatesModeAndNotifiesFirstService() 147 final SoftKeyboardController controller = mService.getSoftKeyboardController(); in testSwitchToInputMethod() local 154 final boolean success = controller.switchToInputMethod(Ime1Constants.IME_ID); in testSwitchToInputMethod() [all …]
|
D | FullScreenMagnificationControllerTest.java | 129 final MagnificationController controller = mService.getMagnificationController(); in zoomIn() local 130 final Rect rect = controller.getMagnificationRegion().getBounds(); in zoomIn() 142 setConfig.set(controller.setMagnificationConfig(config, false)); in zoomIn() 144 waitUntilMagnificationConfigEquals(controller, config); in zoomIn() 150 final MagnificationController controller = mService.getMagnificationController(); in currentScale() local 151 final MagnificationConfig config = controller.getMagnificationConfig(); in currentScale() 159 AccessibilityService.MagnificationController controller, in waitUntilMagnificationConfigEquals() argument 163 + controller.getMagnificationConfig(), TIMEOUT_CONFIG_SECONDS, in waitUntilMagnificationConfigEquals() 165 final MagnificationConfig actualConfig = controller.getMagnificationConfig(); in waitUntilMagnificationConfigEquals()
|
/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() 56 redirectCall(controller.getTargetHandle(), controller.getTargetPhoneAccount(), in onPlaceCall() 57 controller.isConfirmFirst()); in onPlaceCall() 59 controller.onPlaceCallInvoked(); in onPlaceCall() 68 CtsCallRedirectionServiceController controller = in onRedirectionTimeout() local 70 if (controller != null) { in onRedirectionTimeout() [all …]
|
/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/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaController2Test.java | 191 MediaSession2.ControllerInfo controller) { in testBuilder_setConnectionHints_withFrameworkParcelable() 192 if (controller.getUid() == Process.myUid()) { in testBuilder_setConnectionHints_withFrameworkParcelable() 193 controllerInfoList.add(controller); in testBuilder_setConnectionHints_withFrameworkParcelable() 209 MediaController2 controller = new MediaController2.Builder(mContext, session.getToken()) in testBuilder_setConnectionHints_withFrameworkParcelable() local 240 try (MediaController2 controller = in testCreatingControllerWithoutCallback() argument 252 try (MediaController2 controller = in testGetConnectedToken() argument 257 assertThat(controllerCallback.mController).isEqualTo(controller); in testGetConnectedToken() 258 assertThat(controller.getConnectedToken()).isEqualTo(mSession.getToken()); in testGetConnectedToken() 261 controller.getConnectedToken().getExtras(); in testGetConnectedToken() 274 try (MediaController2 controller = in testCallback_onConnected_onDisconnected() argument [all …]
|
D | MediaSession2Test.java | 228 MediaController2 controller = in testGetConnectedControllers_newController() local 254 MediaController2 controller = in testGetConnectedControllers_closedController() local 259 controller.close(); in testGetConnectedControllers_closedController() 312 public Session2Command.Result onSessionCommand(MediaController2 controller, in testBroadcastSessionCommand() 330 public Session2Command.Result onSessionCommand(MediaController2 controller, in testBroadcastSessionCommand() 367 MediaController2 controller = in testCallback_onConnect_onDisconnect() local 387 controller.close(); in testCallback_onConnect_onDisconnect() 402 MediaController2 controller = in testCallback_onPostConnect_connected() local 417 MediaSession2.ControllerInfo controller) { in testCallback_onPostConnect_rejected() 427 MediaController2 controller = in testCallback_onPostConnect_rejected() local [all …]
|
D | MediaSession2ServiceTest.java | 102 for (MediaController2 controller : mControllers) { in cleanUp() 103 controller.close(); in cleanUp() 128 MediaController2 controller = new MediaController2.Builder(mContext, mToken) in testOnGetSessionIsCalled() local 133 mControllers.add(controller); in testOnGetSessionIsCalled() 159 ControllerInfo controller) { in testOnGetSession_returnsSession() 160 if (controller.getUid() == Process.myUid()) { in testOnGetSession_returnsSession() 161 controllerInfoList.add(controller); in testOnGetSession_returnsSession() 180 MediaController2 controller = new MediaController2.Builder(mContext, mToken) in testOnGetSession_returnsSession() local 185 mControllers.add(controller); in testOnGetSession_returnsSession() 195 assertThat(controller.getConnectedToken()).isNotEqualTo(mToken); in testOnGetSession_returnsSession() [all …]
|
D | SystemMediaRouter2Test.java | 268 RoutingController controller = mSystemRouter2ForCts.getSystemController(); in testGetSystemController() local 269 assertThat(controller).isNotNull(); in testGetSystemController() 271 assertThat(controller).isSameInstanceAs(mSystemRouter2ForCts.getSystemController()); in testGetSystemController() 697 public void onControllerUpdated(@NonNull RoutingController controller) { in adjustSelectedRouteVolume_invokesOnControllerUpdated() 699 controller.getId(), in adjustSelectedRouteVolume_invokesOnControllerUpdated() 704 controller.getSelectedRoutes().get(0); in adjustSelectedRouteVolume_invokesOnControllerUpdated() 988 public void onStop(RoutingController controller) { in testTransferToTwice() 1111 public void onStop(RoutingController controller) { in testStop() 1113 || !TextUtils.equals(controllers.get(0).getId(), controller.getId())) { in testStop() 1123 public void onControllerUpdated(RoutingController controller) { in testStop() [all …]
|
D | MediaRouter2Test.java | 424 public void onStop(RoutingController controller) { in testTransferToTwice() 602 public void onControllerUpdated(MediaRouter2.RoutingController controller) { in testSetSessionVolume() 603 if (!TextUtils.equals(targetController.getId(), controller.getId())) { in testSetSessionVolume() 606 if (controller.getVolume() == targetVolume) { in testSetSessionVolume() 833 public void onControllerUpdated(RoutingController controller) { in testRoutingControllerSelectAndDeselectRoute() 835 || !TextUtils.equals(controllers.get(0).getId(), controller.getId())) { in testRoutingControllerSelectAndDeselectRoute() 840 assertThat(controller.getSelectedRoutes()).hasSize(2); in testRoutingControllerSelectAndDeselectRoute() 841 assertThat(getOriginalRouteIds(controller.getSelectedRoutes())) in testRoutingControllerSelectAndDeselectRoute() 843 assertThat(getOriginalRouteIds(controller.getSelectedRoutes())) in testRoutingControllerSelectAndDeselectRoute() 845 assertThat(getOriginalRouteIds(controller.getSelectableRoutes())) in testRoutingControllerSelectAndDeselectRoute() [all …]
|
D | MediaSessionTest.java | 182 MediaController controller = mSession.getController(); in testCreateSession() local 183 assertThat(controller).isNotNull(); in testCreateSession() 184 verifyNewSession(controller); in testCreateSession() 242 MediaController controller = mSession.getController(); in testConfigureSession() local 243 controller.registerCallback(mCallback, mHandler); in testConfigureSession() 261 extrasOut = controller.getExtras(); in testConfigureSession() 267 assertThat(controller.getFlags()).isEqualTo(5); in testConfigureSession() 283 metadataOut = controller.getMetadata(); in testConfigureSession() 300 stateOut = controller.getPlaybackState(); in testConfigureSession() 325 assertThat(controller.getQueueTitle()).isEqualTo(TEST_VALUE); in testConfigureSession() [all …]
|
D | MediaSessionTestActivity.java | 102 MediaController controller = new MediaController(this, token); in setMediaControllerIfInForeground() local 103 setMediaController(controller); in setMediaControllerIfInForeground()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 101 GridLayoutAnimationController controller = in testConstructor() local 104 assertEquals(DEFAULT_DELAY, controller.getRowDelay(), 0.0f); in testConstructor() 105 assertEquals(DEFAULT_DELAY, controller.getColumnDelay(), 0.0f); in testConstructor() 296 MyGridLayoutAnimationController controller = new MyGridLayoutAnimationController(animation); 338 AnimationTestUtils.assertRunController(mActivityRule, mGridView, controller, 341 assertEquals(0, controller.getDelayForView(child1)); 342 assertEquals(1000, controller.getDelayForView(child2)); 343 assertEquals(2000, controller.getDelayForView(child3)); 344 assertEquals(1000, controller.getDelayForView(child4)); 345 assertEquals(2000, controller.getDelayForView(child5)); [all …]
|
D | LayoutAnimationControllerTest.java | 361 LayoutAnimationController controller = new LayoutAnimationController(mDefaultAnimation); 362 assertEquals(DEFAULT_DELAY, controller.getDelay(), 0.0f); 369 MyLayoutAnimationController controller = new MyLayoutAnimationController(animation); 387 AnimationTestUtils.assertRunController(mActivityRule, mListView, controller, 390 assertEquals(0, controller.getDelayForView(child1)); 391 assertEquals(1000, controller.getDelayForView(child2)); 392 assertEquals(2000, controller.getDelayForView(child3)); 409 MyLayoutAnimationController controller = new MyLayoutAnimationController(animation); in testGetTransformedIndex() local 416 assertEquals(0, controller.getTransformedIndex(animationParams)); in testGetTransformedIndex() 418 assertEquals(1, controller.getTransformedIndex(animationParams)); in testGetTransformedIndex() [all …]
|
D | AnimationUtilsTest.java | 102 LayoutAnimationController controller = AnimationUtils.loadLayoutAnimation(mActivity, in testLoad() local 104 assertTrue(controller instanceof GridLayoutAnimationController); in testLoad() 105 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad() 106 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/app/src/android/app/cts/ |
D | ActivityManagerFgsDelegateTest.java | 282 MediaController controller = getMediaControllerForActiveSession(); in testAppInBgWithActivePlayingMediaSessionWithMediaControllerAndNotificationGoesToFgs() local 283 controller.getTransportControls().play(); in testAppInBgWithActivePlayingMediaSessionWithMediaControllerAndNotificationGoesToFgs() 374 MediaController controller = getMediaControllerForActiveSession(); in testAppInBgWithActiveStoppedMediaSessionWithMediaControllerAndNotificationIsStillInBg() local 375 controller.getTransportControls().stop(); in testAppInBgWithActiveStoppedMediaSessionWithMediaControllerAndNotificationIsStillInBg() 400 MediaController controller = getMediaControllerForActiveSession(); in testAppInBgWithNonActivePlayingMediaSessionWithMediaControllerAndNotificationIsStillInBg() local 403 controller.getTransportControls().play(); in testAppInBgWithNonActivePlayingMediaSessionWithMediaControllerAndNotificationIsStillInBg() 427 MediaController controller = getMediaControllerForActiveSession(); in testAppInBgWithActivePlayingMediaSessionWithMediaControllerAndNoNotificationIsStillInBg() local 428 controller.getTransportControls().play(); in testAppInBgWithActivePlayingMediaSessionWithMediaControllerAndNoNotificationIsStillInBg() 479 MediaController controller = getMediaControllerForActiveSession(); in testAppInFgWithActivePlayingMediaSessionWithMediaControllerAndNotificationGoesToBgGoesToFgs() local 480 controller.getTransportControls().play(); in testAppInFgWithActivePlayingMediaSessionWithMediaControllerAndNotificationGoesToBgGoesToFgs() [all …]
|
D | ActivityManagerProcessStateTest.java | 864 final ServiceProcessController controller = new ServiceProcessController(mContext, in testBackgroundCheckBroadcastService() local 868 final WatchUidRunner uidWatcher = controller.getUidWatcher(); in testBackgroundCheckBroadcastService() 872 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService() 875 controller.denyBackgroundOp(); in testBackgroundCheckBroadcastService() 876 controller.makeUidIdle(); in testBackgroundCheckBroadcastService() 877 controller.removeFromWhitelist(); in testBackgroundCheckBroadcastService() 901 controller.tempWhitelist(TEMP_WHITELIST_DURATION_MS); in testBackgroundCheckBroadcastService() 929 controller.removeFromTempWhitelist(); in testBackgroundCheckBroadcastService() 936 controller.makeUidIdle(); in testBackgroundCheckBroadcastService() 941 controller.ensureProcessGone(); in testBackgroundCheckBroadcastService() [all …]
|
/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/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | CtsAugmentedAutofillService.java | 185 FillController controller, FillCallback callback) { in onFillRequest() argument 195 cancellationSignal, controller, callback)); in onFillRequest() local 218 public final FillController controller; field in AugmentedFillRequest 222 FillController controller, FillCallback callback) { in AugmentedFillRequest() argument 225 this.controller = controller; in AugmentedFillRequest() 336 @NonNull CancellationSignal cancellationSignal, @NonNull FillController controller, in handleOnFillRequest() argument 339 cancellationSignal, controller, callback); in handleOnFillRequest() 378 controller); in handleOnFillRequest()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
D | WindowInsetsAnimationControllerTests.java | 243 (controller, controllableTypes) -> { in awaitControl() 770 public void onReady(@NonNull WindowInsetsAnimationController controller, int types) { in onReady() argument 771 mController = controller; in onReady() 775 mErrorCollector.checkThat(controller, notNullValue()); in onReady() 777 mErrorCollector.checkThat("isReady", controller.isReady(), is(true)); in onReady() 778 mErrorCollector.checkThat("isFinished", controller.isFinished(), is(false)); in onReady() 779 mErrorCollector.checkThat("isCancelled", controller.isCancelled(), is(false)); in onReady() 784 public void onFinished(@NonNull WindowInsetsAnimationController controller) { in onFinished() argument 785 mErrorCollector.checkThat(controller, notNullValue()); in onFinished() 786 mErrorCollector.checkThat(controller, sameInstance(mController)); in onFinished() [all …]
|
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
D | RemoteDpc.java | 169 public static RemoteDpc forDevicePolicyController(DevicePolicyController controller) { in forDevicePolicyController() argument 170 if (controller == null) { in forDevicePolicyController() 174 if (isRemoteDpc(controller)) { in forDevicePolicyController() 176 .isEqualTo(controller.componentName().getPackageName()) in forDevicePolicyController() 179 return new RemoteDpc(remoteDpcTestApp, controller); in forDevicePolicyController() 183 + controller); in forDevicePolicyController() 474 public static boolean isRemoteDpc(DevicePolicyController controller) { in isRemoteDpc() argument 475 return controller != null in isRemoteDpc() 476 && controller.componentName().getPackageName() in isRemoteDpc() 478 && controller.componentName().getClassName().equals(TEST_APP_CLASS_NAME); in isRemoteDpc()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ImeInsetsControllerTest.java | 138 @NonNull WindowInsetsController controller, int typeMask) { in testChangeSizeWhileControlling() 141 controller.controlWindowInsetsAnimation(ime(), -1, null, null, in testChangeSizeWhileControlling() 194 @NonNull WindowInsetsAnimationController controller, in createControlListener() 196 outController[0] = controller; in createControlListener() 202 @NonNull WindowInsetsAnimationController controller) { in createControlListener() 207 @Nullable WindowInsetsAnimationController controller) { in createControlListener()
|
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/ |
D | MediaSessionManagerTest.java | 77 for (MediaController controller : controllers) { in testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper() 78 if (controller.getPackageName().equals(MEDIA_SESSION_TEST_HELPER_PKG)) { in testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper() 92 for (MediaController controller : controllers) { in testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper() 93 if (controller.getPackageName().equals(MEDIA_SESSION_TEST_HELPER_PKG)) { in testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | ThreadNetworkTest.java | 129 ThreadNetworkController controller = in enableThread_disallowThreadNetworkIsSet_failWithFailedPrecondition() local 133 controller.setEnabled( in enableThread_disallowThreadNetworkIsSet_failWithFailedPrecondition() 151 ThreadNetworkController controller = in enableThread_disallowThreadIsNotSet_success() local 155 controller.setEnabled( in enableThread_disallowThreadIsNotSet_success()
|