Home
last modified time | relevance | path

Searched refs:bundle1 (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DInlinePresentationStyleUtilsTest.java49 Bundle bundle1 = new Bundle(); in testBundleEquals_empty() local
52 assertTrue(InlinePresentationStyleUtils.bundleEquals(bundle1, bundle2)); in testBundleEquals_empty()
54 bundle1 = Bundle.EMPTY; in testBundleEquals_empty()
55 assertTrue(InlinePresentationStyleUtils.bundleEquals(bundle1, bundle2)); in testBundleEquals_empty()
58 assertTrue(InlinePresentationStyleUtils.bundleEquals(bundle1, bundle2)); in testBundleEquals_empty()
63 Bundle bundle1 = Bundle.EMPTY; in testBundleEquals_oneIsEmpty() local
66 assertFalse(InlinePresentationStyleUtils.bundleEquals(bundle1, bundle2)); in testBundleEquals_oneIsEmpty()
71 Bundle bundle1 = new Bundle(); in testBundleEquals_nestedBundle_equal() local
74 bundle1.putBundle("KEY_B", bundle11); in testBundleEquals_nestedBundle_equal()
81 assertTrue(InlinePresentationStyleUtils.bundleEquals(bundle1, bundle2)); in testBundleEquals_nestedBundle_equal()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DBundleTest.java185 Bundle bundle1 = new Bundle(); in kindofEquals_bothUnparcelled_same() local
186 bundle1.putString("StringKey", "S"); in kindofEquals_bothUnparcelled_same()
187 bundle1.putInt("IntKey", 2); in kindofEquals_bothUnparcelled_same()
193 assertTrue(BaseBundle.kindofEquals(bundle1, bundle2)); in kindofEquals_bothUnparcelled_same()
198 Bundle bundle1 = new Bundle(); in kindofEquals_bothUnparcelled_different() local
199 bundle1.putString("StringKey", "S"); in kindofEquals_bothUnparcelled_different()
200 bundle1.putInt("IntKey", 2); in kindofEquals_bothUnparcelled_different()
206 assertFalse(BaseBundle.kindofEquals(bundle1, bundle2)); in kindofEquals_bothUnparcelled_different()
211 Bundle bundle1 = new Bundle(); in kindofEquals_bothParcelled_same() local
212 bundle1.putString("StringKey", "S"); in kindofEquals_bothParcelled_same()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DInlinePresentationStyleUtils.java41 public static boolean bundleEquals(@NonNull Bundle bundle1, @NonNull Bundle bundle2) { in bundleEquals() argument
42 if (bundle1 == bundle2) { in bundleEquals()
45 if (bundle1 == null || bundle2 == null) { in bundleEquals()
48 if (bundle1.size() != bundle2.size()) { in bundleEquals()
51 Set<String> keys = bundle1.keySet(); in bundleEquals()
53 Object value1 = bundle1.get(key); in bundleEquals()
/frameworks/base/core/java/android/net/
DScoredNetwork.java200 private boolean bundleEquals(Bundle bundle1, Bundle bundle2) { in bundleEquals() argument
201 if (bundle1 == bundle2) { in bundleEquals()
204 if (bundle1 == null || bundle2 == null) { in bundleEquals()
207 if (bundle1.size() != bundle2.size()) { in bundleEquals()
210 Set<String> keys = bundle1.keySet(); in bundleEquals()
212 Object value1 = bundle1.get(key); in bundleEquals()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java154 Bundle bundle1 = (Bundle) bundle_array[0]; in assertBundle() local
155 assertThat(bundle1.getString("bundle_array_string")) in assertBundle()
157 assertThat(bundle1.getBundle("bundle_array_bundle")).isNotNull(); in assertBundle()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBroadcastRecordTest.java558 final PersistableBundle bundle1 = new PersistableBundle(); in testMatchesDeliveryGroup_withMatchingFilter() local
559 bundle1.putInt(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, 0); in testMatchesDeliveryGroup_withMatchingFilter()
560 bundle1.putInt(SubscriptionManager.EXTRA_SLOT_INDEX, 1); in testMatchesDeliveryGroup_withMatchingFilter()
561 filter1.setExtras(bundle1); in testMatchesDeliveryGroup_withMatchingFilter()