/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 | 303 public void startActivityForResult(Intent intent, int requestCode, in startActivityForResult() argument 305 validateRequestCodeForPreferenceController(requestCode); in startActivityForResult() 307 super.startActivityForResult(intent, ((requestIndex + 1) << 8) + (requestCode & 0xff)); in startActivityForResult() 311 public void startIntentSenderForResult(IntentSender intent, int requestCode, in startIntentSenderForResult() argument 315 validateRequestCodeForPreferenceController(requestCode); in startIntentSenderForResult() 317 super.startIntentSenderForResult(intent, ((requestIndex + 1) << 8) + (requestCode & 0xff), in startIntentSenderForResult() 322 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 323 super.onActivityResult(requestCode, resultCode, data); in onActivityResult() 324 int requestIndex = (requestCode >> 8) & 0xff; in onActivityResult() 330 callback.processActivityResult(requestCode & 0xff, resultCode, data); in onActivityResult() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
D | FinalizationInsideSuwControllerLogic.java | 98 ProvisioningParams params, int requestCode) { in notifyDpcManagedProfile() argument 100 requestCode); in notifyDpcManagedProfile() 105 ProvisioningParams params, int requestCode) { in notifyDpcManagedDeviceOrUser() argument 107 requestCode); in notifyDpcManagedDeviceOrUser() 167 ProvisioningParams params, String dpcIntentCategory, int requestCode) { in startPolicyComplianceActivityForResultIfResolved() argument 181 getDpcIntentSender(params, dpcIntentCategory, requestCode)); in startPolicyComplianceActivityForResultIfResolved() 184 mLastRequestCode = requestCode; in startPolicyComplianceActivityForResultIfResolved() 190 int requestCode) { in getDpcIntentSender() argument 193 mActivity, params, dpcIntentCategory, requestCode, mUtils, in getDpcIntentSender()
|
D | FinalizationInsideSuwActivity.java | 50 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 51 switch (requestCode) { in onActivityResult() 61 + "requestCode = " + requestCode + ", resultCode = " + resultCode); in onActivityResult() 79 ProvisionLogger.logw("onActivityResult: Unknown request code: " + requestCode); in onActivityResult()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | BaseQuickstepLauncher.java | 133 public void startIntentSenderForResult(IntentSender intent, int requestCode, in startIntentSenderForResult() argument 135 if (requestCode != -1) { in startIntentSenderForResult() 136 mPendingActivityRequestCode = requestCode; in startIntentSenderForResult() 137 StartActivityParams params = new StartActivityParams(this, requestCode); in startIntentSenderForResult() 146 super.startIntentSenderForResult(intent, requestCode, fillInIntent, flagsMask, in startIntentSenderForResult() 152 public void startActivityForResult(Intent intent, int requestCode, Bundle options) { in startActivityForResult() argument 153 if (requestCode != -1) { in startActivityForResult() 154 mPendingActivityRequestCode = requestCode; in startActivityForResult() 155 StartActivityParams params = new StartActivityParams(this, requestCode); in startActivityForResult() 160 super.startActivityForResult(intent, requestCode, options); in startActivityForResult()
|
/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/ |
D | LauncherAppWidgetHost.java | 279 int appWidgetId, AppWidgetProviderInfo info, int requestCode) { in startBindFlow() argument 282 sendActionCancelled(activity, requestCode); in startBindFlow() 292 activity.startActivityForResult(intent, requestCode); in startBindFlow() 296 public void startConfigActivity(BaseActivity activity, int widgetId, int requestCode) { in startConfigActivity() argument 298 sendActionCancelled(activity, requestCode); in startConfigActivity() 304 startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null); in startConfigActivity() 307 sendActionCancelled(activity, requestCode); in startConfigActivity() 311 private void sendActionCancelled(final BaseActivity activity, final int requestCode) { in sendActionCancelled() argument 312 new Handler().post(() -> activity.onActivityResult(requestCode, RESULT_CANCELED, null)); in sendActionCancelled()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | GetResultActivity.java | 31 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/ |
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 | 91 public void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 92 if (requestCode == WIFI_WAKEUP_REQUEST_CODE) { in onActivityResult() 93 mWifiWakeupPreferenceController.onActivityResult(requestCode, resultCode); in onActivityResult() 96 if (requestCode == UseOpenWifiPreferenceController.REQUEST_CODE_OPEN_WIFI_AUTOMATICALLY) { in onActivityResult() 97 mUseOpenWifiPreferenceController.onActivityResult(requestCode, resultCode); in onActivityResult() 100 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/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/apps/Settings/src/com/android/settings/wifi/slice/ |
D | WifiSlice.java | 237 final int requestCode = accessPoint.hashCode(); in getAccessPointAction() local 241 return getBroadcastAction(requestCode, intent, icon, title); in getAccessPointAction() 254 return getActivityAction(requestCode, intent, icon, title); in getAccessPointAction() 258 return getBroadcastAction(requestCode, intent, icon, title); in getAccessPointAction() 262 return getActivityAction(requestCode, intent, icon, title); in getAccessPointAction() 266 private SliceAction getActivityAction(int requestCode, Intent intent, IconCompat icon, in getActivityAction() argument 268 final PendingIntent pi = PendingIntent.getActivity(mContext, requestCode, intent, in getActivityAction() 273 private SliceAction getBroadcastAction(int requestCode, Intent intent, IconCompat icon, in getBroadcastAction() argument 276 final PendingIntent pi = PendingIntent.getBroadcast(mContext, requestCode, intent, in getBroadcastAction()
|
/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/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/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/Settings/src/com/android/settings/biometrics/ |
D | BiometricEnrollIntroduction.java | 249 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 250 if (requestCode == BIOMETRIC_FIND_SENSOR_REQUEST) { in onActivityResult() 257 } else if (requestCode == CHOOSE_LOCK_GENERIC_REQUEST) { in onActivityResult() 269 } else if (requestCode == CONFIRM_REQUEST) { in onActivityResult() 278 } else if (requestCode == LEARN_MORE_REQUEST) { in onActivityResult() 281 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/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/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionServiceImpl.java | 71 protected static void scheduleAction(final Action action, final int requestCode, in scheduleAction() argument 78 PendingActionReceiver.scheduleAlarm(intent, requestCode, delayMs); in scheduleAction() 166 public static void scheduleAlarm(final Intent intent, final int requestCode, in scheduleAlarm() argument 170 context, requestCode, intent, PendingIntent.FLAG_CANCEL_CURRENT); in scheduleAlarm() 197 final Action action, final int requestCode, final boolean launchesAnActivity) { in makeStartActionPendingIntent() argument 205 return PendingIntent.getBroadcast(context, requestCode, intent, in makeStartActionPendingIntent()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/ |
D | PermissionsActivity.java | 52 @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/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()
|