Home
last modified time | relevance | path

Searched refs:mScreenOffReceiver (Results 1 – 8 of 8) 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/
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/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/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java155 private ScreenOffReceiver mScreenOffReceiver; field in CellBroadcastAlertAudio
506 mScreenOffReceiver = new ScreenOffReceiver(effect, attr); in playAlertTone()
507 registerReceiver(mScreenOffReceiver, new IntentFilter(Intent.ACTION_SCREEN_OFF)); in playAlertTone()
695 if (mScreenOffReceiver != null) { in stop()
697 unregisterReceiver(mScreenOffReceiver); in stop()
701 mScreenOffReceiver = null; in stop()
DCellBroadcastAlertDialog.java190 private BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver() { field in CellBroadcastAlertDialog
554 registerReceiver(mScreenOffReceiver, new IntentFilter(Intent.ACTION_SCREEN_OFF)); in onCreate()
1176 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/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DMainClusterActivity.java203 private final BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver(){ field in MainClusterActivity
261 registerReceiver(mScreenOffReceiver, screenOffFilter); in onCreate()
346 unregisterReceiver(mScreenOffReceiver); in onDestroy()