android.os.BaseBundle Java Examples
The following examples show how to use
android.os.BaseBundle.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LaunchActivityItem.java From AndroidComponentPlugin with Apache License 2.0 | 6 votes |
private static boolean areBundlesEqual(BaseBundle extras, BaseBundle newExtras) { if (extras == null || newExtras == null) { return extras == newExtras; } if (extras.size() != newExtras.size()) { return false; } for (String key : extras.keySet()) { if (key != null) { final Object value = extras.get(key); final Object newValue = newExtras.get(key); if (!Objects.equals(value, newValue)) { return false; } } } return true; }
Example #2
Source File: LaunchActivityItem.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
private static boolean areBundlesEqual(BaseBundle extras, BaseBundle newExtras) { if (extras == null || newExtras == null) { return extras == newExtras; } if (extras.size() != newExtras.size()) { return false; } for (String key : extras.keySet()) { if (key != null) { final Object value = extras.get(key); final Object newValue = newExtras.get(key); if (!Objects.equals(value, newValue)) { return false; } } } return true; }
Example #3
Source File: ANSLog.java From ans-android-sdk with GNU General Public License v3.0 | 5 votes |
@TargetApi(21) private static String parseString(BaseBundle bundle) { if (bundle != null) { JSONObject bun = new JSONObject(); for (String key : bundle.keySet()) { try { bun.put(key, objectToString(bundle.get(key))); } catch (Throwable ignore) { ExceptionUtil.exceptionThrow(ignore); } } return format(bun); } return null; }
Example #4
Source File: L.java From FloatWindow with Apache License 2.0 | 5 votes |
@TargetApi(21) private static String parseString(BaseBundle bundle) { if (bundle != null) { JSONObject bun = new JSONObject(); for (String key : bundle.keySet()) { try { bun.put(key, objectToString(bundle.get(key))); } catch (Throwable e) { e.printStackTrace(); } } return format(bun); } return null; }
Example #5
Source File: JobInfo.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
private static boolean kindofEqualsBundle(BaseBundle a, BaseBundle b) { return (a == b) || (a != null && a.kindofEquals(b)); }