/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/fakes/ |
RoboIntentSender.java | 3 import android.app.PendingIntent; 15 private PendingIntent pendingIntent; 17 public RoboIntentSender(PendingIntent pendingIntent) { 19 this.pendingIntent = pendingIntent; 26 pendingIntent.send(context, code, intent); 27 } catch (PendingIntent.CanceledException e) {
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowNotificationTest.java | 7 import android.app.PendingIntent; 18 PendingIntent pendingIntent = PendingIntent.getActivity(application, 0, new Intent(), 0); 20 notification.setLatestEventInfo(application, "title", "content", pendingIntent); 21 assertThat(notification.contentIntent).isSameAs(pendingIntent);
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
PendingIntentPerfTest.java | 55 * Benchmark time to create a PendingIntent. 64 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, 68 pendingIntent.cancel(); 74 * Benchmark time to create a PendingIntent with FLAG_CANCEL_CURRENT, already having an active 75 * PendingIntent. 82 final PendingIntent previousPendingIntent = PendingIntent.getActivity(mContext, 0, 86 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent [all...] |
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ |
AppUsageObserverTest.java | 18 import android.app.PendingIntent; 35 PendingIntent pendingIntent = PendingIntent.getActivity( 39 usm.registerAppUsageObserver(obsId, packages, 60, TimeUnit.SECONDS, pendingIntent); 42 usm.registerAppUsageObserver(obsId, packages, 59, TimeUnit.SECONDS, pendingIntent); 54 PendingIntent pendingIntent = PendingIntent.getActivity( 59 usm.registerAppUsageObserver(obsId, packages, 60, TimeUnit.MINUTES, pendingIntent); [all...] |
/developers/build/prebuilts/gradle/RepeatingAlarm/Application/src/main/java/com/example/android/repeatingalarm/ |
RepeatingAlarmFragment.java | 20 import android.app.PendingIntent; 56 // it's necessary to wrap it in a PendingIntent. Providing a different process with 57 // a PendingIntent gives that other process permission to fire the intent that this 59 // Also, this code creates a PendingIntent to start an Activity. To create a 61 PendingIntent pendingIntent = PendingIntent.getActivity(getActivity(), REQUEST_CODE, 90 FIFTEEN_SEC_MILLIS, pendingIntent);
|
/developers/samples/android/background/alarms/RepeatingAlarm/Application/src/main/java/com/example/android/repeatingalarm/ |
RepeatingAlarmFragment.java | 20 import android.app.PendingIntent; 56 // it's necessary to wrap it in a PendingIntent. Providing a different process with 57 // a PendingIntent gives that other process permission to fire the intent that this 59 // Also, this code creates a PendingIntent to start an Activity. To create a 61 PendingIntent pendingIntent = PendingIntent.getActivity(getActivity(), REQUEST_CODE, 90 FIFTEEN_SEC_MILLIS, pendingIntent);
|
/development/samples/browseable/RepeatingAlarm/src/com.example.android.repeatingalarm/ |
RepeatingAlarmFragment.java | 20 import android.app.PendingIntent; 56 // it's necessary to wrap it in a PendingIntent. Providing a different process with 57 // a PendingIntent gives that other process permission to fire the intent that this 59 // Also, this code creates a PendingIntent to start an Activity. To create a 61 PendingIntent pendingIntent = PendingIntent.getActivity(getActivity(), REQUEST_CODE, 90 FIFTEEN_SEC_MILLIS, pendingIntent);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
NotificationTest.java | 5 import android.app.PendingIntent; 18 PendingIntent pendingIntent = PendingIntent.getActivity(new Activity(), 0, new Intent(), 0); 20 notification.setLatestEventInfo(new Activity(), "title", "content", pendingIntent); 21 assertThat(pendingIntent, is(notification.contentIntent));
|
/frameworks/support/navigation/integration-tests/testapp/src/main/java/androidx/navigation/testapp/ |
DeepLinkAppWidgetProvider.java | 19 import android.app.PendingIntent; 39 PendingIntent pendingIntent = new NavDeepLinkBuilder(context) 45 remoteViews.setOnClickPendingIntent(R.id.deep_link, pendingIntent);
|
/cts/tests/framework/base/activitymanager/util/src/android/server/am/ |
ActivityLauncher.java | 26 import android.app.PendingIntent; 83 * means that {@link PendingIntent} should be used instead of a regular one, because application 141 // Using PendingIntent for Instrumentation launches, because otherwise we won't 144 final PendingIntent pendingIntent = PendingIntent.getActivity(launchContext, 0, 146 pendingIntent.send(); 152 } catch (PendingIntent.CanceledException e) {
|
/developers/build/prebuilts/gradle/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
MainActivity.java | 5 import android.app.PendingIntent; 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 62 builder.setContentIntent(pendingIntent);
|
/developers/samples/android/notification/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
MainActivity.java | 5 import android.app.PendingIntent; 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 62 builder.setContentIntent(pendingIntent);
|
/development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/ |
MainActivity.java | 5 import android.app.PendingIntent; 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 62 builder.setContentIntent(pendingIntent);
|
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 23 import android.app.PendingIntent; 78 PendingIntent pendingIntent = PendingIntent.getService(this, 0, intent, 79 PendingIntent.FLAG_UPDATE_CURRENT); 80 alarm.cancel(pendingIntent); 100 PendingIntent pendingIntentRestart = PendingIntent 101 .getService(this, 0, restartIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
/developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 23 import android.app.PendingIntent; 78 PendingIntent pendingIntent = PendingIntent.getService(this, 0, intent, 79 PendingIntent.FLAG_UPDATE_CURRENT); 80 alarm.cancel(pendingIntent); 100 PendingIntent pendingIntentRestart = PendingIntent 101 .getService(this, 0, restartIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
/development/apps/BuildWidget/src/com/android/buildwidget/ |
BuildWidget.java | 19 import android.app.PendingIntent; 67 PendingIntent pendingIntent = PendingIntent.getActivity(context, 71 updateViews.setOnClickPendingIntent(R.id.widget, pendingIntent);
|
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
SecureWebServerService.java | 20 import android.app.PendingIntent; 76 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, 84 setContentIntent(pendingIntent).
|
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/ |
TimerNotificationService.java | 23 import android.app.PendingIntent; 78 PendingIntent pendingIntent = PendingIntent.getService(this, 0, intent, 79 PendingIntent.FLAG_UPDATE_CURRENT); 80 alarm.cancel(pendingIntent); 100 PendingIntent pendingIntentRestart = PendingIntent 101 .getService(this, 0, restartIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/provider/ |
RandomNumberProviderService.java | 3 import android.app.PendingIntent; 63 PendingIntent pendingIntent = PendingIntent.getService( 67 // would then reuse the Extra you set in the initial PendingIntent). If you don't 68 // do this and multiple complications with your data are active, every PendingIntent 83 .setTapAction(pendingIntent) 89 .setTapAction(pendingIntent) 96 .setTapAction(pendingIntent)
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/ |
Alarms.java | 22 import android.app.PendingIntent; 104 PendingIntent pendingIntent = PendingIntent.getService( 105 context, alarmId, delayMet, PendingIntent.FLAG_NO_CREATE); 106 if (pendingIntent != null && alarmManager != null) { 111 alarmManager.cancel(pendingIntent); 123 PendingIntent pendingIntent = PendingIntent.getService [all...] |
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/ |
SmsMessageReceiver.java | 21 import android.app.PendingIntent; 73 private PendingIntent createDisplayMessageIntent(Context context, String fromAddress, 85 // created here for other messages. Without this line, the PendingIntent always gets the 89 PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, di, 0); 90 return pendingIntent;
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
SmsStorageStatusManager.java | 19 import android.app.PendingIntent; 65 final PendingIntent pendingIntent = UIIntents.get() 75 .setContentIntent(pendingIntent);
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
BatteryTipUtils.java | 20 import android.app.PendingIntent; 117 * Upload the {@link PendingIntent} to {@link StatsManager} for anomaly detection 123 final PendingIntent pendingIntent = PendingIntent.getBroadcast(context, REQUEST_CODE, 124 extraIntent, PendingIntent.FLAG_UPDATE_CURRENT); 125 statsManager.setBroadcastSubscriber(pendingIntent,
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
AuthenticationActivity.java | 24 import android.app.PendingIntent; 65 private static final ArrayList<PendingIntent> sPendingIntents = new ArrayList<>(); 83 final PendingIntent pendingIntent = sPendingIntents.get(i); 84 Log.d(TAG, "Cancelling " + pendingIntent); 85 pendingIntent.cancel(); 129 final PendingIntent pendingIntent = PendingIntent.getActivity(context, id, intent, 0); 130 sPendingIntents.add(pendingIntent); [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
AppSmsManager.java | 20 import android.app.PendingIntent; 41 * {@link #createAppSpecificSmsRequest} allows an application to provide a {@link PendingIntent} 75 public String createAppSpecificSmsToken(String callingPkg, PendingIntent intent) { 113 info.pendingIntent.send(mContext, 0, fillIn); 114 } catch (PendingIntent.CanceledException e) { 167 public final PendingIntent pendingIntent; 170 AppRequestInfo(String packageName, PendingIntent pendingIntent, String token) { 172 this.pendingIntent = pendingIntent [all...] |