Home
last modified time | relevance | path

Searched refs:mBroadcastReceiver (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java40 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in CachedDeviceStateService
77 getContext().registerReceiver(mBroadcastReceiver, filter); in onBootPhase()
DEntropyMixer.java79 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in EntropyMixer
108 mBroadcastReceiver, in EntropyMixer()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java273 eq(mKeyguardUpdateMonitor.mBroadcastReceiver), in testReceiversRegistered()
300 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast()
306 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast()
322 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), in testTelephonyCapable_SimState_Absent()
333 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), in testTelephonyCapable_SimState_CardIOError()
347 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_SimInvalid_ServiceState_InService()
364 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_SimValid_ServiceState_PowerOff()
385 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_ServiceState_OutOfService()
400 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_SimState_NotReady()
415 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_SimState_Ready()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java78 private BroadcastReceiver mBroadcastReceiver; field in SecurityControllerTest
116 mBroadcastReceiver = brCaptor.getValue(); in setUp()
216 mBroadcastReceiver.onReceive(mContext, intent); in refreshCACerts()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java126 assertNotNull(mInjector.mBroadcastReceiver); in testStartStopTrackerScreenOnOff()
155 assertNull(mInjector.mBroadcastReceiver); in testStartStopTrackerScreenOnOff()
247 assertNotNull(mInjector.mBroadcastReceiver); in testAdaptiveOnOff()
280 assertNull(mInjector.mBroadcastReceiver); in testAdaptiveOnOff()
329 mInjector.mBroadcastReceiver.onReceive(InstrumentationRegistry.getContext(), in testBrightnessFullPopulatedEvent()
597 mInjector.mBroadcastReceiver.onReceive(InstrumentationRegistry.getContext(), in testWriteThenRead()
649 mInjector.mBroadcastReceiver.onReceive(InstrumentationRegistry.getContext(), in testWritePrunesOldEvents()
927 BroadcastReceiver mBroadcastReceiver; field in BrightnessTrackerTest.TestInjector
964 mBroadcastReceiver.onReceive(InstrumentationRegistry.getContext(), intent); in sendScreenChange()
1002 mBroadcastReceiver = shutdownReceiver; in registerReceiver()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayControllerTest.java107 private ArgumentCaptor<BroadcastReceiver> mBroadcastReceiver; field in ThemeOverlayControllerTest
138 verify(mBroadcastDispatcher).registerReceiver(mBroadcastReceiver.capture(), any(), in setup()
185 mBroadcastReceiver.getValue().onReceive(null, intent); in onWallpaperColorsChanged_setsTheme_whenForeground()
212 mBroadcastReceiver.getValue().onReceive(null, new Intent(Intent.ACTION_WALLPAPER_CHANGED)); in onWallpaperColorsChanged_setsTheme_skipWhenBackground()
449 mBroadcastReceiver.getValue().onReceive(null, in onProfileAdded_setsTheme()
458 mBroadcastReceiver.getValue().onReceive(null, in onUserAdded_appliesTheme_ifNotManagedProfile()
468 mBroadcastReceiver.getValue().onReceive(null, in onProfileAdded_ignoresUntilSetupComplete()
490 mBroadcastReceiver.getValue().onReceive(null, intent); in onWallpaperColorsChanged_firstEventBeforeUserSetup_shouldBeAccepted()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DComponentController.java52 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in ComponentController
109 mBroadcastReceiver, UserHandle.ALL, filter, null, null); in ComponentController()
114 mBroadcastReceiver, UserHandle.ALL, userFilter, null, null); in ComponentController()
DDeviceIdleJobsController.java80 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in DeviceIdleJobsController
145 mBroadcastReceiver, UserHandle.ALL, filter, null, null); in DeviceIdleJobsController()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
DPipActivity.java97 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in PipActivity
193 registerReceiver(mBroadcastReceiver, filter); in onCreate()
200 unregisterReceiver(mBroadcastReceiver); in onDestroy()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java130 context.registerReceiver(mBroadcastReceiver, intentFilter); in NotificationChannelController()
178 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in NotificationChannelController
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/
DAppHibernationServiceTest.java89 private BroadcastReceiver mBroadcastReceiver; field in AppHibernationServiceTest
124 mBroadcastReceiver = mReceiverCaptor.getValue(); in setUp()
163 mBroadcastReceiver.onReceive(mContext, intent); in testSetHibernatingForUser_newPackageAdded_packageIsHibernating()
194 mBroadcastReceiver.onReceive(mContext, intent); in testIsHibernatingForUser_packageReplaced_stillReturnsHibernating()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DBaseWifiTracker.java98 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in BaseWifiTracker
331 mContext.registerReceiver(mBroadcastReceiver, filter, in onStart()
370 mContext.unregisterReceiver(mBroadcastReceiver); in onStop()
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java83 private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in EmergencyAffordanceService
197 mContext.registerReceiver(mBroadcastReceiver, filter); in handleThirdPartyBootPhase()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataThrottler.java75 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in DataThrottler
105 mPhone.getContext().registerReceiver(mBroadcastReceiver, filter, null, mPhone); in DataThrottler()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsBroadcastUndelivered.java98 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in SmsBroadcastUndelivered
151 context.registerReceiver(mBroadcastReceiver, userFilter); in SmsBroadcastUndelivered()
DNetworkRegistrationManager.java75 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in NetworkRegistrationManager
107 contextAsUser.registerReceiver(mBroadcastReceiver, intentFilter, in NetworkRegistrationManager()
DLocaleTracker.java168 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in LocaleTracker
257 mPhone.getContext().registerReceiver(mBroadcastReceiver, filter); in LocaleTracker()
/frameworks/base/services/core/java/com/android/server/utils/quota/
DQuotaTracker.java114 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in QuotaTracker
170 context.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, filter, null, in QuotaTracker()
173 context.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, userFilter, null, in QuotaTracker()
/frameworks/base/core/java/com/android/internal/util/
DScreenshotHelper.java167 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in ScreenshotHelper
181 mContext.registerReceiver(mBroadcastReceiver, filter); in ScreenshotHelper()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustAgentWrapper.java109 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in TrustAgentWrapper
428 mContext.registerReceiver(mBroadcastReceiver, alarmFilter, PERMISSION, null); in TrustAgentWrapper()
590 mContext.unregisterReceiver(mBroadcastReceiver); in destroy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeTriggers.java88 private final TriggerReceiver mBroadcastReceiver = new TriggerReceiver(); field in DozeTriggers
423 mBroadcastReceiver.register(mBroadcastDispatcher); in transitionTo()
456 mBroadcastReceiver.unregister(mBroadcastDispatcher); in transitionTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java128 private BroadcastReceiver mBroadcastReceiver; field in KeyguardIndicationController
231 if (mBroadcastReceiver == null) { in setIndicationArea()
233 mBroadcastReceiver = new BroadcastReceiver() { in setIndicationArea()
242 mBroadcastDispatcher.registerReceiver(mBroadcastReceiver, intentFilter); in setIndicationArea()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java90 registerReceiver(mBroadcastReceiver, filter); in onCreate()
104 unregisterReceiver(mBroadcastReceiver); in onDestroy()
107 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in SoundTriggerTestService
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerServiceImpl.java106 final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in VoiceInteractionManagerServiceImpl
193 mContext.registerReceiver(mBroadcastReceiver, filter, null, handler); in VoiceInteractionManagerServiceImpl()
689 mContext.unregisterReceiver(mBroadcastReceiver); in shutdownLocked()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java58 private final BroadcastReceiver mBroadcastReceiver = new BluetoothBroadcastReceiver(); field in BluetoothEventManager
149 registerIntentReceiver(mBroadcastReceiver, mAdapterIntentFilter); in registerAdapterIntentReceiver()

123