Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/wifi/
DWpsDialog.java63 private BroadcastReceiver mReceiver; field in WpsDialog
125 mReceiver = new BroadcastReceiver() { in WpsDialog()
181 mContext.registerReceiver(mReceiver, mFilter); in onStart()
194 if (mReceiver != null) { in onStop()
195 mContext.unregisterReceiver(mReceiver); in onStop()
196 mReceiver = null; in onStop()
224 if (mReceiver != null) { in updateDialog()
225 mContext.unregisterReceiver(mReceiver); in updateDialog()
226 mReceiver = null; in updateDialog()
DWifiEnabler.java47 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in WifiEnabler
81 mContext.registerReceiver(mReceiver, mIntentFilter); in resume()
86 mContext.unregisterReceiver(mReceiver); in pause()
DWifiApEnabler.java53 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in WifiApEnabler
92 mContext.registerReceiver(mReceiver, mIntentFilter); in resume()
97 mContext.unregisterReceiver(mReceiver); in pause()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageMeasurement.java151 private volatile WeakReference<MeasurementReceiver> mReceiver; field in StorageMeasurement
178 if (mReceiver == null || mReceiver.get() == null) { in setReceiver()
179 mReceiver = new WeakReference<MeasurementReceiver>(receiver); in setReceiver()
190 mReceiver = null; in cleanUp()
200 MeasurementReceiver receiver = (mReceiver != null) ? mReceiver.get() : null; in sendInternalApproximateUpdate()
208 MeasurementReceiver receiver = (mReceiver != null) ? mReceiver.get() : null; in sendExactUpdate()
/packages/services/Telephony/src/com/android/phone/
DHfaLogic.java69 private BroadcastReceiver mReceiver; field in HfaLogic
168 mReceiver = new BroadcastReceiver() { in startHfaIntentReceiver()
181 mContext.registerReceiver(mReceiver, filter); in startHfaIntentReceiver()
185 if (mReceiver != null) { in stopHfaIntentReceiver()
186 mContext.unregisterReceiver(mReceiver); in stopHfaIntentReceiver()
187 mReceiver = null; in stopHfaIntentReceiver()
DWiredHeadsetManager.java45 private final WiredHeadsetBroadcastReceiver mReceiver; field in WiredHeadsetManager
49 mReceiver = new WiredHeadsetBroadcastReceiver(); in WiredHeadsetManager()
53 context.registerReceiver(mReceiver, intentFilter); in WiredHeadsetManager()
/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/Settings/src/com/android/settings/location/
DLocationSettings.java65 private BroadcastReceiver mReceiver; field in LocationSettings
83 getActivity().unregisterReceiver(mReceiver); in onPause()
180 mReceiver = new BroadcastReceiver() { in addLocationServices()
193 context.registerReceiver(mReceiver, filter); in addLocationServices()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java56 final AtomicReference<BroadcastReceiver> mReceiver; field in RegisteredServicesCache
113 mReceiver = new AtomicReference<BroadcastReceiver>(receiver); in RegisteredServicesCache()
123 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, intentFilter, null, null); in RegisteredServicesCache()
129 mContext.registerReceiverAsUser(mReceiver.get(), UserHandle.ALL, sdFilter, null, null); in RegisteredServicesCache()
DTapAgainDialog.java49 final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in TapAgainDialog
70 registerReceiver(mReceiver, filter); in onCreate()
103 unregisterReceiver(mReceiver); in onDestroy()
/packages/apps/Gallery/src/com/android/camera/
DImageGallery.java87 private BroadcastReceiver mReceiver = null; field in ImageGallery
366 if (mReceiver != null) {
367 unregisterReceiver(mReceiver);
368 mReceiver = null;
449 mReceiver = new BroadcastReceiver() {
470 registerReceiver(mReceiver, intentFilter);
/packages/apps/Settings/src/com/android/settings/
DNsdEnabler.java39 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in NsdEnabler
58 mContext.registerReceiver(mReceiver, mIntentFilter); in resume()
63 mContext.unregisterReceiver(mReceiver); in pause()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialog.java68 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothPairingDialog
158 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_PAIRING_CANCEL)); in onCreate()
159 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED)); in onCreate()
300 unregisterReceiver(mReceiver); in onDestroy()
DBluetoothEnabler.java44 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothEnabler
79 mContext.registerReceiver(mReceiver, mIntentFilter); in resume()
89 mContext.unregisterReceiver(mReceiver); in pause()
DBluetoothNameDialogFragment.java68 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothNameDialogFragment
167 getActivity().registerReceiver(mReceiver, filter); in onResume()
173 getActivity().unregisterReceiver(mReceiver); in onPause()
DRequestPermissionActivity.java74 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in RequestPermissionActivity
122 registerReceiver(mReceiver, in onCreate()
293 unregisterReceiver(mReceiver); in onDestroy()
DBluetoothDiscoverableEnabler.java76 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothDiscoverableEnabler
111 mContext.registerReceiver(mReceiver, filter); in resume()
122 mContext.unregisterReceiver(mReceiver); in pause()
DBluetoothPermissionActivity.java59 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothPermissionActivity
111 registerReceiver(mReceiver, in onCreate()
247 unregisterReceiver(mReceiver); in onDestroy()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java42 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in NfcEnabler
75 mContext.registerReceiver(mReceiver, mIntentFilter); in resume()
83 mContext.unregisterReceiver(mReceiver); in pause()
/packages/apps/Settings/tests/src/com/android/settings/tests/
DBluetoothRequestPermissionTest.java97 registerReceiver(mReceiver, filter); in onCreate()
136 unregisterReceiver(mReceiver); in onDestroy()
144 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothRequestPermissionTest
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppIncomingFileConfirmActivity.java82 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothOppIncomingFileConfirmActivity
123 registerReceiver(mReceiver, new IntentFilter( in onCreate()
182 unregisterReceiver(mReceiver); in onDestroy()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.java118 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in AlarmActivity
187 registerReceiver(mReceiver, filter); in onCreate()
238 unregisterReceiver(mReceiver); in onDestroy()
/packages/apps/Camera2/src/com/android/camera/
DVideoModule.java283 private BroadcastReceiver mReceiver = null; field in VideoModule
641 mReceiver = new MyBroadcastReceiver(); in installIntentFilter()
642 mActivity.registerReceiver(mReceiver, intentFilter); in installIntentFilter()
800 if (mReceiver != null) { in onPauseBeforeSuper()
801 mActivity.unregisterReceiver(mReceiver); in onPauseBeforeSuper()
802 mReceiver = null; in onPauseBeforeSuper()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapActivity.java100 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothPbapActivity
123 registerReceiver(mReceiver, new IntentFilter( in onCreate()
268 unregisterReceiver(mReceiver); in onDestroy()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMtpService.java69 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in MtpService
124 registerReceiver(mReceiver, new IntentFilter(Intent.ACTION_USER_PRESENT)); in onCreate()
203 unregisterReceiver(mReceiver); in onDestroy()

123