/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardsFragment.java | 56 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/ |
D | RestrictedSettingsFragment.java | 81 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/ |
D | RestrictedDashboardFragment.java | 81 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/ |
D | RestrictedSettingsFragment.java | 79 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/ |
D | CellBroadcastAlertAudio.java | 155 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()
|
D | CellBroadcastAlertDialog.java | 190 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/ |
D | ContextualCardsFragmentTest.java | 82 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/ |
D | MainClusterActivity.java | 203 private final BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver(){ field in MainClusterActivity 261 registerReceiver(mScreenOffReceiver, screenOffFilter); in onCreate() 346 unregisterReceiver(mScreenOffReceiver); in onDestroy()
|