/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | LockscreenShadeQsTransitionControllerTest.kt | 47 private lateinit var controller: LockscreenShadeQsTransitionController variable in com.android.systemui.statusbar.LockscreenShadeQsTransitionControllerTest 57 controller = in setUp() 68 assertThat(controller.qsTransitionFraction).isZero() in qsTransitionFraction_byDefault_returns0() 76 controller.dragDownAmount = 25f in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance() 77 expect.that(controller.qsTransitionFraction).isEqualTo(0.25f) in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance() 79 controller.dragDownAmount = 50f in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance() 80 expect.that(controller.qsTransitionFraction).isEqualTo(0.5f) in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance() 82 controller.dragDownAmount = 75f in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance() 83 expect.that(controller.qsTransitionFraction).isEqualTo(0.75f) in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance() 85 controller.dragDownAmount = 100f in qsTransitionFraction_noStartDelay_returnsBasedOnTransitionDistance() [all …]
|
D | StatusBarStateControllerImplTest.kt | 55 private lateinit var controller: StatusBarStateControllerImpl variable in com.android.systemui.statusbar.StatusBarStateControllerImplTest 65 controller = object : StatusBarStateControllerImpl( in setUp() 77 controller.state = StatusBarState.KEYGUARD in testChangeState_logged() 78 controller.state = StatusBarState.SHADE in testChangeState_logged() 79 controller.state = StatusBarState.SHADE_LOCKED in testChangeState_logged() 93 controller.addCallback(listener) in testSetDozeAmountInternal_onlySetsOnce() 95 controller.setAndInstrumentDozeAmount(null, 0.5f, false /* animated */) in testSetDozeAmountInternal_onlySetsOnce() 96 controller.setAndInstrumentDozeAmount(null, 0.5f, false /* animated */) in testSetDozeAmountInternal_onlySetsOnce() 102 controller.state = StatusBarState.SHADE in testSetState_appliesState_sameStateButDifferentUpcomingState() 103 controller.setUpcomingState(StatusBarState.KEYGUARD) in testSetState_appliesState_sameStateButDifferentUpcomingState() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneProviderControllerTest.java | 131 LocationTimeZoneProviderController controller = new LocationTimeZoneProviderController( in controllerStartsInUnknownState() local 134 assertControllerState(controller, STATE_UNKNOWN); in controllerStartsInUnknownState() 139 LocationTimeZoneProviderController controller = new LocationTimeZoneProviderController( in initializationFailure_primary() local 143 mTestThreadingDomain, controller, USER1_CONFIG_GEO_DETECTION_ENABLED); in initializationFailure_primary() 151 controller.initialize(testEnvironment, mTestCallback); in initializationFailure_primary() 156 assertControllerState(controller, STATE_INITIALIZING); in initializationFailure_primary() 165 assertFalse(controller.isUncertaintyTimeoutSet()); in initializationFailure_primary() 170 LocationTimeZoneProviderController controller = new LocationTimeZoneProviderController( in initializationFailure_secondary() local 174 mTestThreadingDomain, controller, USER1_CONFIG_GEO_DETECTION_ENABLED); in initializationFailure_secondary() 182 controller.initialize(testEnvironment, mTestCallback); in initializationFailure_secondary() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/ |
D | AmbientLuxTest.java | 145 DisplayWhiteBalanceController controller = in testCalculateAdjustedBrightnessNits() local 147 final float adjustedNits = controller.calculateAdjustedBrightnessNits(500f); in testCalculateAdjustedBrightnessNits() 156 DisplayWhiteBalanceController controller = in testNoSpline() local 159 setEstimatedColorTemperature(controller, ambientColorTemperature); in testNoSpline() 160 controller.mBrightnessFilter = spy(new AmbientFilterStubber()); in testNoSpline() 163 setEstimatedBrightnessAndUpdate(controller, luxOverride); in testNoSpline() 164 assertEquals(controller.mPendingAmbientColorTemperature, in testNoSpline() 176 DisplayWhiteBalanceController controller = in testSpline_OneSegment() local 179 setEstimatedColorTemperature(controller, ambientColorTemperature); in testSpline_OneSegment() 180 controller.mBrightnessFilter = spy(new AmbientFilterStubber()); in testSpline_OneSegment() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 178 final ConnectivityController controller = new ConnectivityController(mService, in testUsable() local 181 controller.onBatteryStateChangedLocked(); in testUsable() 184 assertFalse(controller.isSatisfied(createJobStatus(job), net, in testUsable() 187 assertFalse(controller.isSatisfied(createJobStatus(jobWithMinChunk), net, in testUsable() 191 assertFalse(controller.isSatisfied(createJobStatus(job), net, in testUsable() 194 assertFalse(controller.isSatisfied(createJobStatus(jobWithMinChunk), net, in testUsable() 198 assertFalse(controller.isSatisfied(createJobStatus(job), net, in testUsable() 201 assertFalse(controller.isSatisfied(createJobStatus(jobWithMinChunk), net, in testUsable() 205 assertFalse(controller.isSatisfied(createJobStatus(job), net, in testUsable() 208 assertTrue(controller.isSatisfied(createJobStatus(jobWithMinChunk), net, in testUsable() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/reardisplay/ |
D | RearDisplayDialogControllerTest.java | 57 RearDisplayDialogController controller = new RearDisplayDialogController(mContext, in testClosedDialogIsShown() local 59 controller.setDeviceStateManagerCallback(new TestDeviceStateManagerCallback()); in testClosedDialogIsShown() 60 controller.setFoldedStates(new int[]{0}); in testClosedDialogIsShown() 61 controller.setAnimationRepeatCount(0); in testClosedDialogIsShown() 63 controller.showRearDisplayDialog(CLOSED_BASE_STATE); in testClosedDialogIsShown() 64 assertTrue(controller.mRearDisplayEducationDialog.isShowing()); in testClosedDialogIsShown() 65 TextView deviceClosedTitleTextView = controller.mRearDisplayEducationDialog.findViewById( in testClosedDialogIsShown() 74 RearDisplayDialogController controller = new RearDisplayDialogController(mContext, in testClosedDialogIsRefreshedOnConfigurationChange() local 76 controller.setDeviceStateManagerCallback(new TestDeviceStateManagerCallback()); in testClosedDialogIsRefreshedOnConfigurationChange() 77 controller.setFoldedStates(new int[]{0}); in testClosedDialogIsRefreshedOnConfigurationChange() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | SwitchesProviderTest.java | 81 final TestSwitchController controller = new TestSwitchController(); in attachInfo_NoSwitchKeyInController_shouldThrowNullPointerException() local 82 mSwitchesProvider.addSwitchController(controller); in attachInfo_NoSwitchKeyInController_shouldThrowNullPointerException() 90 final TestSwitchController controller = new TestSwitchController(); in attachInfo_NoMetaDataInController_shouldThrowNullPointerException() local 91 controller.setKey("123"); in attachInfo_NoMetaDataInController_shouldThrowNullPointerException() 92 mSwitchesProvider.addSwitchController(controller); in attachInfo_NoMetaDataInController_shouldThrowNullPointerException() 128 final SwitchController controller = new TestPrimarySwitchController("123"); in getSwitchData_shouldNotReturnPrimarySwitchData() local 129 mSwitchesProvider.addSwitchController(controller); in getSwitchData_shouldNotReturnPrimarySwitchData() 141 final TestSwitchController controller = new TestSwitchController(); in getSwitchData_shouldReturnDataList() local 142 controller.setKey("123"); in getSwitchData_shouldReturnDataList() 143 controller.setMetaData(new MetaData("category")); in getSwitchData_shouldReturnDataList() [all …]
|
D | EntriesProviderTest.java | 87 final TestEntryController controller = new TestEntryController(); in attachInfo_NoKeyInController_shouldThrowNullPointerException() local 88 mEntriesProvider.addController(controller); in attachInfo_NoKeyInController_shouldThrowNullPointerException() 96 final TestEntryController controller = new TestEntryController(); in attachInfo_NoMetaDataInController_shouldThrowNullPointerException() local 97 controller.setKey("123"); in attachInfo_NoMetaDataInController_shouldThrowNullPointerException() 98 mEntriesProvider.addController(controller); in attachInfo_NoMetaDataInController_shouldThrowNullPointerException() 134 final EntryController controller = new TestPrimarySwitchController("123"); in getEntryData_shouldNotReturnPrimarySwitchData() local 135 mEntriesProvider.addController(controller); in getEntryData_shouldNotReturnPrimarySwitchData() 147 final TestEntryController controller = new TestEntryController(); in getEntryData_shouldReturnDataList() local 149 controller.setKey("123"); in getEntryData_shouldReturnDataList() 150 controller.setMetaData(new MetaData("category").setPendingIntent(pendingIntent)); in getEntryData_shouldReturnDataList() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | VibratorControllerTest.java | 102 VibratorController controller = createController(); in createController_initializesNativeWrapper() local 103 assertEquals(VIBRATOR_ID, controller.getVibratorInfo().getId()); in createController_initializesNativeWrapper() 137 VibratorController controller = createController(); in setExternalControl_withCapability_enablesExternalControl() local 138 assertFalse(controller.isUnderExternalControl()); in setExternalControl_withCapability_enablesExternalControl() 140 controller.setExternalControl(true); in setExternalControl_withCapability_enablesExternalControl() 141 assertTrue(controller.isUnderExternalControl()); in setExternalControl_withCapability_enablesExternalControl() 143 controller.setExternalControl(false); in setExternalControl_withCapability_enablesExternalControl() 144 assertFalse(controller.isUnderExternalControl()); in setExternalControl_withCapability_enablesExternalControl() 153 VibratorController controller = createController(); in setExternalControl_withNoCapability_ignoresExternalControl() local 154 assertFalse(controller.isUnderExternalControl()); in setExternalControl_withNoCapability_ignoresExternalControl() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ |
D | AccessPointControllerImplTest.kt | 70 private lateinit var controller: AccessPointControllerImpl variable in com.android.systemui.statusbar.connectivity.AccessPointControllerImplTest 82 controller = AccessPointControllerImpl( in setUp() 89 controller.init() in setUp() 94 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED) in testInitialLifecycleStateCreated() 99 controller.addAccessPointCallback(callback) in testLifecycleStartedAfterFirstCallback() 100 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in testLifecycleStartedAfterFirstCallback() 105 controller.addAccessPointCallback(callback) in testLifecycleBackToCreatedAfterRemovingOnlyCallback() 106 controller.removeAccessPointCallback(callback) in testLifecycleBackToCreatedAfterRemovingOnlyCallback() 108 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED) in testLifecycleBackToCreatedAfterRemovingOnlyCallback() 113 controller.addAccessPointCallback(callback) in testLifecycleStillStartedAfterRemovingSecondCallback() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ |
D | ShadeViewDiffer.kt | 52 if (spec.controller != rootNode.controller) { in <lambda>() 76 val parentSpec = specMap[parentNode.controller] in <lambda>() 80 val childSpec = specMap[childNode.controller] in <lambda>() 82 if (childNode.controller.getChildCount() > 0) { in <lambda>() 103 nodes.remove(childNode.controller) in <lambda>() 134 val parentSpec = checkNotNull(specMap[parentNode.controller]) in <lambda>() 183 var node = nodes[spec.controller] in <lambda>() 185 node = ShadeNode(spec.controller) in <lambda>() 186 nodes[node.controller] = node in <lambda>() 205 if (map.containsKey(node.controller)) { in <lambda>() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ContentRecordingControllerTests.java | 82 ContentRecordingController controller = new ContentRecordingController(); in testGetContentRecordingSessionLocked() local 83 assertThat(controller.getContentRecordingSessionLocked()).isNull(); in testGetContentRecordingSessionLocked() 88 ContentRecordingController controller = new ContentRecordingController(); in testSetContentRecordingSessionLocked_defaultSession() local 89 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_defaultSession() 90 ContentRecordingSession resultingSession = controller.getContentRecordingSessionLocked(); in testSetContentRecordingSessionLocked_defaultSession() 96 ContentRecordingController controller = new ContentRecordingController(); in testSetContentRecordingSessionLocked_invalidDisplayId_notAccepted() local 101 controller.setContentRecordingSessionLocked(session, mWm); in testSetContentRecordingSessionLocked_invalidDisplayId_notAccepted() 102 ContentRecordingSession resultingSession = controller.getContentRecordingSessionLocked(); in testSetContentRecordingSessionLocked_invalidDisplayId_notAccepted() 109 ContentRecordingController controller = new ContentRecordingController(); in testSetContentRecordingSessionLocked_newSession_accepted() local 112 controller.setContentRecordingSessionLocked(mDefaultSession, mWm); in testSetContentRecordingSessionLocked_newSession_accepted() [all …]
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | EntriesProvider.java | 95 for (EntryController controller : controllers) { in onCreate() 96 final String key = controller.getKey(); in onCreate() 99 + controller.getClass().getSimpleName()); in onCreate() 102 + controller.getClass().getSimpleName()); in onCreate() 105 controller.setAuthority(mAuthority); in onCreate() 106 mControllerMap.put(key, controller); in onCreate() 107 if (!(controller instanceof PrimarySwitchController)) { in onCreate() 108 mEntryDataList.add(controller.getBundle()); in onCreate() 133 final EntryController controller = mControllerMap.get(key); in call() local 134 if (controller == null) { in call() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | LaunchAdjacentControllerTest.kt | 41 private lateinit var controller: LaunchAdjacentController in <lambda>() variable in com.android.wm.shell.common.LaunchAdjacentControllerTest 47 controller = LaunchAdjacentController(syncQueue) in <lambda>() 52 assertThat(controller.launchAdjacentEnabled).isTrue() in <lambda>() 58 controller.setLaunchAdjacentRoot(token) in <lambda>() 66 controller.launchAdjacentEnabled = false in <lambda>() 67 controller.setLaunchAdjacentRoot(token) in <lambda>() 74 controller.setLaunchAdjacentRoot(token) in <lambda>() 75 controller.clearLaunchAdjacentRoot() in <lambda>() 83 controller.setLaunchAdjacentRoot(token) in <lambda>() 84 controller.launchAdjacentEnabled = false in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsControllerImplTest.kt | 17 package com.android.systemui.controls.controller in <lambda>() 115 private lateinit var controller: ControlsControllerImpl in <lambda>() variable in com.android.systemui.controls.controller.ControlsControllerImplTest 170 controller = ControlsControllerImpl( in <lambda>() 183 controller.auxiliaryPersistenceWrapper = auxiliaryPersistenceWrapper in <lambda>() 190 controller.destroy() in <lambda>() 213 assertEquals(user, controller.currentUserId) in <lambda>() 218 assertTrue(controller.getFavorites().isEmpty()) in <lambda>() 263 controller.onActionResponse(TEST_COMPONENT, TEST_CONTROL_ID, ControlAction.RESPONSE_OK) in <lambda>() 273 controller.refreshStatus(TEST_COMPONENT, control) in <lambda>() 280 controller.unsubscribe() in <lambda>() [all …]
|
D | ControlsBindingControllerImplTest.kt | 17 package com.android.systemui.controls.controller 81 private lateinit var controller: ControlsBindingController in capture() variable in com.android.systemui.controls.controller.ControlsBindingControllerImplTest 90 controller = TestableControlsBindingControllerImpl( in capture() 102 assertEquals(user.identifier, controller.currentUserId) in testStartOnUser() 112 controller.bindAndLoad(TEST_COMPONENT_NAME_1, callback) in testBindAndLoad() 122 val canceller = controller.bindAndLoad(TEST_COMPONENT_NAME_1, callback) in testBindAndLoad_cancel() 141 val canceller = controller.bindAndLoad(TEST_COMPONENT_NAME_1, callback) in testBindAndLoad_noCancelAfterOnComplete() 161 val canceller = controller.bindAndLoad(TEST_COMPONENT_NAME_1, callback) in testLoad_onCompleteRemovesTimeout() 180 val canceller = controller.bindAndLoad(TEST_COMPONENT_NAME_1, callback) in testLoad_onErrorRemovesTimeout() 199 val canceller = controller.bindAndLoad(TEST_COMPONENT_NAME_1, callback) in testBindAndLoad_noCancelAfterOnError() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/ |
D | QrCodeScannerKeyguardQuickAffordanceConfigTest.kt | 26 import com.android.systemui.qrcodescanner.controller.QRCodeScannerController 47 @Mock private lateinit var controller: QRCodeScannerController variable in com.android.systemui.keyguard.data.quickaffordance.QrCodeScannerKeyguardQuickAffordanceConfigTest 54 whenever(controller.intent).thenReturn(INTENT_1) in setUp() 56 underTest = QrCodeScannerKeyguardQuickAffordanceConfig(context, controller) in setUp() 61 whenever(controller.isEnabledForLockScreenButton).thenReturn(true) in <lambda>() 67 verify(controller).addCallback(callbackCaptor.capture()) in <lambda>() 68 verify(controller) in <lambda>() 76 verify(controller).removeCallback(callbackCaptor.value) in <lambda>() 81 whenever(controller.isEnabledForLockScreenButton).thenReturn(true) in <lambda>() 85 verify(controller).addCallback(callbackCaptor.capture()) in <lambda>() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 165 private void assertNextInputMethod(final ControllerImpl controller, in assertNextInputMethod() argument 172 final ImeSubtypeListItem nextIme = controller.getNextInputMethod(onlyCurrentIme, in assertNextInputMethod() 177 private void assertRotationOrder(final ControllerImpl controller, in assertRotationOrder() argument 187 assertNextInputMethod(controller, onlyCurrentIme, currentItem, nextItem); in assertRotationOrder() 191 private void onUserAction(final ControllerImpl controller, in onUserAction() argument 197 controller.onUserActionLocked(subtypeListItem.mImi, subtype); in onUserAction() 217 final ControllerImpl controller = ControllerImpl.createFrom( in testControllerImpl() local 221 assertRotationOrder(controller, false /* onlyCurrentIme */, in testControllerImpl() 225 assertRotationOrder(controller, false /* onlyCurrentIme */, in testControllerImpl() 230 assertRotationOrder(controller, true /* onlyCurrentIme */, in testControllerImpl() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogControllerTest.kt | 54 private lateinit var controller: ChannelEditorDialogController variable in com.android.systemui.statusbar.notification.row.ChannelEditorDialogControllerTest 73 controller = ChannelEditorDialogController(mContext, mockNoMan, dialogBuilder) in setup() 93 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noExtraChannels() 96 assertEquals(2, controller.paddedChannels.size) in testPrepareDialogForApp_noExtraChannels() 103 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_onlyDefaultChannel() 107 0, controller.paddedChannels.size) in testPrepareDialogForApp_onlyDefaultChannel() 114 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noProvidedChannels_noException() 125 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_retrievesUpTo4Channels() 129 4, controller.paddedChannels.size) in testPrepareDialogForApp_retrievesUpTo4Channels() 135 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteChannel() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarMoveFromCenterAnimationControllerTest.kt | 37 private lateinit var controller: StatusBarMoveFromCenterAnimationController variable in com.android.systemui.statusbar.phone.StatusBarMoveFromCenterAnimationControllerTest 54 controller = in setUp() 64 controller.onViewsReady(arrayOf(view)) in onTransitionProgressAndFinished_resetsTranslations() 74 controller.onViewsReady(arrayOf(view)) in onStatusBarWidthChangedWithNoTransitionBefore_noTranslation() 76 controller.onStatusBarWidthChanged() in onStatusBarWidthChangedWithNoTransitionBefore_noTranslation() 83 controller.onViewsReady(arrayOf(view)) in onTransitionProgress_updatesTranslations() 92 controller.onViewsReady(arrayOf(view)) in onTransitionProgress_whenDetached_doesNotUpdateTranslations() 93 controller.onViewDetached() in onTransitionProgress_whenDetached_doesNotUpdateTranslations() 102 controller.onViewsReady(arrayOf(view)) in detachedAfterProgress_resetsTranslations() 105 controller.onViewDetached() in detachedAfterProgress_resetsTranslations() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceProvisionedControllerImplTest.kt | 55 private lateinit var controller: DeviceProvisionedControllerImpl variable in com.android.systemui.statusbar.policy.DeviceProvisionedControllerImplTest 80 controller = DeviceProvisionedControllerImpl( in setUp() 94 assertThat(controller.isDeviceProvisioned).isFalse() in testNotProvisionedByDefault() 100 assertThat(controller.isFrpActive).isFalse() in testFrpNotActiveByDefault() 106 assertThat(controller.isUserSetup(START_USER)).isFalse() in testNotUserSetupByDefault() 114 assertThat(controller.isDeviceProvisioned).isTrue() in testProvisionedWhenCreated() 122 assertThat(controller.isFrpActive).isTrue() in testFrpActiveWhenCreated() 130 assertThat(controller.isUserSetup(START_USER)) in testUserSetupWhenCreated() 140 assertThat(controller.isDeviceProvisioned).isTrue() in testDeviceProvisionedChange() 150 assertThat(controller.isFrpActive).isTrue() in testFrpActiveChange() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/ |
D | ManagedDeviceActionDisabledByAdminControllerTest.java | 42 import org.robolectric.android.controller.ActivityController; 65 ManagedDeviceActionDisabledByAdminController controller = createController(); in getAdminSupportTitleResource_noRestriction_works() local 67 assertThat(controller.getAdminSupportTitle(null)) in getAdminSupportTitleResource_noRestriction_works() 73 ManagedDeviceActionDisabledByAdminController controller = createController(); in getAdminSupportTitleResource_withRestriction_works() local 75 assertThat(controller.getAdminSupportTitle(RESTRICTION)) in getAdminSupportTitleResource_withRestriction_works() 81 ManagedDeviceActionDisabledByAdminController controller = createController(); in getAdminSupportContentString_withSupportMessage_returnsSupportMessage() local 83 assertThat(controller.getAdminSupportContentString(mActivity, SUPPORT_MESSAGE)) in getAdminSupportContentString_withSupportMessage_returnsSupportMessage() 89 ManagedDeviceActionDisabledByAdminController controller = createController(); in getAdminSupportContentString_noSupportMessage_returnsDefault() local 91 assertThat(controller.getAdminSupportContentString(mActivity, /* supportMessage= */ null)) in getAdminSupportContentString_noSupportMessage_returnsDefault() 116 ManagedDeviceActionDisabledByAdminController controller = in createController() local [all …]
|
/frameworks/base/core/java/android/view/ |
D | PendingInsetsController.java | 167 public void replayAndAttach(InsetsController controller) { in replayAndAttach() argument 169 controller.setSystemBarsBehavior(mBehavior); in replayAndAttach() 172 controller.setSystemBarsAppearance(mAppearance, mAppearanceMask); in replayAndAttach() 175 controller.setCaptionInsetsHeight(mCaptionInsetsHeight); in replayAndAttach() 178 controller.setImeCaptionBarInsetsHeight(mImeCaptionBarInsetsHeight); in replayAndAttach() 181 controller.setAnimationsDisabled(true); in replayAndAttach() 185 mRequests.get(i).replay(controller); in replayAndAttach() 189 controller.addOnControllableInsetsChangedListener( in replayAndAttach() 193 controller.setSystemDrivenInsetsAnimationLoggingListener(mLoggingListener); in replayAndAttach() 206 mReplayedInsetsController = controller; in replayAndAttach() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSPanelControllerTest.kt | 62 private lateinit var controller: QSPanelController variable in com.android.systemui.qs.QSPanelControllerTest 79 controller = QSPanelController( in setUp() 105 controller.onInit() in onInit_setsMediaAsExpanded() 113 controller.setTiles() in testSetListeningDoesntRefreshListeningTiles() 117 controller.setListening(true, true) in testSetListeningDoesntRefreshListeningTiles() 126 assertThat(controller.isBouncerInTransit()).isEqualTo(true) in testIsBouncerInTransit() 128 assertThat(controller.isBouncerInTransit()).isEqualTo(false) in testIsBouncerInTransit() 134 controller.mOnConfigurationChangedListener.onConfigurationChange(configuration) in configurationChange_onlySplitShadeConfigChanges_tileAreRedistributed() 138 controller.mOnConfigurationChangedListener.onConfigurationChange(configuration) in configurationChange_onlySplitShadeConfigChanges_tileAreRedistributed() 145 controller.mOnConfigurationChangedListener.onConfigurationChange(configuration) in configurationChange_onlySplitShadeConfigChanges_qsPanelCanBeCollapsed() [all …]
|
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/ |
D | Expandable.kt | 162 controller: ExpandableController, in Expandable() 168 val controller = controller as ExpandableControllerImpl in Expandable() constant 169 val color = controller.color in Expandable() 170 val contentColor = controller.contentColor in Expandable() 171 val shape = controller.shape in Expandable() 214 controller.animatorState.value != null && controller.overlay.value != null in Expandable() 233 modifier.requiredSize(with(controller.density) { thisExpandableSize.toDpSize() }) in Expandable() 240 controller.boundsInComposeViewRoot.value.size, in Expandable() 241 controller.animatorState, in Expandable() 242 controller.overlay.value in Expandable() [all …]
|