/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaMetricsTest.java | 119 final Bundle bundle2 = item.toBundle(); in testBigItem() local 121 assertEquals(key, bundle2.getString(MediaMetrics.Item.BUNDLE_KEY)); in testBigItem() 122 assertEquals(1, bundle2.getInt(MediaMetrics.Item.BUNDLE_PID)); in testBigItem() 123 assertEquals(2, bundle2.getInt(MediaMetrics.Item.BUNDLE_UID)); in testBigItem() 124 assertEquals(0, bundle2.getChar(MediaMetrics.Item.BUNDLE_VERSION)); in testBigItem() 125 assertEquals(key.length() + 1, bundle2.getChar(MediaMetrics.Item.BUNDLE_KEY_SIZE)); in testBigItem() 126 assertEquals(0, bundle2.getLong(MediaMetrics.Item.BUNDLE_TIMESTAMP)); // time is reset. in testBigItem() 129 assertEquals(-1, bundle2.getInt(i.toString(), -1)); in testBigItem() 131 assertEquals(100, bundle2.getInt("value")); in testBigItem() 132 assertEquals(1, bundle2.getInt(MediaMetrics.Item.BUNDLE_PROPERTY_COUNT)); in testBigItem()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35676/src/android/security/cts/CVE_2023_35676/com/google/android/apps/miphone/aiai/matchnaker/overview/api/generatedv2/ |
D | SuggestParcelables.java | 78 Bundle bundle2 = bundle.getBundle(context.getString(R.string.mainAction)); in ActionGroup() local 79 if (bundle2 == null) { in ActionGroup() 82 this.mainAction = new Action(bundle2); in ActionGroup() 111 Bundle bundle2 = (Bundle) it.next(); in Entity() local 112 if (bundle2 != null) { in Entity() 113 this.actions.add(new ActionGroup(bundle2)); in Entity()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArrayMapTest.java | 289 private static void compareBundles(Bundle bundle1, Bundle bundle2) { in compareBundles() argument 295 if (bundle2.get(key) == null) { in compareBundles() 298 int value2 = bundle2.getInt(key); in compareBundles() 303 Set<String> keySet2 = bundle2.keySet(); in compareBundles() 311 int value2 = bundle2.getInt(key); in compareBundles() 341 private static void dump(Bundle bundle1, Bundle bundle2) { in dump() argument 347 Log.e("test", "Second Bundle of " + bundle2.size() + " entries:"); in dump() 348 Set<String> keys2 = bundle2.keySet(); in dump() 350 Log.e("test", " " + key + " -> " + bundle2.get(key)); in dump() 405 Bundle bundle2 = parcel.readBundle(); in testBasicArrayMap() [all …]
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | InstallAppMetadataTest.kt | 229 private fun assertBundleAreEqual(bundle1: PersistableBundle, bundle2: PersistableBundle) { in assertBundleAreEqual() 231 assertThat(bundle2).isNotNull() in assertBundleAreEqual() 233 assertThat(bundle2.size()).isEqualTo(1) in assertBundleAreEqual() 234 assertThat(bundle2.getString(TEST_FIELD)).isEqualTo(bundle1.getString(TEST_FIELD)) in assertBundleAreEqual()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/util/ |
D | SerializableParcelWrapperTest.java | 97 Bundle bundle2 = new Bundle(); in equals_areNotEqual_returnsFalse() local 103 = new SerializableParcelWrapper<>(bundle2); in equals_areNotEqual_returnsFalse()
|
/cts/tests/tests/binder_ndk/libbinder_ndk_test/test_package/ |
D | Foo.aidl | 44 @nullable PersistableBundle bundle2;
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/ |
D | BundleUtils.java | 117 Bundle bundle2 = (Bundle) bundleArray[1]; in assertEqualToBundle() local 118 assertStringKey(bundle2, "bundle_array_string2", "bundle_array_string2"); in assertEqualToBundle()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelTest.java | 460 Bundle bundle2; in testReadValue() local 464 bundle2 = (Bundle) p.readValue(mcl); in testReadValue() 465 assertNotNull(bundle2); in testReadValue() 466 assertEquals(true, bundle2.getBoolean("boolean")); in testReadValue() 467 assertEquals(Integer.MAX_VALUE, bundle2.getInt("int")); in testReadValue() 468 assertEquals("String", bundle2.getString("string")); in testReadValue() 3060 Bundle bundle2; in testReadBundle() local 3067 bundle2 = p.readBundle(); in testReadBundle() 3068 assertNull(bundle2); in testReadBundle() 3072 bundle2 = null; in testReadBundle() [all …]
|
D | BundleTest.java | 580 final Bundle bundle2 = new Bundle(); in testGetParcelableArray() local 582 bundle1, bundle2 in testGetParcelableArray() 587 assertTrue(bundle2.equals(parcelableArray[1])); in testGetParcelableArray() 592 assertBundleEquals(bundle2, (Bundle) parcelableArray[1]); in testGetParcelableArray() 633 final Bundle bundle2 = new Bundle(); in testGetParcelableArrayList() local 635 parcelableArrayList.add(bundle2); in testGetParcelableArrayList() 640 assertTrue(bundle2.equals(ret.get(1))); in testGetParcelableArrayList() 645 assertBundleEquals(bundle2, (Bundle) ret.get(1)); in testGetParcelableArrayList()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | ProvisioningTest.kt | 1698 private fun assertBundlesEqual(bundle1: BaseBundle?, bundle2: BaseBundle?) { in <lambda>() 1701 .that(bundle2).isNotNull() in <lambda>() 1703 .that(bundle1.keySet().size).isEqualTo(bundle2!!.keySet().size) in <lambda>() 1707 .that(bundle2.containsKey(key)).isTrue() in <lambda>() 1709 .that(bundle2[key]).isInstanceOf(PersistableBundle::class.java) in <lambda>() 1712 bundle2[key] as PersistableBundle? in <lambda>() 1717 .isEqualTo(bundle2[key]) in <lambda>() 1721 Truth.assertWithMessage("Intent bundles are not equal").that(bundle2).isNull() in <lambda>()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerFgsBgStartTest.java | 236 final Bundle bundle2 = new Bundle(); in testFgsLocationStartFromBG() local 237 bundle2.putInt(LocalForegroundServiceLocation.EXTRA_FOREGROUND_SERVICE_TYPE, in testFgsLocationStartFromBG() 264 PACKAGE_NAME_APP1, PACKAGE_NAME_APP1, 0, bundle2); in testFgsLocationStartFromBG()
|