/packages/apps/Launcher3/quickstep/src/com/android/launcher3/proxy/ |
D | StartActivityParams.java | 35 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()
|
D | ProxyActivityStarter.java | 52 startActivityForResult(mParams.intent, mParams.requestCode, mParams.options); in onCreate() 56 startIntentSenderForResult(mParams.intentSender, mParams.requestCode, in onCreate() 69 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 70 if (requestCode == mParams.requestCode) { in onActivityResult()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | IntentUtils.java | 46 @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/Car/Settings/src/com/android/car/settings/common/ |
D | SettingsFragment.java | 296 public void startActivityForResult(Intent intent, int requestCode, in startActivityForResult() argument 298 validateRequestCodeForPreferenceController(requestCode); in startActivityForResult() 300 super.startActivityForResult(intent, ((requestIndex + 1) << 8) + (requestCode & 0xff)); in startActivityForResult() 304 public void startIntentSenderForResult(IntentSender intent, int requestCode, in startIntentSenderForResult() argument 308 validateRequestCodeForPreferenceController(requestCode); in startIntentSenderForResult() 310 super.startIntentSenderForResult(intent, ((requestIndex + 1) << 8) + (requestCode & 0xff), in startIntentSenderForResult() 315 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 316 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 317 int requestIndex = (requestCode >> 8) & 0xff; in onActivityResult() 323 callback.processActivityResult(requestCode & 0xff, resultCode, data); in onActivityResult() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherAppWidgetHost.java | 264 int appWidgetId, AppWidgetProviderInfo info, int requestCode) { in startBindFlow() argument 267 sendActionCancelled(activity, requestCode); in startBindFlow() 277 activity.startActivityForResult(intent, requestCode); in startBindFlow() 281 public void startConfigActivity(BaseActivity activity, int widgetId, int requestCode) { in startConfigActivity() argument 283 sendActionCancelled(activity, requestCode); in startConfigActivity() 288 startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null); in startConfigActivity() 291 sendActionCancelled(activity, requestCode); in startConfigActivity() 295 private void sendActionCancelled(final BaseActivity activity, final int requestCode) { in sendActionCancelled() argument 296 new Handler().post(() -> activity.onActivityResult(requestCode, RESULT_CANCELED, null)); in sendActionCancelled()
|
D | Launcher.java | 635 int requestCode, Intent intent, int appWidgetId, PendingRequestArgs info) { in completeAdd() argument 643 switch (requestCode) { in completeAdd() 675 final int requestCode, final int resultCode, final Intent data) { in handleActivityResult() argument 678 mPendingActivityResult = new ActivityResultInfo(requestCode, resultCode, data); in handleActivityResult() 699 if (requestCode == REQUEST_BIND_APPWIDGET) { in handleActivityResult() 716 boolean isWidgetDrop = (requestCode == REQUEST_PICK_APPWIDGET || in handleActivityResult() 717 requestCode == REQUEST_CREATE_APPWIDGET); in handleActivityResult() 769 if (requestCode == REQUEST_RECONFIGURE_APPWIDGET in handleActivityResult() 770 || requestCode == REQUEST_BIND_PENDING_APPWIDGET) { in handleActivityResult() 773 completeAdd(requestCode, data, pendingAddWidgetId, requestArgs); in handleActivityResult() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ActivityResultInfo.java | 27 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/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetAddFlowHandler.java | 54 public void startBindFlow(Launcher launcher, int appWidgetId, ItemInfo info, int requestCode) { in startBindFlow() argument 57 .startBindFlow(launcher, appWidgetId, mProviderInfo, requestCode); in startBindFlow() 64 int requestCode) { in startConfigActivity() argument 65 return startConfigActivity(launcher, info.appWidgetId, info, requestCode); in startConfigActivity() 73 int requestCode) { in startConfigActivity() argument 78 launcher.getAppWidgetHost().startConfigActivity(launcher, appWidgetId, requestCode); in startConfigActivity()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | ConfigureWifiSettings.java | 95 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 96 if (requestCode == WIFI_WAKEUP_REQUEST_CODE && mWifiWakeupPreferenceController != null) { in onActivityResult() 97 mWifiWakeupPreferenceController.onActivityResult(requestCode, resultCode); in onActivityResult() 100 if (requestCode == UseOpenWifiPreferenceController.REQUEST_CODE_OPEN_WIFI_AUTOMATICALLY in onActivityResult() 102 mUseOpenWifiPreferenceController.onActivityResult(requestCode, resultCode); in onActivityResult() 105 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | ConfigureWifiSettings.java | 95 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 96 if (requestCode == WIFI_WAKEUP_REQUEST_CODE && mWifiWakeupPreferenceController != null) { in onActivityResult() 97 mWifiWakeupPreferenceController.onActivityResult(requestCode, resultCode); in onActivityResult() 100 if (requestCode == UseOpenWifiPreferenceController.REQUEST_CODE_OPEN_WIFI_AUTOMATICALLY in onActivityResult() 102 mUseOpenWifiPreferenceController.onActivityResult(requestCode, resultCode); in onActivityResult() 105 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | WifiSlice.java | 239 final int requestCode = accessPoint.hashCode(); in getAccessPointAction() local 243 return getBroadcastAction(requestCode, intent, icon, title); in getAccessPointAction() 256 return getActivityAction(requestCode, intent, icon, title); in getAccessPointAction() 260 return getBroadcastAction(requestCode, intent, icon, title); in getAccessPointAction() 264 return getActivityAction(requestCode, intent, icon, title); in getAccessPointAction() 268 private SliceAction getActivityAction(int requestCode, Intent intent, IconCompat icon, in getActivityAction() argument 270 final PendingIntent pi = PendingIntent.getActivity(mContext, requestCode, intent, in getActivityAction() 275 private SliceAction getBroadcastAction(int requestCode, Intent intent, IconCompat icon, in getBroadcastAction() argument 278 final PendingIntent pi = PendingIntent.getBroadcast(mContext, requestCode, intent, in getBroadcastAction()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | SubSettingLauncherTest.java | 112 final int requestCode = 123123; in launch_hasRequestListener_shouldStartActivityForResult() local 120 .setResultListener(mFragment, requestCode) in launch_hasRequestListener_shouldStartActivityForResult() 123 verify(mFragment).startActivityForResult(any(Intent.class), eq(requestCode)); in launch_hasRequestListener_shouldStartActivityForResult() 145 final int requestCode = 123123; in launch_hasUserHandleAndRequestCode_shouldStartActivityForResultAsUser() local 157 .setResultListener(mFragment, requestCode) in launch_hasUserHandleAndRequestCode_shouldStartActivityForResultAsUser() 161 eq(requestCode)); in launch_hasUserHandleAndRequestCode_shouldStartActivityForResultAsUser()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/ |
D | BiometricEnrollIntroduction.java | 224 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 225 if (requestCode == BIOMETRIC_FIND_SENSOR_REQUEST) { in onActivityResult() 231 } else if (requestCode == CHOOSE_LOCK_GENERIC_REQUEST) { in onActivityResult() 242 } else if (requestCode == CONFIRM_REQUEST) { in onActivityResult() 250 } else if (requestCode == LEARN_MORE_REQUEST) { in onActivityResult() 253 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | BiometricEnrollIntroduction.java | 244 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 245 if (requestCode == BIOMETRIC_FIND_SENSOR_REQUEST) { in onActivityResult() 251 } else if (requestCode == CHOOSE_LOCK_GENERIC_REQUEST) { in onActivityResult() 263 } else if (requestCode == CONFIRM_REQUEST) { in onActivityResult() 272 } else if (requestCode == LEARN_MORE_REQUEST) { in onActivityResult() 275 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetConfigure.java | 104 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | TestPreProvisioningActivity.java | 42 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/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryComposerFragment.java | 209 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/Launcher3/src/com/android/launcher3/compat/ |
D | ShortcutConfigActivityInfo.java | 80 public boolean startConfigActivity(Activity activity, int requestCode) { in startConfigActivity() argument 84 activity.startActivityForResult(intent, requestCode); in startConfigActivity() 146 public boolean startConfigActivity(Activity activity, int requestCode) { in startConfigActivity() argument 148 return super.startConfigActivity(activity, requestCode); in startConfigActivity() 153 activity.startIntentSenderForResult(is, requestCode, null, 0, 0, 0); in startConfigActivity()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionServiceImpl.java | 70 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/apps/Settings/src/com/android/settings/users/ |
D | RestrictedProfileSettings.java | 93 public void startActivityForResult(Intent intent, int requestCode) { in startActivityForResult() argument 95 super.startActivityForResult(intent, requestCode); in startActivityForResult() 99 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 100 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 102 mEditUserInfoController.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | RestrictedProfileSettings.java | 93 public void startActivityForResult(Intent intent, int requestCode) { in startActivityForResult() argument 95 super.startActivityForResult(intent, requestCode); in startActivityForResult() 99 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 100 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 102 mEditUserInfoController.onActivityResult(requestCode, resultCode, data); in onActivityResult()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
D | EmergencyNamePreference.java | 135 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | MasterClear.java | 146 boolean isValidRequestCode(int requestCode) { in isValidRequestCode() argument 147 return !((requestCode != KEYGUARD_REQUEST) && (requestCode != CREDENTIAL_CONFIRM_REQUEST)); in isValidRequestCode() 151 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 152 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 153 onActivityResultInternal(requestCode, resultCode, data); in onActivityResult() 160 void onActivityResultInternal(int requestCode, int resultCode, Intent data) { in onActivityResultInternal() argument 161 if (!isValidRequestCode(requestCode)) { in onActivityResultInternal() 173 if (CREDENTIAL_CONFIRM_REQUEST != requestCode in onActivityResultInternal()
|
/packages/apps/Settings/src/com/android/settings/ |
D | MasterClear.java | 147 boolean isValidRequestCode(int requestCode) { in isValidRequestCode() argument 148 return !((requestCode != KEYGUARD_REQUEST) && (requestCode != CREDENTIAL_CONFIRM_REQUEST)); in isValidRequestCode() 152 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 153 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 154 onActivityResultInternal(requestCode, resultCode, data); in onActivityResult() 161 void onActivityResultInternal(int requestCode, int resultCode, Intent data) { in onActivityResultInternal() argument 162 if (!isValidRequestCode(requestCode)) { in onActivityResultInternal() 174 if (CREDENTIAL_CONFIRM_REQUEST != requestCode in onActivityResultInternal()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | ImplicitIntentsUtil.java | 112 int previousScreenType, int requestCode) { in startQuickContactForResult() argument 113 startQuickContact(activity, contactLookupUri, previousScreenType, requestCode); in startQuickContactForResult() 117 int previousScreenType, int requestCode) { in startQuickContact() argument 122 if (requestCode >= 0) { in startQuickContact() 124 activity.startActivityForResult(intent, requestCode); in startQuickContact()
|