Home
last modified time | relevance | path

Searched refs:onReceive (Results 1 – 25 of 619) sorted by relevance

12345678910>>...25

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DWifiStateWorkerTest.java118 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateDisabling_getWifiStateDisabling()
126 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateDisabled_getWifiStateDisabled()
134 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateEnabling_getWifiStateEnabling()
142 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateEnabled_getWifiStateEnabled()
151 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
156 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
163 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
168 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateUnknown_ignoreTheIntent()
177 mWifiStateWorker.onReceive(mContext, mIntent); in isWifiEnabled_receiveWifiStateDisabling_returnFalse()
185 mWifiStateWorker.onReceive(mContext, mIntent); in isWifiEnabled_receiveWifiStateDisabled_returnFalse()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputDialogReceiverTest.java60 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled()
71 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled()
80 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_NoExtra_DialogFactoryNotCalled()
91 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled()
103 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_WrongExtraKey_DialogBroadcastFactoryNotCalled()
113 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_NoExtra_BroadcastDialogFactoryNotCalled()
124 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in unKnownAction_ExtraPackageName_FactoriesNotCalled()
133 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in unKnownActionAnd_NoExtra_FactoriesNotCalled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java119 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_true()
134 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_false()
149 mBatteryController.onReceive(getContext(), i); in testBatteryPresentState_notPresent()
164 mBatteryController.onReceive(getContext(), i); in testBatteryPresentState_callbackAddedAfterStateChange()
220 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue()
231 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse()
242 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_chargingStatusNotLongLife_outputsFalse()
253 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_chargingStatusLongLife_outputsTrue()
262 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_noChargingStatusGiven_outputsFalse()
273 mBatteryController.onReceive(getContext(), intent); in complianceChanged_complianceIncompatible_outputsTrue()
[all …]
DSafetyControllerTest.kt108 controller.mPermControllerChangeReceiver.onReceive(context, testIntent) in listenersCalledWhenBroadcastReceivedWithPCPackageAndStateChange()
119 controller.mPermControllerChangeReceiver.onReceive(context, testIntent) in listenersNotCalledWhenBroadcastReceivedWithOtherPackage()
130 controller.mPermControllerChangeReceiver.onReceive(context, testIntent) in listenersNotCalledWhenBroadcastReceivedWithNoStateChange()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java69 void onReceive(Context context, Intent intent, BluetoothDevice device); in onReceive() method
274 public void onReceive(Context context, Intent intent) { in onReceive() method in BluetoothEventManager.BluetoothBroadcastReceiver
281 handler.onReceive(context, intent, device); in onReceive()
287 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.AdapterStateChangedHandler
308 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.ScanningStateChangedHandler
317 public void onReceive(Context context, Intent intent, in onReceive() method in BluetoothEventManager.DeviceFoundHandler
344 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.ConnectionStateChangedHandler
353 public void onReceive(Context context, Intent intent, in onReceive() method in BluetoothEventManager.NameChangedHandler
360 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.BondStateChangedHandler
443 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.ClassChangedHandler
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DReviewNotificationPermissionsReceiverTest.java83 mReceiver.onReceive(mContext, mIntent); in testReceive_remindMeLater_firstTime()
108 mReceiver.onReceive(mContext, mIntent); in testReceive_remindMeLater_laterTimes()
129 mReceiver.onReceive(mContext, mIntent); in testReceive_dismiss()
153 mReceiver.onReceive(mContext, mIntent); in testReceive_notificationCanceled_firstSwipe()
177 mReceiver.onReceive(mContext, mIntent); in testReceive_notificationCanceled_secondSwipe()
198 mReceiver.onReceive(mContext, mIntent); in testReceive_notificationCanceled_fromDismiss()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DActionReceiverTest.kt200 actionReceiver.onReceive(mContext, intent) in testReceiverGetsBroadcast()
204 verify(receiver1).onReceive(any(Context::class.java), sameNotNull(intent)) in testReceiverGetsBroadcast()
216 actionReceiver.onReceive(mContext, intent) in testReceiverGetsPendingResult()
229 actionReceiver.onReceive(mContext, intent) in testBroadcastIsDispatchedInExecutor()
233 verify(receiver1, never()).onReceive(mContext, intent) in testBroadcastIsDispatchedInExecutor()
237 verify(receiver1).onReceive(mContext, intent) in testBroadcastIsDispatchedInExecutor()
247 actionReceiver.onReceive(mContext, intent) in testBroadcastReceivedDispatched_logger()
267 actionReceiver.onReceive(mContext, intent) in testBroadcastNotDispatchingOnPendingRemoval()
269 verify(receiver1, never()).onReceive(any(), eq(intent)) in testBroadcastNotDispatchingOnPendingRemoval()
274 actionReceiver.onReceive(mContext, Intent(ACTION2)) in testBroadcastWithWrongAction_throwsException()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java152 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreTilesIntent); in testRestoredTilePositionPreserved()
163 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreTilesIntent); in testNoRestoredTileReturnsEndPosition()
197 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreTilesIntent); in testSettingRestoredWithTilesNotRemovedInSource_noAutoAddedInTarget()
204 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreAutoAddTilesIntent); in testSettingRestoredWithTilesNotRemovedInSource_noAutoAddedInTarget()
221 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreTilesIntent); in testSettingRestoredWithTilesRemovedInSource_noAutoAddedInTarget()
228 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreAutoAddTilesIntent); in testSettingRestoredWithTilesRemovedInSource_noAutoAddedInTarget()
246 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreTilesIntent); in testSettingRestoredWithTilesRemovedInSource_sameAutoAddedinTarget()
253 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreAutoAddTilesIntent); in testSettingRestoredWithTilesRemovedInSource_sameAutoAddedinTarget()
271 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreTilesIntent); in testSettingRestoredWithTilesRemovedInSource_othersAutoAddedinTarget()
278 mBroadcastReceiverArgumentCaptor.getValue().onReceive(mContext, restoreAutoAddTilesIntent); in testSettingRestoredWithTilesRemovedInSource_othersAutoAddedinTarget()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/framework/compose/
DDisposableBroadcastReceiverAsUser.kt36 onReceive: (Intent) -> Unit, in DisposableBroadcastReceiverAsUser()
41 override fun onReceive(context: Context, intent: Intent) { in DisposableBroadcastReceiverAsUser() method
42 onReceive(intent) in DisposableBroadcastReceiverAsUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
DLogBufferFreezerTest.kt80 receiver.onReceive(null, null) in testBuffersAreFrozenInResponseToBroadcast()
89 receiver.onReceive(null, null) in testBuffersAreUnfrozenAfterTimeout()
102 receiver.onReceive(null, null) in testBuffersAreNotPrematurelyUnfrozen()
107 receiver.onReceive(null, null) in testBuffersAreNotPrematurelyUnfrozen()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestReceiverTest.kt114 receiver.onReceive(wrapper, intent) in testOnReceive_packageNotVerified_nameNotFound()
126 receiver.onReceive(wrapper, intent) in testOnReceive_packageNotVerified_notForeground()
138 receiver.onReceive(wrapper, intent) in testOnReceive_OK()
152 receiver.onReceive(wrapper, intent) in testFeatureDisabled_activityNotStarted()
163 receiver.onReceive(wrapper, badIntent) in testClassCastExceptionComponentName_noCrash()
174 receiver.onReceive(wrapper, badIntent) in testClassCastExceptionControl_noCrash()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DSurfaceViewRequestReceiver.java49 public void onReceive(Context context, Bundle bundle, View view) { in onReceive() method in SurfaceViewRequestReceiver
50 onReceive(context, bundle, view, null); in onReceive()
59 public void onReceive(Context context, Bundle bundle, View view, Size viewSize) { in onReceive() method in SurfaceViewRequestReceiver
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyboardShortcutsReceiverTest.java78 mKeyboardShortcutsReceiver.onReceive(mContext, mIntent); in onReceive_whenFlagOffDeviceIsTablet_showKeyboardShortcuts()
95 mKeyboardShortcutsReceiver.onReceive(mContext, mIntent); in onReceive_whenFlagOffDeviceIsNotTablet_showKeyboardShortcuts()
112 mKeyboardShortcutsReceiver.onReceive(mContext, mIntent); in onReceive_whenFlagOnDeviceIsTablet_showKeyboardShortcutListSearch()
129 mKeyboardShortcutsReceiver.onReceive(mContext, mIntent); in onReceive_whenFlagOnDeviceIsNotTablet_showKeyboardShortcuts()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/data/repository/
DPowerRepositoryImplTest.kt137 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_ON)) in isInteractive_emitsTrueWhenTheScreenTurnsOn()
151 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsFalseWhenTheScreenTurnsOff()
165 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsCorrectlyOverTime()
167 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_ON)) in isInteractive_emitsCorrectlyOverTime()
169 receiverCaptor.value.onReceive(context, Intent(Intent.ACTION_SCREEN_OFF)) in isInteractive_emitsCorrectlyOverTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DPolicyWarningUIControllerTest.java119 mFakeNotificationController.onReceive(mContext, in receiveActionSendNotification_isNonA11yCategoryService_sendNotification()
133 mFakeNotificationController.onReceive(mContext, in receiveActionSendNotification_sendNotificationDisabled_doNothing()
152 mFakeNotificationController.onReceive(mContext, in receiveActionSendNotificationWithNotifiedService_doNothing()
163 mFakeNotificationController.onReceive(mContext, in receiveActionA11ySettings_launchA11ySettingsAndDismissNotification()
176 mFakeNotificationController.onReceive(mContext, in receiveActionDismissNotification_addToNotifiedSettings()
228 mFakeNotificationController.onReceive(mContext, in onSwitchUserLocked_hasAlarmAndSentNotification_cancelNotification()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DMasterClearReceiverTest.java127 mReceiver.onReceive(mContext, intent); in testNoExtras()
140 mReceiver.onReceive(mContext, intent); in testWipeExternalDirectory()
157 mReceiver.onReceive(mContext, intent); in testAllExtras()
170 mReceiver.onReceive(mContext, intent); in testNonSystemUser()
185 mReceiver.onReceive(mContext, intent); in testHeadlessSystemUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/statusbar/
DTileRequestTrackerTest.java140 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUninstallRemovesDenials_allComponents()
156 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUninstallRemoveDenials_differentUsers()
174 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUninstallRemoveDenials_differentPackages()
192 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testPackageUpdateDoesntRemoveDenials()
206 getReceiverRegistration().mReceiver.onReceive(mContext, intent); in testClearPackageDataRemovesDenials()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProvider.java57 public void onReceive(Context context, Intent intent) { in onReceive() method in AppWidgetProvider
62 this.onReceive(context, new Intent(intent) in onReceive()
64 this.onReceive(context, new Intent(intent) in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java143 relay.getValue().onReceive(mSpyContext, new Intent(TEST_ACTION)); in testRelay()
145 verify(Receiver.sReceiver, timeout(2000)).onReceive(any(), any()); in testRelay()
162 public void onReceive(Context context, Intent intent) { in onReceive() method in SliceBroadcastRelayHandlerTest.Receiver
163 if (sReceiver != null) sReceiver.onReceive(context, intent); in onReceive()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java228 public void onReceive(Context context, Intent intent) {
266 public void onReceive(Context context, Intent intent) { in onReceive() method in BroadcastTest.TestBroadcastReceiver
388 public void onReceive(Context context, Intent intent) { in testRegisteredReceivePermissionDenied()
415 public void onReceive(Context context, Intent intent) { in testRegisteredBroadcastPermissionDenied()
437 public void onReceive(Context context, Intent intent) { in testLocalReceivePermissionDenied()
461 public void onReceive(Context context, Intent intent) { in testLocalBroadcastPermissionDenied()
483 public void onReceive(Context context, Intent intent) { in testRemoteReceivePermissionDenied()
507 public void onReceive(Context context, Intent intent) { in testRemoteBroadcastPermissionDenied()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DStandardNetworkDetailsTrackerTest.java165 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanResultsAvailableAction_updates_getLevel()
175 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanResultsAvailableAction_updates_getLevel()
206 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testConfiguredNetworksChangedAction_updates_isSaved()
214 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testConfiguredNetworksChangedAction_updates_isSaved()
245 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChanged_disabled_clearsLevel()
301 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanner_wifiScannerResultReceived_scanResultsUpdated()
DWifiPickerTrackerTest.java237 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_updatesWifiState()
244 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_updatesWifiState()
262 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_notifiesListener()
281 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testConfiguredNetworksChanged_notifiesListener()
299 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanResultsAvailableAction_notifiesListener()
318 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_noScans_emptyList()
350 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_createdForEachSsidAndSecurityPair()
378 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
383 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
390 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DActionProxyReceiverTest.java88 actionProxyReceiver.onReceive(mContext, mIntent); in testPendingIntentSentWithStatusBar()
101 actionProxyReceiver.onReceive(mContext, mIntent); in testSmartActionsNotNotifiedByDefault()
115 actionProxyReceiver.onReceive(mContext, mIntent); in testSmartActionsNotifiedIfEnabled()
DDeleteScreenshotReceiverTest.java79 mDeleteScreenshotReceiver.onReceive(mContext, intent); in testNoUriProvided()
103 deleteScreenshotReceiver.onReceive(mContext, intent); in testFileDeleted()
128 mDeleteScreenshotReceiver.onReceive(mContext, intent); in testNotifyScreenshotAction()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/
DAppCompatOverridesServiceTest.java468 mPackageReceiver.onReceive(mMockContext, new Intent(ACTION_PACKAGE_ADDED)); in packageReceiver_packageAddedIntentDataIsNull_doesNothing()
484 mPackageReceiver.onReceive(mMockContext, in packageReceiver_actionIsNull_doesNothing()
501 mPackageReceiver.onReceive(mMockContext, in packageReceiver_unsupportedAction_doesNothing()
519 mPackageReceiver.onReceive(mMockContext, in packageReceiver_packageAddedIntentPackageNotInstalled_doesNothing()
537 mPackageReceiver.onReceive(mMockContext, in packageReceiver_packageAddedIntentNoOverridesForPackage_doesNothing()
563 mPackageReceiver.onReceive(mMockContext, in packageReceiver_packageAddedIntent_appliesOverridesFromAllNamespaces()
582 mPackageReceiver.onReceive(mMockContext, in packageReceiver_packageChangedIntent_appliesOverrides()
608 mPackageReceiver.onReceive(mMockContext, in packageReceiver_packageAddedIntentRemoveOverridesSetForSomeNamespaces_skipsIds()
632 mPackageReceiver.onReceive(mMockContext, in packageReceiver_packageRemovedIntentNoOverridesForPackage_doesNothing()
652 mPackageReceiver.onReceive(mMockContext, in packageReceiver_packageRemovedIntentPackageInstalledForAnotherUser_doesNothing()
[all …]

12345678910>>...25