HomeSort by relevance Sort by last modified time
    Searched refs:pendingIntent (Results 1 - 25 of 185) sorted by null

1 2 3 4 5 6 7 8

  /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));
AlarmManagerTest.java 6 import android.app.PendingIntent;
43 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
53 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
60 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
61 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
66 alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME, 0, AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
67 alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME, 0, AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
76 PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)
    [all...]
  /cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
MyNotificationListenerService.java 19 import android.app.PendingIntent;
20 import android.app.PendingIntent.CanceledException;
84 private PendingIntent mSentIntent = null;
87 private void send(String reason, PendingIntent pendingIntent) {
88 if (pendingIntent == null) {
97 throw new IllegalStateException("Already sent a PendingIntent (" + mSentIntent
99 + "' (" + pendingIntent + ")");
101 Log.i(TAG, "Sending pending intent for " + reason + ":" + pendingIntent);
103 pendingIntent.send()
    [all...]
  /frameworks/support/customtabs/src/android/support/customtabs/
CustomTabsIntent.java 20 import android.app.PendingIntent;
106 * provide a description, an icon {@link Bitmap} and a {@link PendingIntent} for the button.
115 * {@link PendingIntent} if the item is a button.
141 * Key that specifies the PendingIntent to launch when the action button or menu item was
142 * clicked. The custom tab will be calling {@link PendingIntent#send()} on clicks after adding
186 * @see CustomTabsIntent.Builder#setSecondaryToolbarViews(RemoteViews, int[], PendingIntent).
193 * {@link PendingIntent} will be sent, carrying the current url of the custom tab as data.
197 * {@link RemoteViews#setOnClickPendingIntent(int, PendingIntent)} instead.
198 * @see CustomTabsIntent.Builder#setSecondaryToolbarViews(RemoteViews, int[], PendingIntent).
204 * Extra that specifies the {@link PendingIntent} to be sent when the user clicks on th
    [all...]
  /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)
  /packages/apps/Music/src/com/android/music/
MediaAppWidgetProvider.java 19 import android.app.PendingIntent;
176 PendingIntent pendingIntent;
182 pendingIntent = PendingIntent.getActivity(
184 views.setOnClickPendingIntent(R.id.album_appwidget, pendingIntent);
187 pendingIntent = PendingIntent.getActivity(
189 views.setOnClickPendingIntent(R.id.album_appwidget, pendingIntent);
194 pendingIntent
    [all...]
  /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/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);
  /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/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/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);
  /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);
  /frameworks/base/core/java/android/text/style/
EasyEditSpan.java 19 import android.app.PendingIntent;
56 private final PendingIntent mPendingIntent;
70 * @param pendingIntent The intent will be sent when the wrapped text is deleted or modified.
74 public EasyEditSpan(PendingIntent pendingIntent) {
75 mPendingIntent = pendingIntent;
136 public PendingIntent getPendingIntent() {
  /developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
AlarmUtil.java 20 import android.app.PendingIntent;
52 PendingIntent pendingIntent = PendingIntent
53 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT);
63 pendingIntent);
64 mAlarmManager.setAlarmClock(alarmClockInfo, pendingIntent);
78 PendingIntent pendingIntent = PendingIntent
    [all...]
  /developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
AlarmUtil.java 20 import android.app.PendingIntent;
52 PendingIntent pendingIntent = PendingIntent
53 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT);
63 pendingIntent);
64 mAlarmManager.setAlarmClock(alarmClockInfo, pendingIntent);
78 PendingIntent pendingIntent = PendingIntent
    [all...]
  /development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
AlarmUtil.java 20 import android.app.PendingIntent;
52 PendingIntent pendingIntent = PendingIntent
53 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT);
62 pendingIntent);
63 mAlarmManager.setAlarmClock(alarmClockInfo, pendingIntent);
77 PendingIntent pendingIntent = 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...]
  /frameworks/base/services/core/java/com/android/server/location/
GeofenceManager.java 25 import android.app.PendingIntent;
46 public class GeofenceManager implements LocationListener, PendingIntent.OnFinished {
151 public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent,
175 public void removeFence(Geofence fence, PendingIntent intent) {
273 List<PendingIntent> enterIntents = new LinkedList<PendingIntent>();
274 List<PendingIntent> exitIntents = new LinkedList<PendingIntent>();
371 for (PendingIntent intent : exitIntents) {
374 for (PendingIntent intent : enterIntents)
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowLocationManager.java 3 import android.app.PendingIntent;
4 import android.app.PendingIntent.CanceledException;
26 private final Map<PendingIntent, Criteria> requestLocationUdpateCriteriaPendingIntents = new HashMap<PendingIntent, Criteria>();
27 private final Map<PendingIntent, String> requestLocationUdpateProviderPendingIntents = new HashMap<PendingIntent, String>();
87 Set<PendingIntent> requestLocationUdpatePendingIntentSet = requestLocationUdpateCriteriaPendingIntents
89 for (PendingIntent requestLocationUdpatePendingIntent : requestLocationUdpatePendingIntentSet) {
224 public void requestLocationUpdates(long minTime, float minDistance, Criteria criteria, PendingIntent pendingIntent) {
    [all...]
  /development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
RemoteControlClientCompat.java 19 import android.app.PendingIntent;
99 public RemoteControlClientCompat(PendingIntent pendingIntent) {
105 sRemoteControlClientClass.getConstructor(PendingIntent.class)
106 .newInstance(pendingIntent);
112 public RemoteControlClientCompat(PendingIntent pendingIntent, Looper looper) {
119 sRemoteControlClientClass.getConstructor(PendingIntent.class, Looper.class)
120 .newInstance(pendingIntent, looper);
  /cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
MyBroadcastReceiver.java 37 import android.app.PendingIntent;
203 final PendingIntent pendingIntent = PendingIntent.getService(context, 0, serviceIntent,
216 .setContentIntent(pendingIntent);
219 builder.setDeleteIntent(pendingIntent);
222 builder.setFullScreenIntent(pendingIntent, true);
225 bundle.putParcelable("Magnum P.I. (Pending Intent)", pendingIntent);
230 R.drawable.ic_notification, "ACTION", pendingIntent)
235 bundle.putParcelable("Magnum A.P.I. (Action Pending Intent)", pendingIntent);
    [all...]
  /cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
AlarmOperation.java 20 import android.app.PendingIntent;
94 PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);
95 am.setExact(AlarmManager.RTC_WAKEUP, wakeupTimeMs, pendingIntent);
  /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);
  /packages/apps/Messaging/src/com/android/messaging/sms/
SmsStorageStatusManager.java 19 import android.app.PendingIntent;
65 final PendingIntent pendingIntent = UIIntents.get()
75 .setContentIntent(pendingIntent);

Completed in 906 milliseconds

1 2 3 4 5 6 7 8