Home
last modified time | relevance | path

Searched refs:sendIntent (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverActivityTest.java103 Intent sendIntent = createSendImageIntent(); in twoOptionsAndUserSelectsOne() local
112 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in twoOptionsAndUserSelectsOne()
136 Intent sendIntent = createSendImageIntent(); in setMaxHeight() local
146 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in setMaxHeight()
182 Intent sendIntent = createSendImageIntent(); in setShowAtTopToTrue() local
192 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in setShowAtTopToTrue()
215 Intent sendIntent = createSendImageIntent(); in hasLastChosenActivity() local
227 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in hasLastChosenActivity()
258 Intent sendIntent = createSendImageIntent(); in hasOtherProfileOneOption() local
259 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in hasOtherProfileOneOption()
[all …]
DChooserActivityTest.java286 Intent sendIntent = createSendTextIntent(); in customTitleIgnoredForSendIntents() local
299 mActivityRule.launchActivity(Intent.createChooser(sendIntent, "chooser test")); in customTitleIgnoredForSendIntents()
307 Intent sendIntent = createSendTextIntent(); in emptyTitle() local
320 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in emptyTitle()
328 Intent sendIntent = createSendTextIntentWithPreview(null, null); in emptyPreviewTitleAndThumbnail() local
341 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in emptyPreviewTitleAndThumbnail()
352 Intent sendIntent = createSendTextIntentWithPreview(previewTitle, null); in visiblePreviewTitleWithoutThumbnail() local
365 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in visiblePreviewTitleWithoutThumbnail()
378 Intent sendIntent = createSendTextIntentWithPreview(previewTitle, in visiblePreviewTitleWithInvalidThumbnail() local
392 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in visiblePreviewTitleWithInvalidThumbnail()
[all …]
DResolverListControllerTest.java103 Intent sendIntent = createSendImageIntent(annotation); in reportChooserSelection() local
125 mController = new ResolverListController(mMockContext, mMockPackageManager, sendIntent, in reportChooserSelection()
138 Intent sendIntent = createSendImageIntent(annotation); in topKEqualsToSort() local
141 mController = new ResolverListController(mMockContext, mMockPackageManager, sendIntent, in topKEqualsToSort()
300 Intent sendIntent = new Intent(); in createSendImageIntent() local
301 sendIntent.setAction(Intent.ACTION_SEND); in createSendImageIntent()
302 sendIntent.putExtra(Intent.EXTRA_TEXT, "testing intent sending"); in createSendImageIntent()
303 sendIntent.setType("image/jpeg"); in createSendImageIntent()
306 sendIntent.putStringArrayListExtra(Intent.EXTRA_CONTENT_ANNOTATIONS, annotations); in createSendImageIntent()
307 return sendIntent; in createSendImageIntent()
[all …]
DResolverActivityWorkProfileTest.java337 Intent sendIntent = new Intent(); in createSendImageIntent() local
338 sendIntent.setAction(Intent.ACTION_SEND); in createSendImageIntent()
339 sendIntent.putExtra(Intent.EXTRA_TEXT, "testing intent sending"); in createSendImageIntent()
340 sendIntent.setType("image/jpeg"); in createSendImageIntent()
341 return sendIntent; in createSendImageIntent()
345 Intent sendIntent = createSendImageIntent(); in launchActivity() local
346 sendIntent.setType("TestType"); in launchActivity()
349 sendIntent.putExtra(ResolverActivity.EXTRA_CALLING_USER, callingUser); in launchActivity()
352 mActivityRule.launchActivity(sendIntent); in launchActivity()
DChooserActivityWorkProfileTest.java359 Intent sendIntent = new Intent(); in createTextIntent() local
361 sendIntent.setAction(Intent.ACTION_SEND); in createTextIntent()
363 sendIntent.putExtra(Intent.EXTRA_TEXT, "testing intent sending"); in createTextIntent()
364 sendIntent.setType("text/plain"); in createTextIntent()
365 return sendIntent; in createTextIntent()
369 Intent sendIntent = createTextIntent(isSendAction); in launchActivity() local
370 mActivityRule.launchActivity(Intent.createChooser(sendIntent, "Test")); in launchActivity()
DIntentForwarderActivityTest.java249 Intent sendIntent = new Intent(Intent.ACTION_SEND); in launchInSameProfile_chooserIntent() local
250 sendIntent.setComponent(new ComponentName("xx", "yyy")); in launchInSameProfile_chooserIntent()
251 sendIntent.setType(TYPE_PLAIN_TEXT); in launchInSameProfile_chooserIntent()
252 intent.putExtra(Intent.EXTRA_INTENT, sendIntent); in launchInSameProfile_chooserIntent()
/frameworks/base/packages/Shell/src/com/android/shell/
DHeapDumpActivity.java66 final Intent sendIntent = new Intent(); in onCreate() local
68 sendIntent.setClipData(clip); in onCreate()
69 sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in onCreate()
70 sendIntent.setType(clip.getDescription().getMimeType(0)); in onCreate()
71 sendIntent.putExtra(Intent.EXTRA_STREAM, mDumpUri); in onCreate()
75 sendIntent.setAction(ActivityManager.ACTION_REPORT_HEAP_LIMIT); in onCreate()
76 sendIntent.setPackage(directLaunchPackage); in onCreate()
78 startActivity(sendIntent); in onCreate()
113 sendIntent.setAction(Intent.ACTION_SEND); in onCreate()
114 sendIntent.setPackage(null); in onCreate()
[all …]
DBugreportProgressService.java1176 private static Intent buildWarningIntent(Context context, @Nullable Intent sendIntent) { in buildWarningIntent() argument
1178 if (sendIntent != null) { in buildWarningIntent()
1179 intent.putExtra(Intent.EXTRA_INTENT, sendIntent); in buildWarningIntent()
1320 final Intent sendIntent = buildSendIntent(mContext, info); in shareBugreport() local
1321 if (sendIntent == null) { in shareBugreport()
1334 notifIntent = buildWarningIntent(mContext, sendIntent); in shareBugreport()
1338 notifIntent = sendIntent; in shareBugreport()
/frameworks/base/media/tests/mediatestutils/tests/src/java/com/android/media/mediatestutils/
DGetFutureForIntentTest.java55 sendIntent(true); in futureCompletes_afterBroadcastFiresPredicatePasses()
64 sendIntent(false); in futureDoesNotComplete_afterBroadcastFiresPredicateFails()
71 sendIntent(true); in futureDoesNotComplete_afterBroadcastFiresPredicateFails()
87 sendIntent(true); in futureCompletesExceptionally_afterBroadcastFiresPredicateThrows()
99 sendIntent(true); in doesNotThrow_whenDoubleSet()
100 sendIntent(true); in doesNotThrow_whenDoubleSet()
151 private void sendIntent(boolean correctValue) { in sendIntent() method in GetFutureForIntentTest
/frameworks/base/services/tests/VpnTests/java/com/android/server/
DVpnManagerServiceTest.java235 private void sendIntent(Intent intent) { in sendIntent() method in VpnManagerServiceTest
236 sendIntent(mIntentReceiver, mContext, intent); in sendIntent()
239 private void sendIntent(BroadcastReceiver receiver, Context context, Intent intent) { in sendIntent() method in VpnManagerServiceTest
248 sendIntent(buildIntent(Intent.ACTION_USER_STARTED, in onUserStarted()
253 sendIntent(buildIntent(Intent.ACTION_USER_UNLOCKED, in onUserUnlocked()
258 sendIntent(buildIntent(Intent.ACTION_USER_STOPPED, in onUserStopped()
263 sendIntent(buildIntent(LockdownVpnTracker.ACTION_LOCKDOWN_RESET, null /* packageName */, in onLockDownReset()
268 sendIntent(buildIntent(Intent.ACTION_PACKAGE_ADDED, packageName, userId, uid, isReplacing)); in onPackageAdded()
276 sendIntent(buildIntent(Intent.ACTION_PACKAGE_REMOVED, packageName, userId, uid, in onPackageRemoved()
319 sendIntent(mUserPresentReceiver, mSystemContext, new Intent()); in testUserPresent()
/frameworks/base/core/java/android/content/
DIntentSender.java166 public void sendIntent(Context context, int code, Intent intent, in sendIntent() method in IntentSender
168 sendIntent(context, code, intent, onFinished, handler, null, in sendIntent()
198 public void sendIntent(Context context, int code, Intent intent, in sendIntent() method in IntentSender
201 sendIntent(context, code, intent, onFinished, handler, requiredPermission, in sendIntent()
233 public void sendIntent(Context context, int code, Intent intent, in sendIntent() method in IntentSender
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/
DAppEnumerationInternalTests.java157 sender.sendIntent(context, 0 /* code */, null /* intent */, in getLaunchIntentSenderForPackage_intentSender_cannotDetectPackage()
164 () -> failedSender.sendIntent(context, 0 /* code */, null /* intent */, in getLaunchIntentSenderForPackage_intentSender_cannotDetectPackage()
/frameworks/base/core/java/com/android/internal/app/
DLaunchAfterAuthenticationActivity.java92 targetIntent.sendIntent( in onUnlocked()
DSuspendedAppActivity.java345 mOnUnsuspend.sendIntent(this, 0, null, null, null, null, in onClick()
/frameworks/base/services/tests/servicestests/src/com/android/server/recoverysystem/
DRecoverySystemServiceTest.java274 verify(intentSender).sendIntent(any(), anyInt(), any(), any(), any()); in requestLskf_success()
285 verify(intentSender).sendIntent(any(), anyInt(), any(), any(), any()); in requestLskf_subsequentRequestNotClearPrepared()
297 verify(intentSender, never()).sendIntent(any(), anyInt(), any(), any(), any()); in requestLskf_requestedButNotPrepared()
324 verify(intentSender).sendIntent(any(), anyInt(), any(), any(), any()); in isLskfCaptured_Prepared()
341 verify(intentSender).sendIntent(any(), anyInt(), any(), any(), any()); in clearLskf_requestedThenCleared()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java185 private void sendIntent(String contentPath, String version, String required, String sig) { in sendIntent() method in CertPinInstallReceiverTest
200 sendIntent(contentPath, version, required, sig); in runTest()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java243 return pendingIntent -> sendIntent(pendingIntent, true); in onLocationChanged()
249 return pendingIntent -> sendIntent(pendingIntent, false); in onLocationChanged()
256 private void sendIntent(PendingIntent pendingIntent, boolean entering) { in sendIntent() method in GeofenceManager.GeofenceRegistration
/frameworks/base/services/core/java/com/android/server/pm/
DPackageArchiver.java855 sendIntent(statusReceiver, packageName, /* message= */ "", broadcastIntent); in requestUnarchiveConfirmation()
1197 intentSender.sendIntent(mContext, 0, broadcastIntent, /* onFinished= */ null, in notifyUnarchivalListener()
1322 sendIntent(statusReceiver, packageName, message, intent); in sendFailureStatus()
1325 private void sendIntent(IntentSender statusReceiver, String packageName, String message, in sendIntent() method in PackageArchiver
1331 statusReceiver.sendIntent(mContext, 0, intent, /* onFinished= */ null, in sendIntent()
DPackageInstallerService.java1589 callback.sendIntent(mContext, 0, intent, null /* onFinished*/,
1920 mTarget.sendIntent(mContext, 0, fillIn, null /* onFinished*/,
1953 mTarget.sendIntent(mContext, 0, fillIn, null /* onFinished*/,
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java268 verify(mockReceiver).sendIntent(any(), anyInt(), intentCaptor.capture(), any(), any()); in updateRuleSet_correctMethodCall()
289 verify(mockReceiver).sendIntent(any(), anyInt(), intentCaptor.capture(), any(), any()); in updateRuleSet_fail()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageArchiverTest.java269 verify(mIntentSender).sendIntent(any(), anyInt(), intentCaptor.capture(), any(), any(), in archiveApp_packageNotInstalledForUser()
339 verify(mIntentSender).sendIntent(any(), anyInt(), intentCaptor.capture(), any(), any(), in archiveApp_storeIconFails()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DAutoFillUI.java388 listener.sendIntent(mContext, 0, null, null, null); in showSaveUi()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java669 statusReceiver.sendIntent(context, 0, fillIn, null, null); in commit()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java226 statusReceiver.sendIntent( in updateRuleSet()
/frameworks/base/services/core/java/com/android/server/recoverysystem/
DRecoverySystemService.java734 intentSender.sendIntent(null, 0, null, null, null); in sendPreparedForRebootIntentIfNeeded()

12