/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | PersistableBundleUtilsTest.java | 60 PersistableBundle bundle2 = createTestBundle(); in testHashCode() local 63 PersistableBundleUtils.getHashCode(bundle2)); in testHashCode() 73 PersistableBundle bundle2 = createNestedTestBundle(10); in testHashCode_nested() local 76 PersistableBundleUtils.getHashCode(bundle2)); in testHashCode_nested() 83 PersistableBundle bundle2 = createTestBundle(); in testHashCode_different() local 84 bundle2.putString(EXTRA_FIELD_KEY, "anotherStringField"); in testHashCode_different() 87 PersistableBundleUtils.getHashCode(bundle2)); in testHashCode_different() 94 PersistableBundle bundle2 = createTestBundle(); in testEquality() local 95 assertTrue(PersistableBundleUtils.isEqual(bundle1, bundle2)); in testEquality() 118 PersistableBundle bundle2 = createTestBundle(); in testEquality_nullField() local [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ |
D | TestUtils.java | 122 public static boolean bundleEquals(BaseBundle bundle1, BaseBundle bundle2) { in bundleEquals() argument 124 if (bundle1 == null && bundle2 == null) { in bundleEquals() 128 if (bundle1 == null || bundle2 == null) { in bundleEquals() 131 if (bundle1.size() != bundle2.size()) { in bundleEquals() 137 Object value2 = bundle2.get(key); in bundleEquals() 224 public static void assertBundlesEqual(BaseBundle bundle1, BaseBundle bundle2) { in assertBundlesEqual() argument 226 assertWithMessage("Intent bundles are not equal, " + bundle1 + " " + bundle2) in assertBundlesEqual() 227 .that(bundle2).isNotNull(); in assertBundlesEqual() 228 assertWithMessage("Intent bundles are not equal, " + bundle1 + " " + bundle2) in assertBundlesEqual() 229 .that(bundle1.keySet().size()).isEqualTo(bundle2.keySet().size()); in assertBundlesEqual() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | ExtraSettingsLoaderTest.java | 140 Bundle bundle2 = new Bundle(); in testLoadPreference_sortPreferences_byMetadata() local 141 bundle2.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE2); in testLoadPreference_sortPreferences_byMetadata() 142 bundle2.putString(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_sortPreferences_byMetadata() 143 bundle2.putInt(META_DATA_KEY_ORDER, 2); in testLoadPreference_sortPreferences_byMetadata() 146 bundle2, /* isSystem= */ true); in testLoadPreference_sortPreferences_byMetadata() 171 Bundle bundle2 = new Bundle(); in testLoadPreference_sortPreferences_byPackageName() local 172 bundle2.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE2); in testLoadPreference_sortPreferences_byPackageName() 173 bundle2.putString(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_sortPreferences_byPackageName() 176 bundle2, /* isSystem= */ true); in testLoadPreference_sortPreferences_byPackageName() 201 Bundle bundle2 = new Bundle(); in testLoadPreference_sortPreferences_prioritizeMetadata() local [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/model/ |
D | CredentialModelTest.kt | 82 bundle1: Bundle, bundle2: Bundle, in checkBundleLongValue() 89 val value2 = bundle2.getInt(key) in checkBundleLongValue() 97 bundle1: Bundle, bundle2: Bundle, in checkBundleIntValue() 104 val value2 = bundle2.getLong(key) in checkBundleIntValue() 112 bundle1: Bundle, bundle2: Bundle, in checkBundleByteArrayValue() 119 val value2 = bundle2.getByteArray(key) in checkBundleByteArrayValue()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | DisclaimersParserImplTest.java | 148 Bundle bundle2 = new Bundle(); in testThreeParsing() local 149 bundle2.putString(EXTRA_PROVISIONING_DISCLAIMER_HEADER, DISCLAIMER_HEADER_2); in testThreeParsing() 150 bundle2.putParcelable(EXTRA_PROVISIONING_DISCLAIMER_CONTENT, DISCLAIMER_URI_2); in testThreeParsing() 156 new Bundle[] { bundle1, bundle2, bundle3 }); in testThreeParsing()
|
/packages/services/Car/packages/ScriptExecutor/tests/unit/src/com/android/car/scriptexecutortest/unit/ |
D | JniUtilsTest.java | 195 PersistableBundle bundle2 = new PersistableBundle(); in pushBundleListToLuaTable_makesArrayOfTables() local 197 bundle2.putInt(INT_KEY, INT_VALUE_2); in pushBundleListToLuaTable_makesArrayOfTables() 200 bundleList.add(bundle2); in pushBundleListToLuaTable_makesArrayOfTables()
|
/packages/services/Car/service/src/com/android/car/am/ |
D | FixedActivityService.java | 722 private static boolean bundleEquals(BaseBundle bundle1, BaseBundle bundle2) { in bundleEquals() argument 724 if (bundle1 == null && bundle2 == null) { in bundleEquals() 728 if (bundle1 == null || bundle2 == null) { in bundleEquals() 731 if (bundle1.size() != bundle2.size()) { in bundleEquals() 737 Object value2 = bundle2.get(key); in bundleEquals()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/ |
D | StatsPublisherTest.java | 463 PersistableBundle bundle2 = mBundleCaptor.getValue(); in testPullStatsdReport_correctlyPushesBundlesToSubscribers() local 464 assertThat(bundle2.getIntArray("stats.uid")).asList().containsExactly(234); in testPullStatsdReport_correctlyPushesBundlesToSubscribers() 465 assertThat(bundle2.getLongArray("stats.rss_in_bytes")).asList().containsExactly(4567L); in testPullStatsdReport_correctlyPushesBundlesToSubscribers() 466 assertThat(bundle2.getLongArray("stats.elapsed_timestamp_nanos")) in testPullStatsdReport_correctlyPushesBundlesToSubscribers()
|