Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationScaleProviderTest.java48 private MagnificationScaleProvider mScaleProvider; field in MagnificationScaleProviderTest
52 mScaleProvider = new MagnificationScaleProvider(mContext); in setUp()
57 mScaleProvider.putScale(TEST_SCALE, Display.DEFAULT_DISPLAY); in putScaleOnDefaultDisplay_getExpectedValue()
60 () -> Float.compare(mScaleProvider.getScale(Display.DEFAULT_DISPLAY), in putScaleOnDefaultDisplay_getExpectedValue()
66 mScaleProvider.putScale(TEST_SCALE, TEST_DISPLAY); in putScaleOnTestDisplay_getExpectedValue()
68 assertEquals(TEST_SCALE, mScaleProvider.getScale(TEST_DISPLAY), 0); in putScaleOnTestDisplay_getExpectedValue()
73 mScaleProvider.putScale(TEST_SCALE, TEST_DISPLAY); in onUserChanged_putScale_fallbackToDefaultScale()
75 mScaleProvider.onUserChanged(SECOND_USER_ID); in onUserChanged_putScale_fallbackToDefaultScale()
76 assertEquals(DEFAULT_SCALE, mScaleProvider.getScale(TEST_DISPLAY), 0); in onUserChanged_putScale_fallbackToDefaultScale()
81 mScaleProvider.onUserChanged(SECOND_USER_ID); in onUserRemoved_setScaleOnSecondUser_fallbackToDefaultScale()
[all …]
DMagnificationControllerTest.java141 private MagnificationScaleProvider mScaleProvider; field in MagnificationControllerTest
198 mScaleProvider = spy(new MagnificationScaleProvider(mContext)); in setUp()
219 mScaleProvider, in setUp()
229 mWindowMagnificationCallbackDelegate, mTraceManager, mScaleProvider)); in setUp()
234 mScreenMagnificationController, mMagnificationConnectionManager, mScaleProvider, in setUp()
594 verify(mScaleProvider).onDisplayRemoved(TEST_DISPLAY); in onDisplayRemoved_notifyAllModules()
603 verify(mScaleProvider).onUserChanged(SECOND_USER_ID); in updateUserIdIfNeeded_AllModulesAvailable_disableMagnificationAndChangeUserId()
1265 verify(mScaleProvider).onUserRemoved(SECOND_USER_ID); in onUserRemoved_notifyScaleProvider()
DFullScreenMagnificationControllerTest.java129 private MagnificationScaleProvider mScaleProvider; field in FullScreenMagnificationControllerTest
179 mScaleProvider = new MagnificationScaleProvider(mMockContext); in setUp()
188 mScaleProvider, in setUp()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationController.java98 private final MagnificationScaleProvider mScaleProvider; field in MagnificationController
153 mScaleProvider = scaleProvider; in MagnificationController()
695 mScaleProvider.onUserChanged(userId); in updateUserIdIfNeeded()
722 mScaleProvider.onDisplayRemoved(displayId); in onDisplayRemoved()
729 mScaleProvider.onUserRemoved(userId); in onUserRemoved()
800 mScaleProvider, in getFullScreenMagnificationController()
834 mScaleProvider); in getMagnificationConnectionManager()
DMagnificationConnectionManager.java211 private final MagnificationScaleProvider mScaleProvider; field in MagnificationConnectionManager
219 mScaleProvider = scaleProvider; in MagnificationConnectionManager()
744 return MathUtils.constrain(mScaleProvider.getScale(displayId), in getPersistedScale()
761 mScaleProvider.putScale(scale, displayId); in persistScale()
DFullScreenMagnificationController.java105 private final MagnificationScaleProvider mScaleProvider; field in FullScreenMagnificationController
991 mScaleProvider = scaleProvider; in FullScreenMagnificationController()
1643 mScaleProvider.putScale(scale, displayId); in persistScale()
1654 return MathUtils.constrain(mScaleProvider.getScale(displayId), in getPersistedScale()
1841 builder.append(", mScaleProvider=").append(mScaleProvider); in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthContainerView.java195 ScaleFactorProvider mScaleProvider; field in AuthContainerView.Config
478 config.mScaleProvider); in addBiometricView()
DAuthController.java1324 config.mScaleProvider = this::getScaleFactor; in buildDialog()