Home
last modified time | relevance | path

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

12

/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothConnectionFacade.java369 mService.registerReceiver(receiver, mA2dpStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
370 mService.registerReceiver(receiver, mA2dpSinkStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
371 mService.registerReceiver(receiver, mHidStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
372 mService.registerReceiver(receiver, mHspStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
373 mService.registerReceiver(receiver, mHfpClientStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
374 mService.registerReceiver(receiver, mPbapClientStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
375 mService.registerReceiver(receiver, mPanStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
376 mService.registerReceiver(receiver, mMapClientStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
377 mService.registerReceiver(receiver, mMapStateChangeFilter); in bluetoothStartConnectionStateChangeMonitor()
389 mService.registerReceiver(mPairingHelper, mPairingFilter); in connectProfile()
[all …]
DBluetoothFacade.java309 mService.registerReceiver(mStateReceiver, in bluetoothToggleState()
327 mService.registerReceiver(mDiscoveryReceiver, discoveryFilter); in bluetoothStartDiscovery()
432 mService.registerReceiver(mBleStateReceiver, in bluetoothEnableBLE()
439 mService.registerReceiver(mBleStateReceiver, in bluetoothDisableBLE()
446 mService.registerReceiver(mBleStateReceiver, in bluetoothListenForBleStateChange()
465 mService.registerReceiver(mMultiStateReceiver, in bluetoothStartListeningForAdapterStateChange()
DBluetoothBroadcastHelper.java47 mContext.registerReceiver(mReceiver, mIntentFilter); in startReceiver()
DBluetoothDiscoveryHelper.java83 mContext.registerReceiver(mReceiver, filter); in startDiscovery()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DContextWrapperTest.java43 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
58 contextWrapper.registerReceiver(larryReceiver, intentFilter("foo", "baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
61 contextWrapper.registerReceiver(bobReceiver, intentFilter("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
77 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in unregisterReceiver_shouldUnregisterReceiver()
93 …new ContextWrapper(Robolectric.application).registerReceiver(receiver, intentFilter("foo", "baz")); in broadcastReceivers_shouldBeSharedAcrossContextsPerApplicationContext()
DLocalBroadcastManagerTest.java37 instance.registerReceiver(receiver, new IntentFilter("com.foo")); in shouldSendBroadcasts()
57 instance.registerReceiver(receiver, new IntentFilter("com.foo")); in shouldUnregisterReceiver()
DServiceTest.java28 service.registerReceiver(new AppWidgetProvider(), new IntentFilter()); in shouldComplainIfServiceIsDestroyedWithRegisteredBroadcastReceivers()
37 service2.registerReceiver(new AppWidgetProvider(), new IntentFilter()); in shouldNotComplainIfServiceIsDestroyedWhileAnotherServiceHasRegisteredBroadcastReceivers()
DApplicationTest.java224 activity.registerReceiver(new TestBroadcastReceiver(), new IntentFilter("Foo")); in shouldThrowIfContainsRegisteredReceiverOfAction()
232 activity.registerReceiver(new TestBroadcastReceiver(), new IntentFilter("Foo")); in shouldNotThrowIfDoesNotContainsRegisteredReceiverOfAction()
242 Robolectric.application.registerReceiver(expectedReceiver, new IntentFilter("Foo")); in canAnswerIfReceiverIsRegisteredForIntent()
252 Robolectric.application.registerReceiver(expectedReceiver, new IntentFilter("Foo")); in canFindAllReceiversForAnIntent()
253 Robolectric.application.registerReceiver(expectedReceiver, new IntentFilter("Foo")); in canFindAllReceiversForAnIntent()
DActivityTest.java42 activity.registerReceiver(new AppWidgetProvider(), new IntentFilter()); in shouldComplainIfActivityIsDestroyedWithRegisteredBroadcastReceivers()
51 activity2.registerReceiver(new AppWidgetProvider(), new IntentFilter()); in shouldNotComplainIfActivityIsDestroyedWhileAnotherActivityHasRegisteredBroadcastReceivers()
59 activity.registerReceiver(null, new IntentFilter()); in shouldNotRegisterNullBroadcastReceiver()
/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,
DDiagnosticsFragment.java69 logger.registerReceiver(logReceiver); in onResume()
DLogFragment.java71 logger.registerReceiver(logReceiver); in onResume()
DMidiFragment.java71 logger.registerReceiver(logReceiver); in onResume()
/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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowMapActivity.java23 registerReceiver(connectivityBroadcastReceiver, new IntentFilter()); in onResume()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DSmsFacade.java168 mService.registerReceiver(mSmsSendListener, smsFilter); in SmsFacade()
169 mService.registerReceiver(mMmsSendListener, mmsFilter); in SmsFacade()
230 mService.registerReceiver(mSmsIncomingListener, in smsStartTrackingIncomingSmsMessage()
259 mService.registerReceiver(mMmsIncomingListener, mmsReceived); in smsStartTrackingIncomingMmsMessage()
403 mService.registerReceiver(mGsmEmergencyCBMessageListener, in smsStartTrackingGsmEmergencyCBMessage()
431 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/libmojo/base/android/java/src/org/chromium/base/
DPowerMonitor.java61 Intent batteryStatusIntent = context.registerReceiver(null, ifilter); in create()
/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/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/media/
DMediaScannerFacade.java71 mService.registerReceiver(mReceiver, in mediaScanForFiles()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DNfcManagerFacade.java84 mService.registerReceiver(mNfcStateReceiver, mStateChangeFilter); in nfcStartTrackingStateChange()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPollingService.java112 registerReceiver(mReceiver, filter); in registerBroadcastReceiver()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
DApplicationResolver.java48 …shadowApplication.registerReceiver((BroadcastReceiver) Robolectric.newInstanceOf(receiverClassName… in registerBroadcastReceivers()

12