/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/controller/ |
D | RemoteQCControllerTest.java | 61 protected RemoteQCController getController() { in getController() method in RemoteQCControllerTest 71 RemoteQCController spiedController = spy(getController()); in onBind_updatesQCItem() 81 RemoteQCController spiedController = spy(getController()); in updateListening_listen_updatesQCItem() 91 getController().addObserver(observer); in updateListening_listen_providerSubscribed() 92 getController().listen(true); in updateListening_listen_providerSubscribed() 97 Bundle res = getController().getClient().call(METHOD_IS_SUBSCRIBED, null, extras); in updateListening_listen_providerSubscribed() 106 getController().addObserver(observer); in updateListening_doNotListen_providerUnsubscribed() 107 getController().listen(true); in updateListening_doNotListen_providerUnsubscribed() 108 getController().listen(false); in updateListening_doNotListen_providerUnsubscribed() 113 Bundle res = getController().getClient().call(METHOD_IS_SUBSCRIBED, null, extras); in updateListening_doNotListen_providerUnsubscribed() [all …]
|
D | BaseQCControllerTestCase.java | 40 protected abstract T getController(); in getController() method in BaseQCControllerTestCase 44 T spiedController = spy(getController()); in listen_updateListeningCalled() 52 T spiedController = spy(getController()); in addObserver_updateListeningCalled() 60 T spiedController = spy(getController()); in removeObserver_updateListeningCalled() 68 getController().addObserver(observer); in onQCItemUpdated_observersNotified() 69 getController().onQCItemUpdated(new QCTile.Builder().build()); in onQCItemUpdated_observersNotified() 76 getController().addObserver(observer); in onDestroy_cleanUpController() 77 getController().listen(true); in onDestroy_cleanUpController() 78 getController().destroy(); in onDestroy_cleanUpController() 79 assertThat(getController().mObservers.size()).isEqualTo(0); in onDestroy_cleanUpController() [all …]
|
D | LocalQCControllerTest.java | 41 protected LocalQCController getController() { in getController() method in LocalQCControllerTest 51 getController(); // instantiate in onCreate_setsProviderNotifier() 58 LocalQCController spiedController = spy(getController()); in onBind_updatesQCItem() 69 getController().addObserver(observer); in updateListening_updatesProviderListening() 70 getController().listen(true); in updateListening_updatesProviderListening() 72 getController().listen(false); in updateListening_updatesProviderListening() 79 LocalQCController spiedController = spy(getController()); in updateListening_listen_updatesQCItem() 89 getController().destroy(); in onDestroy_callsProviderDestroy()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | CredentialsResetPreferenceControllerTest.java | 67 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_noRestrictions_returnsAvailable() 72 mControllerHelper.getController().setAvailabilityStatusForZone("write"); in getAvailabilityStatus_noRestrictions_returnsAvailable_zoneWrite() 76 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_noRestrictions_returnsAvailable_zoneWrite() 81 mControllerHelper.getController().setAvailabilityStatusForZone("read"); in getAvailabilityStatus_noRestrictions_returnsAvailable_zoneRead() 85 assertThat(mControllerHelper.getController().getAvailabilityStatus()) in getAvailabilityStatus_noRestrictions_returnsAvailable_zoneRead() 91 mControllerHelper.getController().setAvailabilityStatusForZone("hidden"); in getAvailabilityStatus_noRestrictions_returnsAvailable_zoneHidden() 95 assertThat(mControllerHelper.getController().getAvailabilityStatus()) in getAvailabilityStatus_noRestrictions_returnsAvailable_zoneHidden() 104 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_userRestricted_returnsDisabledForUser() 110 mControllerHelper.getController().setAvailabilityStatusForZone("write"); in getAvailabilityStatus_userRestricted_returnsDisabledForUser_zoneWrite() 113 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_userRestricted_returnsDisabledForUser_zoneWrite() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accessibility/ |
D | ScreenReaderCategoryPreferenceControllerTest.java | 84 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testGetAvailability_screenReaderInstalled_isAvailable() 100 mPreferenceControllerHelper.getController().setAvailabilityStatusForZone("write"); in testGetAvailability_screenReaderInstalled_zoneWrite() 103 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testGetAvailability_screenReaderInstalled_zoneWrite() 119 mPreferenceControllerHelper.getController().setAvailabilityStatusForZone("read"); in testGetAvailability_screenReaderInstalled_zoneRead() 122 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testGetAvailability_screenReaderInstalled_zoneRead() 138 mPreferenceControllerHelper.getController().setAvailabilityStatusForZone("hidden"); in testGetAvailability_screenReaderInstalled_zoneHidden() 141 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testGetAvailability_screenReaderInstalled_zoneHidden() 151 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testGetAvailability_screenReaderNotInstalled_isUnavailable() 159 mPreferenceControllerHelper.getController().setAvailabilityStatusForZone("write"); in testGetAvailability_screenReaderNotInstalled_isUnavailable_zoneWrite() 162 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testGetAvailability_screenReaderNotInstalled_isUnavailable_zoneWrite() [all …]
|
D | ScreenReaderSettingsIntentPreferenceControllerTest.java | 92 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateState_noSettingsActivity_hidesSettings() 94 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testUpdateState_noSettingsActivity_hidesSettings() 115 mPreferenceControllerHelper.getController().setAvailabilityStatusForZone("write"); in testUpdateState_noSettingsActivity_hidesSettings_zoneWrite() 116 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateState_noSettingsActivity_hidesSettings_zoneWrite() 118 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testUpdateState_noSettingsActivity_hidesSettings_zoneWrite() 139 mPreferenceControllerHelper.getController().setAvailabilityStatusForZone("read"); in testUpdateState_noSettingsActivity_hidesSettings_zoneRead() 140 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateState_noSettingsActivity_hidesSettings_zoneRead() 142 assertThat(mPreferenceControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in testUpdateState_noSettingsActivity_hidesSettings_zoneRead() 163 mPreferenceControllerHelper.getController().setAvailabilityStatusForZone("hidden"); in testUpdateState_noSettingsActivity_hidesSettings_zoneHidden() 164 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateState_noSettingsActivity_hidesSettings_zoneHidden() [all …]
|
D | CaptionsTextStyleListPreferenceControllerTest.java | 54 mFontStyleTitles = mPreferenceControllerHelper.getController().mFontStyleTitles; in setup() 66 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateUi_includesAllTextStyleOptions() 77 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateUi_selectsCurrentFontStylePreset() 88 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateUi_noKnownValueSelected_selectsDefaultFontStylePreset()
|
D | CaptionsTextSizeListPreferenceControllerTest.java | 55 mFontSizeTitles = mPreferenceControllerHelper.getController().mFontSizeTitles; in setup() 67 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateUi_includesAllTextSizeOptions() 78 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateUi_selectsCurrentFontSize() 89 mPreferenceControllerHelper.getController().refreshUi(); in testUpdateUi_noKnownValueSelected_selectsDefaultFontSize()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/ |
D | DiscoveryProviderManager.java | 156 mChreDiscoveryProvider.getController().setListener(this); in init() 253 if (!mBleDiscoveryProvider.getController().isStarted()) { in startBleProvider() 255 mBleDiscoveryProvider.getController().setListener(this); in startBleProvider() 256 mBleDiscoveryProvider.getController().setProviderScanMode(mMerged.getScanMode()); in startBleProvider() 257 mBleDiscoveryProvider.getController().setProviderScanFilters( in startBleProvider() 259 mBleDiscoveryProvider.getController().start(); in startBleProvider() 267 mChreDiscoveryProvider.getController().setProviderScanFilters(new ArrayList<>(scanFilters)); in startChreProvider() 268 mChreDiscoveryProvider.getController().setProviderScanMode(mMerged.getScanMode()); in startChreProvider() 269 mChreDiscoveryProvider.getController().start(); in startChreProvider() 278 mBleDiscoveryProvider.getController().stop(); in stopBleProvider() [all …]
|
D | DiscoveryProviderManagerLegacy.java | 235 mChreDiscoveryProvider.getController().setListener(this); in init() 388 if (!mBleDiscoveryProvider.getController().isStarted()) { in startBleProvider() 390 mBleDiscoveryProvider.getController().setListener(this); in startBleProvider() 391 mBleDiscoveryProvider.getController().setProviderScanMode(mScanMode); in startBleProvider() 392 mBleDiscoveryProvider.getController().setProviderScanFilters(scanFilters); in startBleProvider() 393 mBleDiscoveryProvider.getController().start(); in startBleProvider() 400 mChreDiscoveryProvider.getController().setProviderScanFilters(scanFilters); in startChreProvider() 401 mChreDiscoveryProvider.getController().setProviderScanMode(mScanMode); in startChreProvider() 402 mChreDiscoveryProvider.getController().start(); in startChreProvider() 428 mBleDiscoveryProvider.getController().stop(); in stopBleProvider() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePreferenceControllerTest.java | 84 mControllerHelper.getController().setCachedDevice(mDevice); in setUp() 106 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser() 114 mControllerHelper.getController().setAvailabilityStatusForZone("write"); in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneWrite() 116 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneWrite() 124 mControllerHelper.getController().setAvailabilityStatusForZone("read"); in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneRead() 126 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneRead() 134 mControllerHelper.getController().setAvailabilityStatusForZone("hidden"); in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneHidden() 136 assertThat(mControllerHelper.getController().getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser_zoneHidden() 166 assertThat(mControllerHelper.getController().getUpdateStateCallCount()).isEqualTo(2); in started_onDeviceAttributesChanged_refreshesUi() 171 assertThat(mControllerHelper.getController().getUpdateStateCallCount()).isEqualTo(3); in started_onDeviceAttributesChanged_refreshesUi()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | HandleApiCalls.kt | 106 Controller.getController().notifyVoiceFailure(mActivity, reason) in doInBackground() 133 Controller.getController().notifyVoiceSuccess(mActivity, voiceMessage) in doInBackground() 153 Controller.getController().notifyVoiceSuccess(mActivity, voiceMessage) in doInBackground() 190 Controller.getController().notifyVoiceFailure(mActivity, reason) in doInBackground() 214 Controller.getController().notifyVoiceFailure(this, voiceMessage) in handleSetAlarm() 224 Controller.getController().notifyVoiceFailure(this, voiceMessage) in handleSetAlarm() 246 Controller.getController().notifyVoiceFailure(this, voiceMessage) in handleSetAlarm() 290 Controller.getController().notifyVoiceSuccess(this, getString(R.string.alarm_is_set, time)) in handleSetAlarm() 299 Controller.getController().notifyVoiceSuccess(this, in handleDismissTimer() 303 Controller.getController().notifyVoiceFailure(this, in handleDismissTimer() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/ |
D | WifiDetailsBasePreferenceControllerTestCase.java | 62 getController().init(mMockWifiEntry, mMockWifiInfoProvider); in setUp() 63 PreferenceControllerTestUtil.assignPreference(getController(), mPreference); in setUp() 70 getController().onCreate(mLifecycleOwner); in onCreate_connected_shouldHaveDetailTextSet() 79 getController().onCreate(mLifecycleOwner); in onWifiChanged_isNotActive_preferenceNotVisible() 87 protected abstract WifiDetailsBasePreferenceController<WifiDetailsPreference> getController(); in getController() method in WifiDetailsBasePreferenceControllerTestCase
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/ |
D | DiscoveryProviderManagerTest.java | 143 when(mBleDiscoveryProvider.getController()).thenReturn(mBluetoothController); in setup() 144 when(mChreDiscoveryProvider.getController()).thenReturn(mChreController); in setup() 302 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_stopChreProvider_clearFilters() 309 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_stopChreProvider_clearFilters() 334 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_restartChreProvider() 343 manager.mChreDiscoveryProvider.getController().setProviderScanFilters( in test_restartChreProvider() 347 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_restartChreProvider() 354 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_restartChreProvider()
|
D | DiscoveryProviderManagerLegacyTest.java | 150 when(mBleDiscoveryProvider.getController()).thenReturn(mBluetoothController); in setup() 151 when(mChreDiscoveryProvider.getController()).thenReturn(mChreController); in setup() 337 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_stopChreProvider_clearFilters() 344 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_stopChreProvider_clearFilters() 373 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_restartChreProvider() 382 manager.mChreDiscoveryProvider.getController().setProviderScanFilters( in test_restartChreProvider() 386 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_restartChreProvider() 393 assertThat(manager.mChreDiscoveryProvider.getController().isStarted()) in test_restartChreProvider()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | ConditionManager.java | 64 final DisplayableChecker checker = new DisplayableChecker(getController(card.getId())); in getDisplayableCards() 88 getController(id).onPrimaryClick(context); in onPrimaryClick() 97 getController(id).onActionClick(); in onActionClick() 140 private <T extends ConditionalCardController> T getController(long id) { in getController() method in ConditionManager
|
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/ |
D | ClockViewFactoryImpl.kt | 53 override fun getController(clockId: String): ClockController { in <lambda>() method in com.android.customization.picker.clock.ui.view.ClockViewFactoryImpl 63 return getController(clockId).largeClock.let { in <lambda>() 77 it.addView(getController(clockId).smallClock.view) in <lambda>() 90 getController(clockId).events.isReactiveTouchInteractionEnabled = enable in <lambda>() 142 getController(clockId) in <lambda>()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/ |
D | LegacySuggestionContextualCardRendererTest.java | 76 when(mControllerRendererPool.getController(mActivity, in bindView_shouldSetListener() 95 when(mControllerRendererPool.getController(mActivity, in bindView_closeButton_shouldSetListener() 113 when(mControllerRendererPool.getController(mActivity, in viewClick_shouldInvokeControllerPrimaryClick() 134 when(mControllerRendererPool.getController(mActivity, in viewClick_closeButton_shouldInvokeControllerDismissClick()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAutofillPickerEntryPreferenceControllerTest.java | 87 mController = mControllerHelper.getController(); in setUp() 109 DefaultAutofillPickerEntryPreferenceController controller = helper.getController(); in getAvailabilityStatus_autofillManagerIsNull_unsupportedOnDevice() 124 DefaultAutofillPickerEntryPreferenceController controller = helper.getController(); in getAvailabilityStatus_autofillManagerIsNull_unsupportedOnDevice_zoneWrite() 140 DefaultAutofillPickerEntryPreferenceController controller = helper.getController(); in getAvailabilityStatus_autofillManagerIsNull_unsupportedOnDevice_zoneRead() 156 DefaultAutofillPickerEntryPreferenceController controller = helper.getController(); in getAvailabilityStatus_autofillManagerIsNull_unsupportedOnDevice_zoneHidden()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiDialogActivity.java | 247 final WifiEntry wifiEntry = dialog.getController().getWifiEntry(); in onForget() 259 final AccessPoint accessPoint = dialog.getController().getAccessPoint(); in onForget() 289 final WifiEntry wifiEntry = dialog.getController().getWifiEntry(); in onSubmit() 290 final WifiConfiguration config = dialog.getController().getConfig(); in onSubmit() 308 final WifiConfiguration config = dialog.getController().getConfig(); in onSubmit() 309 final AccessPoint accessPoint = dialog.getController().getAccessPoint(); in onSubmit()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | BluetoothMediaBrowserService.java | 91 MediaControllerCompat controller = session.getController(); in onReceive() 335 sBluetoothMediaBrowserService.mSession.getController().getTransportControls().play(); in play() 344 sBluetoothMediaBrowserService.mSession.getController().getTransportControls().pause(); in pause() 355 MediaControllerCompat controller = session.getController(); in getPlaybackState() 366 return sBluetoothMediaBrowserService.mSession.getController().getTransportControls(); in getTransportControls() 425 MediaControllerCompat controller = session.getController(); in dump()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenRuleCustomPrefContrTestBase.java | 34 abstract AbstractZenCustomRulePreferenceController getController(); in getController() method in ZenRuleCustomPrefContrTestBase 38 getController().setIdAndRule(RULE_ID, mRule); in updateControllerZenPolicy()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/zen/ |
D | ZenRuleCustomPrefContrTestBase.java | 34 abstract AbstractZenCustomRulePreferenceController getController(); in getController() method in ZenRuleCustomPrefContrTestBase 38 getController().setIdAndRule(RULE_ID, mRule); in updateControllerZenPolicy()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ControllerRendererPoolTest.java | 83 mPool.getController(mContext, mapping.mCardType).getClass()).isEqualTo( in getController_hasSupportedCardType_shouldReturnCorrespondingController() 93 mapping -> mPool.getController(mContext, mapping.mCardType)); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool() 100 final ContextualCardController controller = mPool.getController(mContext, in getController_hasUnsupportedCardType_shouldReturnNullAndPoolIsEmpty()
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/provider/ |
D | BleDiscoveryProviderTest.java | 75 mBleDiscoveryProvider.getController().setListener(mListener); in test_callback_found() 87 mBleDiscoveryProvider.getController().setListener(mListener); in test_callback_failed() 108 mBleDiscoveryProvider.getController().setProviderScanFilters(filterList); in test_stopScan_filersReset()
|