Home
last modified time | relevance | path

Searched refs:resultIntent (Results 1 – 22 of 22) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityController.java595 boolean updateProvisioningParamsFromIntent(Intent resultIntent) { in updateProvisioningParamsFromIntent() argument
596 final int provisioningMode = resultIntent.getIntExtra( in updateProvisioningParamsFromIntent()
607 resultIntent, in updateProvisioningParamsFromIntent()
614 resultIntent, in updateProvisioningParamsFromIntent()
621 resultIntent, in updateProvisioningParamsFromIntent()
633 private void updateParamsPostProvisioningModeDecision(Intent resultIntent, in updateParamsPostProvisioningModeDecision() argument
640 maybeUpdateAdminExtrasBundle(builder, resultIntent); in updateParamsPostProvisioningModeDecision()
641 maybeUpdateSkipEducationScreens(builder, resultIntent); in updateParamsPostProvisioningModeDecision()
642 maybeUpdateDisclaimers(builder, resultIntent); in updateParamsPostProvisioningModeDecision()
643 maybeUpdateSkipEncryption(builder, resultIntent); in updateParamsPostProvisioningModeDecision()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityControllerTest.java630 Intent resultIntent = intentArgumentCaptor.getAllValues().get(1); in testManagedProfile_roleHolderRequestedUpdate_restartsWithProvidedState() local
632 resultIntent.getParcelableExtra(EXTRA_ROLE_HOLDER_STATE), in testManagedProfile_roleHolderRequestedUpdate_restartsWithProvidedState()
634 assertThat(resultIntent.getIntExtra(EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE, RESULT_CANCELED)) in testManagedProfile_roleHolderRequestedUpdate_restartsWithProvidedState()
678 Intent resultIntent = intentArgumentCaptor.getAllValues().get(1); in testManagedProfile_roleHolderRequestedUpdate_updateFailsOnce_restartsWithProvidedState() local
680 resultIntent.getParcelableExtra(EXTRA_ROLE_HOLDER_STATE), in testManagedProfile_roleHolderRequestedUpdate_updateFailsOnce_restartsWithProvidedState()
682 assertThat(resultIntent.getIntExtra(EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE, RESULT_CANCELED)) in testManagedProfile_roleHolderRequestedUpdate_updateFailsOnce_restartsWithProvidedState()
1504 Intent resultIntent = createResultIntentWithManagedProfile() in testUpdateProvisioningParamsFromIntent_managedProfileModeWithAccountMigratedExtraTrue_setsParamToTrue() local
1510 mController.updateProvisioningParamsFromIntent(resultIntent); in testUpdateProvisioningParamsFromIntent_managedProfileModeWithAccountMigratedExtraTrue_setsParamToTrue()
1517 Intent resultIntent = createResultIntentWithManagedProfile() in testUpdateProvisioningParamsFromIntent_managedProfileModeWithAccountMigratedExtraFalse_setsParamToFalse() local
1523 mController.updateProvisioningParamsFromIntent(resultIntent); in testUpdateProvisioningParamsFromIntent_managedProfileModeWithAccountMigratedExtraFalse_setsParamToFalse()
[all …]
/packages/apps/Settings/src/com/android/settings/sim/
DSimSelectNotification.java269 Intent resultIntent = new Intent(Settings.ACTION_WIRELESS_SETTINGS); in createSimSelectNotification() local
270 resultIntent.setPackage(SETTINGS_PACKAGE_NAME); in createSimSelectNotification()
271 resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in createSimSelectNotification()
272 PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent, in createSimSelectNotification()
306 Intent resultIntent = new Intent(Settings.ACTION_MMS_MESSAGE_SETTING); in createEnableMmsNotification() local
307 resultIntent.setPackage(SETTINGS_PACKAGE_NAME); in createEnableMmsNotification()
308 resultIntent.putExtra(Settings.EXTRA_SUB_ID, subId); in createEnableMmsNotification()
309 PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent, in createEnableMmsNotification()
354 Intent resultIntent = new Intent(context, HelpTrampoline.class); in createSimCombinationWarningNotification() local
355 resultIntent.putExtra(Intent.EXTRA_TEXT, "help_uri_sim_combination_warning"); in createSimCombinationWarningNotification()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DErrorDialogUtilsTest.java58 Intent resultIntent = ErrorDialogUtils.createResultIntent(ERROR_WRAPPER, mContext); in createResultIntent_works() local
60 assertIntentsEqual(resultIntent, EXPECTED_INTENT); in createResultIntent_works()
65 Intent resultIntent = ErrorDialogUtils.createResultIntent(ERROR_WRAPPER_INVALID_RES_IDS, in createResultIntent_invalidResIds_works() local
68 assertIntentsEqual(resultIntent, EXPECTED_INTENT_FOR_INVALID_RES_IDS); in createResultIntent_invalidResIds_works()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateIntentCompleted.java39 Intent resultIntent) { in from() argument
41 savingPicture, resourceConstructed, Optional.of(resultIntent)); in from()
54 Optional<Intent> resultIntent) { in StateIntentCompleted() argument
58 mResultIntent = resultIntent; in StateIntentCompleted()
/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/
DSafeParcelablePendingIntentTest.java72 PendingIntent resultIntent = SafeParcelReader.readPendingIntent(parcel, header); in testWriteRead_success() local
73 assertThat(resultIntent).isEqualTo(pendingIntent); in testWriteRead_success()
93 PendingIntent resultIntent = SafeParcelReader.readPendingIntent(parcel, header); in testWriteReadNull_success() local
95 assertThat(resultIntent).isNull(); in testWriteReadNull_success()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationClickHandlerFactory.java150 Intent resultIntent = addCannedReplyMessage(action, context); in getActionClickHandler() local
151 int result = sendPendingIntent(action.actionIntent, context, resultIntent); in getActionClickHandler()
397 Intent resultIntent) {
404 /* intent= */ resultIntent, /* onFinished= */null,
424 Intent resultIntent = new Intent();
426 new RemoteInput[]{remoteInput}, resultIntent, messageDataBundle);
427 return resultIntent;
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorActivity.java281 public void onSaveFinished(Intent resultIntent) {
283 setResult(resultIntent == null ? RESULT_CANCELED : RESULT_OK, resultIntent);
284 } else if (resultIntent != null) {
286 ContactEditorActivity.this, resultIntent);
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/activityembedding/
DEmbeddedDeepLinkUtilsTest.kt54 val resultIntent = getTrampolineIntent(intent, "menu_key") in getTrampolineIntent_intentSelector_shouldNotChangeIntentAction() constant
57 resultIntent.getStringExtra(Settings.EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_INTENT_URI) in getTrampolineIntent_intentSelector_shouldNotChangeIntentAction()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DQrCodeScanModeFragment.java213 final Intent resultIntent = new Intent();
214 resultIntent.putExtra(KEY_BROADCAST_METADATA, mBroadcastMetadata);
215 getActivity().setResult(Activity.RESULT_OK, resultIntent);
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsQrCodeScanFragment.java91 Intent resultIntent = new Intent();
92 resultIntent.putExtra(KEY_BROADCAST_METADATA, mBroadcastMetadata);
94 getActivity().setResult(Activity.RESULT_OK, resultIntent);
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollIntroductionTest.java272 final Intent resultIntent = mFingerprintEnrollIntroduction.getSetResultIntentExtra(null); in intro_CheckGenerateChallenge() local
273 assertThat(resultIntent).isNotNull(); in intro_CheckGenerateChallenge()
274 assertThat(resultIntent.getLongExtra(EXTRA_KEY_CHALLENGE, -1L)).isEqualTo(challengeField); in intro_CheckGenerateChallenge()
275 final byte[] token2 = resultIntent.getByteArrayExtra(EXTRA_KEY_CHALLENGE_TOKEN); in intro_CheckGenerateChallenge()
/packages/apps/Car/systemlibs/car-assist-client-lib/src/com/android/car/assist/client/
DFallbackAssistant.java207 private int sendPendingIntent(PendingIntent pendingIntent, Intent resultIntent) { in sendPendingIntent() argument
210 /* intent= */ resultIntent, /* onFinished= */null, in sendPendingIntent()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DDevicePolicyControllerImpl.java382 Intent resultIntent = new Intent(mContext, LandingActivity.class);
389 return resultIntent.setAction(
392 return resultIntent.setAction(ACTION_START_DEVICE_SUBSIDY_PROVISIONING);
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java728 final Intent resultIntent = new Intent(); in onSuccess() local
729 resultIntent.putExtra(KEY_WIFI_CONFIGURATION, mEnrolleeWifiConfiguration); in onSuccess()
754 hostActivity.setResult(Activity.RESULT_OK, resultIntent); in onSuccess()
DWifiDppAddDeviceFragment.java171 private void showErrorUi(int code, Intent resultIntent, boolean isConfigurationChange) { in showErrorUi() argument
257 getActivity().setResult(Activity.RESULT_CANCELED, resultIntent); in showErrorUi()
/packages/apps/Camera2/src/com/android/camera/app/
DAppController.java418 public void finishActivityWithIntentCompleted(Intent resultIntent); in finishActivityWithIntentCompleted() argument
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java258 void onSaveFinished(Intent resultIntent); in onSaveFinished() argument
1497 final Intent resultIntent; in onSaveCompleted() local
1501 resultIntent = ImplicitIntentsUtil.composeQuickContactIntent( in onSaveCompleted()
1503 resultIntent.putExtra(QuickContactActivity.EXTRA_CONTACT_EDITED, true); in onSaveCompleted()
1505 resultIntent = null; in onSaveCompleted()
1509 if (mListener != null) mListener.onSaveFinished(resultIntent); in onSaveCompleted()
/packages/apps/Camera2/src/com/android/camera/
DVideoModule.java1074 Intent resultIntent = new Intent(); in doReturnToCaller() local
1078 resultIntent.setData(mCurrentVideoUri); in doReturnToCaller()
1079 resultIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in doReturnToCaller()
1083 mActivity.setResultEx(resultCode, resultIntent); in doReturnToCaller()
DCameraActivity.java2846 public void finishActivityWithIntentCompleted(Intent resultIntent) { in finishActivityWithIntentCompleted() argument
2847 finishActivityWithIntentResult(Activity.RESULT_OK, resultIntent); in finishActivityWithIntentCompleted()
2855 private void finishActivityWithIntentResult(int resultCode, Intent resultIntent) { in finishActivityWithIntentResult() argument
2856 setResultEx(resultCode, resultIntent); in finishActivityWithIntentResult()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java233 public static boolean canUndo(Intent resultIntent) { in canUndo() argument
234 return resultIntent.hasExtra(EXTRA_UNDO_DATA); in canUndo()
883 public static Intent createUndoIntent(Context context, Intent resultIntent) { in createUndoIntent() argument
886 serviceIntent.putExtras(resultIntent); in createUndoIntent()
/packages/apps/LegacyCamera/src/com/android/camera/
DVideoCamera.java1143 Intent resultIntent = new Intent(); in doReturnToCaller() local
1147 resultIntent.setData(mCurrentVideoUri); in doReturnToCaller()
1151 setResultEx(resultCode, resultIntent); in doReturnToCaller()