Home
last modified time | relevance | path

Searched refs:resetIntent (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearConfirmFragmentTest.java91 Intent resetIntent = ShadowApplication.getInstance().getBroadcastIntents().get(0); in confirmClicked_sendsResetIntent() local
92 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_sendsResetIntent()
93 assertThat(resetIntent.getPackage()).isEqualTo("android"); in confirmClicked_sendsResetIntent()
94 assertThat(resetIntent.getFlags() & Intent.FLAG_RECEIVER_FOREGROUND).isEqualTo( in confirmClicked_sendsResetIntent()
96 assertThat(resetIntent.getExtras().getString(Intent.EXTRA_REASON)).isEqualTo( in confirmClicked_sendsResetIntent()
107 Intent resetIntent = ShadowApplication.getInstance().getBroadcastIntents().get(0); in confirmClicked_resetEsimFalse_resetIntentReflectsChoice() local
108 assertThat(resetIntent.getExtras().getBoolean(Intent.EXTRA_WIPE_ESIMS)).isEqualTo(false); in confirmClicked_resetEsimFalse_resetIntentReflectsChoice()
117 Intent resetIntent = ShadowApplication.getInstance().getBroadcastIntents().get(0); in confirmClicked_pdbManagerNull_sendsResetIntent() local
118 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_pdbManagerNull_sendsResetIntent()
136 Intent resetIntent = ShadowApplication.getInstance().getBroadcastIntents().get(0); in confirmClicked_oemUnlockAllowed_sendsResetIntent() local
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DResetActivity.java140 Intent resetIntent = new Intent(Intent.ACTION_FACTORY_RESET); in onGuidedActionClicked() local
141 resetIntent.setPackage("android"); in onGuidedActionClicked()
142 resetIntent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); in onGuidedActionClicked()
143 resetIntent.putExtra(Intent.EXTRA_REASON, "ResetConfirmFragment"); in onGuidedActionClicked()
145 resetIntent.putExtra(SHUTDOWN_INTENT_EXTRA, true); in onGuidedActionClicked()
147 getContext().sendBroadcast(resetIntent); in onGuidedActionClicked()