/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbConnectionBroadcastReceiverTest.java | 48 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() 109 mReceiver.onReceive(mContext, intent); in onReceive_usbConnectedNcmEnabled_invokesCallback() 124 mReceiver.onReceive(mContext, intent); in onReceive_usbPortStatus_invokeCallback() 132 mReceiver.register(); in register_invokeMethodTwice_registerOnce() 133 mReceiver.register(); in register_invokeMethodTwice_registerOnce() 140 mReceiver.register(); in unregister_invokeMethodTwice_unregisterOnce() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ActiveSubscriptionsListenerTest.java | 72 private BroadcastReceiver mReceiver; field in ActiveSubscriptionsListenerTest 88 mReceiver = mListener.getSubscriptionChangeReceiver(); in setUp() 120 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 121 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 126 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 129 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 134 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 135 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 141 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 148 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/ |
D | MyService.java | 52 private MyBroadcastReceiver mReceiver; field in MyService 62 if (mReceiver != null) { 63 Log.d(TAG, "receiver already registered: " + mReceiver); 67 mReceiver = new MyBroadcastReceiver(DYNAMIC_RECEIVER); 68 context.registerReceiver(mReceiver, new IntentFilter(ACTION_RECEIVER_READY)); 69 context.registerReceiver(mReceiver, 71 context.registerReceiver(mReceiver, new IntentFilter(ACTION_SNOOZE_WARNING)); 190 if (mReceiver != null) { in onDestroy() 191 Log.d(TAG, "onDestroy(): unregistering " + mReceiver); in onDestroy() 192 getApplicationContext().unregisterReceiver(mReceiver); in onDestroy()
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementReceiverTest.java | 94 private ImsEntitlementReceiver mReceiver; field in ImsEntitlementReceiverTest 99 mReceiver = new ImsEntitlementReceiver() { in setUp() 128 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_dataReset() 137 mReceiver.onReceive( in onReceive_theSameSim_dataNotReset() 149 mReceiver.onReceive( in onReceive_differentSlot_dataNotReset() 161 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 1)); in onReceive_simChangedAndDifferentSlotId_dataReset() 172 mReceiver.onReceive( in onReceive_isSystemUser_jobScheduled() 182 mReceiver.onReceive( in onReceive_notSystemUser_noJobScheduled() 193 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_deviceBootUp_jobScheduled() 203 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_bootCompleteInvalidVers_noJobScheduled()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | BuiltInWallpaperAsset.java | 133 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()
|
D | StreamableAsset.java | 243 private BitmapReceiver mReceiver; field in StreamableAsset.DecodeBitmapAsyncTask 248 mReceiver = receiver; in DecodeBitmapAsyncTask() 294 mReceiver.onBitmapDecoded(bitmap); in onPostExecute() 305 private final BitmapReceiver mReceiver; field in StreamableAsset.DecodeBitmapRegionAsyncTask 312 mReceiver = receiver; in DecodeBitmapRegionAsyncTask() 379 mReceiver.onBitmapDecoded(bitmap); in onPostExecute() 388 private DimensionsReceiver mReceiver; field in StreamableAsset.DecodeDimensionsAsyncTask 391 mReceiver = receiver; in DecodeDimensionsAsyncTask() 401 mReceiver.onDimensionsDecoded(dimensions); in onPostExecute()
|
D | CurrentWallpaperAssetV16.java | 86 private BitmapReceiver mReceiver; field in CurrentWallpaperAssetV16.DecodeBitmapAsyncTask 91 mReceiver = receiver; in DecodeBitmapAsyncTask() 116 mReceiver.onBitmapDecoded(bitmap); in onPostExecute() 125 private DimensionsReceiver mReceiver; field in CurrentWallpaperAssetV16.DecodeDimensionsAsyncTask 128 mReceiver = receiver; in DecodeDimensionsAsyncTask() 140 mReceiver.onDimensionsDecoded(dimensions); in onPostExecute()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultNetworkStatusNotifier.java | 36 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/modules/Connectivity/Tethering/src/android/net/util/ |
D | VersionedBroadcastListener.java | 48 private BroadcastReceiver mReceiver; field in VersionedBroadcastListener 63 if (mReceiver != null) return; in startListening() 65 mReceiver = new Receiver(mTag, mGenerationNumber, mCallback); in startListening() 66 mContext.registerReceiver(mReceiver, mFilter, null, mHandler); in startListening() 72 if (mReceiver == null) return; in stopListening() 75 mContext.unregisterReceiver(mReceiver); in stopListening() 76 mReceiver = null; in stopListening()
|
/packages/services/BuiltInPrintService/src/com/android/bips/util/ |
D | BroadcastMonitor.java | 28 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/ |
D | SliceBroadcastReceiverTest.java | 61 private SliceBroadcastReceiver mReceiver; field in SliceBroadcastReceiverTest 69 mReceiver = new SliceBroadcastReceiver(); in setUp() 101 mReceiver.onReceive(mContext, intent); in onReceive_toggleChanged() 136 mReceiver.onReceive(mContext, intent); in toggleUpdate_synchronously_notifyChange_should_be_called() 159 mReceiver.onReceive(mContext, intent); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 187 mReceiver.onReceive(mContext, intent); in onReceive_sliderChanged() 213 mReceiver.onReceive(mContext, intent); in onReceive_invalidController_throwsException() 223 mReceiver.onReceive(mContext, intent); in sliderOnReceive_noKey_throwsException() 229 mReceiver.onReceive(mContext, intent); in toggleOnReceive_noExtra_illegalStateException() 236 mReceiver.onReceive(mContext, intent); in toggleOnReceive_emptyKey_throwsIllegalStateException() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | TestingSettingsBroadcastReceiverTest.java | 38 private TestingSettingsBroadcastReceiver mReceiver; field in TestingSettingsBroadcastReceiverTest 44 mReceiver = new TestingSettingsBroadcastReceiver(); in setUp() 51 mReceiver.onReceive(mContext, null); in onReceive_nullIntent_shouldNotCrash() 52 mReceiver.onReceive(mContext, intent); in onReceive_nullIntent_shouldNotCrash() 63 mReceiver.onReceive(mContext, intent); in onReceive_wrongIntent_shouldNotStartActivity() 74 mReceiver.onReceive(mContext, intent); in onReceive_correctIntent_shouldStartActivity()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | RequestPermissionActivity.java | 71 private BroadcastReceiver mReceiver; field in RequestPermissionActivity 167 if (mReceiver != null) { in createDialog() 216 mReceiver = new StateChangeReceiver(); in onActivityResult() 217 registerReceiver(mReceiver, new IntentFilter( in onActivityResult() 228 mReceiver = new StateChangeReceiver(); in onActivityResult() 229 registerReceiver(mReceiver, new IntentFilter( in onActivityResult() 368 if (mReceiver != null) { in onDestroy() 369 unregisterReceiver(mReceiver); in onDestroy() 370 mReceiver = null; in onDestroy()
|
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/ |
D | ListenableFutureLoader.java | 50 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/ |
D | SurveyMixin.java | 38 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/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastInternalReceiverTest.java | 43 private CellBroadcastInternalReceiver mReceiver; field in CellBroadcastInternalReceiverTest 50 mReceiver = spy(new CellBroadcastInternalReceiver()); in setUp() 57 doNothing().when(mReceiver).getCellBroadcastTask(nullable(Context.class), anyLong()); in testOnReceive_actionMarkAsRead() 58 mReceiver.onReceive(mContext, mIntent); in testOnReceive_actionMarkAsRead() 60 verify(mReceiver).getCellBroadcastTask(nullable(Context.class), anyLong()); in testOnReceive_actionMarkAsRead()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | BatterySaverConditionController.java | 38 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()
|
D | AbnormalRingerConditionController.java | 34 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/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | DownloadPackageTask.java | 59 private BroadcastReceiver mReceiver; field in DownloadPackageTask 115 mReceiver = createDownloadReceiver(); in run() 118 mContext.registerReceiver(mReceiver, in run() 218 if (mReceiver != null) { 220 mContext.unregisterReceiver(mReceiver); 221 mReceiver = null;
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | PackageRemovedReceiverTest.java | 46 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/Settings/src/com/android/settings/location/ |
D | TopLevelLocationPreferenceController.java | 37 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()
|
D | LocationEnabler.java | 56 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/ |
D | BluetoothRequestPermissionActivity.java | 88 private StateChangeReceiver mReceiver; field in BluetoothRequestPermissionActivity 193 if (mReceiver != null) { in onDestroy() 194 unregisterReceiver(mReceiver); in onDestroy() 394 mReceiver = new StateChangeReceiver(desiredState); in enableBluetoothWithWaitingDialog() 395 registerReceiver(mReceiver, new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED)); in enableBluetoothWithWaitingDialog() 426 mReceiver = new StateChangeReceiver(desiredState); in onConfirmDisableBluetooth() 427 registerReceiver(mReceiver, new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED)); in onConfirmDisableBluetooth() 452 return mReceiver; in getCurrentReceiver()
|
D | BluetoothPairingDialog.java | 46 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothPairingDialog 101 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_PAIRING_CANCEL)); in onCreate() 102 registerReceiver(mReceiver, new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED)); in onCreate() 111 unregisterReceiver(mReceiver); in onDestroy()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | ProvisioningResultListener.java | 46 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()
|