Searched refs:resetIntent (Results 1 – 2 of 2) sorted by relevance
91 Intent resetIntent = ShadowApplication.getInstance().getBroadcastIntents().get(0); in confirmClicked_sendsResetIntent() local92 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() local108 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() local118 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 …]
140 Intent resetIntent = new Intent(Intent.ACTION_FACTORY_RESET); in onGuidedActionClicked() local141 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()