/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | PersistableBundleUtilsTest.java | 59 PersistableBundle bundle1 = createTestBundle(); in testHashCode() local 62 PersistableBundleUtils.getHashCode(bundle1), in testHashCode() 72 PersistableBundle bundle1 = createNestedTestBundle(10); in testHashCode_nested() local 75 PersistableBundleUtils.getHashCode(bundle1), in testHashCode_nested() 82 PersistableBundle bundle1 = createTestBundle(); in testHashCode_different() local 86 PersistableBundleUtils.getHashCode(bundle1), in testHashCode_different() 93 PersistableBundle bundle1 = createTestBundle(); in testEquality() local 95 assertTrue(PersistableBundleUtils.isEqual(bundle1, bundle2)); in testEquality() 117 PersistableBundle bundle1 = createTestBundle(); in testEquality_nullField() local 119 bundle1.putString(EXTRA_FIELD_KEY, null); in testEquality_nullField() [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() 134 Set<String> keys = bundle1.keySet(); in bundleEquals() 136 Object value1 = bundle1.get(key); in bundleEquals() 224 public static void assertBundlesEqual(BaseBundle bundle1, BaseBundle bundle2) { in assertBundlesEqual() argument 225 if (bundle1 != null) { in assertBundlesEqual() 226 assertWithMessage("Intent bundles are not equal, " + bundle1 + " " + bundle2) in assertBundlesEqual() 228 assertWithMessage("Intent bundles are not equal, " + bundle1 + " " + bundle2) in assertBundlesEqual() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/model/ |
D | CredentialModelTest.kt | 82 bundle1: Bundle, bundle2: Bundle, in checkBundleLongValue() 85 if (!bundle1.containsKey(key)) { in checkBundleLongValue() 88 val value1 = bundle1.getInt(key) in checkBundleLongValue() 97 bundle1: Bundle, bundle2: Bundle, in checkBundleIntValue() 100 if (!bundle1.containsKey(key)) { in checkBundleIntValue() 103 val value1 = bundle1.getLong(key) in checkBundleIntValue() 112 bundle1: Bundle, bundle2: Bundle, in checkBundleByteArrayValue() 115 if (!bundle1.containsKey(key)) { in checkBundleByteArrayValue() 118 val value1 = bundle1.getByteArray(key) in checkBundleByteArrayValue()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | ExtraSettingsLoaderTest.java | 132 Bundle bundle1 = new Bundle(); in testLoadPreference_sortPreferences_byMetadata() local 133 bundle1.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE1); in testLoadPreference_sortPreferences_byMetadata() 134 bundle1.putString(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_sortPreferences_byMetadata() 135 bundle1.putInt(META_DATA_KEY_ORDER, 1); in testLoadPreference_sortPreferences_byMetadata() 138 bundle1, /* isSystem= */ true); in testLoadPreference_sortPreferences_byMetadata() 164 Bundle bundle1 = new Bundle(); in testLoadPreference_sortPreferences_byPackageName() local 165 bundle1.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE1); in testLoadPreference_sortPreferences_byPackageName() 166 bundle1.putString(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_sortPreferences_byPackageName() 169 bundle1, /* isSystem= */ true); in testLoadPreference_sortPreferences_byPackageName() 194 Bundle bundle1 = new Bundle(); in testLoadPreference_sortPreferences_prioritizeMetadata() local [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | DisclaimersParserImplTest.java | 145 Bundle bundle1 = new Bundle(); in testThreeParsing() local 146 bundle1.putString(EXTRA_PROVISIONING_DISCLAIMER_HEADER, DISCLAIMER_HEADER_1); in testThreeParsing() 147 bundle1.putParcelable(EXTRA_PROVISIONING_DISCLAIMER_CONTENT, DISCLAIMER_URI_1); 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 | 194 PersistableBundle bundle1 = new PersistableBundle(); in pushBundleListToLuaTable_makesArrayOfTables() local 196 bundle1.putInt(INT_KEY, INT_VALUE); in pushBundleListToLuaTable_makesArrayOfTables() 199 bundleList.add(bundle1); 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() 734 Set<String> keys = bundle1.keySet(); in bundleEquals() 736 Object value1 = bundle1.get(key); in bundleEquals()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/ |
D | StatsPublisherTest.java | 455 PersistableBundle bundle1 = mBundleCaptor.getValue(); in testPullStatsdReport_correctlyPushesBundlesToSubscribers() local 456 assertThat(bundle1.getLongArray("stats.elapsed_timestamp_nanos")) in testPullStatsdReport_correctlyPushesBundlesToSubscribers() 458 assertThat(bundle1.getIntArray("stats.uid")).asList().containsExactly(1000); in testPullStatsdReport_correctlyPushesBundlesToSubscribers() 459 assertThat(Arrays.asList(bundle1.getStringArray("stats.activity_name"))) in testPullStatsdReport_correctlyPushesBundlesToSubscribers() 461 assertThat(bundle1.getLongArray("stats.rss_in_bytes")).asList().containsExactly(1234L); in testPullStatsdReport_correctlyPushesBundlesToSubscribers()
|