/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 …]
|
/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/accessibility/ |
D | VibrationIntensityPreferenceControllerTest.java | 85 VibrationIntensityPreferenceController controller = createPreferenceController(3); in missingSetting_shouldReturnDefault() local 87 controller.updateState(mPreference); in missingSetting_shouldReturnDefault() 94 VibrationIntensityPreferenceController controller = createPreferenceController(3); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates() local 98 controller.updateState(mPreference); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates() 103 controller.updateState(mPreference); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates() 108 controller.updateState(mPreference); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates() 115 VibrationIntensityPreferenceController controller = createPreferenceController(3); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition() local 118 controller.updateState(mPreference); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition() 122 controller.updateState(mPreference); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition() 126 controller.updateState(mPreference); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition() [all …]
|
D | VibrationPreferenceControllerTest.java | 66 VibrationPreferenceController controller = createPreferenceController(); in verifyConstants() local 67 assertThat(controller.getPreferenceKey()).isEqualTo(PREFERENCE_KEY); in verifyConstants() 73 VibrationPreferenceController controller = createPreferenceController(); in getAvailabilityStatus_noVibrator_returnUnsupportedOnDevice() local 75 assertThat(controller.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_noVibrator_returnUnsupportedOnDevice() 81 VibrationPreferenceController controller = createPreferenceController(); in getAvailabilityStatus_withVibrator_returnAvailable() local 83 assertThat(controller.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_withVibrator_returnAvailable() 91 VibrationPreferenceController controller = createPreferenceController(); in getSummary_vibrateSettingNotSet_returnsOnText() local 92 controller.updateState(mPreference); in getSummary_vibrateSettingNotSet_returnsOnText() 102 VibrationPreferenceController controller = createPreferenceController(); in getSummary_vibrateSettingOn_returnsOnText() local 103 controller.updateState(mPreference); in getSummary_vibrateSettingOn_returnsOnText() [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 …]
|
/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 | 161 SipTransportController controller = createController(new TestExecutorService()); in isSupportedRcsNotConnected() local 163 controller.isSupported(TEST_SUB_ID); in isSupportedRcsNotConnected() 173 SipTransportController controller = createController(new TestExecutorService()); in isSupportedInvalidSubId() local 175 controller.isSupported(TEST_SUB_ID + 1); in isSupportedInvalidSubId() 185 SipTransportController controller = createController(new TestExecutorService()); in isSupportedSubIdChanged() local 186 controller.onAssociatedSubscriptionUpdated(TEST_SUB_ID + 1); in isSupportedSubIdChanged() 188 controller.isSupported(TEST_SUB_ID); in isSupportedSubIdChanged() 198 SipTransportController controller = createController(new TestExecutorService()); in isSupportedSipTransportAvailableRcsConnected() local 200 controller.onRcsConnected(mRcsManager); in isSupportedSipTransportAvailableRcsConnected() 202 assertTrue(controller.isSupported(TEST_SUB_ID)); in isSupportedSipTransportAvailableRcsConnected() [all …]
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DashboardFragment.java | 111 uniqueControllerFromXml.forEach(controller -> { in onAttach() 112 if (controller instanceof LifecycleObserver) { in onAttach() 113 lifecycle.addObserver((LifecycleObserver) controller); in onAttach() 119 mControllers.forEach(controller -> { in onAttach() 120 if (controller instanceof BasePreferenceController) { in onAttach() 121 ((BasePreferenceController) controller).setMetricsCategory(metricCategory); in onAttach() 128 for (AbstractPreferenceController controller : mControllers) { in onAttach() 129 addPreferenceController(controller); in onAttach() 137 controllers.forEach(controller -> { in checkUiBlocker() 138 if (controller instanceof BasePreferenceController.UiBlocker in checkUiBlocker() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/ |
D | Android.bp | 53 "model/controller/acl_connection.cc", 54 "model/controller/acl_connection_handler.cc", 55 "model/controller/controller_properties.cc", 56 "model/controller/dual_mode_controller.cc", 57 "model/controller/isochronous_connection_handler.cc", 58 "model/controller/le_advertiser.cc", 59 "model/controller/link_layer_controller.cc", 60 "model/controller/sco_connection.cc", 61 "model/controller/security_manager.cc", 127 "test/controller/le/le_set_random_address_test.cc", [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/ |
D | AppLocalePickerActivityTest.java | 60 import org.robolectric.android.controller.ActivityController; 107 ActivityController<TestAppLocalePickerActivity> controller = in launchAppLocalePickerActivity_hasPackageName_success() local 109 controller.create(); in launchAppLocalePickerActivity_hasPackageName_success() 111 assertThat(controller.get().isFinishing()).isFalse(); in launchAppLocalePickerActivity_hasPackageName_success() 118 ActivityController<TestAppLocalePickerActivity> controller = in launchAppLocalePickerActivity_appNoLocaleConfig_failed() local 120 controller.create(); in launchAppLocalePickerActivity_appNoLocaleConfig_failed() 122 assertThat(controller.get().isFinishing()).isTrue(); in launchAppLocalePickerActivity_appNoLocaleConfig_failed() 136 ActivityController<TestAppLocalePickerActivity> controller = in launchAppLocalePickerActivity_appSignPlatformKey_failed() local 138 controller.create(); in launchAppLocalePickerActivity_appSignPlatformKey_failed() 140 assertThat(controller.get().isFinishing()).isTrue(); in launchAppLocalePickerActivity_appSignPlatformKey_failed() [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/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | WorkPolicyInfoPreferenceControllerTest.java | 59 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetPreferenceType() local 61 assertWithMessage("preferenceType").that(controller.getPreferenceType()) in testGetPreferenceType() 67 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureDisabled(); in testGetAvailabilityStatus_noFeature() local 69 PreferenceControllerTestUtil.assertAvailability(controller.getAvailabilityStatus(), in testGetAvailabilityStatus_noFeature() 75 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetAvailabilityStatus_noAdmin() local 78 PreferenceControllerTestUtil.assertAvailability(controller.getAvailabilityStatus(), in testGetAvailabilityStatus_noAdmin() 84 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetAvailabilityStatus_adminWithoutReceiver() local 88 PreferenceControllerTestUtil.assertAvailability(controller.getAvailabilityStatus(), in testGetAvailabilityStatus_adminWithoutReceiver() 94 WorkPolicyInfoPreferenceController controller = newControllerWithFeatureEnabled(); in testGetAvailabilityStatus_adminWithReceiver() local 98 PreferenceControllerTestUtil.assertAvailability(controller.getAvailabilityStatus(), in testGetAvailabilityStatus_adminWithReceiver() [all …]
|
D | ManageDeviceAdminPreferenceControllerTest.java | 41 ManageDeviceAdminPreferenceController controller = newControllerWithFeatureEnabled(); in testUpdateState_noActiveAdminApps() local 44 controller.updateState(mPreference); in testUpdateState_noActiveAdminApps() 52 ManageDeviceAdminPreferenceController controller = newControllerWithFeatureEnabled(); in testUpdateState_singleActiveAdminApp() local 55 controller.updateState(mPreference); in testUpdateState_singleActiveAdminApp() 63 ManageDeviceAdminPreferenceController controller = newControllerWithFeatureEnabled(); in testUpdateState_multipleActiveAdminApps() local 67 controller.updateState(mPreference); in testUpdateState_multipleActiveAdminApps() 75 ManageDeviceAdminPreferenceController controller = newControllerWithFeatureDisabled(); in testGetAvailabilityStatus_deviceAdminDisabled() local 77 PreferenceControllerTestUtil.assertAvailability(controller.getAvailabilityStatus(), in testGetAvailabilityStatus_deviceAdminDisabled() 83 ManageDeviceAdminPreferenceController controller = newControllerWithFeatureEnabled(); in testGetAvailabilityStatus_deviceAdminEnabled() local 85 PreferenceControllerTestUtil.assertAvailability(controller.getAvailabilityStatus(), in testGetAvailabilityStatus_deviceAdminEnabled() [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() 79 .filter(controller -> controller.isAvailable()) in onExpandButtonClick() 80 .forEach(controller -> { in onExpandButtonClick() 81 final String key = controller.getPreferenceKey(); in onExpandButtonClick() 83 controller.updateState(preference); in onExpandButtonClick() 108 getPreferenceControllersAsList().forEach(controller -> in updatePreferenceStates() 109 updateVisiblePreferenceControllers(screen, controller)); in updatePreferenceStates() 118 AbstractPreferenceController controller) { in updateVisiblePreferenceControllers() argument 119 final Preference preference = searchForPreference(screen, controller); in updateVisiblePreferenceControllers() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DevelopmentSettingsDashboardFragment.java | 101 for (AbstractPreferenceController controller : mPreferenceControllers) { 102 if (controller instanceof AdbOnChangeListener) { 103 ((AdbOnChangeListener) controller).onAdbSettingChanged(); 119 for (AbstractPreferenceController controller : mPreferenceControllers) { 120 if (controller instanceof BluetoothServiceConnectionListener) { 121 ((BluetoothServiceConnectionListener) controller).onBluetoothCodecUpdated(); 137 for (AbstractPreferenceController controller : mPreferenceControllers) { 138 if (controller instanceof BluetoothServiceConnectionListener) { 139 ((BluetoothServiceConnectionListener) controller) 150 for (AbstractPreferenceController controller : mPreferenceControllers) { [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | DevelopmentSettingsDashboardFragmentTest.java | 196 final BluetoothA2dpHwOffloadPreferenceController controller = in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog() local 200 BluetoothA2dpHwOffloadPreferenceController.class)).thenReturn(controller); in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog() 201 when(controller.isDefaultValue()).thenReturn(false); in onSwitchChanged_turnOff_andOffloadIsNotDefaultValue_shouldShowWarningDialog() 218 final OemUnlockPreferenceController controller = mock(OemUnlockPreferenceController.class); in onOemUnlockDialogConfirmed_shouldCallControllerOemConfirmed() local 219 doReturn(controller).when(mDashboard) in onOemUnlockDialogConfirmed_shouldCallControllerOemConfirmed() 222 verify(controller).onOemUnlockConfirmed(); in onOemUnlockDialogConfirmed_shouldCallControllerOemConfirmed() 227 final OemUnlockPreferenceController controller = mock(OemUnlockPreferenceController.class); in onOemUnlockDialogConfirmed_shouldCallControllerOemDismissed() local 228 doReturn(controller).when(mDashboard) in onOemUnlockDialogConfirmed_shouldCallControllerOemDismissed() 231 verify(controller).onOemUnlockDismissed(); in onOemUnlockDialogConfirmed_shouldCallControllerOemDismissed() 236 final AdbPreferenceController controller = mock(AdbPreferenceController.class); in onAdbDialogConfirmed_shouldCallControllerDialogConfirmed() local [all …]
|
/packages/modules/Bluetooth/system/gd/l2cap/internal/ |
D | le_credit_based_channel_data_controller_test.cc | 76 …LeCreditBasedDataController controller{&link, 0x41, 0x41, channel_queue.GetDownEnd(), queue_handle… in TEST_F() local 77 controller.OnCredit(10); in TEST_F() 79 controller.OnSdu(CreateSdu({'a', 'b', 'c', 'd'})); in TEST_F() 80 auto next_packet = controller.GetNextPacket(); in TEST_F() 96 …LeCreditBasedDataController controller{&link, 0x41, 0x41, channel_queue.GetDownEnd(), queue_handle… in TEST_F() local 97 controller.OnCredit(10); in TEST_F() 98 controller.SetMps(4); in TEST_F() 101 controller.OnSdu(CreateSdu({'a', 'b', 'c', 'd'})); in TEST_F() 102 auto next_packet = controller.GetNextPacket(); in TEST_F() 114 next_packet = controller.GetNextPacket(); in TEST_F() [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/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | ControllerTest.java | 174 Controller controller = new Controller(mContextMock, mLooperMock, mHandlerMock, garageMode); in testInitAndRelease() local 176 controller.init(); in testInitAndRelease() 177 controller.release(); in testInitAndRelease() 188 Controller controller = new Controller(mContextMock, mLooperMock); in testConstructor() local 190 assertThat(controller).isNotNull(); in testConstructor() 196 Controller controller = spy(new Controller(mContextMock, mLooperMock, mHandlerMock, in testOnStateChanged() local 198 controller.init(); in testOnStateChanged() 200 controller.onStateChanged(CarPowerManager.STATE_SHUTDOWN_CANCELLED, INVALID_TIMEOUT); in testOnStateChanged() 201 verify(controller).resetGarageMode(); in testOnStateChanged() 203 clearInvocations(controller); in testOnStateChanged() [all …]
|
/packages/modules/Bluetooth/android/app/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 …]
|