/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/ |
D | AndroidSdkLevelTest.java | 38 expect.withMessage("level 10_000").that(forDev).isSameInstanceAs(DEV); in testFactoryMethod() 41 expect.withMessage("level 108").that(forFutureVersion).isSameInstanceAs(DEV); in testFactoryMethod() 44 expect.withMessage("level 30").that(for30).isSameInstanceAs(R); in testFactoryMethod() 47 expect.withMessage("level 31").that(for31).isSameInstanceAs(S); in testFactoryMethod() 50 expect.withMessage("level 32").that(for32).isSameInstanceAs(S2); in testFactoryMethod() 53 expect.withMessage("level 33").that(for33).isSameInstanceAs(T); in testFactoryMethod() 56 expect.withMessage("level 34").that(for34).isSameInstanceAs(U); in testFactoryMethod() 59 expect.withMessage("level 35").that(for35).isSameInstanceAs(V); in testFactoryMethod() 63 expect.that(e).hasMessageThat().contains("29"); in testFactoryMethod() 68 expect.withMessage("level of ANY").that(ANY.getLevel()).isLessThan(R.getLevel()); in testGetLevel() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/extdata/ |
D | AdServicesExtDataStorageServiceManagerTest.java | 99 @Rule public final Expect expect = Expect.create(); field in AdServicesExtDataStorageServiceManagerTest 137 expect.that(result.getIsMeasurementConsented()).isEqualTo(BOOLEAN_FALSE); in testGetAdServicesExtData_onResultSet_returnsParams() 138 expect.that(result.getMeasurementRollbackApexVersion()).isEqualTo(NO_APEX_VALUE); in testGetAdServicesExtData_onResultSet_returnsParams() 139 expect.that(result.getIsU18Account()).isEqualTo(BOOLEAN_TRUE); in testGetAdServicesExtData_onResultSet_returnsParams() 140 expect.that(result.getIsAdultAccount()).isEqualTo(BOOLEAN_FALSE); in testGetAdServicesExtData_onResultSet_returnsParams() 141 expect.that(result.getManualInteractionWithConsentStatus()) in testGetAdServicesExtData_onResultSet_returnsParams() 143 expect.that(result.getIsNotificationDisplayed()).isEqualTo(BOOLEAN_TRUE); in testGetAdServicesExtData_onResultSet_returnsParams() 160 expect.that(result.getIsMeasurementConsented()).isEqualTo(BOOLEAN_UNKNOWN); in testGetAdServicesExtData_onErrorSet_returnsDefaultParams() 161 expect.that(result.getMeasurementRollbackApexVersion()).isEqualTo(NO_APEX_VALUE); in testGetAdServicesExtData_onErrorSet_returnsDefaultParams() 162 expect.that(result.getIsU18Account()).isEqualTo(BOOLEAN_UNKNOWN); in testGetAdServicesExtData_onErrorSet_returnsDefaultParams() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | AdFilteringProcessAdSelectionReportedStatsTest.java | 71 expect.that(stats.getLatencyInMillisOfAllAdFiltering()) in testBuildAdFilteringProcessAdSelectionReportedStats() 73 expect.that(stats.getLatencyInMillisOfAppInstallFiltering()) in testBuildAdFilteringProcessAdSelectionReportedStats() 75 expect.that(stats.getLatencyInMillisOfFcapFilters()) in testBuildAdFilteringProcessAdSelectionReportedStats() 77 expect.that(stats.getStatusCode()).isEqualTo(STATUS_CODE); in testBuildAdFilteringProcessAdSelectionReportedStats() 78 expect.that(stats.getNumOfAdsFilteredOutOfBidding()) in testBuildAdFilteringProcessAdSelectionReportedStats() 80 expect.that(stats.getNumOfCustomAudiencesFilteredOutOfBidding()) in testBuildAdFilteringProcessAdSelectionReportedStats() 82 expect.that(stats.getTotalNumOfAdsBeforeFiltering()) in testBuildAdFilteringProcessAdSelectionReportedStats() 84 expect.that(stats.getTotalNumOfCustomAudiencesBeforeFiltering()) in testBuildAdFilteringProcessAdSelectionReportedStats() 86 expect.that(stats.getNumOfPackageInAppInstallFilters()) in testBuildAdFilteringProcessAdSelectionReportedStats() 88 expect.that(stats.getNumOfDbOperations()).isEqualTo(NUM_OF_DB_OPERATIONS); in testBuildAdFilteringProcessAdSelectionReportedStats() [all …]
|
D | AdServicesLoggerImplTest.java | 219 expect.that(loggedStats.getIsRemarketingAdsWon()).isEqualTo(IS_RMKT_ADS_WON); in testLogRunAdSelectionProcessReportedStats() 220 expect.that(loggedStats.getDBAdSelectionSizeInBytes()) in testLogRunAdSelectionProcessReportedStats() 222 expect.that(loggedStats.getPersistAdSelectionLatencyInMillis()) in testLogRunAdSelectionProcessReportedStats() 224 expect.that(loggedStats.getRunAdSelectionResultCode()) in testLogRunAdSelectionProcessReportedStats() 226 expect.that(loggedStats.getRunAdSelectionLatencyInMillis()) in testLogRunAdSelectionProcessReportedStats() 228 expect.that(loggedStats.getRunAdSelectionResultCode()) in testLogRunAdSelectionProcessReportedStats() 267 expect.that(loggedStats.getGetAdSelectionLogicLatencyInMillis()) in testLogRunAdScoringProcessReportedStats() 269 expect.that(loggedStats.getGetAdSelectionLogicResultCode()) in testLogRunAdScoringProcessReportedStats() 271 expect.that(loggedStats.getGetAdSelectionLogicScriptType()) in testLogRunAdScoringProcessReportedStats() 273 expect.that(loggedStats.getFetchedAdSelectionLogicScriptSizeInBytes()) in testLogRunAdScoringProcessReportedStats() [all …]
|
D | ReportImpressionExecutionLoggerImplTest.java | 54 expect.that(stats.getReportWinBuyerAdditionalSignalsContainedAdCost()).isEqualTo(true); in testReportImpressionStatsLogger_successLogging() 55 expect.that(stats.getReportWinBuyerAdditionalSignalsContainedDataVersion()).isEqualTo(true); in testReportImpressionStatsLogger_successLogging() 56 expect.that(stats.getReportResultSellerAdditionalSignalsContainedDataVersion()) in testReportImpressionStatsLogger_successLogging() 58 expect.that(stats.getReportWinJsScriptResultCode()).isEqualTo(1); in testReportImpressionStatsLogger_successLogging() 59 expect.that(stats.getReportResultJsScriptResultCode()).isEqualTo(2); in testReportImpressionStatsLogger_successLogging() 76 expect.that(stats.getReportWinBuyerAdditionalSignalsContainedAdCost()).isEqualTo(false); in testReportImpressionStatsLogger_default() 77 expect.that(stats.getReportWinBuyerAdditionalSignalsContainedDataVersion()) in testReportImpressionStatsLogger_default() 79 expect.that(stats.getReportResultSellerAdditionalSignalsContainedDataVersion()) in testReportImpressionStatsLogger_default() 81 expect.that(stats.getReportWinJsScriptResultCode()).isEqualTo(JS_RUN_STATUS_UNSET); in testReportImpressionStatsLogger_default() 82 expect.that(stats.getReportResultJsScriptResultCode()).isEqualTo(JS_RUN_STATUS_UNSET); in testReportImpressionStatsLogger_default() [all …]
|
D | AdFilteringProcessJoinCAReportedStatsTest.java | 65 expect.that(stats.getStatusCode()).isEqualTo(STATUS_CODE); in testBuildAdFilteringProcessJoinCAReportedStats() 66 expect.that(stats.getCountOfAdsWithKeysMuchSmallerThanLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() 68 expect.that(stats.getCountOfAdsWithKeysSmallerThanLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() 70 expect.that(stats.getCountOfAdsWithKeysEqualToLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() 72 expect.that(stats.getCountOfAdsWithKeysLargerThanLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() 74 expect.that(stats.getCountOfAdsWithEmptyKeys()).isEqualTo(COUNT_OF_ADS_WITH_EMPTY_KEYS); in testBuildAdFilteringProcessJoinCAReportedStats() 75 expect.that(stats.getCountOfAdsWithFiltersMuchSmallerThanLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() 77 expect.that(stats.getCountOfAdsWithFiltersSmallerThanLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() 79 expect.that(stats.getCountOfAdsWithFiltersEqualToLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() 81 expect.that(stats.getCountOfAdsWithFiltersLargerThanLimitation()) in testBuildAdFilteringProcessJoinCAReportedStats() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/ |
D | TestableNetworkCallbackTestJava.java | 35 callback.expect(AVAILABLE, anyNetwork(), 10, "error", cb -> true); in testAllExpectOverloads() 39 callback.expect(AVAILABLE, 10, "error", cb -> true); in testAllExpectOverloads() 40 callback.expect(AVAILABLE, anyNetwork(), "error", cb -> true); in testAllExpectOverloads() 41 callback.expect(AVAILABLE, anyNetwork(), 10, cb -> true); in testAllExpectOverloads() 42 callback.expect(AVAILABLE, anyNetwork(), 10, "error"); in testAllExpectOverloads() 46 callback.expect(AVAILABLE, "error", cb -> true); in testAllExpectOverloads() 47 callback.expect(AVAILABLE, 10, cb -> true); in testAllExpectOverloads() 48 callback.expect(AVAILABLE, 10, "error"); in testAllExpectOverloads() 49 callback.expect(AVAILABLE, anyNetwork(), cb -> true); in testAllExpectOverloads() 50 callback.expect(AVAILABLE, anyNetwork(), "error"); in testAllExpectOverloads() [all …]
|
D | TestableNetworkCallbackTest.kt | 173 assertFails { mCallback.expect<CallbackEntry>(timeoutMs = SHORT_TIMEOUT_MS) { true } } in <lambda>() 177 mCallback.expect<Available> { true } in <lambda>() 179 assertFails { mCallback.expect<CallbackEntry>(timeoutMs = SHORT_TIMEOUT_MS) { false } } in <lambda>() 183 mCallback.expect<CallbackEntry> { cb -> cb is BlockedStatus && cb.blocked } in <lambda>() 185 assertFails { mCallback.expect<CallbackEntry>(timeoutMs = SHORT_TIMEOUT_MS) { cb -> in <lambda>() 230 assertFails { mCallback.expect<LinkPropertiesChanged>(net, SHORT_TIMEOUT_MS) { true } } in <lambda>() 234 mCallback.expect<LinkPropertiesChanged>(net) { true } in <lambda>() 236 assertFails { mCallback.expect<LinkPropertiesChanged>(net, SHORT_TIMEOUT_MS) { false } } in <lambda>() 240 mCallback.expect<LinkPropertiesChanged>(net) { in <lambda>() 246 assertFails { mCallback.expect<LinkPropertiesChanged>(net, SHORT_TIMEOUT_MS) { in <lambda>() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/ |
D | AdServicesShellCommandTest.java | 123 expect.withMessage("err").that(getErr()).isEmpty(); in testOnHelp() 153 expect.withMessage("result").that(result).isEqualTo(0); in testExec_nullShowsHelp() 156 expect.withMessage("err").that(getErr()).isEmpty(); in testExec_nullShowsHelp() 163 expect.withMessage("result").that(result).isEqualTo(0); in testExec_emptyShowsHelp() 167 expect.withMessage("err").that(getErr()).isEmpty(); in testExec_emptyShowsHelp() 174 expect.withMessage("result").that(result).isEqualTo(0); in testExec_help() 178 expect.withMessage("err").that(getErr()).isEmpty(); in testExec_help() 185 expect.withMessage("result").that(result).isEqualTo(0); in testExec_helpShort() 189 expect.withMessage("err").that(getErr()).isEmpty(); in testExec_helpShort() 205 expect.withMessage("result").that(result).isEqualTo(-1); in testExec_invalidCommand() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AppManifestConfigCallTest.java | 62 expect.withMessage("e.getMessage()") in testInvalidConstructor() 71 expect.withMessage("e.getMessage()") in testInvalidConstructor() 80 expect.withMessage("pkg on %s", topics).that(topics.packageName).isEqualTo(PKG_NAME); in testValidConstructors() 81 expect.withMessage("api on %s", topics).that(topics.api).isEqualTo(API_TOPICS); in testValidConstructors() 85 expect.withMessage("pkg on %s", customAudience) in testValidConstructors() 88 expect.withMessage("api on %s", customAudience) in testValidConstructors() 93 expect.withMessage("pkg on %s", attribution) in testValidConstructors() 96 expect.withMessage("api on %s", attribution) in testValidConstructors() 134 expect.withMessage("equals()").that(call1).isEqualTo(call2); in expectEquals() 135 expect.withMessage("equals()").that(call2).isEqualTo(call1); in expectEquals() [all …]
|
D | AppManifestConfigParserTest.java | 55 expect.withMessage("getIncludesSdkLibraryConfig()") in testValidXml() 59 expect.withMessage("getIncludesSdkLibraryConfig().isEmpty()") in testValidXml() 62 expect.withMessage("getIncludesSdkLibraryConfig().contains(1234)") in testValidXml() 65 expect.withMessage("getIncludesSdkLibraryConfig().contains(4567)") in testValidXml() 68 expect.withMessage("getIncludesSdkLibraryConfig().contains(89)") in testValidXml() 71 expect.withMessage("getIncludesSdkLibraryConfig().contains(1234567)") in testValidXml() 74 expect.withMessage("getIncludesSdkLibraryConfig().contains(4815162342)") in testValidXml() 80 expect.withMessage("getAttributionConfig().getAllowAdPartnersToAccess()") in testValidXml() 83 expect.withMessage("isAllowedAttributionAccess()") in testValidXml() 87 expect.withMessage("getAttributionConfig()").that(attributionConfig).isNotNull(); in testValidXml() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | ReportInteractionInputTest.java | 76 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nonNullOptionalParameters() 77 expect.that(fromParcel.getInteractionKey()).isEqualTo(INTERACTION_KEY); in testWriteToParcel_nonNullOptionalParameters() 78 expect.that(fromParcel.getInteractionData()).isEqualTo(mInteractionData); in testWriteToParcel_nonNullOptionalParameters() 79 expect.that(fromParcel.getCallerPackageName()).isEqualTo(CALLER_PACKAGE_NAME); in testWriteToParcel_nonNullOptionalParameters() 80 expect.that(fromParcel.getReportingDestinations()).isEqualTo(DESTINATIONS); in testWriteToParcel_nonNullOptionalParameters() 82 expect.that(fromParcel.getInputEvent().toString()).isEqualTo(CLICK_EVENT.toString()); in testWriteToParcel_nonNullOptionalParameters() 83 expect.that(fromParcel.getAdId()).isEqualTo(AD_ID); in testWriteToParcel_nonNullOptionalParameters() 84 expect.that(fromParcel.getCallerSdkName()).isEqualTo(CALLER_SDK_NAME); in testWriteToParcel_nonNullOptionalParameters() 107 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nullInputEvent() 108 expect.that(fromParcel.getInteractionKey()).isEqualTo(INTERACTION_KEY); in testWriteToParcel_nullInputEvent() [all …]
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/errorlogging/ |
D | AdServicesErrorStatsTest.java | 47 expect.that(errorData.getErrorCode()).isEqualTo(ERROR_CODE); in testBuilderCreateSuccess() 48 expect.that(errorData.getPpapiName()).isEqualTo(PPAPI_NAME); in testBuilderCreateSuccess() 49 expect.that(errorData.getClassName()).isEqualTo(CLASS_NAME); in testBuilderCreateSuccess() 50 expect.that(errorData.getMethodName()).isEqualTo(METHOD_NAME); in testBuilderCreateSuccess() 51 expect.that(errorData.getLineNumber()).isEqualTo(LINE_NUMBER); in testBuilderCreateSuccess() 52 expect.that(errorData.getLastObservedExceptionName()).isEqualTo(EXCEPTION_NAME); in testBuilderCreateSuccess() 65 expect.that(errorData.getErrorCode()).isEqualTo(ERROR_CODE); in testBuilderCreateSuccess_lineNumberMissing_ppapiNameMissing() 66 expect.that(errorData.getPpapiName()).isEqualTo(0); in testBuilderCreateSuccess_lineNumberMissing_ppapiNameMissing() 67 expect.that(errorData.getClassName()).isEqualTo(CLASS_NAME); in testBuilderCreateSuccess_lineNumberMissing_ppapiNameMissing() 68 expect.that(errorData.getMethodName()).isEqualTo(METHOD_NAME); in testBuilderCreateSuccess_lineNumberMissing_ppapiNameMissing() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/ |
D | EncryptionKeyConverterUtilTest.java | 71 expect.that(keyOptional.isPresent()).isTrue(); in createEncryptionKeyFromJson_signing_successVersion3() 73 expect.that(encryptionKey.getKeyType()).isEqualTo(EncryptionKey.KeyType.SIGNING); in createEncryptionKeyFromJson_signing_successVersion3() 74 expect.that(encryptionKey.getEnrollmentId()).isEqualTo("TEST0"); in createEncryptionKeyFromJson_signing_successVersion3() 75 expect.that(encryptionKey.getReportingOrigin()) in createEncryptionKeyFromJson_signing_successVersion3() 77 expect.that(encryptionKey.getEncryptionKeyUrl()) in createEncryptionKeyFromJson_signing_successVersion3() 79 expect.that(encryptionKey.getProtocolType()).isEqualTo(EncryptionKey.ProtocolType.ECDSA); in createEncryptionKeyFromJson_signing_successVersion3() 80 expect.that(encryptionKey.getKeyCommitmentId()).isEqualTo(98765); in createEncryptionKeyFromJson_signing_successVersion3() 81 expect.that(encryptionKey.getBody()).isEqualTo("MIIBCgKCAQEAwVG1qA=="); in createEncryptionKeyFromJson_signing_successVersion3() 82 expect.that(encryptionKey.getExpiration()).isEqualTo(1682516522000L); in createEncryptionKeyFromJson_signing_successVersion3() 93 expect.that(keyOptional.isPresent()).isTrue(); in createEncryptionKeyFromJson_encryption_successVersion3() [all …]
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/ |
D | FailableResultSyncCallbackTestCase.java | 46 expect.withMessage("1st call to getClassOfdifferentFailure()").that(clazz1).isNotNull(); in testNewFailureAndGetClassOfDifferentFailure() 49 expect.withMessage("2nd call to getClassOfdifferentFailure()").that(clazz2).isNotNull(); in testNewFailureAndGetClassOfDifferentFailure() 50 expect.withMessage("2nd call to getClassOfdifferentFailure()") in testNewFailureAndGetClassOfDifferentFailure() 55 expect.withMessage("1st failure").that(failure1).isNotNull(); in testNewFailureAndGetClassOfDifferentFailure() 56 expect.withMessage("1st failure").that(failure1).isNotInstanceOf(clazz1); in testNewFailureAndGetClassOfDifferentFailure() 59 expect.withMessage("2nd failure").that(failure2).isNotNull(); in testNewFailureAndGetClassOfDifferentFailure() 60 expect.withMessage("2nd failure").that(failure2).isNotSameInstanceAs(failure1); in testNewFailureAndGetClassOfDifferentFailure() 61 expect.withMessage("2nd failure").that(failure2).isNotInstanceOf(clazz1); in testNewFailureAndGetClassOfDifferentFailure() 91 expect.withMessage("%s.assertFailureReceived()", mCallback) in testInjectFailure() 94 expect.withMessage("%s.isCalled() after assertFailureReceived()", mCallback) in testInjectFailure() [all …]
|
D | IResultSyncCallbackTestCase.java | 64 expect.withMessage("1st result").that(result1).isNotNull(); in testNewResult() 67 expect.withMessage("2nd result").that(result2).isNotNull(); in testNewResult() 68 expect.withMessage("2nd result").that(result2).isNotSameInstanceAs(result1); in testNewResult() 79 expect.withMessage("%s.assertResultReceived()", mCallback) in testInjectResult_assertResultReceived() 82 expect.withMessage("%s.isCalled() after injectResult()", mCallback) in testInjectResult_assertResultReceived() 86 expect.withMessage("%s.getResult()", mCallback) in testInjectResult_assertResultReceived() 89 expect.withMessage("%s.getResults() after injectResult()", mCallback) in testInjectResult_assertResultReceived() 92 expect.withMessage("toString() after injectResult()") in testInjectResult_assertResultReceived() 105 expect.withMessage("%s.assertResultReceived()", mCallback).that(receivedResult).isNull(); in testInjectNullResult_assertResultReceived() 106 expect.withMessage("%s.isCalled() after injectResult()", mCallback) in testInjectNullResult_assertResultReceived() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/src/com/android/adservices/common/logging/ |
D | ErrorLogUtilCallTest.java | 39 private final EqualsTester mEqualsTester = new EqualsTester(expect); 49 expect.that(actual).isEqualTo(new ErrorLogUtilCall(None.class, 1, 2, 3)); in testCreateWithNoException() 50 expect.that(actual.mTimes).isEqualTo(3); in testCreateWithNoException() 60 expect.that(actual).isEqualTo(expected); in testCreateFrom_withNoExceptionAnnotationNullDefault_createsObject() 61 expect.that(actual.mTimes).isEqualTo(2); in testCreateFrom_withNoExceptionAnnotationNullDefault_createsObject() 73 expect.that(actual).isEqualTo(expected); in testCreateFrom_withNoExceptionAnnotationDerivesFromDefaults_createsObject() 74 expect.that(actual.mTimes).isEqualTo(3); in testCreateFrom_withNoExceptionAnnotationDerivesFromDefaults_createsObject() 86 expect.that(exception) in testCreateFrom_withNoExceptionAnnotationMissingErrorCode_throwsException() 101 expect.that(exception) in testCreateFrom_withNoExceptionAnnotationMissingPpapiName_throwsException() 114 expect.that(actual).isEqualTo(expected); in testCreateFrom_withExceptionAnnotationNullDefault_createsObject() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/ |
D | DeletionRequestTest.java | 48 expect.that(request.getStart()).isEqualTo(START); in testNonNullParams() 49 expect.that(request.getEnd()).isEqualTo(END); in testNonNullParams() 50 expect.that(request.getOriginUris()).containsExactly(ORIGIN_URI); in testNonNullParams() 51 expect.that(request.getDomainUris()).containsExactly(DOMAIN_URI); in testNonNullParams() 52 expect.that(request.getDeletionMode()) in testNonNullParams() 54 expect.that(request.getMatchBehavior()).isEqualTo(DeletionRequest.MATCH_BEHAVIOR_PRESERVE); in testNonNullParams() 66 expect.that(request.getOriginUris()).isEmpty(); in testNullParams() 67 expect.that(request.getDomainUris()).isEmpty(); in testNullParams() 68 expect.that(request.getDeletionMode()).isEqualTo(DeletionRequest.DELETION_MODE_ALL); in testNullParams() 69 expect.that(request.getMatchBehavior()).isEqualTo(DeletionRequest.MATCH_BEHAVIOR_DELETE); in testNullParams() [all …]
|
/packages/modules/Bluetooth/service/src/ |
D | AutoOnFeatureTest.kt | 69 @JvmField @Rule val expect = Expect.create() in <lambda>() constant in com.android.server.bluetooth.test.AutoOnFeatureTest 116 expect in <lambda>() 123 expect.that(Settings.Secure.getString(resolver, Timer.STORAGE_KEY)).isNull() in <lambda>() 136 expect.that(timer).isNull() in <lambda>() 137 expect.that(callback_count).isEqualTo(0) in <lambda>() 147 expect.that(timer).isNull() in <lambda>() 148 expect.that(callback_count).isEqualTo(0) in <lambda>() 155 expect.that(timer).isNotNull() in <lambda>() 167 expect.that(callback_count).isEqualTo(1) in <lambda>() 168 expect.that(timer).isNull() in <lambda>() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | AppConsentStorageManagerTest.java | 120 expect.that( in testClearAllAppConsentData() 132 expect.that(mAppDaoDatastore.get(AppConsentDaoFixture.APP10_DATASTORE_KEY)).isFalse(); in testClearConsentForUninstalledApp() 135 expect.that(mAppDaoDatastore.get(AppConsentDaoFixture.APP10_DATASTORE_KEY)).isNull(); in testClearConsentForUninstalledApp() 147 expect.that(mAppDaoDatastore.get(AppConsentDaoFixture.APP10_DATASTORE_KEY)).isTrue(); in testClearConsentForUninstalledAppWithoutUid() 148 expect.that(mAppDaoDatastore.get(AppConsentDaoFixture.APP20_DATASTORE_KEY)).isNull(); in testClearConsentForUninstalledAppWithoutUid() 149 expect.that(mAppDaoDatastore.get(AppConsentDaoFixture.APP30_DATASTORE_KEY)).isFalse(); in testClearConsentForUninstalledAppWithoutUid() 173 expect.that(mAppConsentStorageManager.getCurrentPrivacySandboxFeature()) in testDatastoreBasicApis() 178 expect.that(mAppConsentStorageManager.isU18Account()).isTrue(); in testDatastoreBasicApis() 186 expect.that(mAppConsentStorageManager.getConsent(apiType).isGiven()).isTrue(); in testDatastoreBasicApis() 189 expect.that(mAppConsentStorageManager.wasGaUxNotificationDisplayed()).isTrue(); in testDatastoreBasicApis() [all …]
|
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/ |
D | SyncCallbackSettingsTest.java | 54 expect.withMessage("getExpectedNumberCalls()") in testDefaultBuilder() 57 expect.withMessage("getMaxTimeoutMs()") in testDefaultBuilder() 60 expect.withMessage("isFailIfCalledOnMainThread()") in testDefaultBuilder() 65 expect.withMessage("toString()").that(toString).contains("expectedNumberCalls=1"); in testDefaultBuilder() 66 expect.withMessage("toString()") in testDefaultBuilder() 69 expect.withMessage("toString()").that(toString).contains("failIfCalledOnMainThread=true"); in testDefaultBuilder() 85 expect.withMessage("getExpectedNumberCalls()") in testCustomBuilder() 88 expect.withMessage("getMaxTimeoutMs()").that(settings.getMaxTimeoutMs()).isEqualTo(108); in testCustomBuilder() 89 expect.withMessage("isFailIfCalledOnMainThread()") in testCustomBuilder() 94 expect.withMessage("toString()").that(toString).contains("expectedNumberCalls=42"); in testCustomBuilder() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | PartialCustomAudienceTest.java | 57 public final Expect expect = Expect.create(); field in PartialCustomAudienceTest 67 expect.that(partialCA.getActivationTime()).isEqualTo(VALID_ACTIVATION_TIME); in testBuildValidPartialCARequest_AllSetters_Success() 68 expect.that(partialCA.getExpirationTime()).isEqualTo(VALID_EXPIRATION_TIME); in testBuildValidPartialCARequest_AllSetters_Success() 69 expect.that(partialCA.getUserBiddingSignals()).isEqualTo(VALID_BIDDING_SIGNALS); in testBuildValidPartialCARequest_AllSetters_Success() 75 expect.that(VALID_PARTIAL_CA.getActivationTime()).isNotNull(); in testBuildValidPartialCARequestParcel_Success() 76 expect.that(VALID_PARTIAL_CA.getExpirationTime()).isNotNull(); in testBuildValidPartialCARequestParcel_Success() 77 expect.that(VALID_PARTIAL_CA.getUserBiddingSignals()).isNotNull(); in testBuildValidPartialCARequestParcel_Success() 84 expect.that(ca.getName()).isEqualTo(fromParcel.getName()); in testBuildValidPartialCARequestParcel_Success() 85 expect.that(ca.getActivationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success() 87 expect.that(ca.getExpirationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/ |
D | PartialCustomAudienceTest.java | 47 expect.that(VALID_PARTIAL_CA.getActivationTime()).isEqualTo(VALID_ACTIVATION_TIME); in testBuildValidPartialCARequest_AllSetters_Success() 48 expect.that(VALID_PARTIAL_CA.getExpirationTime()).isEqualTo(VALID_EXPIRATION_TIME); in testBuildValidPartialCARequest_AllSetters_Success() 49 expect.that(VALID_PARTIAL_CA.getUserBiddingSignals()).isEqualTo(VALID_BIDDING_SIGNALS); in testBuildValidPartialCARequest_AllSetters_Success() 55 expect.that(VALID_PARTIAL_CA.getActivationTime()).isNotNull(); in testBuildValidPartialCARequestParcel_Success() 56 expect.that(VALID_PARTIAL_CA.getExpirationTime()).isNotNull(); in testBuildValidPartialCARequestParcel_Success() 57 expect.that(VALID_PARTIAL_CA.getUserBiddingSignals()).isNotNull(); in testBuildValidPartialCARequestParcel_Success() 64 expect.that(ca.getName()).isEqualTo(fromParcel.getName()); in testBuildValidPartialCARequestParcel_Success() 65 expect.that(ca.getActivationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success() 67 expect.that(ca.getExpirationTime().getEpochSecond()) in testBuildValidPartialCARequestParcel_Success() 69 expect.that(ca.getUserBiddingSignals()).isEqualTo(fromParcel.getUserBiddingSignals()); in testBuildValidPartialCARequestParcel_Success() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/ |
D | FlagsTest.java | 109 expect.withMessage("DEFAULT_CONSENT_SOURCE_OF_TRUTH") in assertConsentSourceOfTruth() 113 expect.withMessage("getConsentSourceOfTruth()") in assertConsentSourceOfTruth() 137 expect.withMessage("DEFAULT_BLOCKED_TOPICS_SOURCE_OF_TRUTH") in assertBlockedTopicsSourceOfTruth() 141 expect.withMessage("getBlockedTopicsSourceOfTruth()") in assertBlockedTopicsSourceOfTruth() 165 expect.withMessage("ENABLE_APPSEARCH_CONSENT_DATA") in assertEnableAppsearchConsentData() 169 expect.withMessage("getEnableAppsearchConsentData()") in assertEnableAppsearchConsentData() 187 expect.withMessage("ENABLE_ADEXT_SERVICE_CONSENT_DATA") in assertEnableAdExtServiceConsentData() 191 expect.withMessage("getEnableAdExtServiceConsentData()") in assertEnableAdExtServiceConsentData() 209 expect.withMessage("DEFAULT_RVC_UX_ENABLED") in assertEnableRvcUx() 213 expect.withMessage("getEnableRvcUx()").that(mFlags.getEnableRvcUx()).isEqualTo(expected); in assertEnableRvcUx() [all …]
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/storage/ |
D | BooleanFileDatastoreTest.java | 154 expect.withMessage("keys").that(mDatastore.keySet()).isEmpty(); in testInitializeEmptyBooleanFileDatastore() 279 expect.withMessage("keySetTrue()").that(mDatastore.keySetTrue()).hasSize(numEntries / 2); in testKeySetClear() 280 expect.withMessage("keySetFalse()").that(mDatastore.keySetFalse()).hasSize(numEntries / 2); in testKeySetClear() 285 expect.withMessage("keySetTrue() / index %s", i) in testKeySetClear() 288 expect.withMessage("keySetFalse() / index %s", i) in testKeySetClear() 293 expect.withMessage("keySetTrue() / index %s", i) in testKeySetClear() 296 expect.withMessage("keySetFalse() / index %s", i) in testKeySetClear() 303 expect.withMessage("keys").that(mDatastore.keySet()).isEmpty(); in testKeySetClear() 317 expect.withMessage("keySetTrue()").that(mDatastore.keySetTrue()).hasSize(numEntries / 2); in testKeySetClearAllTrue() 318 expect.withMessage("keySetFalse()").that(mDatastore.keySetFalse()).hasSize(numEntries / 2); in testKeySetClearAllTrue() [all …]
|