Home
last modified time | relevance | path

Searched refs:requestCode (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollActivity.java321 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
322 super.onActivityResult(requestCode, resultCode, data);
327 handleOnActivityResultWhileConsenting(requestCode, resultCode, data);
329 handleOnActivityResultWhileEnrolling(requestCode, resultCode, data);
335 int requestCode, int resultCode, Intent data) {
338 switch (requestCode) {
342 if (isSuccessfulConfirmOrChooseCredential(requestCode, resultCode)) {
371 Log.w(TAG, "Unknown consenting requestCode: " + requestCode + ", finishing");
378 int requestCode, int resultCode, Intent data) {
379 if (requestCode == REQUEST_HANDOFF_PARENT) {
[all …]
DBiometricEnrollIntroduction.java292 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
293 if (requestCode == BIOMETRIC_FIND_SENSOR_REQUEST) { in onActivityResult()
300 } else if (requestCode == CHOOSE_LOCK_GENERIC_REQUEST) { in onActivityResult()
321 } else if (requestCode == CONFIRM_REQUEST) { in onActivityResult()
341 } else if (requestCode == LEARN_MORE_REQUEST) { in onActivityResult()
343 } else if (requestCode == ENROLL_NEXT_BIOMETRIC_REQUEST) { in onActivityResult()
352 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/proxy/
DStartActivityParams.java35 public final int requestCode; field in StartActivityParams
46 public StartActivityParams(Activity activity, int requestCode) { in StartActivityParams() argument
47 this(activity.createPendingResult(requestCode, new Intent(), in StartActivityParams()
48 PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_UPDATE_CURRENT), requestCode); in StartActivityParams()
51 public StartActivityParams(PendingIntent pendingIntent, int requestCode) { in StartActivityParams() argument
53 this.requestCode = requestCode; in StartActivityParams()
58 requestCode = parcel.readInt(); in StartActivityParams()
78 parcel.writeInt(requestCode); in writeToParcel()
DProxyActivityStarter.java54 startActivityForResult(mParams.intent, mParams.requestCode, mParams.options); in onCreate()
57 startIntentSenderForResult(mParams.intentSender, mParams.requestCode, in onCreate()
71 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
72 if (requestCode == mParams.requestCode) { in onActivityResult()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DIntentUtils.java46 @NonNull Intent intent, int requestCode) { in startExternalActivityForResult() argument
47 startExternalActivityForResult(activity, intent, requestCode, null); in startExternalActivityForResult()
51 @NonNull Intent intent, int requestCode, @Nullable Bundle options) { in startExternalActivityForResult() argument
53 activity.startActivityForResult(startIntent, requestCode); in startExternalActivityForResult()
57 @NonNull Intent intent, int requestCode) { in startExternalActivityForResult() argument
58 startExternalActivityForResult(fragment, intent, requestCode, null); in startExternalActivityForResult()
62 @NonNull Intent intent, int requestCode, @Nullable Bundle options) { in startExternalActivityForResult() argument
65 fragment.startActivityForResult(startIntent, requestCode); in startExternalActivityForResult()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DFinalizationInsideSuwControllerLogic.java74 ProvisioningParams params, int requestCode) { in notifyDpcManagedProfile() argument
75 return startPolicyComplianceActivityForResultIfResolved(params, requestCode); in notifyDpcManagedProfile()
80 ProvisioningParams params, int requestCode) { in notifyDpcManagedDeviceOrUser() argument
81 return startPolicyComplianceActivityForResultIfResolved(params, requestCode); in notifyDpcManagedDeviceOrUser()
131 ProvisioningParams params, int requestCode) { in startPolicyComplianceActivityForResultIfResolved() argument
145 getDpcIntentSender(params, requestCode)); in startPolicyComplianceActivityForResultIfResolved()
147 mLastRequestCode = requestCode; in startPolicyComplianceActivityForResultIfResolved()
152 private Runnable getDpcIntentSender(ProvisioningParams params, int requestCode) { in getDpcIntentSender() argument
155 mActivity, params, requestCode, mUtils, mProvisioningAnalyticsTracker, in getDpcIntentSender()
DFinalizationInsideSuwActivity.java53 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 switch (requestCode) { in onActivityResult()
64 + "requestCode = " + requestCode + ", resultCode = " + resultCode); in onActivityResult()
76 ProvisionLogger.logw("onActivityResult: Unknown request code: " + requestCode); in onActivityResult()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DSettingsFragment.java347 public void startActivityForResult(Intent intent, int requestCode, in startActivityForResult() argument
349 validateRequestCodeForPreferenceController(requestCode); in startActivityForResult()
351 super.startActivityForResult(intent, ((requestIndex + 1) << 8) + (requestCode & 0xff)); in startActivityForResult()
355 public void startIntentSenderForResult(IntentSender intent, int requestCode, in startIntentSenderForResult() argument
359 validateRequestCodeForPreferenceController(requestCode); in startIntentSenderForResult()
361 super.startIntentSenderForResult(intent, ((requestIndex + 1) << 8) + (requestCode & 0xff), in startIntentSenderForResult()
366 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
367 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
368 int requestIndex = (requestCode >> 8) & 0xff; in onActivityResult()
374 callback.processActivityResult(requestCode & 0xff, resultCode, data); in onActivityResult()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DActivityResultInfo.java27 public final int requestCode; field in ActivityResultInfo
31 public ActivityResultInfo(int requestCode, int resultCode, Intent data) { in ActivityResultInfo() argument
32 this.requestCode = requestCode; in ActivityResultInfo()
38 requestCode = parcel.readInt(); in ActivityResultInfo()
50 dest.writeInt(requestCode); in writeToParcel()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DGetResultActivity.java31 public final int requestCode; field in GetResultActivity.Result
35 public Result(int requestCode, int resultCode, Intent data) { in Result() argument
36 this.requestCode = requestCode; in Result()
52 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetAddFlowHandler.java56 public void startBindFlow(Launcher launcher, int appWidgetId, ItemInfo info, int requestCode) { in startBindFlow() argument
59 .startBindFlow(launcher, appWidgetId, mProviderInfo, requestCode); in startBindFlow()
66 int requestCode) { in startConfigActivity() argument
67 return startConfigActivity(launcher, info.appWidgetId, info, requestCode); in startConfigActivity()
75 int requestCode) { in startConfigActivity() argument
80 launcher.getAppWidgetHost().startConfigActivity(launcher, appWidgetId, requestCode); in startConfigActivity()
DLauncherAppWidgetHost.java288 int appWidgetId, AppWidgetProviderInfo info, int requestCode) { in startBindFlow() argument
291 sendActionCancelled(activity, requestCode); in startBindFlow()
301 activity.startActivityForResult(intent, requestCode); in startBindFlow()
310 public void startConfigActivity(BaseDraggingActivity activity, int widgetId, int requestCode) { in startConfigActivity() argument
312 sendActionCancelled(activity, requestCode); in startConfigActivity()
318 startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, in startConfigActivity()
322 sendActionCancelled(activity, requestCode); in startConfigActivity()
341 private void sendActionCancelled(final BaseActivity activity, final int requestCode) { in sendActionCancelled() argument
342 new Handler().post(() -> activity.onActivityResult(requestCode, RESULT_CANCELED, null)); in sendActionCancelled()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DTransitionHelper.java118 Activity activity, Intent intent, int requestCode) { in startActivityForResultWithTransition() argument
122 activity.startActivityForResult(intent, requestCode); in startActivityForResultWithTransition()
131 activity, intent, requestCode, previousBundle)); in startActivityForResultWithTransition()
134 .startActivityForResultWithTransition(activity, intent, requestCode)); in startActivityForResultWithTransition()
160 Activity activity, Intent intent, int requestCode, UserHandle userHandle) { in startActivityForResultAsUserWithTransition() argument
165 activity.startActivityForResultAsUser(intent, requestCode, userHandle); in startActivityForResultAsUserWithTransition()
170 activity.startActivityForResultAsUser(intent, requestCode, options, userHandle)); in startActivityForResultAsUserWithTransition()
/packages/apps/Provision/src/com/android/provision/
DDefaultActivity.java147 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
148 Log.d(TAG, "onActivityResult(): request=" + requestCode + ", result=" in onActivityResult()
151 switch (requestCode) { in onActivityResult()
157 onProvisioningStep2Result(requestCode, resultCode); in onActivityResult()
160 showErrorMessage("onActivityResult(): invalid request code " + requestCode); in onActivityResult()
185 private void onProvisioningStep2Result(int requestCode, int resultCode) { in onProvisioningStep2Result() argument
190 boolean doMode = requestCode == REQUEST_CODE_STEP2_DO; in onProvisioningStep2Result()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DBaseQuickstepLauncher.java204 public void startIntentSenderForResult(IntentSender intent, int requestCode, in startIntentSenderForResult() argument
206 if (requestCode != -1) { in startIntentSenderForResult()
207 mPendingActivityRequestCode = requestCode; in startIntentSenderForResult()
208 StartActivityParams params = new StartActivityParams(this, requestCode); in startIntentSenderForResult()
217 super.startIntentSenderForResult(intent, requestCode, fillInIntent, flagsMask, in startIntentSenderForResult()
223 public void startActivityForResult(Intent intent, int requestCode, Bundle options) { in startActivityForResult() argument
224 if (requestCode != -1) { in startActivityForResult()
225 mPendingActivityRequestCode = requestCode; in startActivityForResult()
226 StartActivityParams params = new StartActivityParams(this, requestCode); in startActivityForResult()
231 super.startActivityForResult(intent, requestCode, options); in startActivityForResult()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DGetProvisioningModeUtilsTest.java93 int requestCode = 1; in startGetProvisioningModeActivityIfResolved_resolvableActivity_returnsTrue() local
98 parentActivity, PARAMS, new Bundle(), requestCode, mTransitionHelper)).isTrue(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_returnsTrue()
107 int requestCode = 1; in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent() local
111 parentActivity, PARAMS, new Bundle(), requestCode, mTransitionHelper); in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()
127 int requestCode = 1; in startGetProvisioningModeActivityIfResolved_resolvableActivity_includesAdditionalExtras() local
134 parentActivity, PARAMS, additionalExtras, requestCode, mTransitionHelper); in startGetProvisioningModeActivityIfResolved_resolvableActivity_includesAdditionalExtras()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DSubSettingLauncherTest.java116 final int requestCode = 123123; in launch_hasRequestListener_shouldStartActivityForResult() local
126 .setResultListener(mFragment, requestCode) in launch_hasRequestListener_shouldStartActivityForResult()
130 .launchForResult(eq(mFragment), any(Intent.class), eq(requestCode)); in launch_hasRequestListener_shouldStartActivityForResult()
152 final int requestCode = 123123; in launch_hasUserHandleAndRequestCode_shouldStartActivityForResultAsUser() local
164 .setResultListener(mFragment, requestCode) in launch_hasUserHandleAndRequestCode_shouldStartActivityForResultAsUser()
168 eq(requestCode)); in launch_hasUserHandleAndRequestCode_shouldStartActivityForResultAsUser()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DTestPreProvisioningActivity.java42 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
43 Log.i(TAG, "onActivityResult " + requestCode); in onActivityResult()
45 if (requestCode == PROVISIONING_REQUEST_CODE) { in onActivityResult()
48 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSlice.java199 final int requestCode = wifiSliceItem.getKey().hashCode(); in getWifiEntryAction() local
211 return getActivityAction(requestCode, intent, icon, title); in getWifiEntryAction()
217 return getActivityAction(requestCode, intent, icon, title); in getWifiEntryAction()
223 return getBroadcastAction(requestCode, intent, icon, title); in getWifiEntryAction()
226 private SliceAction getActivityAction(int requestCode, Intent intent, IconCompat icon, in getActivityAction() argument
228 final PendingIntent pi = PendingIntent.getActivity(mContext, requestCode, intent, in getActivityAction()
233 private SliceAction getBroadcastAction(int requestCode, Intent intent, IconCompat icon, in getBroadcastAction() argument
236 final PendingIntent pi = PendingIntent.getBroadcast(mContext, requestCode, intent, in getBroadcastAction()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java104 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
112 if (requestCode == REQUEST_WIDGET_TYPE) { in onActivityResult()
114 } else if (requestCode == REQUEST_CHOOSE_ALBUM) { in onActivityResult()
116 } else if (requestCode == REQUEST_GET_PHOTO) { in onActivityResult()
118 } else if (requestCode == REQUEST_CROP_IMAGE) { in onActivityResult()
121 throw new AssertionError("unknown request: " + requestCode); in onActivityResult()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryComposerFragment.java209 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
210 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
211 if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && data != null) { in onActivityResult()
213 } else if (requestCode == RESULT_OPEN_SETTINGS in onActivityResult()
253 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
257 if (requestCode == STORAGE_PERMISSION in onRequestPermissionsResult()
264 } else if (requestCode == STORAGE_PERMISSION) { in onRequestPermissionsResult()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java70 protected static void scheduleAction(final Action action, final int requestCode, in scheduleAction() argument
77 PendingActionReceiver.scheduleAlarm(intent, requestCode, delayMs); in scheduleAction()
164 public static void scheduleAlarm(final Intent intent, final int requestCode, in scheduleAlarm() argument
168 context, requestCode, intent, PendingIntent.FLAG_CANCEL_CURRENT); in scheduleAlarm()
195 final Action action, final int requestCode, final boolean launchesAnActivity) { in makeStartActionPendingIntent() argument
203 return PendingIntent.getBroadcast(context, requestCode, intent, in makeStartActionPendingIntent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/
DPermissionsActivity.java52 @NonNull Context context, int requestCode, @NonNull String... permissionStrings) { in run() argument
55 intent.putExtra(EXTRA_PERMISSION_REQUEST_CODE, requestCode); in run()
91 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
94 requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyNamePreference.java135 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
139 mEditUserPhotoController.onActivityResult(requestCode, resultCode, data); in onActivityResult()
268 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
269 getEmergencyNamePreference().onActivityResult(requestCode, resultCode, data); in onActivityResult()
273 public void startActivityForResult(Intent intent, int requestCode) { in startActivityForResult() argument
275 super.startActivityForResult(intent, requestCode); in startActivityForResult()
/packages/apps/Settings/src/com/android/settings/wifi/
DConfigureWifiSettings.java88 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
89 if (requestCode == WIFI_WAKEUP_REQUEST_CODE) { in onActivityResult()
90 mWifiWakeupPreferenceController.onActivityResult(requestCode, resultCode); in onActivityResult()
93 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()

12345678910>>...13