Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/
DPendingIntent.java309 public static PendingIntent getActivity(Context context, int requestCode, in getActivity() argument
311 return getActivity(context, requestCode, intent, flags, null); in getActivity()
342 public static PendingIntent getActivity(Context context, int requestCode, in getActivity() argument
353 null, null, requestCode, new Intent[] { intent }, in getActivity()
368 public static PendingIntent getActivityAsUser(Context context, int requestCode, in getActivityAsUser() argument
379 null, null, requestCode, new Intent[] { intent }, in getActivityAsUser()
433 public static PendingIntent getActivities(Context context, int requestCode, in getActivities() argument
435 return getActivities(context, requestCode, intents, flags, null); in getActivities()
483 public static PendingIntent getActivities(Context context, int requestCode, in getActivities() argument
496 null, null, requestCode, intents, resolvedTypes, flags, options, in getActivities()
[all …]
DTaskStackBuilder.java248 public PendingIntent getPendingIntent(int requestCode, @PendingIntent.Flags int flags) { in getPendingIntent() argument
249 return getPendingIntent(requestCode, flags, null); in getPendingIntent()
267 public PendingIntent getPendingIntent(int requestCode, @PendingIntent.Flags int flags, in getPendingIntent() argument
274 return PendingIntent.getActivities(mSourceContext, requestCode, getIntents(), in getPendingIntent()
281 public PendingIntent getPendingIntent(int requestCode, int flags, Bundle options, in getPendingIntent() argument
288 return PendingIntent.getActivitiesAsUser(mSourceContext, requestCode, getIntents(), flags, in getPendingIntent()
DActivity.java5094 public final void requestPermissions(@NonNull String[] permissions, int requestCode) {
5095 if (requestCode < 0) {
5101 onRequestPermissionsResult(requestCode, new String[0], new int[0]);
5105 startActivityForResult(REQUEST_PERMISSIONS_WHO_PREFIX, intent, requestCode, null);
5126 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
5167 public void startActivityForResult(@RequiresPermission Intent intent, int requestCode) {
5168 startActivityForResult(intent, requestCode, null);
5205 public void startActivityForResult(@RequiresPermission Intent intent, int requestCode,
5212 intent, requestCode, options);
5215 mToken, mEmbeddedID, requestCode, ar.getResultCode(),
[all …]
DFragmentHostCallback.java146 public void onStartActivityFromFragment(Fragment fragment, Intent intent, int requestCode, in onStartActivityFromFragment() argument
148 if (requestCode != -1) { in onStartActivityFromFragment()
160 public void onStartActivityAsUserFromFragment(Fragment fragment, Intent intent, int requestCode, in onStartActivityAsUserFromFragment() argument
162 if (requestCode != -1) { in onStartActivityAsUserFromFragment()
174 int requestCode, @Nullable Intent fillInIntent, int flagsMask, int flagsValues, in onStartIntentSenderFromFragment() argument
176 if (requestCode != -1) { in onStartIntentSenderFromFragment()
189 @NonNull String[] permissions, int requestCode) { in onRequestPermissionsFromFragment() argument
DActivityGroup.java113 void dispatchActivityResult(String who, int requestCode, int resultCode, in dispatchActivityResult() argument
124 act.onActivityResult(requestCode, resultCode, data); in dispatchActivityResult()
128 super.dispatchActivityResult(who, requestCode, resultCode, data, reason); in dispatchActivityResult()
DIActivityTaskManager.aidl87 in String resolvedType, in IBinder resultTo, in String resultWho, int requestCode, in startActivity() argument
94 int requestCode, int flags, in ProfilerInfo profilerInfo, in startActivityAsUser() argument
100 in String resolvedType, in IBinder resultTo, in String resultWho, int requestCode, in startActivityIntentSender() argument
104 int requestCode, int flags, in ProfilerInfo profilerInfo, in Bundle options, in startActivityAndWait() argument
108 int requestCode, int startFlags, in Configuration newConfig, in startActivityWithConfig() argument
121 int requestCode, int flags, in ProfilerInfo profilerInfo, in Bundle options, in startActivityAsCaller() argument
156 void finishSubActivity(in IBinder token, in String resultWho, int requestCode); in finishSubActivity() argument
DFragment.java715 public void setTargetFragment(Fragment fragment, int requestCode) { in setTargetFragment() argument
735 mTargetRequestCode = requestCode; in setTargetFragment()
1109 public void startActivityForResult(Intent intent, int requestCode) {
1110 startActivityForResult(intent, requestCode, null);
1117 public void startActivityForResult(Intent intent, int requestCode, Bundle options) {
1121 mHost.onStartActivityFromFragment(this, intent, requestCode, options);
1130 Intent intent, int requestCode, Bundle options, UserHandle user) {
1134 mHost.onStartActivityAsUserFromFragment(this, intent, requestCode, options, user);
1141 public void startIntentSenderForResult(IntentSender intent, int requestCode,
1147 mHost.onStartIntentSenderFromFragment(this, intent, requestCode, fillInIntent, flagsMask,
[all …]
DResultInfo.java40 public ResultInfo(String resultWho, int requestCode, int resultCode, in ResultInfo() argument
43 mRequestCode = requestCode; in ResultInfo()
DInstrumentation.java1680 Intent intent, int requestCode, Bundle options) { in execStartActivity() argument
1701 return requestCode >= 0 ? am.getResult() : null; in execStartActivity()
1715 requestCode, 0, null, options); in execStartActivity()
1825 Intent intent, int requestCode, Bundle options) { in execStartActivity() argument
1842 return requestCode >= 0 ? am.getResult() : null; in execStartActivity()
1855 token, target, requestCode, 0, null, options); in execStartActivity()
1893 Intent intent, int requestCode, Bundle options, UserHandle user) { in execStartActivity() argument
1910 return requestCode >= 0 ? am.getResult() : null; in execStartActivity()
1924 requestCode, 0, null, options, user.getIdentifier()); in execStartActivity()
1939 Intent intent, int requestCode, Bundle options, IBinder permissionToken, in execStartActivityAsCaller() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordDialog.java87 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
88 mShowTaps = (requestCode == REQUEST_CODE_VIDEO_TAPS in onActivityResult()
89 || requestCode == REQUEST_CODE_VIDEO_AUDIO_TAPS); in onActivityResult()
90 switch (requestCode) { in onActivityResult()
96 mUseAudio = (requestCode == REQUEST_CODE_VIDEO_AUDIO in onActivityResult()
97 || requestCode == REQUEST_CODE_VIDEO_AUDIO_TAPS); in onActivityResult()
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DAppWidgetHostActivity.java83 void discoverAppWidget(int requestCode) { in discoverAppWidget() argument
86 startActivityForResult(intent, requestCode); in discoverAppWidget()
89 void configureAppWidget(int requestCode, int appWidgetId, ComponentName configure) { in configureAppWidget() argument
96 startActivityForResult(intent, requestCode); in configureAppWidget()
147 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
148 switch (requestCode) { in onActivityResult()
/frameworks/base/core/java/android/view/textclassifier/intent/
DLabeledIntent.java63 public final int requestCode; field in LabeledIntent
82 int requestCode) { in LabeledIntent() argument
92 this.requestCode = requestCode; in LabeledIntent()
143 TextClassification.createPendingIntent(context, resolvedIntent, requestCode); in resolve()
/frameworks/base/test-runner/src/android/test/
DActivityUnitTestCase.java319 public void startActivityFromChild(Activity child, Intent intent, int requestCode) { in startActivityFromChild() argument
321 mStartedActivityRequest = requestCode; in startActivityFromChild()
343 public void finishActivityFromChild(Activity child, int requestCode) { in finishActivityFromChild() argument
345 mFinishedActivityRequest = requestCode; in finishActivityFromChild()
/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/
DPhotoViewActivity.java112 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
113 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
114 mController.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/
DPhotoViewActivity.java112 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
113 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
114 mController.onActivityResult(requestCode, resultCode, data); in onActivityResult()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityResult.java29 int requestCode, int resultCode, Intent data) { in ActivityResult() argument
30 super(resultWho, requestCode, resultCode, data); in ActivityResult()
DActivityStarter.java318 int requestCode; field in ActivityStarter.Request
374 requestCode = 0; in reset()
413 requestCode = request.requestCode; in set()
520 mRequest.resultWho, mRequest.requestCode, mRequest.startFlags, in execute()
530 mRequest.resultWho, mRequest.requestCode, mRequest.callingPid, in execute()
571 IBinder resultTo, String resultWho, int requestCode, int callingPid, int callingUid, in startActivity() argument
586 aInfo, rInfo, voiceSession, voiceInteractor, resultTo, resultWho, requestCode, in startActivity()
616 IBinder resultTo, String resultWho, int requestCode, int callingPid, int callingUid, in startActivity() argument
657 if (requestCode >= 0 && !sourceRecord.finishing) { in startActivity()
668 if (requestCode >= 0) { in startActivity()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppTrampolineActivity.java106 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
107 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
108 if (requestCode == INSTALL_CARRIER_APP_DIALOG_REQUEST) { in onActivityResult()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityScreen.java108 protected void onActivityResult(int requestCode, int resultCode, in onActivityResult() argument
117 if (requestCode == 1) { in onActivityResult()
145 "Incorrect request code returned: " + requestCode)); in onActivityResult()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DFrameworkFacade.java137 public PendingIntent getBroadcast(Context context, int requestCode, Intent intent, int flags) { in getBroadcast() argument
138 return PendingIntent.getBroadcast(context, requestCode, intent, flags); in getBroadcast()
144 public PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags) { in getActivity() argument
145 return PendingIntent.getActivity(context, requestCode, intent, flags); in getActivity()
DConnectToNetworkNotificationBuilder.java179 int requestCode = 0; // Makes the different kinds of notifications distinguishable in getPrivateBroadcast() local
182 requestCode = getNotifierRequestCode(extraData); in getPrivateBroadcast()
184 return mFrameworkFacade.getBroadcast(mContext, requestCode, intent, in getPrivateBroadcast()
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentRecord.java77 final int requestCode; field in PendingIntentRecord.Key
95 requestCode = _r; in Key()
149 if (requestCode != other.requestCode) { in equals()
282 String resultWho, int requestCode, int flagsMask, int flagsValues, Bundle options) { in sendInner() argument
414 resolvedType, resultTo, resultWho, requestCode, 0, in sendInner()
426 key.requestCode, code, finalIntent); in sendInner()
505 if (key.requestCode != 0 || key.requestResolvedType != null) { in dump()
506 pw.print(prefix); pw.print("requestCode="); pw.print(key.requestCode); in dump()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DVerificationActivity.java75 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
76 if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) { in onActivityResult()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java125 public void onRequestPermissionsResult(int requestCode, in onRequestPermissionsResult() argument
127 switch (requestCode) { in onRequestPermissionsResult()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivity.java160 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
161 if (requestCode == REQUEST_CODE_CONFIRM_CREDENTIALS && resultCode != RESULT_OK) { in onActivityResult()

123