Home
last modified time | relevance | path

Searched refs:mReceiver (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Settings/src/com/android/settings/wifi/
DWpsDialog.java64 private BroadcastReceiver mReceiver; field in WpsDialog
129 mReceiver = new BroadcastReceiver() { in WpsDialog()
209 mContext.registerReceiver(mReceiver, mFilter); in onStart()
219 if (mReceiver != null) { in onStop()
220 mContext.unregisterReceiver(mReceiver); in onStop()
221 mReceiver = null; in onStop()
250 if (mReceiver != null) { in updateDialog()
251 mContext.unregisterReceiver(mReceiver); in updateDialog()
252 mReceiver = null; in updateDialog()
DWifiSummaryUpdater.java38 private final BroadcastReceiver mReceiver; field in WifiSummaryUpdater
57 mReceiver = new BroadcastReceiver() { in WifiSummaryUpdater()
69 mContext.registerReceiver(mReceiver, INTENT_FILTER); in register()
71 mContext.unregisterReceiver(mReceiver); in register()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java67 private BroadcastReceiver mReceiver; field in RequestPermissionActivity
161 if (mReceiver != null) { in createDialog()
209 mReceiver = new StateChangeReceiver(); in onActivityResult()
210 registerReceiver(mReceiver, new IntentFilter( in onActivityResult()
221 mReceiver = new StateChangeReceiver(); in onActivityResult()
222 registerReceiver(mReceiver, new IntentFilter( in onActivityResult()
346 if (mReceiver != null) { in onDestroy()
347 unregisterReceiver(mReceiver); in onDestroy()
348 mReceiver = null; in onDestroy()
DBluetoothPairingDialog.java43 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothPairingDialog
94 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_PAIRING_CANCEL)); in onCreate()
95 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED)); in onCreate()
104 unregisterReceiver(mReceiver); in onDestroy()
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DListenableFutureLoader.java50 private BroadcastReceiver mReceiver; field in ListenableFutureLoader
75 if (mReloadFilter != null && mReceiver == null) { in onStartLoading()
76 mReceiver = new ForceLoadReceiver(); in onStartLoading()
77 mLocalBroadcastManager.registerReceiver(mReceiver, mReloadFilter); in onStartLoading()
128 if (mReceiver != null) { in onReset()
129 mLocalBroadcastManager.unregisterReceiver(mReceiver); in onReset()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDownloadPackageTask.java51 private BroadcastReceiver mReceiver; field in DownloadPackageTask
105 mReceiver = createDownloadReceiver(); in run()
108 mContext.registerReceiver(mReceiver, in run()
196 if (mReceiver != null) {
198 mContext.unregisterReceiver(mReceiver);
199 mReceiver = null;
/packages/apps/Settings/src/com/android/settings/survey/
DSurveyMixin.java36 private BroadcastReceiver mReceiver; field in SurveyMixin
64 mReceiver = provider.createAndRegisterReceiver(activity); in onResume()
76 if (mReceiver != null && activity != null) { in onPause()
77 SurveyFeatureProvider.unregisterReceiver(activity, mReceiver); in onPause()
78 mReceiver = null; in onPause()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/conditional/
DConditionTest.java84 TestCondition.mReceiver, TestCondition.TESTS_INTENT_FILTER); in onSilenceChanged_silenced_shouldRegisterReceiver()
93 verify(mContext).unregisterReceiver(TestCondition.mReceiver); in onSilenceChanged_notSilenced_registered_shouldUnregisterReceiver()
100 verify(mContext, never()).unregisterReceiver(TestCondition.mReceiver); in onSilenceChanged_notSilenced_notRegistered_shouldNotCrash()
108 private static final BroadcastReceiver mReceiver = mock(BroadcastReceiver.class); field in ConditionTest.TestCondition
157 return mReceiver; in getReceiver()
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DDndCondition.java48 private final Receiver mReceiver; field in DndCondition
52 mReceiver = new Receiver(); in DndCondition()
53 mManager.getContext().registerReceiver(mReceiver, DND_FILTER); in DndCondition()
161 mManager.getContext().registerReceiver(mReceiver, DND_FILTER); in onResume()
168 mManager.getContext().unregisterReceiver(mReceiver); in onPause()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DWiredHeadsetManager.java29 private final WiredHeadsetBroadcastReceiver mReceiver; field in WiredHeadsetManager
36 mReceiver = new WiredHeadsetBroadcastReceiver(); in WiredHeadsetManager()
53 mContext.registerReceiver(mReceiver, intentFilter); in registerReceiver()
57 mContext.unregisterReceiver(mReceiver); in unregisterReceiver()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DProvisioningResultListener.java46 private final ResultReceiver mReceiver = new ResultReceiver(); field in ProvisioningResultListener
70 mContext.registerReceiver(mReceiver, new IntentFilter(ACTION_PROVISION_RESULT_BROADCAST)); in register()
71 mContext.registerReceiver(mReceiver, new IntentFilter(ACTION_PROVISION_RESULT_INTENT)); in register()
77 mContext.unregisterReceiver(mReceiver); in unregister()
/packages/apps/Car/Stream/src/com/android/car/stream/radio/
DRadioStreamProducer.java70 private RadioActionReceiver mReceiver; field in RadioStreamProducer
91 mReceiver = new RadioActionReceiver(); in start()
92 mContext.registerReceiver(mReceiver, new IntentFilter(RADIO_INTENT_ACTION)); in start()
105 mContext.unregisterReceiver(mReceiver); in stop()
106 mReceiver = null; in stop()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettingsBase.java44 private BroadcastReceiver mReceiver; field in LocationSettingsBase
54 mReceiver = new BroadcastReceiver() { in onCreate()
71 getActivity().registerReceiver(mReceiver, filter); in onResume()
77 getActivity().unregisterReceiver(mReceiver); in onPause()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DRootsMonitor.java45 private final BroadcastReceiver mReceiver; field in RootsMonitor
57 mReceiver = new BroadcastReceiver() { in RootsMonitor()
73 mManager.registerReceiver(mReceiver, new IntentFilter(ProvidersAccess.BROADCAST_ACTION)); in start()
77 mManager.unregisterReceiver(mReceiver); in stop()
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DUsbAoapHostActivity.java46 private UsbStateReceiver mReceiver; field in UsbAoapHostActivity
63 mReceiver = new UsbStateReceiver(); in onCreate()
64 registerReceiver(mReceiver, filter); in onCreate()
86 unregisterReceiver(mReceiver); in onDestroy()
/packages/apps/Messaging/src/com/android/messaging/util/
DConnectivityUtil.java35 private final ConnectivityBroadcastReceiver mReceiver; field in ConnectivityUtil
50 mReceiver = new ConnectivityBroadcastReceiver(); in ConnectivityUtil()
99 mContext.registerReceiver(mReceiver, mIntentFilter); in register()
112 mContext.unregisterReceiver(mReceiver); in unregister()
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java50 private AccessoryReceiver mReceiver; field in AoapPhoneCompanionActivity
92 mReceiver = new AccessoryReceiver(); in configureReceiver()
93 registerReceiver(mReceiver, filter); in configureReceiver()
99 unregisterReceiver(mReceiver); in onDestroy()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DPackageRemovedReceiverTest.java49 private PackageRemovedReceiver mReceiver; field in PackageRemovedReceiverTest
72 mReceiver = new PackageRemovedReceiver(); in setUp()
185 mReceiver.onReceive(getContext(), new Intent(Intent.ACTION_PACKAGE_FULLY_REMOVED, in testPackageRemoved()
192 mReceiver.onReceive(getContext(), new Intent(Intent.ACTION_PACKAGE_FULLY_REMOVED, in testPackageRemoved()
/packages/apps/Settings/tests/robotests/src/com/android/settings/survey/
DSurveyMixinTest.java45 private BroadcastReceiver mReceiver; field in SurveyMixinTest
118 when(mProvider.createAndRegisterReceiver(any())).thenReturn(mReceiver); in onPause_removesReceiverIfPreviouslySet()
122 manager.registerReceiver(mReceiver, new IntentFilter()); in onPause_removesReceiverIfPreviouslySet()
128 assertThat(map.containsKey(mReceiver)).isFalse(); in onPause_removesReceiverIfPreviouslySet()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectToWifiFragment.java76 private BroadcastReceiver mReceiver; field in ConnectToWifiFragment
138 mReceiver = new BroadcastReceiver() { in onCreate()
190 getActivity().registerReceiver(mReceiver, filter); in onCreate()
228 getActivity().unregisterReceiver(mReceiver); in onDestroy()
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java51 final AtomicReference<BroadcastReceiver> mReceiver; field in RegisteredComponentCache
69 mReceiver = new AtomicReference<BroadcastReceiver>(receiver); in RegisteredComponentCache()
125 final BroadcastReceiver receiver = mReceiver.getAndSet(null); in close()
133 if (mReceiver.get() != null) { in finalize()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DFallbackHome.java39 registerReceiver(mReceiver, new IntentFilter(Intent.ACTION_USER_UNLOCKED)); in onCreate()
46 unregisterReceiver(mReceiver); in onDestroy()
49 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in FallbackHome
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DRootsLoader.java32 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in RootsLoader
50 mReceiver, new IntentFilter(ProvidersAccess.BROADCAST_ACTION)); in RootsLoader()
95 LocalBroadcastManager.getInstance(getContext()).unregisterReceiver(mReceiver); in onReset()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPreferenceController.java43 final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in WifiP2pPreferenceController
69 mContext.registerReceiver(mReceiver, mFilter); in onResume()
74 mContext.unregisterReceiver(mReceiver); in onPause()
/packages/services/Telecomm/src/com/android/server/telecom/
DDockManager.java57 private final DockBroadcastReceiver mReceiver; field in DockManager
70 mReceiver = new DockBroadcastReceiver(); in DockManager()
74 context.registerReceiver(mReceiver, intentFilter); in DockManager()

1234