HomeSort by relevance Sort by last modified time
    Searched defs:PendingIntent (Results 1 - 25 of 62) sorted by null

1 2 3

  /packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmNotifications.java 21 import android.app.PendingIntent;
112 builder.setDeleteIntent(PendingIntent.getService(context, id,
113 hideIntent, PendingIntent.FLAG_UPDATE_CURRENT));
120 PendingIntent.getService(context, id,
121 dismissIntent, PendingIntent.FLAG_UPDATE_CURRENT));
125 builder.setContentIntent(PendingIntent.getActivity(context, id,
126 viewAlarmIntent, PendingIntent.FLAG_UPDATE_CURRENT));
161 PendingIntent.getService(context, id,
162 dismissIntent, PendingIntent.FLAG_UPDATE_CURRENT));
166 builder.setContentIntent(PendingIntent.getActivity(context, id
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
EasyEditSpanTest.java 19 import android.app.PendingIntent;
36 new EasyEditSpan(PendingIntent.getActivity(
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowPendingIntentTest.java 3 import static android.app.PendingIntent.FLAG_CANCEL_CURRENT;
4 import static android.app.PendingIntent.FLAG_IMMUTABLE;
5 import static android.app.PendingIntent.FLAG_NO_CREATE;
6 import static android.app.PendingIntent.FLAG_ONE_SHOT;
7 import static android.app.PendingIntent.FLAG_UPDATE_CURRENT;
13 import android.app.PendingIntent;
14 import android.app.PendingIntent.CanceledException;
40 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 99, intent, 100)
    [all...]
ShadowAlarmManagerTest.java 4 import static android.app.PendingIntent.FLAG_UPDATE_CURRENT;
14 import android.app.PendingIntent;
46 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
55 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
64 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
73 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
82 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
90 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
97 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0));
99 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0))
    [all...]
  /frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
WakeUpCall.java 20 import android.app.PendingIntent;
79 PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent,
80 PendingIntent.FLAG_UPDATE_CURRENT);
86 am.cancel(PendingIntent.getBroadcast(context, 0, intent, 0));
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
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...]
PendingIntentTest.java 12 import android.app.PendingIntent;
29 PendingIntent service = PendingIntent.getService(null, 0, expectedIntent, 0);
38 PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application, 99, intent, 100);
39 ShadowPendingIntent shadow = shadowOf(pendingIntent);
50 PendingIntent pendingIntent = PendingIntent.getActivity(Robolectric.application, 99, intent, 100)
    [all...]
  /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
TriggerService.java 23 import android.app.PendingIntent;
130 .setContentIntent(PendingIntent.getActivity(this, 0, notificationIntent, 0));
  /packages/apps/Messaging/src/com/android/messaging/sms/
SmsSender.java 20 import android.app.PendingIntent;
260 final ArrayList<PendingIntent> deliveryIntents = new ArrayList<PendingIntent>(messageCount);
261 final ArrayList<PendingIntent> sentIntents = new ArrayList<PendingIntent>(messageCount);
268 deliveryIntents.add(PendingIntent.getBroadcast(
277 sentIntents.add(PendingIntent.getBroadcast(
  /frameworks/base/core/java/android/app/
PendingIntent.java 51 * <p>By giving a PendingIntent to another application,
54 * identity). As such, you should be careful about how you build the PendingIntent:
59 * <p>A PendingIntent itself is simply a reference to a token maintained by
62 * PendingIntent itself will remain usable from other processes that
64 * same kind of PendingIntent (same operation, same Intent action, data,
65 * categories, and components, and same flags), it will receive a PendingIntent
70 * are considered to be the same for purposes of retrieving a PendingIntent.
71 * A common mistake people make is to create multiple PendingIntent objects
73 * a different PendingIntent each time. This does <em>not</em> happen. The
78 * the same PendingIntent for both of them
    [all...]
Notification.java 286 public PendingIntent contentIntent;
295 public PendingIntent deleteIntent;
307 public PendingIntent fullScreenIntent;
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/
RemoteViewsTest.java 23 import android.app.PendingIntent;
391 p.setClassCookie(PendingIntent.class, cookie);
404 PendingIntent pi = PendingIntent.getBroadcast(mContext, 0,
405 new Intent("android.widget.RemoteViewsTest_" + i), PendingIntent.FLAG_ONE_SHOT);
420 PendingIntent pi = PendingIntent.getBroadcast(mContext, 0,
421 new Intent("test"), PendingIntent.FLAG_ONE_SHOT);
427 PendingIntent found = extractAnyPendingIntent(cloned);
431 private PendingIntent extractAnyPendingIntent(RemoteViews cloned)
    [all...]
  /frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DeviceDiscoveryService.java 29 import android.app.PendingIntent;
279 mFindCallback.onSuccess(PendingIntent.getActivity(
282 PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_CANCEL_CURRENT
283 | PendingIntent.FLAG_IMMUTABLE));
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppNotification.java 38 import android.app.PendingIntent;
392 b.setContentIntent(PendingIntent.getBroadcast(mContext, 0, intent, 0));
460 PendingIntent.getBroadcast(mContext, 0, contentIntent, 0))
462 PendingIntent.getBroadcast(mContext, 0, deleteIntent, 0))
526 PendingIntent.getBroadcast(mContext, 0, contentIntent, 0))
528 PendingIntent.getBroadcast(mContext, 0, deleteIntent, 0))
562 PendingIntent.getBroadcast(mContext, 0,
567 PendingIntent.getBroadcast(mContext, 0,
576 .setContentIntent(PendingIntent.getBroadcast(mContext, 0,
579 .setDeleteIntent(PendingIntent.getBroadcast(mContext, 0
    [all...]
  /packages/services/Telephony/src/com/android/phone/
NotificationMgr.java 23 import android.app.PendingIntent;
316 PendingIntent pendingIntent =
317 PendingIntent.getActivity(mContext, subId /* requestCode */, intent, 0);
328 .setContentIntent(pendingIntent)
344 pendingIntent, isSettingsIntent, userHandle, isRefresh)) {
382 * @param pendingIntent The intent that should be passed as the action to be taken.
390 String number, PendingIntent pendingIntent, boolean isSettingsIntent,
412 if (pendingIntent != null)
    [all...]
  /cts/tests/app/src/android/app/cts/
PendingIntentTest.java 19 import android.app.PendingIntent;
20 import android.app.PendingIntent.CanceledException;
43 private PendingIntent mPendingIntent;
49 private PendingIntent.OnFinished mFinish;
58 mFinish = new PendingIntent.OnFinished() {
59 public void onSendFinished(PendingIntent pi, Intent intent, int resultCode,
145 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent,
146 PendingIntent.FLAG_CANCEL_CURRENT);
157 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent,
158 PendingIntent.FLAG_NO_CREATE)
    [all...]
  /cts/tests/tests/telephony/src/android/telephony/cts/
SmsManagerTest.java 20 import android.app.PendingIntent;
84 private PendingIntent mSentIntent;
85 private PendingIntent mDeliveredIntent;
311 mSentIntent = PendingIntent.getBroadcast(mContext, 0, mSendIntent,
312 PendingIntent.FLAG_ONE_SHOT);
313 mDeliveredIntent = PendingIntent.getBroadcast(mContext, 0, mDeliveryIntent,
314 PendingIntent.FLAG_ONE_SHOT);
353 ArrayList<PendingIntent> sentIntents = new ArrayList<PendingIntent>();
354 ArrayList<PendingIntent> deliveryIntents = new ArrayList<PendingIntent>()
    [all...]
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadNotifier.java 31 import android.app.PendingIntent;
57 * {@link PendingIntent} that launch towards {@link DownloadReceiver}.
235 builder.setContentIntent(PendingIntent.getBroadcast(mContext,
236 0, intent, PendingIntent.FLAG_UPDATE_CURRENT));
252 PendingIntent.getBroadcast(mContext,
253 0, cancelIntent, PendingIntent.FLAG_UPDATE_CURRENT));
276 builder.setContentIntent(PendingIntent.getBroadcast(mContext,
277 0, intent, PendingIntent.FLAG_UPDATE_CURRENT));
282 builder.setDeleteIntent(PendingIntent.getBroadcast(mContext, 0, hideIntent, 0));
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
MissedCallNotifierImplTest.java 21 import android.app.PendingIntent;
389 assertNotNull(PendingIntent.getBroadcast(mContext, REQUEST_ID,
390 callBackIntent, PendingIntent.FLAG_NO_CREATE));
391 assertNotNull(PendingIntent.getBroadcast(mContext, REQUEST_ID,
392 smsIntent, PendingIntent.FLAG_NO_CREATE));
425 assertNotNull(PendingIntent.getBroadcast(mContext, REQUEST_ID,
426 callBackIntent, PendingIntent.FLAG_NO_CREATE));
427 assertNull(PendingIntent.getBroadcast(mContext, REQUEST_ID,
428 smsIntent, PendingIntent.FLAG_NO_CREATE));
  /platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
SystemUiJankTests.java 26 import android.app.PendingIntent;
248 builder.setContentIntent(PendingIntent.getActivity(
261 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0 , new Intent(),
262 PendingIntent.FLAG_UPDATE_CURRENT);
264 Action action = new Action.Builder(icon, REPLY_TEXT, pendingIntent)
    [all...]
  /frameworks/base/core/java/android/widget/
RemoteViews.java 28 import android.app.PendingIntent;
363 public boolean onClickHandler(View view, PendingIntent pendingIntent,
365 return onClickHandler(view, pendingIntent, fillInIntent, WINDOWING_MODE_UNDEFINED);
368 public boolean onClickHandler(View view, PendingIntent pendingIntent,
371 // TODO: Unregister this handler if PendingIntent.FLAG_ONE_SHOT?
384 pendingIntent.getIntentSender(), fillInIntent,
668 if (!(parent.getTag() instanceof PendingIntent)) {
674 PendingIntent pendingIntent = (PendingIntent) parent.getTag()
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
NotificationUtils.java 19 import android.app.PendingIntent;
622 PendingIntent clickIntent = null;
670 notification.setDeleteIntent(PendingIntent.getService(
    [all...]
  /frameworks/base/services/core/java/com/android/server/net/
NetworkPolicyManagerService.java 125 import android.app.PendingIntent;
    [all...]
  /external/robolectric/v3/runtime/
android-all-4.1.2_r1-robolectric-0.jar 
android-all-4.2.2_r1.2-robolectric-0.jar 

Completed in 1300 milliseconds

1 2 3