예제 #1
0
 public BackStackState(Parcel paramParcel)
 {
   this.mOps = paramParcel.createIntArray();
   this.mTransition = paramParcel.readInt();
   this.mTransitionStyle = paramParcel.readInt();
   this.mName = paramParcel.readString();
   this.mIndex = paramParcel.readInt();
   this.mBreadCrumbTitleRes = paramParcel.readInt();
   this.mBreadCrumbTitleText = ((CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(paramParcel));
   this.mBreadCrumbShortTitleRes = paramParcel.readInt();
   this.mBreadCrumbShortTitleText = ((CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(paramParcel));
 }
 public aq(Parcel paramParcel)
 {
   a = paramParcel.createIntArray();
   b = paramParcel.readInt();
   c = paramParcel.readInt();
   d = paramParcel.readString();
   e = paramParcel.readInt();
   f = paramParcel.readInt();
   g = ((CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(paramParcel));
   h = paramParcel.readInt();
   i = ((CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(paramParcel));
   j = paramParcel.createStringArrayList();
   k = paramParcel.createStringArrayList();
 }
 public void readFromParcel(Parcel in) {
   super.readFromParcel(in);
   mSourcePackage = in.readString();
   mLabelRes = in.readInt();
   mNonLocalizedLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
   mIcon = in.readInt();
 }
 private ResolveInfo(Parcel source) {
   activityInfo = null;
   serviceInfo = null;
   providerInfo = null;
   switch (source.readInt()) {
     case 1:
       activityInfo = ActivityInfo.CREATOR.createFromParcel(source);
       break;
     case 2:
       serviceInfo = ServiceInfo.CREATOR.createFromParcel(source);
       break;
     case 3:
       providerInfo = ProviderInfo.CREATOR.createFromParcel(source);
       break;
     default:
       Slog.w(TAG, "Missing ComponentInfo!");
       break;
   }
   if (source.readInt() != 0) {
     filter = IntentFilter.CREATOR.createFromParcel(source);
   }
   priority = source.readInt();
   preferredOrder = source.readInt();
   match = source.readInt();
   specificIndex = source.readInt();
   labelRes = source.readInt();
   nonLocalizedLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
   icon = source.readInt();
   resolvePackageName = source.readString();
   system = source.readInt() != 0;
 }
 public void readFromParcel(Parcel in) {
   id = in.readLong();
   titleRes = in.readInt();
   title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
   summaryRes = in.readInt();
   summary = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
   breadCrumbTitleRes = in.readInt();
   breadCrumbTitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
   breadCrumbShortTitleRes = in.readInt();
   breadCrumbShortTitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
   iconRes = in.readInt();
   fragment = in.readString();
   fragmentArguments = in.readBundle();
   if (in.readInt() != 0) {
     intent = Intent.CREATOR.createFromParcel(in);
   }
   extras = in.readBundle();
 }
 public void readFromParcel(Parcel source) {
   id = source.readInt();
   persistentId = source.readInt();
   if (source.readInt() != 0) {
     baseIntent = Intent.CREATOR.createFromParcel(source);
   } else {
     baseIntent = null;
   }
   origActivity = ComponentName.readFromParcel(source);
   description = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
 }
 public void readFromParcel(Parcel source) {
   id = source.readInt();
   baseActivity = ComponentName.readFromParcel(source);
   topActivity = ComponentName.readFromParcel(source);
   if (source.readInt() != 0) {
     thumbnail = Bitmap.CREATOR.createFromParcel(source);
   } else {
     thumbnail = null;
   }
   description = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
   numActivities = source.readInt();
   numRunning = source.readInt();
 }
  public List<String> getText(Notification notification) {
    if (null == notification) return null;
    RemoteViews views = notification.contentView;
    if (views == null) return null;

    // Use reflection to examine the m_actions member of the given
    // RemoteViews object.
    // It's not pretty, but it works.
    List<String> text = new ArrayList<String>();
    try {
      Field field = views.getClass().getDeclaredField("mActions");
      field.setAccessible(true);

      @SuppressWarnings("unchecked")
      ArrayList<Parcelable> actions = (ArrayList<Parcelable>) field.get(views);
      // Find the setText() and setTime() reflection actions
      for (Parcelable p : actions) {
        Parcel parcel = Parcel.obtain();
        p.writeToParcel(parcel, 0);
        parcel.setDataPosition(0);

        // The tag tells which type of action it is (2 is
        // ReflectionAction, from the source)
        int tag = parcel.readInt();
        if (tag != 2) continue;

        // View ID
        parcel.readInt();

        String methodName = parcel.readString();
        if (null == methodName) {
          continue;
        } else if (methodName.equals("setText")) {
          // Parameter type (10 = Character Sequence)
          parcel.readInt();

          // Store the actual string
          String t = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel).toString().trim();
          text.add(t);
        }
        parcel.recycle();
      }
    } catch (Exception e) {
      log("getText" + e.getMessage());
    }

    return text;
  }
 @Override
 public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags)
     throws android.os.RemoteException {
   switch (code) {
     case INTERFACE_TRANSACTION:
       {
         reply.writeString(DESCRIPTOR);
         return true;
       }
     case TRANSACTION_setTextBeforeCursor:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.CharSequence _arg0;
         if ((0 != data.readInt())) {
           _arg0 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data);
         } else {
           _arg0 = null;
         }
         int _arg1;
         _arg1 = data.readInt();
         this.setTextBeforeCursor(_arg0, _arg1);
         return true;
       }
     case TRANSACTION_setTextAfterCursor:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.CharSequence _arg0;
         if ((0 != data.readInt())) {
           _arg0 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data);
         } else {
           _arg0 = null;
         }
         int _arg1;
         _arg1 = data.readInt();
         this.setTextAfterCursor(_arg0, _arg1);
         return true;
       }
     case TRANSACTION_setCursorCapsMode:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         int _arg1;
         _arg1 = data.readInt();
         this.setCursorCapsMode(_arg0, _arg1);
         return true;
       }
     case TRANSACTION_setExtractedText:
       {
         data.enforceInterface(DESCRIPTOR);
         android.view.inputmethod.ExtractedText _arg0;
         if ((0 != data.readInt())) {
           _arg0 = android.view.inputmethod.ExtractedText.CREATOR.createFromParcel(data);
         } else {
           _arg0 = null;
         }
         int _arg1;
         _arg1 = data.readInt();
         this.setExtractedText(_arg0, _arg1);
         return true;
       }
     case TRANSACTION_setSelectedText:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.CharSequence _arg0;
         if ((0 != data.readInt())) {
           _arg0 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data);
         } else {
           _arg0 = null;
         }
         int _arg1;
         _arg1 = data.readInt();
         this.setSelectedText(_arg0, _arg1);
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
        public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)
            throws RemoteException
        {
            switch (i)
            {
            default:
                return super.onTransact(i, parcel, parcel1, j);

            case 1598968902: 
                parcel1.writeString("android.support.v4.media.session.IMediaControllerCallback");
                return true;

            case 1: // '\001'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                parcel1 = parcel.readString();
                if (parcel.readInt() != 0)
                {
                    parcel = (Bundle)Bundle.CREATOR.createFromParcel(parcel);
                } else
                {
                    parcel = null;
                }
                onEvent(parcel1, parcel);
                return true;

            case 2: // '\002'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                onSessionDestroyed();
                return true;

            case 3: // '\003'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                if (parcel.readInt() != 0)
                {
                    parcel = (PlaybackStateCompat)PlaybackStateCompat.CREATOR.createFromParcel(parcel);
                } else
                {
                    parcel = null;
                }
                onPlaybackStateChanged(parcel);
                return true;

            case 4: // '\004'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                if (parcel.readInt() != 0)
                {
                    parcel = (MediaMetadataCompat)MediaMetadataCompat.CREATOR.createFromParcel(parcel);
                } else
                {
                    parcel = null;
                }
                onMetadataChanged(parcel);
                return true;

            case 5: // '\005'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                onQueueChanged(parcel.createTypedArrayList(MediaSessionCompat.QueueItem.CREATOR));
                return true;

            case 6: // '\006'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                if (parcel.readInt() != 0)
                {
                    parcel = (CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel);
                } else
                {
                    parcel = null;
                }
                onQueueTitleChanged(parcel);
                return true;

            case 7: // '\007'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                if (parcel.readInt() != 0)
                {
                    parcel = (Bundle)Bundle.CREATOR.createFromParcel(parcel);
                } else
                {
                    parcel = null;
                }
                onExtrasChanged(parcel);
                return true;

            case 8: // '\b'
                parcel.enforceInterface("android.support.v4.media.session.IMediaControllerCallback");
                break;
            }
            if (parcel.readInt() != 0)
            {
                parcel = (ParcelableVolumeInfo)ParcelableVolumeInfo.CREATOR.createFromParcel(parcel);
            } else
            {
                parcel = null;
            }
            onVolumeInfoChanged(parcel);
            return true;
        }