Home | History | Annotate | Download | only in widget

Lines Matching defs:PendingIntent

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();
679 handler.onClickHandler(v, pendingIntent, fillInIntent);
696 public SetPendingIntentTemplate(int id, PendingIntent pendingIntentTemplate) {
703 pendingIntentTemplate = PendingIntent.readPendingIntentOrNullFromParcel(parcel);
708 PendingIntent.writePendingIntentOrNullToParcel(pendingIntentTemplate, dest);
716 // If the view isn't an AdapterView, setting a PendingIntent template doesn't make sense
719 // The PendingIntent template is stored in the view's tag.
767 PendingIntent pendingIntentTemplate;
904 * to launch the provided {@link PendingIntent}.
907 public SetOnClickPendingIntent(int id, PendingIntent pendingIntent) {
909 this.pendingIntent = pendingIntent;
914 pendingIntent = PendingIntent.readPendingIntentOrNullFromParcel(parcel);
919 PendingIntent.writePendingIntentOrNullToParcel(pendingIntent, dest);
927 // If the view is an AdapterView, setting a PendingIntent on click doesn't make much
928 // sense, do they mean to set a PendingIntent template for the AdapterView's children?
942 // If the pendingIntent is null, we clear the onClickListener
944 if (pendingIntent != null) {
948 // fill into PendingIntent before sending.
953 handler.onClickHandler(v, pendingIntent, intent);
957 target.setTagInternal(R.id.pending_intent_tag, pendingIntent);
966 PendingIntent pendingIntent;
2756 * to launch the provided {@link PendingIntent}. The source bounds
2759 * Note that any activity options associated with the pendingIntent may get overridden
2764 * RemoteViews#setPendingIntentTemplate(int, PendingIntent)} in conjunction with
2767 * @param viewId The id of the view that will trigger the {@link PendingIntent} when clicked
2768 * @param pendingIntent The {@link PendingIntent} to send when user clicks
2770 public void setOnClickPendingIntent(int viewId, PendingIntent pendingIntent) {
2771 addAction(new SetOnClickPendingIntent(viewId, pendingIntent));
2777 * this method should be used to set a single PendingIntent template on the collection, and
2781 * @param viewId The id of the collection who's children will use this PendingIntent template
2783 * @param pendingIntentTemplate The {@link PendingIntent} to be combined with extras specified
2786 public void setPendingIntentTemplate(int viewId, PendingIntent pendingIntentTemplate) {
2793 * a single PendingIntent template can be set on the collection, see {@link
2794 * RemoteViews#setPendingIntentTemplate(int, PendingIntent)}, and the individual on-click
2796 * fillInIntent is then combined with the PendingIntent template in order to determine the final
2798 * which are left blank in the PendingIntent template, but are provided by the fillInIntent
2799 * will be overwritten, and the resulting PendingIntent will be used. The rest
2800 * of the PendingIntent template will then be filled in with the associated fields that are
2804 * @param fillInIntent The intent which will be combined with the parent's PendingIntent