Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java43 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
54 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
63 broadcastReceiver.onReceive(context, intent); in sendScanResultsAvailable()
73 broadcastReceiver.onReceive(context, intent); in sendWifiStateChanged()
91 broadcastReceiver.onReceive(context, intent); in sendWifiApStateChanged()
102 broadcastReceiver.onReceive(context, intent); in sendTetherStateChanged()
107 broadcastReceiver.onReceive(context, intent); in sendIdleModeChanged()
DSupplicantStateTrackerTest.java83 public void onReceive(Context context, Intent intent) { in testSupplicantStateChangeIntent()
105 public void onReceive(Context context, Intent intent) { in testAuthPassInSupplicantStateChangeIntent()
131 public void onReceive(Context context, Intent intent) { in testAuthFailedInSupplicantStateChangeIntent()
158 public void onReceive(Context context, Intent intent) { in testReasonCodeInSupplicantStateChangeIntent()
DOpenNetworkNotifierTest.java395 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_USER_DISMISSED_NOTIFICATION)); in userDismissedNotification_shouldBlacklistNetwork()
421 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in userConnectedNotification_shouldBlacklistNetwork()
496 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in actionConnectToNetwork_notificationNotShowing_doesNothing()
516 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in actionConnectToNetwork_currentRecommendationExists_connectsAndPostsNotification()
546 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_PICK_WIFI_NETWORK)); in actionPickWifiNetwork_currentRecommendationExists_opensWifiSettings()
605 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in networkConnectionSuccess_wasInConnectingFlow_postsConnectedNotification()
655 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in networkConnectionFailure_wasInConnectingFlow_postsFailedToConnectNotification()
692 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in connectionFailedCallback_postsFailedToConnectNotification()
723 mBroadcastReceiver.onReceive(mContext, in connectionFailedCallback_postsFailedToConnectNotification()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DWifiPickerTrackerTest.java140 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_updatesWifiState()
147 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_updatesWifiState()
164 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_notifiesListener()
182 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testConfiguredNetworksChanged_notifiesListener()
222 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanResultsAvailableAction_notifiesListener()
241 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_noScans_emptyList()
272 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_createdForEachSsidAndSecurityPair()
299 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
304 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
311 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
[all …]
DSavedNetworkTrackerTest.java145 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_updatesWifiState()
152 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_updatesWifiState()
168 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChangeBroadcast_notifiesListener()
186 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testConfiguredNetworksChanged_notifiesListener()
230 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetSavedWifiEntries_configuredNetworksChanged_addsEntry()
260 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetSavedWifiEntries_configuredNetworksChanged_removesEntry()
279 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanResultsAvailableAction_notifiesListener()
305 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
311 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
DStandardNetworkDetailsTrackerTest.java158 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanResultsAvailableAction_updates_getLevel()
168 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testScanResultsAvailableAction_updates_getLevel()
196 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testConfiguredNetworksChangedAction_updates_isSaved()
205 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testConfiguredNetworksChangedAction_updates_isSaved()
237 mBroadcastReceiverCaptor.getValue().onReceive(mMockContext, in testWifiStateChanged_disabled_clearsLevel()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java65 void onReceive(Context context, Intent intent, BluetoothDevice device); in onReceive() method
249 public void onReceive(Context context, Intent intent) { in onReceive() method in BluetoothEventManager.BluetoothBroadcastReceiver
256 handler.onReceive(context, intent, device); in onReceive()
262 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.AdapterStateChangedHandler
283 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.ScanningStateChangedHandler
292 public void onReceive(Context context, Intent intent, in onReceive() method in BluetoothEventManager.DeviceFoundHandler
321 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.ConnectionStateChangedHandler
330 public void onReceive(Context context, Intent intent, in onReceive() method in BluetoothEventManager.NameChangedHandler
337 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.BondStateChangedHandler
403 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive() method in BluetoothEventManager.ClassChangedHandler
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
DLogBufferFreezerTest.kt76 receiver.onReceive(null, null) in testBuffersAreFrozenInResponseToBroadcast()
85 receiver.onReceive(null, null) in testBuffersAreUnfrozenAfterTimeout()
98 receiver.onReceive(null, null) in testBuffersAreNotPrematurelyUnfrozen()
103 receiver.onReceive(null, null) in testBuffersAreNotPrematurelyUnfrozen()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DLocationControllerImplTest.java71 mLocationController.onReceive(mContext, new Intent( in testRemoveSelfActive_DoesNotCrash()
74 mLocationController.onReceive(mContext, new Intent( in testRemoveSelfActive_DoesNotCrash()
110 mLocationController.onReceive(mContext, new Intent(LocationManager.MODE_CHANGED_ACTION)); in testCallbackNotified()
127 mLocationController.onReceive(mContext, new Intent(LocationManager.MODE_CHANGED_ACTION)); in testCallbackRemoved()
DBatteryControllerTest.java75 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_true()
90 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_false()
DNetworkControllerSignalTest.java367 mNetworkController.onReceive(mContext, intent); in testOnReceive_stringsUpdatedAction_spn()
381 mNetworkController.onReceive(mContext, intent); in testOnReceive_stringsUpdatedAction_plmn()
393 mNetworkController.onReceive(mContext, intent); in testOnReceive_stringsUpdatedAction_bothFalse()
408 mNetworkController.onReceive(mContext, intent); in testOnReceive_stringsUpdatedAction_bothTrueAndNull()
425 mNetworkController.onReceive(mContext, intent); in testOnReceive_stringsUpdatedAction_bothTrueAndNonNull()
/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/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()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java250 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast()
256 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast()
272 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), in testTelephonyCapable_SimState_Absent()
283 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), in testTelephonyCapable_SimState_CardIOError()
297 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_SimInvalid_ServiceState_InService()
314 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_SimValid_ServiceState_PowerOff()
335 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_ServiceState_OutOfService()
350 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_SimState_NotReady()
365 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_SimState_Ready()
378 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_ServiceState_PowerOff()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java312 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOn()
323 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOff()
334 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOff_afterStartEnd()
345 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOn_afterStartEnd()
358 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOn_beforeStartEnd()
369 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_darkThemeOff_beforeStartEnd()
379 mTimeChangedCallback.onReceive(mContext, new Intent(Intent.ACTION_TIME_CHANGED)); in customTIme_customAlarmSetWhenScreenTimeChanges()
417 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in customTime_appliesOnlyWhenScreenOff()
427 mScreenOffCallback.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in nightAuto_appliesOnlyWhenScreenOff()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java226 public void onReceive(Context context, Intent intent) {
264 public void onReceive(Context context, Intent intent) { in onReceive() method in BroadcastTest.TestBroadcastReceiver
386 public void onReceive(Context context, Intent intent) { in testRegisteredReceivePermissionDenied()
413 public void onReceive(Context context, Intent intent) { in testRegisteredBroadcastPermissionDenied()
435 public void onReceive(Context context, Intent intent) { in testLocalReceivePermissionDenied()
459 public void onReceive(Context context, Intent intent) { in testLocalBroadcastPermissionDenied()
481 public void onReceive(Context context, Intent intent) { in testRemoteReceivePermissionDenied()
505 public void onReceive(Context context, Intent intent) { in testRemoteBroadcastPermissionDenied()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java142 relay.getValue().onReceive(mSpyContext, new Intent(TEST_ACTION)); in testRelay()
144 verify(Receiver.sReceiver, timeout(2000)).onReceive(any(), any()); in testRelay()
161 public void onReceive(Context context, Intent intent) { in onReceive() method in SliceBroadcastRelayHandlerTest.Receiver
162 if (sReceiver != null) sReceiver.onReceive(context, intent); in onReceive()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java349 tracker.mReceiver.onReceive(mContext, intent); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults()
380 tracker.mReceiver.onReceive(mContext, i); in sendScanResults()
386 tracker.mReceiver.onReceive(mContext, i); in sendFailedScanResults()
455 tracker.mReceiver.onReceive(mContext, intent); in switchToNetwork2()
757 tracker.mReceiver.onReceive(mContext, new Intent(WifiManager.RSSI_CHANGED_ACTION)); in rssiChangeBroadcastShouldUpdateConnectedAp()
868 tracker.mReceiver.onReceive( in stopTrackingShouldPreventCallbacksFromOngoingWork()
900 tracker.mReceiver.onReceive(mContext, new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION)); in stopTrackingShouldSetStaleBitWhichPreventsCallbacksUntilNextScanResult()
901 tracker.mReceiver.onReceive( in stopTrackingShouldSetStaleBitWhichPreventsCallbacksUntilNextScanResult()
903 tracker.mReceiver.onReceive( in stopTrackingShouldSetStaleBitWhichPreventsCallbacksUntilNextScanResult()
918 tracker.mReceiver.onReceive(mContext, new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION)); in startTrackingShouldNotSendAnyCallbacksUntilScanResultsAreProcessed()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java61 public void onReceive(Context context, Intent intent) { in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
82 public void onReceive(Context context, Intent intent) { in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DActionReceiver.kt100 override fun onReceive(context: Context, intent: Intent) { in onReceive() method in com.android.systemui.broadcast.ActionReceiver
113 it.receiver.onReceive(context, intent) in onReceive()
/frameworks/base/packages/InputDevices/src/com/android/inputdevices/
DInputDeviceReceiver.java25 public void onReceive(Context context, Intent intent) { in onReceive() method in InputDeviceReceiver
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DReceiver.java28 public void onReceive(Context context, Intent intent) { in onReceive() method in Receiver
/frameworks/base/core/tests/coretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/
DEnabledReceiver.java29 public void onReceive(Context context, Intent intent) { in onReceive() method in EnabledReceiver
DDisabledReceiver.java29 public void onReceive(Context context, Intent intent) { in onReceive() method in DisabledReceiver
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/
DDummyAppWidget.java29 public void onReceive(Context context, Intent intent) { in onReceive() method in DummyAppWidget

12345678910>>...20