Lines Matching refs:key
119 * Make a Bundle for a single key/value pair.
123 public static Bundle forPair(String key, String value) {
125 b.putString(key, value);
256 * any existing value for the given key.
258 * @param key a String, or null
262 public void putByte(String key, byte value) {
263 super.putByte(key, value);
268 * any existing value for the given key.
270 * @param key a String, or null
274 public void putChar(String key, char value) {
275 super.putChar(key, value);
280 * any existing value for the given key.
282 * @param key a String, or null
286 public void putShort(String key, short value) {
287 super.putShort(key, value);
292 * any existing value for the given key.
294 * @param key a String, or null
298 public void putFloat(String key, float value) {
299 super.putFloat(key, value);
304 * any existing value for the given key. Either key or value may be null.
306 * @param key a String, or null
310 public void putCharSequence(String key, CharSequence value) {
311 super.putCharSequence(key, value);
316 * any existing value for the given key. Either key or value may be null.
318 * @param key a String, or null
321 public void putParcelable(String key, Parcelable value) {
323 mMap.put(key, value);
329 * any existing value for the given key. Either key or value may be null.
331 * @param key a String, or null
334 public void putSize(String key, Size value) {
336 mMap.put(key, value);
341 * any existing value for the given key. Either key or value may be null.
343 * @param key a String, or null
346 public void putSizeF(String key, SizeF value) {
348 mMap.put(key, value);
353 * replacing any existing value for the given key. Either key or value may
356 * @param key a String, or null
359 public void putParcelableArray(String key, Parcelable[] value) {
361 mMap.put(key, value);
367 * replacing any existing value for the given key. Either key or value may
370 * @param key a String, or null
373 public void putParcelableArrayList(String key,
376 mMap.put(key, value);
381 public void putParcelableList(String key, List<? extends Parcelable> value) {
383 mMap.put(key, value);
389 * Bundle, replacing any existing value for the given key. Either key
392 * @param key a String, or null
395 public void putSparseParcelableArray(String key,
398 mMap.put(key, value);
404 * any existing value for the given key. Either key or value may be null.
406 * @param key a String, or null
410 public void putIntegerArrayList(String key, ArrayList<Integer> value) {
411 super.putIntegerArrayList(key, value);
416 * any existing value for the given key. Either key or value may be null.
418 * @param key a String, or null
422 public void putStringArrayList(String key, ArrayList<String> value) {
423 super.putStringArrayList(key, value);
428 * any existing value for the given key. Either key or value may be null.
430 * @param key a String, or null
434 public void putCharSequenceArrayList(String key, ArrayList<CharSequence> value) {
435 super.putCharSequenceArrayList(key, value);
440 * any existing value for the given key. Either key or value may be null.
442 * @param key a String, or null
446 public void putSerializable(String key, Serializable value) {
447 super.putSerializable(key, value);
452 * any existing value for the given key. Either key or value may be null.
454 * @param key a String, or null
458 public void putByteArray(String key, byte[] value) {
459 super.putByteArray(key, value);
464 * any existing value for the given key. Either key or value may be null.
466 * @param key a String, or null
470 public void putShortArray(String key, short[] value) {
471 super.putShortArray(key, value);
476 * any existing value for the given key. Either key or value may be null.
478 * @param key a String, or null
482 public void putCharArray(String key, char[] value) {
483 super.putCharArray(key, value);
488 * any existing value for the given key. Either key or value may be null.
490 * @param key a String, or null
494 public void putFloatArray(String key, float[] value) {
495 super.putFloatArray(key, value);
500 * any existing value for the given key. Either key or value may be null.
502 * @param key a String, or null
506 public void putCharSequenceArray(String key, CharSequence[] value) {
507 super.putCharSequenceArray(key, value);
512 * any existing value for the given key. Either key or value may be null.
514 * @param key a String, or null
517 public void putBundle(String key, Bundle value) {
519 mMap.put(key, value);
524 * any existing value for the given key. Either key or value may be null.
533 * @param key a String, or null
536 public void putBinder(String key, IBinder value) {
538 mMap.put(key, value);
543 * any existing value for the given key. Either key or value may be null.
545 * @param key a String, or null
552 public void putIBinder(String key, IBinder value) {
554 mMap.put(key, value);
558 * Returns the value associated with the given key, or (byte) 0 if
559 * no mapping of the desired type exists for the given key.
561 * @param key a String
565 public byte getByte(String key) {
566 return super.getByte(key);
570 * Returns the value associated with the given key, or defaultValue if
571 * no mapping of the desired type exists for the given key.
573 * @param key a String
574 * @param defaultValue Value to return if key does not exist
578 public Byte getByte(String key, byte defaultValue) {
579 return super.getByte(key, defaultValue);
583 * Returns the value associated with the given key, or (char) 0 if
584 * no mapping of the desired type exists for the given key.
586 * @param key a String
590 public char getChar(String key) {
591 return super.getChar(key);
595 * Returns the value associated with the given key, or defaultValue if
596 * no mapping of the desired type exists for the given key.
598 * @param key a String
599 * @param defaultValue Value to return if key does not exist
603 public char getChar(String key, char defaultValue) {
604 return super.getChar(key, defaultValue);
608 * Returns the value associated with the given key, or (short) 0 if
609 * no mapping of the desired type exists for the given key.
611 * @param key a String
615 public short getShort(String key) {
616 return super.getShort(key);
620 * Returns the value associated with the given key, or defaultValue if
621 * no mapping of the desired type exists for the given key.
623 * @param key a String
624 * @param defaultValue Value to return if key does not exist
628 public short getShort(String key, short defaultValue) {
629 return super.getShort(key, defaultValue);
633 * Returns the value associated with the given key, or 0.0f if
634 * no mapping of the desired type exists for the given key.
636 * @param key a String
640 public float getFloat(String key) {
641 return super.getFloat(key);
645 * Returns the value associated with the given key, or defaultValue if
646 * no mapping of the desired type exists for the given key.
648 * @param key a String
649 * @param defaultValue Value to return if key does not exist
653 public float getFloat(String key, float defaultValue) {
654 return super.getFloat(key, defaultValue);
658 * Returns the value associated with the given key, or null if
659 * no mapping of the desired type exists for the given key or a null
660 * value is explicitly associated with the key.
662 * @param key a String, or null
666 public CharSequence getCharSequence(String key) {
667 return super.getCharSequence(key);
671 * Returns the value associated with the given key, or defaultValue if
672 * no mapping of the desired type exists for the given key or if a null
673 * value is explicitly associatd with the given key.
675 * @param key a String, or null
676 * @param defaultValue Value to return if key does not exist or if a null
677 * value is associated with the given key.
678 * @return the CharSequence value associated with the given key, or defaultValue
679 * if no valid CharSequence object is currently mapped to that key.
682 public CharSequence getCharSequence(String key, CharSequence defaultValue) {
683 return super.getCharSequence(key, defaultValue);
687 * Returns the value associated with the given key, or null if
688 * no mapping of the desired type exists for the given key or a null
689 * value is explicitly associated with the key.
691 * @param key a String, or null
694 public Size getSize(String key) {
696 final Object o = mMap.get(key);
700 typeWarning(key, o, "Size", e);
706 * Returns the value associated with the given key, or null if
707 * no mapping of the desired type exists for the given key or a null
708 * value is explicitly associated with the key.
710 * @param key a String, or null
713 public SizeF getSizeF(String key) {
715 final Object o = mMap.get(key);
719 typeWarning(key, o, "SizeF", e);
725 * Returns the value associated with the given key, or null if
726 * no mapping of the desired type exists for the given key or a null
727 * value is explicitly associated with the key.
729 * @param key a String, or null
732 public Bundle getBundle(String key) {
734 Object o = mMap.get(key);
741 typeWarning(key, o, "Bundle", e);
747 * Returns the value associated with the given key, or null if
748 * no mapping of the desired type exists for the given key or a null
749 * value is explicitly associated with the key.
751 * @param key a String, or null
754 public <T extends Parcelable> T getParcelable(String key) {
756 Object o = mMap.get(key);
763 typeWarning(key, o, "Parcelable", e);
769 * Returns the value associated with the given key, or null if
770 * no mapping of the desired type exists for the given key or a null
771 * value is explicitly associated with the key.
773 * @param key a String, or null
776 public Parcelable[] getParcelableArray(String key) {
778 Object o = mMap.get(key);
785 typeWarning(key, o, "Parcelable[]", e);
791 * Returns the value associated with the given key, or null if
792 * no mapping of the desired type exists for the given key or a null
793 * value is explicitly associated with the key.
795 * @param key a String, or null
798 public <T extends Parcelable> ArrayList<T> getParcelableArrayList(String key) {
800 Object o = mMap.get(key);
807 typeWarning(key, o, "ArrayList", e);
813 * Returns the value associated with the given key, or null if
814 * no mapping of the desired type exists for the given key or a null
815 * value is explicitly associated with the key.
817 * @param key a String, or null
821 public <T extends Parcelable> SparseArray<T> getSparseParcelableArray(String key) {
823 Object o = mMap.get(key);
830 typeWarning(key, o, "SparseArray", e);
836 * Returns the value associated with the given key, or null if
837 * no mapping of the desired type exists for the given key or a null
838 * value is explicitly associated with the key.
840 * @param key a String, or null
844 public Serializable getSerializable(String key) {
845 return super.getSerializable(key);
849 * Returns the value associated with the given key, or null if
850 * no mapping of the desired type exists for the given key or a null
851 * value is explicitly associated with the key.
853 * @param key a String, or null
857 public ArrayList<Integer> getIntegerArrayList(String key) {
858 return super.getIntegerArrayList(key);
862 * Returns the value associated with the given key, or null if
863 * no mapping of the desired type exists for the given key or a null
864 * value is explicitly associated with the key.
866 * @param key a String, or null
870 public ArrayList<String> getStringArrayList(String key) {
871 return super.getStringArrayList(key);
875 * Returns the value associated with the given key, or null if
876 * no mapping of the desired type exists for the given key or a null
877 * value is explicitly associated with the key.
879 * @param key a String, or null
883 public ArrayList<CharSequence> getCharSequenceArrayList(String key) {
884 return super.getCharSequenceArrayList(key);
888 * Returns the value associated with the given key, or null if
889 * no mapping of the desired type exists for the given key or a null
890 * value is explicitly associated with the key.
892 * @param key a String, or null
896 public byte[] getByteArray(String key) {
897 return super.getByteArray(key);
901 * Returns the value associated with the given key, or null if
902 * no mapping of the desired type exists for the given key or a null
903 * value is explicitly associated with the key.
905 * @param key a String, or null
909 public short[] getShortArray(String key) {
910 return super.getShortArray(key);
914 * Returns the value associated with the given key, or null if
915 * no mapping of the desired type exists for the given key or a null
916 * value is explicitly associated with the key.
918 * @param key a String, or null
922 public char[] getCharArray(String key) {
923 return super.getCharArray(key);
927 * Returns the value associated with the given key, or null if
928 * no mapping of the desired type exists for the given key or a null
929 * value is explicitly associated with the key.
931 * @param key a String, or null
935 public float[] getFloatArray(String key) {
936 return super.getFloatArray(key);
940 * Returns the value associated with the given key, or null if
941 * no mapping of the desired type exists for the given key or a null
942 * value is explicitly associated with the key.
944 * @param key a String, or null
948 public CharSequence[] getCharSequenceArray(String key) {
949 return super.getCharSequenceArray(key);
953 * Returns the value associated with the given key, or null if
954 * no mapping of the desired type exists for the given key or a null
955 * value is explicitly associated with the key.
957 * @param key a String, or null
960 public IBinder getBinder(String key) {
962 Object o = mMap.get(key);
969 typeWarning(key, o, "IBinder", e);
975 * Returns the value associated with the given key, or null if
976 * no mapping of the desired type exists for the given key or a null
977 * value is explicitly associated with the key.
979 * @param key a String, or null
986 public IBinder getIBinder(String key) {
988 Object o = mMap.get(key);
995 typeWarning(key, o, "IBinder", e);