MCPcopy Create free account
hub / github.com/dariuszseweryn/RxAndroidBle / Bundle

Class Bundle

rxandroidble/src/test/java/android/os/Bundle.java:12–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10import java.util.Map;
11import java.util.Set;
12@SuppressWarnings({"unchecked"})
13/**
14 * Must have implementation
15 */
16public final class Bundle implements Cloneable, Parcelable {
17 static final int FLAG_HAS_FDS = 1 << 8;
18 static final int FLAG_HAS_FDS_KNOWN = 1 << 9;
19 static final int FLAG_ALLOW_FDS = 1 << 10;
20 public static final Bundle EMPTY;
21 private Map<String, Object> mMap = new HashMap<>();
22 public static final Bundle STRIPPED;
23 static {
24 EMPTY = new Bundle();
25 EMPTY.mMap = new ArrayMap<>();
26 STRIPPED = new Bundle();
27 STRIPPED.putInt("STRIPPED", 1);
28 }
29 public Bundle() {
30 }
31 public Bundle(Bundle bundle) {
32 mMap = bundle.mMap;
33 }
34 public Object clone() {
35 return new Bundle(this);
36 }
37 public boolean containsKey(String key) {
38 return mMap.containsKey(key);
39 }
40 public void clear() {
41 mMap.clear();
42 }
43 public Set<String> keySet() {
44 return mMap.keySet();
45 }
46 public int size() {
47 return mMap.size();
48 }
49 public void remove(String key) {
50 mMap.remove(key);
51 }
52 public void putAll(Bundle bundle) {
53 mMap.putAll(bundle.mMap);
54 }
55 public int getSize() {
56 return size();
57 }
58 public boolean hasFileDescriptors() {
59 return false;
60 }
61 public void putByte(String key, byte value) {
62 mMap.put(key, value);
63 }
64 public void putBoolean(String key, boolean value) {
65 mMap.put(key, value);
66 }
67 public void putDouble(String key, double value) {
68 mMap.put(key, value);
69 }

Callers

nothing calls this directly

Calls 1

putIntMethod · 0.45

Tested by

no test coverage detected