Beispiel #1
0
  /** Removes all elements from the mapping of this Bundle. */
  @Override
  public void clear() {
    super.clear();

    mHasFds = false;
    mFdsKnown = true;
  }
Beispiel #2
0
 /**
  * Writes the Bundle contents to a Parcel, typically in order for it to be passed through an
  * IBinder connection.
  *
  * @param parcel The parcel to copy this bundle to.
  */
 @Override
 public void writeToParcel(Parcel parcel, int flags) {
   final boolean oldAllowFds = parcel.pushAllowFds(mAllowFds);
   try {
     super.writeToParcelInner(parcel, flags);
   } finally {
     parcel.restoreAllowFds(oldAllowFds);
   }
 }
Beispiel #3
0
 /**
  * Inserts a char array value into the mapping of this Bundle, replacing any existing value for
  * the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value a char array object, or null
  */
 @Override
 public void putCharArray(@Nullable String key, @Nullable char[] value) {
   super.putCharArray(key, value);
 }
Beispiel #4
0
 /**
  * Inserts a short array value into the mapping of this Bundle, replacing any existing value for
  * the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value a short array object, or null
  */
 @Override
 public void putShortArray(@Nullable String key, @Nullable short[] value) {
   super.putShortArray(key, value);
 }
Beispiel #5
0
 /**
  * Inserts a byte array value into the mapping of this Bundle, replacing any existing value for
  * the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value a byte array object, or null
  */
 @Override
 public void putByteArray(@Nullable String key, @Nullable byte[] value) {
   super.putByteArray(key, value);
 }
Beispiel #6
0
 /**
  * Inserts a Serializable value into the mapping of this Bundle, replacing any existing value for
  * the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value a Serializable object, or null
  */
 @Override
 public void putSerializable(@Nullable String key, @Nullable Serializable value) {
   super.putSerializable(key, value);
 }
Beispiel #7
0
 /**
  * Inserts an ArrayList<CharSequence> value into the mapping of this Bundle, replacing any
  * existing value for the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value an ArrayList<CharSequence> object, or null
  */
 @Override
 public void putCharSequenceArrayList(
     @Nullable String key, @Nullable ArrayList<CharSequence> value) {
   super.putCharSequenceArrayList(key, value);
 }
Beispiel #8
0
 /**
  * Inserts an ArrayList<String> value into the mapping of this Bundle, replacing any existing
  * value for the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value an ArrayList<String> object, or null
  */
 @Override
 public void putStringArrayList(@Nullable String key, @Nullable ArrayList<String> value) {
   super.putStringArrayList(key, value);
 }
Beispiel #9
0
 /**
  * Reads the Parcel contents into this Bundle, typically in order for it to be passed through an
  * IBinder connection.
  *
  * @param parcel The parcel to overwrite this bundle from.
  */
 public void readFromParcel(Parcel parcel) {
   super.readFromParcelInner(parcel);
   mHasFds = mParcelledData.hasFileDescriptors();
   mFdsKnown = true;
 }
Beispiel #10
0
 /**
  * Inserts a float value into the mapping of this Bundle, replacing any existing value for the
  * given key.
  *
  * @param key a String, or null
  * @param value a float
  */
 @Override
 public void putFloat(@Nullable String key, float value) {
   super.putFloat(key, value);
 }
Beispiel #11
0
 /**
  * Inserts a short value into the mapping of this Bundle, replacing any existing value for the
  * given key.
  *
  * @param key a String, or null
  * @param value a short
  */
 @Override
 public void putShort(@Nullable String key, short value) {
   super.putShort(key, value);
 }
Beispiel #12
0
 /**
  * Inserts a char value into the mapping of this Bundle, replacing any existing value for the
  * given key.
  *
  * @param key a String, or null
  * @param value a char
  */
 @Override
 public void putChar(@Nullable String key, char value) {
   super.putChar(key, value);
 }
Beispiel #13
0
 /**
  * Inserts a byte value into the mapping of this Bundle, replacing any existing value for the
  * given key.
  *
  * @param key a String, or null
  * @param value a byte
  */
 @Override
 public void putByte(@Nullable String key, byte value) {
   super.putByte(key, value);
 }
Beispiel #14
0
 /**
  * Changes the ClassLoader this Bundle uses when instantiating objects.
  *
  * @param loader An explicit ClassLoader to use when instantiating objects inside of the Bundle.
  */
 @Override
 public void setClassLoader(ClassLoader loader) {
   super.setClassLoader(loader);
 }
Beispiel #15
0
 /**
  * Inserts a float array value into the mapping of this Bundle, replacing any existing value for
  * the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value a float array object, or null
  */
 @Override
 public void putFloatArray(@Nullable String key, @Nullable float[] value) {
   super.putFloatArray(key, value);
 }
Beispiel #16
0
 /**
  * Inserts a CharSequence array value into the mapping of this Bundle, replacing any existing
  * value for the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value a CharSequence array object, or null
  */
 @Override
 public void putCharSequenceArray(@Nullable String key, @Nullable CharSequence[] value) {
   super.putCharSequenceArray(key, value);
 }
Beispiel #17
0
 /**
  * Inserts an ArrayList<Integer> value into the mapping of this Bundle, replacing any existing
  * value for the given key. Either key or value may be null.
  *
  * @param key a String, or null
  * @param value an ArrayList<Integer> object, or null
  */
 @Override
 public void putIntegerArrayList(@Nullable String key, @Nullable ArrayList<Integer> value) {
   super.putIntegerArrayList(key, value);
 }