Home
last modified time | relevance | path

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

1234567

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbConnectionBroadcastReceiverTest.java48 private UsbConnectionBroadcastReceiver mReceiver; field in UsbConnectionBroadcastReceiverTest
60 mReceiver = new UsbConnectionBroadcastReceiver(mContext, mListener, mUsbBackend); in setUp()
69 mReceiver.onReceive(mContext, intent); in onReceive_usbConnected_invokeCallback()
81 mReceiver.onReceive(mContext, intent); in onReceive_usbDisconnected_invokeCallback()
95 mReceiver.onReceive(mContext, intent); in onReceive_usbConnectedMtpEnabled_invokeCallback()
110 mReceiver.onReceive(mContext, intent); in onReceive_usbPortStatus_invokeCallback()
118 mReceiver.register(); in register_invokeMethodTwice_registerOnce()
119 mReceiver.register(); in register_invokeMethodTwice_registerOnce()
126 mReceiver.register(); in unregister_invokeMethodTwice_unregisterOnce()
127 mReceiver.unregister(); in unregister_invokeMethodTwice_unregisterOnce()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBuiltInWallpaperAsset.java133 private BitmapReceiver mReceiver; field in BuiltInWallpaperAsset.DecodeBitmapAsyncTask
138 mReceiver = receiver; in DecodeBitmapAsyncTask()
161 mReceiver.onBitmapDecoded(bitmap); in onPostExecute()
171 private BitmapReceiver mReceiver; field in BuiltInWallpaperAsset.DecodeBitmapRegionAsyncTask
175 mReceiver = receiver; in DecodeBitmapRegionAsyncTask()
197 mReceiver.onBitmapDecoded(bitmap); in onPostExecute()
206 private DimensionsReceiver mReceiver; field in BuiltInWallpaperAsset.DecodeDimensionsAsyncTask
209 mReceiver = receiver; in DecodeDimensionsAsyncTask()
219 mReceiver.onDimensionsDecoded(dimensions); in onPostExecute()
DStreamableAsset.java242 private BitmapReceiver mReceiver; field in StreamableAsset.DecodeBitmapAsyncTask
247 mReceiver = receiver; in DecodeBitmapAsyncTask()
293 mReceiver.onBitmapDecoded(bitmap); in onPostExecute()
303 private BitmapReceiver mReceiver; field in StreamableAsset.DecodeBitmapRegionAsyncTask
310 mReceiver = receiver; in DecodeBitmapRegionAsyncTask()
366 mReceiver.onBitmapDecoded(bitmap); in onPostExecute()
375 private DimensionsReceiver mReceiver; field in StreamableAsset.DecodeDimensionsAsyncTask
378 mReceiver = receiver; in DecodeDimensionsAsyncTask()
388 mReceiver.onDimensionsDecoded(dimensions); in onPostExecute()
DCurrentWallpaperAssetV16.java83 private BitmapReceiver mReceiver; field in CurrentWallpaperAssetV16.DecodeBitmapAsyncTask
88 mReceiver = receiver; in DecodeBitmapAsyncTask()
113 mReceiver.onBitmapDecoded(bitmap); in onPostExecute()
122 private DimensionsReceiver mReceiver; field in CurrentWallpaperAssetV16.DecodeDimensionsAsyncTask
125 mReceiver = receiver; in DecodeDimensionsAsyncTask()
137 mReceiver.onDimensionsDecoded(dimensions); in onPostExecute()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultNetworkStatusNotifier.java36 private BroadcastReceiver mReceiver; field in DefaultNetworkStatusNotifier
60 if (mReceiver == null) { in registerListener()
61 mReceiver = new BroadcastReceiver() { in registerListener()
77 mAppContext.registerReceiver(mReceiver, intentFilter); in registerListener()
90 if (!mListeners.isEmpty() || mReceiver == null) { in unregisterListener()
94 mAppContext.unregisterReceiver(mReceiver); in unregisterListener()
95 mReceiver = null; in unregisterListener()
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DBroadcastMonitor.java28 BroadcastReceiver mReceiver; field in BroadcastMonitor
43 mReceiver = receiver; in BroadcastMonitor()
49 if (mReceiver != null) { in close()
50 mReceiver = null; in close()
57 if (intent.getAction() != null && mReceiver != null) { in onReceive()
58 mReceiver.onReceive(context, intent); in onReceive()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBroadcastReceiverTest.java69 private SliceBroadcastReceiver mReceiver; field in SliceBroadcastReceiverTest
77 mReceiver = new SliceBroadcastReceiver(); in setUp()
112 mReceiver.onReceive(mContext, intent); in onReceive_toggleChanged()
144 mReceiver.onReceive(mContext, intent); in toggleUpdate_synchronously_notifyChange_should_be_called()
178 mReceiver.onReceive(mContext, intent); in toggleUpdate_asynchronously_notifyChange_should_not_be_called()
210 mReceiver.onReceive(mContext, intent); in onReceive_sliderChanged()
236 mReceiver.onReceive(mContext, intent); in onReceive_invalidController_throwsException()
246 mReceiver.onReceive(mContext, intent); in sliderOnReceive_noKey_throwsException()
252 mReceiver.onReceive(mContext, intent); in toggleOnReceive_noExtra_illegalStateException()
259 mReceiver.onReceive(mContext, intent); in toggleOnReceive_emptyKey_throwsIllegalStateException()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DRequestPermissionActivity.java67 private BroadcastReceiver mReceiver; field in RequestPermissionActivity
161 if (mReceiver != null) { in createDialog()
210 mReceiver = new StateChangeReceiver(); in onActivityResult()
211 registerReceiver(mReceiver, new IntentFilter( in onActivityResult()
222 mReceiver = new StateChangeReceiver(); in onActivityResult()
223 registerReceiver(mReceiver, new IntentFilter( in onActivityResult()
352 if (mReceiver != null) { in onDestroy()
353 unregisterReceiver(mReceiver); in onDestroy()
354 mReceiver = null; in onDestroy()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java67 private BroadcastReceiver mReceiver; field in RequestPermissionActivity
161 if (mReceiver != null) { in createDialog()
210 mReceiver = new StateChangeReceiver(); in onActivityResult()
211 registerReceiver(mReceiver, new IntentFilter( in onActivityResult()
222 mReceiver = new StateChangeReceiver(); in onActivityResult()
223 registerReceiver(mReceiver, new IntentFilter( in onActivityResult()
352 if (mReceiver != null) { in onDestroy()
353 unregisterReceiver(mReceiver); in onDestroy()
354 mReceiver = null; in onDestroy()
DBluetoothPairingDialog.java44 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothPairingDialog
96 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_PAIRING_CANCEL)); in onCreate()
97 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED)); in onCreate()
106 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/Settings/src/com/android/settings/survey/
DSurveyMixin.java38 private BroadcastReceiver mReceiver; field in SurveyMixin
66 mReceiver = provider.createAndRegisterReceiver(activity); in onResume()
78 if (mReceiver != null && activity != null) { in onPause()
79 SurveyFeatureProvider.unregisterReceiver(activity, mReceiver); in onPause()
80 mReceiver = null; in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/survey/
DSurveyMixin.java38 private BroadcastReceiver mReceiver; field in SurveyMixin
66 mReceiver = provider.createAndRegisterReceiver(activity); in onResume()
78 if (mReceiver != null && activity != null) { in onPause()
79 SurveyFeatureProvider.unregisterReceiver(activity, mReceiver); in onPause()
80 mReceiver = null; in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DBatterySaverConditionController.java38 private final BatterySaverReceiver mReceiver; field in BatterySaverConditionController
45 mReceiver = new BatterySaverReceiver(appContext); in BatterySaverConditionController()
46 mReceiver.setBatterySaverListener(this); in BatterySaverConditionController()
91 mReceiver.setListening(true); in startMonitoringStateChange()
96 mReceiver.setListening(false); in stopMonitoringStateChange()
DAbnormalRingerConditionController.java34 private final RingerModeChangeReceiver mReceiver; field in AbnormalRingerConditionController
40 mReceiver = new RingerModeChangeReceiver(); in AbnormalRingerConditionController()
56 mAppContext.registerReceiver(mReceiver, FILTER); in startMonitoringStateChange()
61 mAppContext.unregisterReceiver(mReceiver); in stopMonitoringStateChange()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionController.java38 private final BatterySaverReceiver mReceiver; field in BatterySaverConditionController
45 mReceiver = new BatterySaverReceiver(appContext); in BatterySaverConditionController()
46 mReceiver.setBatterySaverListener(this); in BatterySaverConditionController()
91 mReceiver.setListening(true); in startMonitoringStateChange()
96 mReceiver.setListening(false); in stopMonitoringStateChange()
DAbnormalRingerConditionController.java34 private final RingerModeChangeReceiver mReceiver; field in AbnormalRingerConditionController
40 mReceiver = new RingerModeChangeReceiver(); in AbnormalRingerConditionController()
56 mAppContext.registerReceiver(mReceiver, FILTER); in startMonitoringStateChange()
61 mAppContext.unregisterReceiver(mReceiver); in stopMonitoringStateChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DTopLevelLocationPreferenceController.java31 private BroadcastReceiver mReceiver; field in TopLevelLocationPreferenceController
82 if (mReceiver == null) { in onStart()
83 mReceiver = new BroadcastReceiver() { in onStart()
90 mContext.registerReceiver(mReceiver, INTENT_FILTER_LOCATION_MODE_CHANGED); in onStart()
96 mContext.unregisterReceiver(mReceiver); in onStop()
DLocationEnabler.java56 BroadcastReceiver mReceiver; field in LocationEnabler
75 if (mReceiver == null) { in onStart()
76 mReceiver = new BroadcastReceiver() { in onStart()
86 mContext.registerReceiver(mReceiver, INTENT_FILTER_LOCATION_MODE_CHANGED); in onStart()
92 mContext.unregisterReceiver(mReceiver); in onStop()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DPackageRemovedReceiverTest.java46 private PackageRemovedReceiver mReceiver; field in PackageRemovedReceiverTest
69 mReceiver = new PackageRemovedReceiver( in setUp()
134 mReceiver.setPendingResult(Utils.createFakePendingResultForTests()); in testPackageRemoved()
135 mReceiver.onReceive(getContext(), new Intent(Intent.ACTION_PACKAGE_FULLY_REMOVED, in testPackageRemoved()
153 mReceiver.setPendingResult(Utils.createFakePendingResultForTests()); in testPackageRemoved()
154 mReceiver.onReceive(getContext(), new Intent(Intent.ACTION_PACKAGE_FULLY_REMOVED, in testPackageRemoved()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDownloadPackageTask.java58 private BroadcastReceiver mReceiver; field in DownloadPackageTask
119 mReceiver = createDownloadReceiver(); in run()
122 mContext.registerReceiver(mReceiver, in run()
220 if (mReceiver != null) {
222 mContext.unregisterReceiver(mReceiver);
223 mReceiver = null;
/packages/apps/Settings/src/com/android/settings/location/
DTopLevelLocationPreferenceController.java37 private BroadcastReceiver mReceiver; field in TopLevelLocationPreferenceController
111 if (mReceiver == null) { in onStart()
112 mReceiver = new BroadcastReceiver() { in onStart()
119 mContext.registerReceiver(mReceiver, INTENT_FILTER_LOCATION_MODE_CHANGED); in onStart()
125 mContext.unregisterReceiver(mReceiver); in onStop()
DLocationEnabler.java56 BroadcastReceiver mReceiver; field in LocationEnabler
75 if (mReceiver == null) { in onStart()
76 mReceiver = new BroadcastReceiver() { in onStart()
86 mContext.registerReceiver(mReceiver, INTENT_FILTER_LOCATION_MODE_CHANGED); in onStart()
92 mContext.unregisterReceiver(mReceiver); in onStop()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java78 private StateChangeReceiver mReceiver; field in BluetoothRequestPermissionActivity
167 if (mReceiver != null) { in onDestroy()
168 unregisterReceiver(mReceiver); in onDestroy()
331 mReceiver = new StateChangeReceiver(desiredState); in onConfirmEnableBluetooth()
332 registerReceiver(mReceiver, new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED)); in onConfirmEnableBluetooth()
366 mReceiver = new StateChangeReceiver(desiredState); in onConfirmDisableBluetooth()
367 registerReceiver(mReceiver, new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED)); in onConfirmDisableBluetooth()
/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()

1234567