/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | OnDevicePersonalizationFrameworkClassesTest.java | 86 ExecuteOutputParcel result2 = ExecuteOutputParcel.CREATOR.createFromParcel(parcel); in testExecuteOutput() local 89 5, result2.getRequestLogRecord().getRows().get(0).getAsInteger("a").intValue()); in testExecuteOutput() 90 assertEquals("abc", result2.getRenderingConfig().getKeys().get(0)); in testExecuteOutput() 91 assertEquals(1, result2.getEventLogRecords().get(0).getType()); in testExecuteOutput() 127 RenderOutputParcel result2 = RenderOutputParcel.CREATOR.createFromParcel(parcel); in testRenderOutput() local 129 assertEquals("abc", result2.getContent()); in testRenderOutput() 145 DownloadCompletedOutputParcel result2 = in teetDownloadCompletedOutput() local 148 assertEquals("abc", result2.getRetainedKeys().get(0)); in teetDownloadCompletedOutput() 149 assertEquals("def", result2.getRetainedKeys().get(1)); in teetDownloadCompletedOutput() 201 EventOutputParcel result2 = EventOutputParcel.CREATOR.createFromParcel(parcel); in testEventOutput() local [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/ |
D | EncryptionKeyTest.java | 95 final EncryptionKey result2 = createKeyCommitment(ENROLLMENT_ID1); in testHashCode_equals() local 97 final Set<EncryptionKey> resultSet2 = Set.of(result2); in testHashCode_equals() 99 assertEquals(result1.hashCode(), result2.hashCode()); in testHashCode_equals() 100 assertEquals(result1, result2); in testHashCode_equals() 108 final EncryptionKey result2 = createKeyCommitment(ENROLLMENT_ID2); in testHashCode_notEquals() local 110 final Set<EncryptionKey> resultSet2 = Set.of(result2); in testHashCode_notEquals() 112 assertNotEquals(result1.hashCode(), result2.hashCode()); in testHashCode_notEquals() 113 assertNotEquals(result1, result2); in testHashCode_notEquals()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchUxStatesDaoTest.java | 184 boolean result2 = in isEntryPointEnabledTest_trueBit() 187 assertThat(result2).isTrue(); in isEntryPointEnabledTest_trueBit() 225 boolean result2 = in isAdultAccountTest_trueBit() 228 assertThat(result2).isTrue(); in isAdultAccountTest_trueBit() 266 boolean result2 = in isU18AccountTest_trueBit() 269 assertThat(result2).isTrue(); in isU18AccountTest_trueBit() 307 boolean result2 = in isAdIdEnabledTest_trueBit() 310 assertThat(result2).isTrue(); in isAdIdEnabledTest_trueBit() 348 boolean result2 = in wasU18NotificationDisplayedTest_trueBit() 351 assertThat(result2).isTrue(); in wasU18NotificationDisplayedTest_trueBit() [all …]
|
D | AppSearchNotificationDaoTest.java | 155 boolean result2 = in testWasNotificationDisplayed() 158 assertThat(result2).isTrue(); in testWasNotificationDisplayed() 195 boolean result2 = in testWasGaUxNotificationDisplayed() 198 assertThat(result2).isTrue(); in testWasGaUxNotificationDisplayed()
|
D | AppSearchConsentDaoTest.java | 156 boolean result2 = in testReadConsentData() 159 assertThat(result2).isTrue(); in testReadConsentData()
|
D | AppSearchAppConsentDaoTest.java | 178 AppSearchAppConsentDao result2 = in testReadConsentData() local 185 assertThat(result2).isEqualTo(dao); in testReadConsentData()
|
D | AppSearchConsentWorkerTest.java | 138 boolean result2 = AppSearchConsentWorker.getInstance().getConsent(API_TYPE); in testGetConsent() 139 assertThat(result2).isTrue(); in testGetConsent()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/ |
D | OemCarAudioFocusResultUnitTest.java | 147 OemCarAudioFocusResult result2 = in equals_withDuplicate() local 153 expectWithMessage("Duplicate audio focus result").that(result1).isEqualTo(result2); in equals_withDuplicate() 174 OemCarAudioFocusResult result2 = in equals_duplicate_withCarAudioFadeConfigMap_whenFeatureEnabled() local 183 .that(result1).isEqualTo(result2); in equals_duplicate_withCarAudioFadeConfigMap_whenFeatureEnabled() 193 OemCarAudioFocusResult result2 = in equals_withDifferentFocusEntry() local 200 .that(result1).isNotEqualTo(result2); in equals_withDifferentFocusEntry() 210 OemCarAudioFocusResult result2 = in hashCode_withDuplicate() local 217 .that(result1.hashCode()).isEqualTo(result2.hashCode()); in hashCode_withDuplicate() 238 OemCarAudioFocusResult result2 = in hashCode_duplicate_withCarAudioFadeConfigMap_whenFeatureEnabled_equals() local 247 .that(result1.hashCode()).isEqualTo(result2.hashCode()); in hashCode_duplicate_withCarAudioFadeConfigMap_whenFeatureEnabled_equals()
|
D | CarAudioFadeConfigurationUnitTest.java | 118 CarAudioFadeConfiguration result2 = in equals_withDifferentFadeManagerConfiguration() local 123 .isNotEqualTo(result2); in equals_withDifferentFadeManagerConfiguration()
|
/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/ |
D | LargeParcelableTest.cpp | 239 auto result2 = LargeParcelableBase::stableLargeParcelableToParcelable(intermediate); in testParcelableToStableLargeParcelableBackToParcelable() local 241 ASSERT_TRUE(result2.ok()) << result2.error(); in testParcelableToStableLargeParcelableBackToParcelable() 243 const TestStableLargeParcelable* out = result2.value().getObject(); in testParcelableToStableLargeParcelableBackToParcelable() 386 auto result2 = LargeParcelableBase::stableLargeParcelableToParcelable(intermediate); in testParcelableVectorToStableLargeParcelableBackToParcelableVector() local 388 ASSERT_TRUE(result2.ok()) << result2.error(); in testParcelableVectorToStableLargeParcelableBackToParcelableVector() 390 checkTestStableParcelableVector(&(result2.value().getObject()->payload), dataSize); in testParcelableVectorToStableLargeParcelableBackToParcelableVector()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/ |
D | ContactAggregatorHelperTest.java | 140 Set<Long> result2 = new HashSet<>(); in testFindConnectedRawContacts() local 141 result2.addAll(Arrays.asList(4l, 5l)); in testFindConnectedRawContacts() 144 expected.addAll(Arrays.asList(result1, result2, result3)); in testFindConnectedRawContacts()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/ |
D | BpfMapTest.java | 265 final Tether6Value result2 = mTestMap.getValue(key); in testUpdateEntry() local 266 assertEquals(value2, result2); in testUpdateEntry() 288 final Tether6Value result2 = mTestMap.getValue(key); in testInsertOrReplaceEntry() local 289 assertEquals(value2, result2); in testInsertOrReplaceEntry() 318 final Tether6Value result2 = mTestMap.getValue(key); in testInsertReplaceEntry() local 319 assertEquals(value2, result2); in testInsertReplaceEntry()
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/ |
D | IResultSyncCallbackTestCase.java | 66 R result2 = newResult(); in testNewResult() local 67 expect.withMessage("2nd result").that(result2).isNotNull(); in testNewResult() 68 expect.withMessage("2nd result").that(result2).isNotSameInstanceAs(result1); in testNewResult()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | BpfNetworkStatsTest.cpp | 228 StatsValue result2 = {}; in TEST_F() local 229 ASSERT_EQ(0, bpfGetUidStatsInternal(TEST_UID2, &result2, mFakeAppUidStatsMap)); in TEST_F() 230 expectStatsEqual(value2, result2); in TEST_F() 266 StatsValue result2 = {}; in TEST_F() local 268 bpfGetIfaceStatsInternal(IFACE_NAME2, &result2, mFakeIfaceStatsMap, mIfIndex2Name)); in TEST_F() 269 expectStatsEqual(value2, result2); in TEST_F()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/regionalpreferences/ |
D | RegionalPreferencesDataUtilsTest.java | 113 String result2 = Locale.getDefault(Locale.Category.FORMAT) in savePreference_saveCalendarIsDangi_success() local 116 assertEquals(LocalePreferences.CalendarType.DANGI, result2); in savePreference_saveCalendarIsDangi_success()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | ComboPreferences.java | 146 boolean result2 = mEditorLocal.commit(); in commit() 147 return result1 && result2; in commit()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | TaskKeyByLastActiveTimeCacheTest.java | 191 ThumbnailData result2 = cache.getAndInvalidateIfModified(keyWithNewActiveTime); in getAndInvalidateIfModified() local 193 assertNull(result2); in getAndInvalidateIfModified()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 982 Pair<List<RangingResult>, List<RangingResult>> result2 = in testRangingTimeout() local 1011 .onRangingResults(mIntCaptor.getValue(), result2.second); in testRangingTimeout() 1015 verify(mockCallback).onRangingResults(result2.second); in testRangingTimeout() 1021 verify(mockMetrics).recordResult(eq(request2), eq(result2.second), anyInt()); in testRangingTimeout() 1215 Pair<List<RangingResult>, List<RangingResult>> result2 = in runTestRangingThrottleBackgroundWorkSources() local 1254 .onRangingResults(mIntCaptor.getValue(), result2.second); in runTestRangingThrottleBackgroundWorkSources() 1257 cbInorder.verify(mockCallback).onRangingResults(result2.second); in runTestRangingThrottleBackgroundWorkSources() 1273 verify(mockMetrics).recordResult(eq(request2), eq(result2.second), anyInt()); in runTestRangingThrottleBackgroundWorkSources()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregateCryptoConverterTest.java | 92 String result2 = in testEncrypt_payloadPadding_sameSize() local 95 assertEquals(result1.length(), result2.length()); in testEncrypt_payloadPadding_sameSize()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | AdSelectionEntryDaoTest.java | 2411 DBAdSelectionResult result2 = getDBAdSelectionResultForCaAllFieldsWithId(AD_SELECTION_ID_2); in test_getWinningBidAndUriForIdsUnifiedTables() local 2412 mAdSelectionEntryDao.insertDBAdSelectionResult(result2); in test_getWinningBidAndUriForIdsUnifiedTables() 2426 result2.getWinningAdBid(), in test_getWinningBidAndUriForIdsUnifiedTables() 2427 result2.getWinningAdRenderUri()); in test_getWinningBidAndUriForIdsUnifiedTables() 2439 DBAdSelectionResult result2 = getDBAdSelectionResultForCaAllFieldsWithId(AD_SELECTION_ID_2); in test_getWinningBidAndUriForIdsUnifiedTablesOnlyGetsSpecifiedIds() local 2440 mAdSelectionEntryDao.insertDBAdSelectionResult(result2); in test_getWinningBidAndUriForIdsUnifiedTablesOnlyGetsSpecifiedIds()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestValidation.cpp | 1547 const int result2 = second.get(); in testConcurrentExecution() local 1553 EXPECT_TRUE(result2 == ANEURALNETWORKS_BAD_STATE || in testConcurrentExecution() 1554 result2 == ANEURALNETWORKS_NO_ERROR); in testConcurrentExecution() 1555 EXPECT_TRUE(result1 == ANEURALNETWORKS_NO_ERROR || result2 == ANEURALNETWORKS_NO_ERROR); in testConcurrentExecution() 1560 result2 == ANEURALNETWORKS_BAD_STATE); in testConcurrentExecution() 2656 const int result2 = second.get(); in TEST_F() local 2658 EXPECT_TRUE(result2 == ANEURALNETWORKS_BAD_STATE || result2 == ANEURALNETWORKS_NO_ERROR); in TEST_F() 2659 EXPECT_TRUE(result1 == ANEURALNETWORKS_NO_ERROR || result2 == ANEURALNETWORKS_NO_ERROR); in TEST_F()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | PropertyHalServiceTest.java | 792 GetSetValueResult result2 = mAsyncResultCaptor.getValue().getList().get(1); in testGetCarPropertyValuesAsync_multipleResultsSameCall() local 795 assertThat(result2.getRequestId()).isEqualTo(REQUEST_ID_2); in testGetCarPropertyValuesAsync_multipleResultsSameCall() 796 assertThat(result2.getCarPropertyValue().getValue()).isEqualTo(SAMPLE_RATE_HZ); in testGetCarPropertyValuesAsync_multipleResultsSameCall() 993 GetSetValueResult result2 = mAsyncResultCaptor.getValue().getList().get(1); in testSetCarPropertyValuesAsync_noWaitForPropertyUpdateWithMultipleAreaRequests() local 994 assertThat(result2.getRequestId()).isEqualTo(REQUEST_ID_5); in testSetCarPropertyValuesAsync_noWaitForPropertyUpdateWithMultipleAreaRequests() 995 assertThat(result2.getCarPropertyErrorCodes().getCarPropertyManagerErrorCode()) in testSetCarPropertyValuesAsync_noWaitForPropertyUpdateWithMultipleAreaRequests() 1000 assertThat(result2.getUpdateTimestampNanos()).isGreaterThan(0); in testSetCarPropertyValuesAsync_noWaitForPropertyUpdateWithMultipleAreaRequests()
|
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | NavigatorTest.java | 1489 AccessibilityNodeInfo result2 = mNavigator.getAncestorFocusArea(button2); in testGetAncestorFocusArea() local 1490 assertThat(result2).isEqualTo(focusArea); in testGetAncestorFocusArea() 1496 Utils.recycleNodes(result1, result2, result3); in testGetAncestorFocusArea()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
D | MeasurementDaoTest.java | 3381 Pair<List<Uri>, List<Uri>> result2 = in getSourceDestinations_returnsExpected() local 3390 .equals(ImmutableMultiset.copyOf(result2.first))); in getSourceDestinations_returnsExpected() 3394 .equals(ImmutableMultiset.copyOf(result2.second))); in getSourceDestinations_returnsExpected() 4154 List<Source> result2 = runFunc.apply(trigger2MatchSource127); in testGetMatchingActiveSources() local 4155 assertEquals(2, result2.size()); in testGetMatchingActiveSources() 4156 assertEquals(sApp2.getId(), result2.get(0).getId()); in testGetMatchingActiveSources() 4157 assertEquals(sApp3.getId(), result2.get(1).getId()); in testGetMatchingActiveSources() 4573 Optional<Source> result2 = runFunc.apply(trigger2MatchSource4); in testGetMatchingActiveDelayedSources() local 4574 assertEquals(sApp4.getId(), result2.get().getId()); in testGetMatchingActiveDelayedSources()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 1346 addrinfo* result2 = nullptr; in TEST_F() local 1347 EXPECT_EQ(EAI_NODATA, getaddrinfo(host_name2, nullptr, &hints, &result2)); in TEST_F() 1348 EXPECT_EQ(nullptr, result2); in TEST_F()
|