Home
last modified time | relevance | path

Searched refs:mScreenOffReceiver (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardsFragment.java56 BroadcastReceiver mScreenOffReceiver; field in ContextualCardsFragment
140 if (mScreenOffReceiver == null) { in registerScreenOffReceiver()
141 mScreenOffReceiver = new ScreenOffReceiver(); in registerScreenOffReceiver()
142 getActivity().registerReceiver(mScreenOffReceiver, in registerScreenOffReceiver()
148 if (mScreenOffReceiver != null) { in unregisterScreenOffReceiver()
149 getActivity().unregisterReceiver(mScreenOffReceiver); in unregisterScreenOffReceiver()
150 mScreenOffReceiver = null; in unregisterScreenOffReceiver()
/packages/apps/Settings/src/com/android/settings/dashboard/
DRestrictedDashboardFragment.java81 private BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver() { field in RestrictedDashboardFragment
117 getActivity().registerReceiver(mScreenOffReceiver, offFilter); in onCreate()
147 getActivity().unregisterReceiver(mScreenOffReceiver); in onDestroy()
/packages/apps/Settings/src/com/android/settings/
DRestrictedSettingsFragment.java81 private BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver() { field in RestrictedSettingsFragment
119 getActivity().registerReceiver(mScreenOffReceiver, offFilter); in onCreate()
149 getActivity().unregisterReceiver(mScreenOffReceiver); in onDestroy()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRestrictedSettingsFragment.java79 private BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver() { field in RestrictedSettingsFragment
117 getActivity().registerReceiver(mScreenOffReceiver, offFilter); in onCreate()
147 getActivity().unregisterReceiver(mScreenOffReceiver); in onDestroy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardsFragmentTest.java82 verify(mActivity).registerReceiver(eq(mFragment.mScreenOffReceiver), in onStart_shouldRegisterBothReceivers()
155 mFragment.mScreenOffReceiver.onReceive(mContext, intent); in onReceive_screenOff_shouldResetSession()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java170 private BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver() { field in CellBroadcastAlertDialog
384 registerReceiver(mScreenOffReceiver, new IntentFilter(Intent.ACTION_SCREEN_OFF)); in onCreate()
1031 unregisterReceiver(mScreenOffReceiver); in onDestroy()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java483 registerReceiver(mScreenOffReceiver, new IntentFilter(Intent.ACTION_SCREEN_OFF)); in onCreate()
1399 private final BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver() { field in Launcher
1631 unregisterReceiver(mScreenOffReceiver); in onDestroy()