/external/robolectric/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...] |
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...] |
/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; 126 public PendingIntent getPendingIntent() {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
UploaderService.java | 21 import android.app.PendingIntent; 84 final PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, 0); 87 alarmManager.cancel(pendingIntent); 90 + UploaderService.RUN_INTERVAL, pendingIntent);
|
/packages/apps/Music/src/com/android/music/ |
MediaAppWidgetProvider.java | 19 import android.app.PendingIntent; 175 PendingIntent pendingIntent; 181 pendingIntent = PendingIntent.getActivity(context, 183 views.setOnClickPendingIntent(R.id.album_appwidget, pendingIntent); 186 pendingIntent = PendingIntent.getActivity(context, 188 views.setOnClickPendingIntent(R.id.album_appwidget, pendingIntent); 193 pendingIntent = PendingIntent.getService(context [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
NotificationManagerTest.java | 21 import android.app.PendingIntent; 75 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); 77 + "notification ", pendingIntent);
|
/developers/samples/android/ui/notifications/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/KeyChainDemo/src/com/example/android/keychain/ |
SecureWebServerService.java | 20 import android.app.PendingIntent; 76 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, 84 setContentIntent(pendingIntent).
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
SimFullReceiver.java | 22 import android.app.PendingIntent; 49 PendingIntent pendingIntent = PendingIntent.getActivity( 60 pendingIntent);
|
SmsRejectedReceiver.java | 21 import android.app.PendingIntent; 61 PendingIntent pendingIntent = PendingIntent.getActivity( 83 pendingIntent);
|
/frameworks/base/services/java/com/android/server/location/ |
GeofenceManager.java | 25 import android.app.PendingIntent; 42 public class GeofenceManager implements LocationListener, PendingIntent.OnFinished { 119 public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent, 143 public void removeFence(Geofence fence, PendingIntent intent) { 241 List<PendingIntent> enterIntents = new LinkedList<PendingIntent>(); 242 List<PendingIntent> exitIntents = new LinkedList<PendingIntent>(); 339 for (PendingIntent intent : exitIntents) { 342 for (PendingIntent intent : enterIntents) [all...] |
/external/robolectric/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...] |
ShadowAlarmManager.java | 4 import android.app.PendingIntent; 24 public void set(int type, long triggerAtTime, PendingIntent operation) { 29 public void setRepeating (int type, long triggerAtTime, long interval, PendingIntent operation){ 33 private void internalSet(int type, long triggerAtTime, long interval, PendingIntent operation) { 80 public void cancel(PendingIntent pendingIntent) { 81 final Intent intentTypeToRemove = shadowOf(pendingIntent).getSavedIntent(); 91 * Container object to hold an PendingIntent, together with the alarm 98 public PendingIntent operation; 100 public ScheduledAlarm(int type, long triggerAtTime, PendingIntent operation) [all...] |
ShadowRemoteViews.java | 3 import android.app.PendingIntent; 54 public void setOnClickPendingIntent(int viewId, final PendingIntent pendingIntent) { 61 pendingIntent.send(view.getContext(), 0, null); 62 } catch (PendingIntent.CanceledException e) {
|
ShadowPendingIntent.java | 3 import android.app.PendingIntent; 4 import android.app.PendingIntent.CanceledException; 16 * Shadow of {@code PendingIntent} that creates and sends {@code Intent}s appropriately. 18 @Implements(PendingIntent.class) 28 public static PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags) { 33 public static PendingIntent getBroadcast(Context context, int requestCode, Intent intent, int flags) { 38 public static PendingIntent getService(Context context, int requestCode, Intent intent, int flags) { 67 public static void writePendingIntentOrNullToParcel(PendingIntent sender, Parcel out) { 76 public static PendingIntent readPendingIntentOrNullFromParcel(Parcel in) { 126 if (obj instanceof 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);
|
/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);
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
NotificationStressTest.java | 85 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); 88 notification.setLatestEventInfo(mContext, title, subtitle, pendingIntent);
|
/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;
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
WordWidget.java | 22 import android.app.PendingIntent; 117 PendingIntent pendingIntent = PendingIntent.getActivity(context, 119 views.setOnClickPendingIntent(R.id.widget, pendingIntent);
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
WordWidget.java | 22 import android.app.PendingIntent; 108 PendingIntent pendingIntent = PendingIntent.getActivity(context, 110 updateViews.setOnClickPendingIntent(R.id.widget, pendingIntent);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
LocationController.java | 23 import android.app.PendingIntent; 99 PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, 0, 107 .setContentIntent(pendingIntent)
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
PhotoAppWidgetProvider.java | 20 import android.app.PendingIntent; 97 PendingIntent pendingIntent = PendingIntent.getActivity( 98 context, 0, clickIntent, PendingIntent.FLAG_UPDATE_CURRENT); 99 views.setPendingIntentTemplate(R.id.appwidget_stack_view, pendingIntent); 120 PendingIntent pendingClickIntent = PendingIntent.getActivity(context, 0, 121 clickIntent, PendingIntent.FLAG_CANCEL_CURRENT);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
DictionaryService.java | 20 import android.app.PendingIntent; 200 final PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, 201 updateIntent, PendingIntent.FLAG_CANCEL_CURRENT); 206 if (null != alarmManager) alarmManager.set(AlarmManager.RTC, alarmTime, pendingIntent);
|