/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/dvr/ |
D | DvrLibraryTest.java | 46 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in DvrLibraryTest 58 ByResource.text(controller.getTargetResources(), R.string.dvr_main_recent)); in setUp() 62 controller.getTargetResources(), R.string.dvr_main_scheduled)); in setUp() 65 ByResource.text(controller.getTargetResources(), R.string.dvr_main_series)); in setUp() 70 controller.getTargetResources(), in setUp() 72 controller.liveChannelsHelper.assertAppStarted(); in setUp() 83 controller.menuHelper.assertPressDvrLibrary(); in testCancel() 84 controller.assertWaitForCondition(Until.hasObject(Constants.DVR_LIBRARY)); in testCancel() 85 controller.pressBack(); in testCancel() 86 controller.assertWaitForCondition(Until.gone(Constants.DVR_LIBRARY)); in testCancel() [all …]
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
D | ParentalControlsTest.java | 41 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in ParentalControlsTest 47 controller.liveChannelsHelper.assertAppStarted(); in setUp() 49 controller.sidePanelHelper.bySidePanelTitled(R.string.side_panel_title_settings); in setUp() 68 controller.sidePanelHelper.bySidePanelTitled(R.string.option_program_restrictions); in testRatingDependentSelect() 69 controller.assertWaitForCondition(Until.hasObject(bySidePanel)); in testRatingDependentSelect() 70 controller.sidePanelHelper.assertNavigateToItem(R.string.option_ratings); in testRatingDependentSelect() 71 controller.pressDPadCenter(); in testRatingDependentSelect() 73 bySidePanel = controller.sidePanelHelper.bySidePanelTitled(R.string.option_ratings); in testRatingDependentSelect() 74 controller.assertWaitForCondition(Until.hasObject(bySidePanel)); in testRatingDependentSelect() 82 controller in testRatingDependentSelect() [all …]
|
D | LiveChannelsAppTest.java | 38 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in LiveChannelsAppTest 44 controller.liveChannelsHelper.assertAppStarted(); in setUp() 45 controller.pressKeysForChannel(TvTestInputConstants.CH_1_DEFAULT_DONT_MODIFY); in setUp() 46 controller.waitForIdleSync(); in setUp() 48 controller.sidePanelHelper.bySidePanelTitled(R.string.side_panel_title_settings); in setUp() 53 controller.menuHelper.assertPressOptionsSettings(); in testSettingsCancel() 55 controller.sidePanelHelper.bySidePanelTitled( in testSettingsCancel() 57 controller.assertWaitForCondition(Until.hasObject(byChannelSourcesSidePanel)); in testSettingsCancel() 58 controller.pressBack(); in testSettingsCancel() 59 controller.assertWaitForCondition(Until.gone(byChannelSourcesSidePanel)); in testSettingsCancel() [all …]
|
D | PlayControlsRowViewTest.java | 45 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in PlayControlsRowViewTest 52 controller.liveChannelsHelper.assertAppStarted(); in setUp() 53 controller.pressKeysForChannel(TvTestInputConstants.CH_2); in setUp() 55 controller.assertWaitForCondition(Until.hasObject(CHANNEL_BANNER)); in setUp() 57 controller.pressDPadUp(); in setUp() 58 controller.waitForIdleSync(); in setUp() 60 controller.sidePanelHelper.bySidePanelTitled(R.string.side_panel_title_settings); in setUp() 67 controller.menuHelper.showMenu(); in testFocusedViewInNormalCase() 68 controller.menuHelper.assertNavigateToPlayControlsRow(); in testFocusedViewInNormalCase() 70 controller.pressBack(); in testFocusedViewInNormalCase() [all …]
|
D | ChannelSourcesTest.java | 33 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in ChannelSourcesTest 39 controller.sidePanelHelper.bySidePanelTitled(R.string.side_panel_title_settings); in before() 46 controller.liveChannelsHelper.assertAppStarted(); in testSetup_cancel() 47 controller.menuHelper.assertPressOptionsSettings(); in testSetup_cancel() 48 controller.assertWaitForCondition(Until.hasObject(mBySettingsSidePanel)); in testSetup_cancel() 50 controller.sidePanelHelper.assertNavigateToItem( in testSetup_cancel() 52 controller.pressDPadCenter(); in testSetup_cancel() 54 controller.assertWaitForCondition( in testSetup_cancel() 57 controller.getTargetResources(), R.string.setup_sources_text))); in testSetup_cancel() 58 controller.pressBack(); in testSetup_cancel() [all …]
|
D | TimeoutTest.java | 38 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in TimeoutTest 48 controller.liveChannelsHelper.assertAppStarted(); in testMenu() 49 controller.pressMenu(); in testMenu() 51 controller.assertWaitForCondition(Until.hasObject(Constants.MENU)); in testMenu() 52 controller.assertWaitForCondition( in testMenu() 54 controller.getTargetResources().getInteger(R.integer.menu_show_duration)); in testMenu() 60 controller.liveChannelsHelper.assertAppStarted(); in testProgramGuide() 61 controller.menuHelper.assertPressProgramGuide(); in testProgramGuide() 62 controller.assertWaitForCondition(Until.hasObject(Constants.PROGRAM_GUIDE)); in testProgramGuide() 63 controller.assertWaitForCondition( in testProgramGuide() [all …]
|
D | ChannelBannerViewTest.java | 34 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in ChannelBannerViewTest 41 controller.liveChannelsHelper.assertAppStarted(); in setUp() 43 controller.getTargetResources().getInteger(R.integer.channel_banner_show_duration) in setUp() 50 controller.pressDPadCenter(); in testChannelBannerAppearDisappear() 51 controller.assertWaitForCondition(Until.hasObject(Constants.CHANNEL_BANNER)); in testChannelBannerAppearDisappear() 52 controller.assertWaitForCondition( in testChannelBannerAppearDisappear() 58 controller.pressDPadDown(); in testChannelBannerShownWhenTune() 59 controller.assertWaitForCondition(Until.hasObject(Constants.CHANNEL_BANNER)); in testChannelBannerShownWhenTune() 60 controller.pressDPadUp(); in testChannelBannerShownWhenTune() 61 controller.assertWaitForCondition(Until.hasObject(Constants.CHANNEL_BANNER)); in testChannelBannerShownWhenTune()
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/sidepanel/ |
D | CustomizeChannelListFragmentTest.java | 44 @Rule public final LiveChannelsTestController controller = new LiveChannelsTestController(); field in CustomizeChannelListFragmentTest 52 controller.liveChannelsHelper.assertAppStarted(); in setUp() 53 mTvView = controller.getUiDevice().findObject(Constants.TV_VIEW); in setUp() 56 controller.pressKeysForChannel(com.android.tv.testing.testinput.TvTestInputConstants.CH_2); in setUp() 58 controller.assertWaitForCondition(Until.hasObject(Constants.CHANNEL_BANNER)); in setUp() 60 controller.sidePanelHelper.bySidePanelTitled(R.string.side_panel_title_settings); in setUp() 75 controller.menuHelper.assertPressOptionsSettings(); in testCustomizeChannelList_noraml() 76 controller.assertWaitForCondition(Until.hasObject(mBySettingsSidePanel)); in testCustomizeChannelList_noraml() 77 controller.sidePanelHelper.assertNavigateToItem( in testCustomizeChannelList_noraml() 79 controller.pressDPadCenter(); in testCustomizeChannelList_noraml() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialogTest.java | 63 private BluetoothPairingController controller; field in BluetoothPairingDialogTest 76 when(controller.getDialogType()).thenReturn(BluetoothPairingController.USER_ENTRY_DIALOG); in dialogUpdatesControllerWithUserInput() 79 when(controller.getDeviceVariantMessageId()) in dialogUpdatesControllerWithUserInput() 81 when(controller.getDeviceVariantMessageHintId()) in dialogUpdatesControllerWithUserInput() 89 verify(controller, times(1)).updateUserInput(any()); in dialogUpdatesControllerWithUserInput() 95 when(controller.getDialogType()).thenReturn(BluetoothPairingController.USER_ENTRY_DIALOG); in dialogEnablesSubmitButtonOnValidationFromController() 98 when(controller.getDeviceVariantMessageId()) in dialogEnablesSubmitButtonOnValidationFromController() 100 when(controller.getDeviceVariantMessageHintId()) in dialogEnablesSubmitButtonOnValidationFromController() 104 when(controller.isPasskeyValid(any())).thenReturn(true); in dialogEnablesSubmitButtonOnValidationFromController() 119 when(controller.getDialogType()).thenReturn(BluetoothPairingController.CONFIRMATION_DIALOG); in dialogDoesNotAskForPairCodeOnConsentVariant() [all …]
|
D | BluetoothDetailsControllerEventsTest.java | 41 TestController controller = in pauseResumeEvents() local 45 showScreen(controller); in pauseResumeEvents() 46 verify(mCachedDevice, times(1)).registerCallback(controller); in pauseResumeEvents() 47 verify(controller, times(1)).refresh(); in pauseResumeEvents() 49 controller.onPause(); in pauseResumeEvents() 50 verify(controller, times(1)).refresh(); in pauseResumeEvents() 51 verify(mCachedDevice).unregisterCallback(controller); in pauseResumeEvents() 53 controller.onResume(); in pauseResumeEvents() 54 verify(controller, times(2)).refresh(); in pauseResumeEvents() 55 verify(mCachedDevice, times(2)).registerCallback(controller); in pauseResumeEvents() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | RcsFeatureControllerTest.java | 95 RcsFeatureController controller = createFeatureController(); in testRcsFeatureManagerConnectDisconnect() local 96 controller.addFeature(mMockFeature, RcsFeatureController.Feature.class); in testRcsFeatureManagerConnectDisconnect() 115 RcsFeatureController controller = createFeatureController(); in testFeatureManagerConnectedAddRemoveFeature() local 118 controller.addFeature(mMockFeature, RcsFeatureController.Feature.class); in testFeatureManagerConnectedAddRemoveFeature() 121 assertEquals(mMockFeature, controller.getFeature(RcsFeatureController.Feature.class)); in testFeatureManagerConnectedAddRemoveFeature() 123 controller.removeFeature(RcsFeatureController.Feature.class); in testFeatureManagerConnectedAddRemoveFeature() 125 assertNull(controller.getFeature(RcsFeatureController.Feature.class)); in testFeatureManagerConnectedAddRemoveFeature() 130 RcsFeatureController controller = createFeatureController(); in testFeatureManagerConnectedRegister() local 137 controller.registerImsRegistrationCallback(TEST_SUB_ID, regCb); in testFeatureManagerConnectedRegister() 138 controller.registerRcsAvailabilityCallback(TEST_SUB_ID, capCb); in testFeatureManagerConnectedRegister() [all …]
|
D | SipTransportControllerTest.java | 160 SipTransportController controller = createController(new TestExecutorService()); in isSupportedRcsNotConnected() local 162 controller.isSupported(TEST_SUB_ID); in isSupportedRcsNotConnected() 172 SipTransportController controller = createController(new TestExecutorService()); in isSupportedInvalidSubId() local 174 controller.isSupported(TEST_SUB_ID + 1); in isSupportedInvalidSubId() 184 SipTransportController controller = createController(new TestExecutorService()); in isSupportedSubIdChanged() local 185 controller.onAssociatedSubscriptionUpdated(TEST_SUB_ID + 1); in isSupportedSubIdChanged() 187 controller.isSupported(TEST_SUB_ID); in isSupportedSubIdChanged() 197 SipTransportController controller = createController(new TestExecutorService()); in isSupportedSipTransportAvailableRcsConnected() local 199 controller.onRcsConnected(mRcsManager); in isSupportedSipTransportAvailableRcsConnected() 201 assertTrue(controller.isSupported(TEST_SUB_ID)); in isSupportedSipTransportAvailableRcsConnected() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DevelopmentSettingsDashboardFragment.java | 99 for (AbstractPreferenceController controller : mPreferenceControllers) { 100 if (controller instanceof AdbOnChangeListener) { 101 ((AdbOnChangeListener) controller).onAdbSettingChanged(); 117 for (AbstractPreferenceController controller : mPreferenceControllers) { 118 if (controller instanceof BluetoothServiceConnectionListener) { 119 ((BluetoothServiceConnectionListener) controller).onBluetoothCodecUpdated(); 135 for (AbstractPreferenceController controller : mPreferenceControllers) { 136 if (controller instanceof BluetoothServiceConnectionListener) { 137 ((BluetoothServiceConnectionListener) controller) 148 for (AbstractPreferenceController controller : mPreferenceControllers) { [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/ |
D | MainlineModuleVersionPreferenceControllerTest.java | 69 final MainlineModuleVersionPreferenceController controller = in getAvailabilityStatus_noMainlineModuleProvider_unavailable() local 72 assertThat(controller.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_noMainlineModuleProvider_unavailable() 84 final MainlineModuleVersionPreferenceController controller = in getAvailabilityStatus_noMainlineModulePackageInfo_unavailable() local 87 assertThat(controller.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_noMainlineModulePackageInfo_unavailable() 94 final MainlineModuleVersionPreferenceController controller = in getAvailabilityStatus_hasMainlineModulePackageInfo_available() local 97 assertThat(controller.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_hasMainlineModulePackageInfo_available() 105 final MainlineModuleVersionPreferenceController controller = in updateState_canHandleV2Intent_setIntentToPreference() local 108 controller.updateState(mPreference); in updateState_canHandleV2Intent_setIntentToPreference() 118 final MainlineModuleVersionPreferenceController controller = in updateState_canHandleV2Intent_preferenceShouldBeSelectable() local 121 controller.updateState(mPreference); in updateState_canHandleV2Intent_preferenceShouldBeSelectable() [all …]
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DashboardFragment.java | 109 uniqueControllerFromXml.forEach(controller -> { in onAttach() 110 if (controller instanceof LifecycleObserver) { in onAttach() 111 lifecycle.addObserver((LifecycleObserver) controller); in onAttach() 117 mControllers.forEach(controller -> { in onAttach() 118 if (controller instanceof BasePreferenceController) { in onAttach() 119 ((BasePreferenceController) controller).setMetricsCategory(metricCategory); in onAttach() 126 for (AbstractPreferenceController controller : mControllers) { in onAttach() 127 addPreferenceController(controller); in onAttach() 134 controllers.forEach(controller -> { in checkUiBlocker() 135 if (controller instanceof BasePreferenceController.UiBlocker in checkUiBlocker() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | WorkPolicyInfoPreferenceControllerTest.java | 53 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetPreferenceType() local 55 assertWithMessage("preferenceType").that(controller.getPreferenceType()) in testGetPreferenceType() 61 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureDisabled(); in testGetAvailabilityStatus_noFeature() local 63 assertAvailability(controller.getAvailabilityStatus(), UNSUPPORTED_ON_DEVICE); in testGetAvailabilityStatus_noFeature() 68 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetAvailabilityStatus_noAdmin() local 71 assertAvailability(controller.getAvailabilityStatus(), DISABLED_FOR_PROFILE); in testGetAvailabilityStatus_noAdmin() 76 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetAvailabilityStatus_adminWithoutReceiver() local 80 assertAvailability(controller.getAvailabilityStatus(), DISABLED_FOR_PROFILE); in testGetAvailabilityStatus_adminWithoutReceiver() 85 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetAvailabilityStatus_adminWithReceiver() local 89 assertAvailability(controller.getAvailabilityStatus(), AVAILABLE); in testGetAvailabilityStatus_adminWithReceiver() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | AbstractMobileNetworkSettings.java | 59 AbstractPreferenceController controller) { in searchForPreference() argument 60 final String key = controller.getPreferenceKey(); in searchForPreference() 77 .filter(controller -> controller.isAvailable()) in onExpandButtonClick() 78 .forEach(controller -> { in onExpandButtonClick() 79 final String key = controller.getPreferenceKey(); in onExpandButtonClick() 81 controller.updateState(preference); in onExpandButtonClick() 99 getPreferenceControllersAsList().forEach(controller -> in updatePreferenceStates() 100 updateVisiblePreferenceControllers(screen, controller)); in updatePreferenceStates() 104 AbstractPreferenceController controller) { in updateVisiblePreferenceControllers() argument 105 final Preference preference = searchForPreference(screen, controller); in updateVisiblePreferenceControllers() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | DevelopmentSettingsDashboardFragmentTest.java | 190 final BluetoothA2dpHwOffloadPreferenceController controller = in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog() local 194 BluetoothA2dpHwOffloadPreferenceController.class)).thenReturn(controller); in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog() 195 when(controller.isDefaultValue()).thenReturn(false); in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog() 212 final OemUnlockPreferenceController controller = mock(OemUnlockPreferenceController.class); in onOemUnlockDialogConfirmed_shouldCallControllerOemConfirmed() local 213 doReturn(controller).when(mDashboard) in onOemUnlockDialogConfirmed_shouldCallControllerOemConfirmed() 216 verify(controller).onOemUnlockConfirmed(); in onOemUnlockDialogConfirmed_shouldCallControllerOemConfirmed() 221 final OemUnlockPreferenceController controller = mock(OemUnlockPreferenceController.class); in onOemUnlockDialogConfirmed_shouldCallControllerOemDismissed() local 222 doReturn(controller).when(mDashboard) in onOemUnlockDialogConfirmed_shouldCallControllerOemDismissed() 225 verify(controller).onOemUnlockDismissed(); in onOemUnlockDialogConfirmed_shouldCallControllerOemDismissed() 230 final AdbPreferenceController controller = mock(AdbPreferenceController.class); in onAdbDialogConfirmed_shouldCallControllerDialogConfirmed() local [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/autofill/ |
D | PasswordsPreferenceControllerTest.java | 81 PasswordsPreferenceController controller = in getAvailabilityStatus_withoutInit_returnsUnavailable() local 83 assertThat(controller.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_withoutInit_returnsUnavailable() 88 PasswordsPreferenceController controller = in getAvailabilityStatus_noServices_returnsUnavailable() local 90 assertThat(controller.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_noServices_returnsUnavailable() 96 PasswordsPreferenceController controller = in getAvailabilityStatus_noPasswords_returnsUnavailable() local 98 assertThat(controller.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_noPasswords_returnsUnavailable() 103 PasswordsPreferenceController controller = in getAvailabilityStatus_withPasswords_returnsAvailable() local 105 assertThat(controller.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_withPasswords_returnsAvailable() 110 PasswordsPreferenceController controller = in displayPreference_noServices_noPreferencesAdded() local 112 controller.displayPreference(mScreen); in displayPreference_noServices_noPreferencesAdded() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | ParametricEditor.java | 32 import com.android.gallery3d.filtershow.controller.ActionSlider; 33 import com.android.gallery3d.filtershow.controller.BasicSlider; 34 import com.android.gallery3d.filtershow.controller.ColorChooser; 35 import com.android.gallery3d.filtershow.controller.Control; 36 import com.android.gallery3d.filtershow.controller.Parameter; 37 import com.android.gallery3d.filtershow.controller.ParameterActionAndInt; 38 import com.android.gallery3d.filtershow.controller.ParameterBrightness; 39 import com.android.gallery3d.filtershow.controller.ParameterColor; 40 import com.android.gallery3d.filtershow.controller.ParameterHue; 41 import com.android.gallery3d.filtershow.controller.ParameterInteger; [all …]
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | MediaActivityController.java | 179 for (BrowseViewController controller : mBrowseViewControllersByNode.values()) { in clearMediaSource() 180 controller.destroy(); in clearMediaSource() 336 public void onChildrenNodesRemoved(@NonNull BrowseViewController controller, 339 if (mBrowseStack.contains(controller.getParentItem())) { 402 BrowseViewController controller = mBrowseViewControllersByNode.get(item); in getControllerForItem() local 403 if (controller == null) { in getControllerForItem() 404 controller = BrowseViewController.newBrowseController(mBrowseCallbacks, mBrowseArea, in getControllerForItem() 409 controller.onCarUiInsetsChanged(mCarUiInsets); in getControllerForItem() 411 controller.onPlaybackControlsChanged(mPlaybackControlsVisible); in getControllerForItem() 413 mBrowseViewControllersByNode.put(item, controller); in getControllerForItem() [all …]
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceBroadcastReceiver.java | 114 final BasePreferenceController controller = getPreferenceController(context, key); in handleToggleAction() local 116 if (!(controller instanceof TogglePreferenceController)) { in handleToggleAction() 120 if (!controller.isAvailable()) { in handleToggleAction() 122 if (!controller.hasAsyncUpdate()) { in handleToggleAction() 130 final TogglePreferenceController toggleController = (TogglePreferenceController) controller; in handleToggleAction() 133 if (!controller.hasAsyncUpdate()) { in handleToggleAction() 148 final BasePreferenceController controller = getPreferenceController(context, key); in handleSliderAction() local 150 if (!(controller instanceof SliderPreferenceController)) { in handleSliderAction() 154 if (!controller.isAvailable()) { in handleSliderAction() 160 final SliderPreferenceController sliderController = (SliderPreferenceController) controller; in handleSliderAction() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | RestrictAppPreferenceControllerTest.java | 125 final RestrictAppPreferenceController controller = new RestrictAppPreferenceController( in updateState_oneApp_showCorrectSummary() local 127 controller.displayPreference(mPreferenceScreen); in updateState_oneApp_showCorrectSummary() 128 controller.updateState(mPreference); in updateState_oneApp_showCorrectSummary() 141 final RestrictAppPreferenceController controller = new RestrictAppPreferenceController( in updateState_twoRestrictedAppsForPrimaryUser_visibleAndShowCorrectSummary() local 143 controller.displayPreference(mPreferenceScreen); in updateState_twoRestrictedAppsForPrimaryUser_visibleAndShowCorrectSummary() 144 controller.updateState(mPreference); in updateState_twoRestrictedAppsForPrimaryUser_visibleAndShowCorrectSummary() 157 final RestrictAppPreferenceController controller = new RestrictAppPreferenceController( in updateState_oneRestrictedAppForTwoUsers_showSummaryAndContainCorrectApp() local 159 controller.displayPreference(mPreferenceScreen); in updateState_oneRestrictedAppForTwoUsers_showSummaryAndContainCorrectApp() 160 controller.updateState(mPreference); in updateState_oneRestrictedAppForTwoUsers_showSummaryAndContainCorrectApp() 163 assertThat(controller.mAppInfos).containsExactly( in updateState_oneRestrictedAppForTwoUsers_showSummaryAndContainCorrectApp() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/emergency/ |
D | MoreSettingsPreferenceControllerTest.java | 77 MoreSettingsPreferenceController controller = new MoreSettingsPreferenceController( in constructor_hasPackageConfig_shouldSetIntent() local 80 assertThat(controller.mIntent).isNotNull(); in constructor_hasPackageConfig_shouldSetIntent() 91 MoreSettingsPreferenceController controller = new MoreSettingsPreferenceController( in getAvailabilityStatus_whenIntentSet_shouldReturnAvailable() local 94 assertThat(controller.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_whenIntentSet_shouldReturnAvailable() 100 MoreSettingsPreferenceController controller = new MoreSettingsPreferenceController( in getAvailabilityStatus_whenPackageConfigIsUnavailable_shouldReturnUnsupported() local 103 assertThat(controller.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_whenPackageConfigIsUnavailable_shouldReturnUnsupported() 113 MoreSettingsPreferenceController controller = new MoreSettingsPreferenceController( in getAvailabilityStatus_noSuitableIntent_shouldReturnUnsupportedDevice() local 116 assertThat(controller.mIntent).isNull(); in getAvailabilityStatus_noSuitableIntent_shouldReturnUnsupportedDevice() 117 assertThat(controller.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_noSuitableIntent_shouldReturnUnsupportedDevice() 128 MoreSettingsPreferenceController controller = new MoreSettingsPreferenceController( in getAvailabilityStatus_intentForANonSystemApp_shouldReturnUnsupportedDevice() local [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapper.java | 86 MediaPlayerWrapper(Context context, MediaController controller, Looper looper) { in MediaPlayerWrapper() argument 88 mMediaController = controller; in MediaPlayerWrapper() 89 mPackageName = controller.getPackageName(); in MediaPlayerWrapper() 154 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playItemFromQueue() local 155 controller.skipToQueueItem(qid); in playItemFromQueue() 159 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playCurrent() local 160 controller.play(); in playCurrent() 164 MediaController.TransportControls controller = mMediaController.getTransportControls(); in stopCurrent() local 165 controller.stop(); in stopCurrent() 169 MediaController.TransportControls controller = mMediaController.getTransportControls(); in pauseCurrent() local [all …]
|