Home
last modified time | relevance | path

Searched refs:broadcastReceiver (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java37 public static void sendNetworkStateChanged(BroadcastReceiver broadcastReceiver, in sendNetworkStateChanged() argument
43 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
49 public static void sendNetworkStateChanged(BroadcastReceiver broadcastReceiver, in sendNetworkStateChanged() argument
54 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged()
60 public static void sendScanResultsAvailable(BroadcastReceiver broadcastReceiver, in sendScanResultsAvailable() argument
63 broadcastReceiver.onReceive(context, intent); in sendScanResultsAvailable()
69 public static void sendWifiScanAvailable(BroadcastReceiver broadcastReceiver, in sendWifiScanAvailable() argument
73 broadcastReceiver.onReceive(context, intent); in sendWifiScanAvailable()
79 public static void sendWifiStateChanged(BroadcastReceiver broadcastReceiver, in sendWifiStateChanged() argument
83 broadcastReceiver.onReceive(context, intent); in sendWifiStateChanged()
[all …]
DWakeupOnboardingTest.java132 BroadcastReceiver broadcastReceiver = captor.getValue(); in dismissNotificationAction_setsOnboarded() local
134 broadcastReceiver.onReceive(mContext, new Intent(ACTION_DISMISS_NOTIFICATION)); in dismissNotificationAction_setsOnboarded()
153 BroadcastReceiver broadcastReceiver = captor.getValue(); in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake() local
155 broadcastReceiver.onReceive(mContext, new Intent(ACTION_TURN_OFF_WIFI_WAKE)); in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake()
177 BroadcastReceiver broadcastReceiver = captor.getValue(); in openWifiSettingsAction_setsOnboardedAndOpensWifiSettings() local
179 broadcastReceiver.onReceive(mContext, new Intent(ACTION_OPEN_WIFI_PREFERENCES)); in openWifiSettingsAction_setsOnboardedAndOpensWifiSettings()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java79 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in setSnapshotListener_doesNotRepeatedlyInvokeListener() local
85 context.registerReceiver(broadcastReceiver, new IntentFilter(TEST_INTENT_ACTION)); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
91 context.unregisterReceiver(broadcastReceiver); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java140 BroadcastReceiver broadcastReceiver = broadcastReceiverCaptor.getValue(); in verifyWifiStateCallbacks() local
143 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
145 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
148 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
150 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java274 TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver(); in testResult() local
282 null, broadcastReceiver, null, 1, "foo", map); in testResult()
283 while (!broadcastReceiver.mHaveResult) { in testResult()
293 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), in testResult()
294 3, broadcastReceiver.getResultCode()); in testResult()
296 assertEquals("bar", broadcastReceiver.getResultData()); in testResult()
298 Bundle resultExtras = broadcastReceiver.getResultExtras(false); in testResult()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java330 for (BroadcastReceiver broadcastReceiver : in sendBroadcast()
332 broadcastReceiver.onReceive(mContext, intent); in sendBroadcast()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java781 BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument
782 assertEquals(mBroadcastReceiver, broadcastReceiver); in unregisterReceiver()