Home
last modified time | relevance | path

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

12

/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
DAppUsageObserverTest.java37 PendingIntent pendingIntent = PendingIntent.getActivity( in testAppUsageObserver_MinTimeLimit() local
41 usm.registerAppUsageObserver(obsId, packages, 60, TimeUnit.SECONDS, pendingIntent); in testAppUsageObserver_MinTimeLimit()
44 usm.registerAppUsageObserver(obsId, packages, 59, TimeUnit.SECONDS, pendingIntent); in testAppUsageObserver_MinTimeLimit()
57 PendingIntent pendingIntent = PendingIntent.getActivity( in testUsageSessionObserver_MinTimeLimit() local
62 Duration.ofSeconds(10), pendingIntent, null); in testUsageSessionObserver_MinTimeLimit()
66 Duration.ofSeconds(10), pendingIntent, null); in testUsageSessionObserver_MinTimeLimit()
78 PendingIntent pendingIntent = PendingIntent.getActivity( in testObserverLimit() local
84 usm.registerAppUsageObserver(obsId, packages, 60, TimeUnit.MINUTES, pendingIntent); in testObserverLimit()
88 pendingIntent); in testObserverLimit()
97 Duration.ofSeconds(10), pendingIntent, null); in testObserverLimit()
[all …]
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyNotificationListenerService.java87 private void send(String reason, PendingIntent pendingIntent) { in send() argument
88 if (pendingIntent == null) { in send()
99 + "' (" + pendingIntent + ")"); in send()
101 Log.i(TAG, "Sending pending intent for " + reason + ":" + pendingIntent); in send()
103 pendingIntent.send(); in send()
104 mSentIntent = pendingIntent; in send()
107 Log.w(TAG, "Pending intent " + pendingIntent + " canceled"); in send()
/cts/tests/framework/base/windowmanager/backgroundactivity/AppA/src/android/server/wm/backgroundactivity/appa/
DSendPendingIntentReceiver.java42 final PendingIntent pendingIntent; in onReceive() local
49 pendingIntent = PendingIntent.getBroadcast(context, 0, in onReceive()
57 pendingIntent = PendingIntent.getActivity(context, 0, in onReceive()
64 intent.putExtra(PENDING_INTENT_EXTRA, pendingIntent); in onReceive()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyBroadcastReceiver.java203 final PendingIntent pendingIntent = PendingIntent.getService(context, 0, serviceIntent, in sendNotification() local
216 .setContentIntent(pendingIntent); in sendNotification()
219 builder.setDeleteIntent(pendingIntent); in sendNotification()
222 builder.setFullScreenIntent(pendingIntent, true); in sendNotification()
225 bundle.putParcelable("Magnum P.I. (Pending Intent)", pendingIntent); in sendNotification()
230 R.drawable.ic_notification, "ACTION", pendingIntent) in sendNotification()
235 bundle.putParcelable("Magnum A.P.I. (Action Pending Intent)", pendingIntent); in sendNotification()
248 R.drawable.ic_notification, "ACTION WITH REMOTE INPUT", pendingIntent) in sendNotification()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAuthenticationActivity.java83 final PendingIntent pendingIntent = sPendingIntents.get(i); in resetStaticState() local
84 Log.d(TAG, "Cancelling " + pendingIntent); in resetStaticState()
85 pendingIntent.cancel(); in resetStaticState()
128 final PendingIntent pendingIntent = PendingIntent.getActivity(context, id, intent, 0); in createSender() local
129 sPendingIntents.add(pendingIntent); in createSender()
130 return pendingIntent.getIntentSender(); in createSender()
DCustomDescriptionWithLinkTestCase.java283 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in newCustomDescriptionBuilder() local
284 presentation.setOnClickPendingIntent(R.id.link, pendingIntent); in newCustomDescriptionBuilder()
/cts/tests/app/app/src/android/app/stubs/
DBubblesTestService.java63 final PendingIntent pendingIntent = in getNotificationForTest() local
67 .setContentIntent(pendingIntent) in getNotificationForTest()
74 .setIntent(pendingIntent) in getNotificationForTest()
DBubblesTestActivity.java63 final PendingIntent pendingIntent = in sendBubble() local
68 .setIntent(pendingIntent) in sendBubble()
75 .setContentIntent(pendingIntent) in sendBubble()
/cts/tests/framework/base/windowmanager/backgroundactivity/AppB/src/android/server/wm/backgroundactivity/appb/
DStartPendingIntentReceiver.java33 PendingIntent pendingIntent = intent.getParcelableExtra(PENDING_INTENT_EXTRA); in onReceive() local
35 pendingIntent.send(); in onReceive()
/cts/tests/app/src/android/app/cts/
DWearableExtenderTest.java47 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(), 0); in testWearableExtender() local
78 .setDisplayIntent(pendingIntent) in testWearableExtender()
101 assertEquals(pendingIntent, extender.getDisplayIntent()); in testWearableExtender()
199 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(), 0); in testWriteToParcel() local
234 .setDisplayIntent(pendingIntent) in testWriteToParcel()
263 assertEquals(pendingIntent, extender.getDisplayIntent()); in testWriteToParcel()
DFragmentReceiveResultTest.java142 PendingIntent pendingIntent = PendingIntent.getActivity(mActivity, in startIntentSenderForResult()
146 mFragment.startIntentSenderForResult(pendingIntent.getIntentSender(), in startIntentSenderForResult()
DPendingIntentTest.java167 private void pendingIntentSendError(PendingIntent pendingIntent) { in pendingIntentSendError() argument
351 private void pendingIntentSendShouldFail(PendingIntent pendingIntent) { in pendingIntentSendShouldFail() argument
353 pendingIntent.send(); in pendingIntentSendShouldFail()
604 PendingIntent pendingIntent = PendingIntent.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
605 assertTrue(mPendingIntent.equals(pendingIntent)); in testWriteToParcel()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DAlarmOperation.java94 PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0); in execute() local
95 am.setExact(AlarmManager.RTC_WAKEUP, wakeupTimeMs, pendingIntent); in execute()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java125 PendingIntent pendingIntent = PendingIntent.getBroadcast( in getCommitCallback() local
130 return pendingIntent.getIntentSender(); in getCommitCallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubblesVerifierActivity.java461 final PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0); in getBasicBubbleBuilder() local
466 .setIntent(pendingIntent); in getBasicBubbleBuilder()
474 final PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0); in getBasicNotifBuilder() local
481 .setContentIntent(pendingIntent); in getBasicNotifBuilder()
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DCollectionAppWidgetProvider.java109 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, viewIntent, in onUpdate() local
112 widgetAdapterView.setPendingIntentTemplate(R.id.remoteViews_stack, pendingIntent); in onUpdate()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt146 val pendingIntent = PendingIntent.getBroadcast(context, 0, Intent(INSTALL_ACTION_CB), in <lambda>() constant
148 session.commit(pendingIntent.intentSender) in <lambda>()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityLauncher.java207 final PendingIntent pendingIntent = PendingIntent.getActivity(launchContext, 0, in launchActivityFromExtras() local
209 pendingIntent.send(); in launchActivityFromExtras()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java153 PendingIntent pendingIntent = PendingIntent.getBroadcast( in getCommitCallback() local
158 return pendingIntent.getIntentSender(); in getCommitCallback()
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt133 val pendingIntent = PendingIntent.getBroadcast(context, 0, Intent(ACTION), in <lambda>() constant
135 session.commit(pendingIntent.intentSender) in <lambda>()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSignificantMotionTestActivity.java207 PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0); in testAPWakeUpOnSMDTrigger() local
211 SystemClock.elapsedRealtime() + ALARM_WAKE_TIME_DELAY_MS, pendingIntent); in testAPWakeUpOnSMDTrigger()
228 am.cancel(pendingIntent); in testAPWakeUpOnSMDTrigger()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DBasePackageInstallTest.java195 PendingIntent pendingIntent = PendingIntent.getBroadcast( in getCommitCallback() local
200 return pendingIntent.getIntentSender(); in getCommitCallback()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java140 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in sendNotification() local
147 .setContentIntent(pendingIntent) in sendNotification()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java392 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in testOnActionInvoked_methodExists() local
394 pendingIntent).build(); in testOnActionInvoked_methodExists()
476 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in sendNotification() local
483 .setContentIntent(pendingIntent) in sendNotification()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DMmsTest.java214 final PendingIntent pendingIntent = PendingIntent.getBroadcast( in testSendMmsMessage() local
217 contentUri, null/*locationUrl*/, null/*configOverrides*/, pendingIntent); in testSendMmsMessage()

12