/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | AuthenticationStatsBroadcastReceiverTest.java | 56 private AuthenticationStatsBroadcastReceiver mBroadcastReceiver; field in AuthenticationStatsBroadcastReceiverTest 93 mBroadcastReceiver = new AuthenticationStatsBroadcastReceiver(mContext, in setUp() 99 verify(mContext).registerReceiver(eq(mBroadcastReceiver), any()); in testRegisterReceiver() 104 mBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_shouldInitializeAuthenticationStatsCollector() 111 verify(mContext).unregisterReceiver(mBroadcastReceiver); in testOnReceive_shouldInitializeAuthenticationStatsCollector()
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | ImeActivity.java | 40 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in ImeActivity 77 registerReceiver(mBroadcastReceiver, filter, Context.RECEIVER_EXPORTED); in onCreate() 82 unregisterReceiver(mBroadcastReceiver); in onDestroy()
|
D | PipActivity.java | 102 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in PipActivity 201 registerReceiver(mBroadcastReceiver, filter, Context.RECEIVER_EXPORTED); in onCreate() 208 unregisterReceiver(mBroadcastReceiver); in onDestroy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | LatencyTester.java | 103 mBroadcastDispatcher.registerReceiver(mBroadcastReceiver, filter); in registerForBroadcasts() 105 mBroadcastDispatcher.unregisterReceiver(mBroadcastReceiver); in registerForBroadcasts() 124 private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in LatencyTester
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/ |
D | DeviceIdlenessTrackerTest.java | 73 private BroadcastReceiver mBroadcastReceiver; field in DeviceIdlenessTrackerTest 135 mBroadcastReceiver = broadcastReceiverCaptor.getValue(); in setUp() 172 mBroadcastReceiver.onReceive(mContext, dockIdleIntent); in testAlarmSkippedIfAlreadyIdle() 196 mBroadcastReceiver.onReceive(mContext, screenOffIntent); in testAlarmSkippedIfAlreadyIdle() 210 mBroadcastReceiver.onReceive(mContext, screenOffIntent); in testAlarmSkippedIfNoThresholdChange() 243 mBroadcastReceiver.onReceive(mContext, screenOffIntent); in testThresholdChangeWithStablePowerChange()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 446 eq(mKeyguardUpdateMonitor.mBroadcastReceiver), in testReceiversRegistered() 474 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast() 480 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast() 496 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), in testTelephonyCapable_SimState_Absent() 507 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), in testTelephonyCapable_SimState_CardIOError() 521 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_SimInvalid_ServiceState_InService() 538 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_SimValid_ServiceState_PowerOff() 559 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_ServiceState_OutOfService() 574 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_SimState_NotReady() 589 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext() in testTelephonyCapable_BootInitState_SimState_Ready() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 137 assertNotNull(mInjector.mBroadcastReceiver); in testStartStopTrackerScreenOnOff() 166 assertNull(mInjector.mBroadcastReceiver); in testStartStopTrackerScreenOnOff() 255 assertNotNull(mInjector.mBroadcastReceiver); in testAdaptiveOnOff() 287 assertNull(mInjector.mBroadcastReceiver); in testAdaptiveOnOff() 393 mInjector.mBroadcastReceiver.onReceive(InstrumentationRegistry.getContext(), in testBrightnessFullPopulatedEvent() 631 mInjector.mBroadcastReceiver.onReceive(InstrumentationRegistry.getContext(), in testWriteThenRead() 872 assertNull(mInjector.mBroadcastReceiver); in testOnlyOneReceiverRegistered() 879 assertNotNull(mInjector.mBroadcastReceiver); in testOnlyOneReceiverRegistered() 884 BroadcastReceiver registeredBroadcastReceiver = mInjector.mBroadcastReceiver; in testOnlyOneReceiverRegistered() 890 assertSame(registeredBroadcastReceiver, mInjector.mBroadcastReceiver); in testOnlyOneReceiverRegistered() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | CachedDeviceStateService.java | 40 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in CachedDeviceStateService 77 getContext().registerReceiver(mBroadcastReceiver, filter); in onBootPhase()
|
D | EntropyMixer.java | 101 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in EntropyMixer 126 mBroadcastReceiver, in EntropyMixer()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/ |
D | AppClipsActivity.java | 88 private final BroadcastReceiver mBroadcastReceiver; field in AppClipsActivity 112 mBroadcastReceiver = new BroadcastReceiver() { in AppClipsActivity() 136 registerReceiver(mBroadcastReceiver, mIntentFilter, PERMISSION_SELF, null, in onCreate() 185 unregisterReceiver(mBroadcastReceiver); in onDestroy()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ScreenshotHelper.java | 43 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in ScreenshotHelper 109 mContext.registerReceiver(mBroadcastReceiver, in takeScreenshotInternal() 227 mContext.unregisterReceiver(mBroadcastReceiver); in resetConnection()
|
/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/ |
D | SharedConnectivityManager.java | 272 mContext.registerReceiver(mBroadcastReceiver, intentFilter); in bind() 287 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in SharedConnectivityManager 290 context.unregisterReceiver(mBroadcastReceiver); 302 return mBroadcastReceiver; in getBroadcastReceiver() 407 mContext.unregisterReceiver(mBroadcastReceiver); in unregisterCallback()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | ComponentController.java | 53 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in ComponentController 118 mBroadcastReceiver, UserHandle.ALL, filter, null, null); in startTrackingLocked() 123 mBroadcastReceiver, UserHandle.ALL, userFilter, null, null); in startTrackingLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 85 private BroadcastReceiver mBroadcastReceiver; field in SecurityControllerTest 127 mBroadcastReceiver = brCaptor.getValue(); in setUp() 251 mBroadcastReceiver.onReceive(mContext, intent); in refreshCACerts()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | BiometricNotificationService.java | 75 private final BiometricNotificationBroadcastReceiver mBroadcastReceiver; field in BiometricNotificationService 161 mBroadcastReceiver = biometricNotificationBroadcastReceiver; in BiometricNotificationService() 177 mContext.registerReceiver(mBroadcastReceiver, intentFilter, in start()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 130 context.registerReceiver(mBroadcastReceiver, intentFilter); in NotificationChannelController() 178 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in NotificationChannelController
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | AuthenticationStatsCollector.java | 68 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in AuthenticationStatsCollector 102 context.registerReceiver(mBroadcastReceiver, intentFilter); in AuthenticationStatsCollector()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayControllerTest.java | 137 private ArgumentCaptor<BroadcastReceiver> mBroadcastReceiver; field in ThemeOverlayControllerTest 200 verify(mBroadcastDispatcher).registerReceiver(mBroadcastReceiver.capture(), any(), in setup() 253 mBroadcastReceiver.getValue().onReceive(null, intent); in onWallpaperColorsChanged_setsTheme_whenForeground() 275 mBroadcastReceiver.getValue().onReceive(null, new Intent(Intent.ACTION_WALLPAPER_CHANGED)); in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 692 mBroadcastReceiver.getValue().onReceive(null, in onProfileAdded_setsTheme() 702 mBroadcastReceiver.getValue().onReceive(null, in onUserAdded_appliesTheme_ifNotManagedProfile() 713 mBroadcastReceiver.getValue().onReceive(null, in onProfileAdded_ignoresUntilSetupComplete() 726 mBroadcastReceiver.getValue().onReceive(null, in onPrivateProfileAdded_ignoresUntilStartComplete() 751 mBroadcastReceiver.getValue().onReceive(null, intent); in onWallpaperColorsChanged_firstEventBeforeUserSetup_shouldBeAccepted()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | BatteryController.java | 950 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in BatteryController.LocalBluetoothBatteryManager 963 synchronized (mBroadcastReceiver) { 980 synchronized (mBroadcastReceiver) { in addBatteryListener() 986 mContext.registerReceiver(mBroadcastReceiver, in addBatteryListener() 993 synchronized (mBroadcastReceiver) { in removeBatteryListener() 998 mContext.unregisterReceiver(mBroadcastReceiver); in removeBatteryListener()
|
/frameworks/base/services/core/java/com/android/server/utils/quota/ |
D | QuotaTracker.java | 113 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in QuotaTracker 171 context.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, filter, null, in QuotaTracker() 174 context.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, userFilter, null, in QuotaTracker()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | BaseWifiTracker.java | 123 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in BaseWifiTracker 396 mContext.registerReceiver(mBroadcastReceiver, filter, 425 mContext.unregisterReceiver(mBroadcastReceiver); 452 mContext.unregisterReceiver(mBroadcastReceiver);
|
/frameworks/base/services/core/java/com/android/server/emergency/ |
D | EmergencyAffordanceService.java | 83 private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in EmergencyAffordanceService 197 mContext.registerReceiver(mBroadcastReceiver, filter); in handleThirdPartyBootPhase()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/ |
D | AppHibernationServiceTest.java | 100 private BroadcastReceiver mBroadcastReceiver; field in AppHibernationServiceTest 137 mBroadcastReceiver = mReceiverCaptor.getValue(); in setUp() 184 mBroadcastReceiver.onReceive(mContext, intent); in testSetHibernatingForUser_newPackageAdded_packageIsHibernating() 215 mBroadcastReceiver.onReceive(mContext, intent); in testIsHibernatingForUser_packageReplaced_stillReturnsHibernating()
|
/frameworks/base/services/profcollect/src/com/android/server/profcollect/ |
D | ProfcollectForwardingService.java | 79 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in ProfcollectForwardingService 110 context.registerReceiver(mBroadcastReceiver, filter, Context.RECEIVER_NOT_EXPORTED); in ProfcollectForwardingService()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsBroadcastUndelivered.java | 103 private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { field in SmsBroadcastUndelivered 156 context.registerReceiver(mBroadcastReceiver, userFilter); in SmsBroadcastUndelivered()
|