Home
last modified time | relevance | path

Searched refs:registerReceiver (Results 1 – 25 of 50) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java59 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
75 contextWrapper.registerReceiver(larryReceiver, intentFilter("foo", "baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
78 contextWrapper.registerReceiver(bobReceiver, intentFilter("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
94 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz"), "validPermission", null); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
122 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz"), null, handler); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
140 contextWrapper.registerReceiver(lowReceiver, lowFilter); in sendOrderedBroadcast_shouldReturnValues()
145 contextWrapper.registerReceiver(highReceiver, highFilter); in sendOrderedBroadcast_shouldReturnValues()
172 contextWrapper.registerReceiver(lowReceiver, lowFilter); in sendOrderedBroadcast_shouldExecuteSerially()
177 contextWrapper.registerReceiver(midReceiver, midFilter); in sendOrderedBroadcast_shouldExecuteSerially()
182 contextWrapper.registerReceiver(highReceiver, highFilter); in sendOrderedBroadcast_shouldExecuteSerially()
[all …]
DShadowApplicationTest.java435 activity.registerReceiver(new TestBroadcastReceiver(), new IntentFilter("Foo")); in shouldThrowIfContainsRegisteredReceiverOfAction()
449 activity.registerReceiver(new TestBroadcastReceiver(), new IntentFilter("Foo")); in shouldNotThrowIfDoesNotContainsRegisteredReceiverOfAction()
459 context.registerReceiver(expectedReceiver, new IntentFilter("Foo")); in canAnswerIfReceiverIsRegisteredForIntent()
469 context.registerReceiver(expectedReceiver, new IntentFilter("Foo")); in canFindAllReceiversForAnIntent()
470 context.registerReceiver(expectedReceiver, new IntentFilter("Foo")); in canFindAllReceiversForAnIntent()
492 context.registerReceiver(receiver, new IntentFilter("Foo")); in sendStickyBroadcast()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothConnectionFacade.java383 mService.registerReceiver(receiver, mA2dpStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
384 mService.registerReceiver(receiver, mA2dpSinkStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
385 mService.registerReceiver(receiver, mHidStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
386 mService.registerReceiver(receiver, mHspStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
387 mService.registerReceiver(receiver, mHfpClientStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
388 mService.registerReceiver(receiver, mPbapClientStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
389 mService.registerReceiver(receiver, mPanStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
390 mService.registerReceiver(receiver, mMapClientStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
391 mService.registerReceiver(receiver, mMapStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
403 mService.registerReceiver(mPairingHelper, mPairingFilter); in connectProfile()
[all …]
DBluetoothFacade.java337 mService.registerReceiver(mStateReceiver, in bluetoothToggleState()
355 mService.registerReceiver(mDiscoveryReceiver, discoveryFilter); in bluetoothStartDiscovery()
460 mService.registerReceiver(mBleStateReceiver, in bluetoothEnableBLE()
467 mService.registerReceiver(mBleStateReceiver, in bluetoothDisableBLE()
474 mService.registerReceiver(mBleStateReceiver, in bluetoothListenForBleStateChange()
493 mService.registerReceiver(mMultiStateReceiver, in bluetoothStartListeningForAdapterStateChange()
DBluetoothBroadcastHelper.java50 mContext.registerReceiver(mReceiver, mIntentFilter); in startReceiver()
DBluetoothDiscoveryHelper.java104 mContext.registerReceiver(mReceiver, filter); in startDiscovery()
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManagerTest.java45 instance.registerReceiver(receiver, new IntentFilter("com.foo")); in shouldSendBroadcasts()
65 instance.registerReceiver(receiver, intentFilter); in shouldSendBroadcastsWithDataScheme()
83 instance.registerReceiver(receiver, new IntentFilter("com.foo")); in shouldUnregisterReceiver()
92 broadcastManager.registerReceiver(new BroadcastReceiver() { in testGetBroadcastIntents()
118 broadcastManager.registerReceiver(receiver, filter); in testGetRegisteredBroadcastReceivers()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java241 final Intent intent = context.registerReceiver(null, in getWifiSSID()
298 registerReceiver(); in NetworkMonitorAutoDetect()
330 private void registerReceiver() { in registerReceiver() method in NetworkMonitorAutoDetect
333 context.registerReceiver(this, intentFilter); in registerReceiver()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DSimpleLogger.java64 public void registerReceiver(BroadcastReceiver broadcastReceiver) { in registerReceiver() method in SimpleLogger
65 broadcastManager.registerReceiver(broadcastReceiver, new IntentFilter(LOG_INTENT)); in registerReceiver()
DBaseUsbConnection.java103 broadcastManager.registerReceiver(currentConnectReceiver, in registerConnectCallback()
132 context.registerReceiver(respondToUsbPermission, in connect()
172 BaseUsbConnection.this.context.registerReceiver(disconnectReceiver,
DLogFragment.java71 logger.registerReceiver(logReceiver); in onResume()
DDiagnosticsFragment.java69 logger.registerReceiver(logReceiver); in onResume()
DMidiFragment.java71 logger.registerReceiver(logReceiver); in onResume()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContextImpl.java193 protected Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() method in ShadowContextImpl
194 return getShadowInstrumentation().registerReceiver(receiver, filter, realContextImpl); in registerReceiver()
198 protected Intent registerReceiver( in registerReceiver() method in ShadowContextImpl
204 .registerReceiver(receiver, filter, broadcastPermission, scheduler, realContextImpl); in registerReceiver()
DShadowInstrumentation.java600 Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, Context context) {
601 return registerReceiver(receiver, filter, null, null, context);
604 Intent registerReceiver(
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DSmsFacade.java188 mService.registerReceiver(mSmsSendListener, smsFilter); in SmsFacade()
189 mService.registerReceiver(mMmsSendListener, mmsFilter); in SmsFacade()
278 mService.registerReceiver(mSmsIncomingListener, in smsStartTrackingIncomingSmsMessage()
307 mService.registerReceiver(mMmsIncomingListener, mmsReceived); in smsStartTrackingIncomingMmsMessage()
451 mService.registerReceiver(mGsmEmergencyCBMessageListener, in smsStartTrackingGsmEmergencyCBMessage()
479 mService.registerReceiver(mCdmaEmergencyCBMessageListener, in smsStartTrackingCdmaEmergencyCBMessage()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java39 …context.registerReceiver(connectivityReceiver, new IntentFilter(ConnectivityManager.CONNECTIVITY_A… in register()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java299 … public Intent registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter) { in registerReceiver() method in MockContext.MockContext2
304 …public Intent registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter, Str… in registerReceiver() method in MockContext.MockContext2
/external/ims/rcs/presencepolling/tests/src/com/android/service/ims/presence/
DPollingServiceTests.java69 verify(mTestContext).registerReceiver(eq(mReceiver), captor.capture()); in testRegisterCarrierConfigReceiver()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DInactivityTimer.java70 activity.registerReceiver(powerStatusReceiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in onResume()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DNfcManagerFacade.java84 mService.registerReceiver(mNfcStateReceiver, mStateChangeFilter); in nfcStartTrackingStateChange()
DBatteryManagerFacade.java138 mService.registerReceiver(mReceiver, filter); in batteryStartMonitoring()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
DMediaScannerFacade.java71 mService.registerReceiver(mReceiver, in mediaScanForFiles()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPollingService.java121 registerReceiver(mReceiver, filter); in registerBroadcastReceiver()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManager.java36 protected void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {

12