/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/ |
D | RegistrationRequestTest.java | 29 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in RegistrationRequestTest 36 SDK_PACKAGE_NAME) in createExampleAttribution() 47 expect.that(request.getSdkPackageName()).isEqualTo(SDK_PACKAGE_NAME); in verifyExampleAttribution() 61 SDK_PACKAGE_NAME) in testNoRegistrationType_throwException() 74 SDK_PACKAGE_NAME) in testRegistrationUriWithoutScheme_throwsException() 87 SDK_PACKAGE_NAME) in testRegistrationUriWithNonHttpsScheme_throwsException() 100 SDK_PACKAGE_NAME) in testNoAttributionSource_throwException() 113 SDK_PACKAGE_NAME) in testNoAppPackageName_throwException() 137 SDK_PACKAGE_NAME) in testDefaults() 143 expect.that(request.getSdkPackageName()).isEqualTo(SDK_PACKAGE_NAME); in testDefaults()
|
D | SourceRegistrationRequestInternalTest.java | 37 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in SourceRegistrationRequestInternalTest 71 null, mPackageName, SDK_PACKAGE_NAME, BOOT_RELATIVE_REQUEST_TIME)); in build_nullSourceRegistrationRequest_throwsException() 82 SDK_PACKAGE_NAME, in build_nullAppPackageName_throwsException() 124 SDK_PACKAGE_NAME, in testAppPackageNameMismatch_notEquals() 162 SDK_PACKAGE_NAME, in testRegistrationUrisMismatch_notEquals() 179 SDK_PACKAGE_NAME, in testRequestTimeMismatch_notEquals() 196 SDK_PACKAGE_NAME, in testAdIdMismatch_notEquals() 208 SDK_PACKAGE_NAME, in createExampleRegistrationRequest() 217 expect.that(request.getSdkPackageName()).isEqualTo(SDK_PACKAGE_NAME); in verifyExampleRegistrationInternal()
|
D | WebSourceRegistrationRequestInternalTest.java | 36 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in WebSourceRegistrationRequestInternalTest 83 null, mPackageName, SDK_PACKAGE_NAME, REQUEST_TIME)); in build_nullSourceRegistrationRequest_throwsException() 94 SDK_PACKAGE_NAME, in build_nullAppPackageName_throwsException() 131 SDK_PACKAGE_NAME, in testNotEquals() 142 SDK_PACKAGE_NAME, in createExampleRegistrationRequest() 151 expect.that(request.getSdkPackageName()).isEqualTo(SDK_PACKAGE_NAME); in verifyExampleRegistrationInternal()
|
D | StatusParamTest.java | 29 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in StatusParamTest 32 return new StatusParam.Builder(sContext.getPackageName(), SDK_PACKAGE_NAME).build(); in createExample() 37 expect.that(param.getSdkPackageName()).isEqualTo(SDK_PACKAGE_NAME); in verifyExample() 44 () -> new StatusParam.Builder(/* appPackageName= */ null, SDK_PACKAGE_NAME)); in testMissingAppPackageName_throwException()
|
D | WebTriggerRegistrationRequestInternalTest.java | 35 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in WebTriggerRegistrationRequestInternalTest 72 null, mPackageName, SDK_PACKAGE_NAME)); in build_nullTriggerRegistrationRequest_throwsException() 83 SDK_PACKAGE_NAME)); in build_nullAppPackageName_throwsException() 116 EXAMPLE_EXTERNAL_TRIGGER_REG_REQUEST, "com.foo", SDK_PACKAGE_NAME) in testNotEquals() 123 EXAMPLE_EXTERNAL_TRIGGER_REG_REQUEST, mPackageName, SDK_PACKAGE_NAME) in createExampleRegistrationRequest()
|
D | DeletionParamTest.java | 32 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in DeletionParamTest 91 SDK_PACKAGE_NAME) in testMissingOrigin_throwException() 106 SDK_PACKAGE_NAME) in testMissingDomainUris_throwException() 121 SDK_PACKAGE_NAME) in testMissingStart_throwException() 136 SDK_PACKAGE_NAME) in testMissingEnd_throwException() 151 SDK_PACKAGE_NAME) in testMissingAppPackageName_throwException()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | PermissionHelperTest.java | 52 private static final String SDK_PACKAGE_NAME = "sdk_test_package_name"; field in PermissionHelperTest 219 when(mMockPackageManagerGrant.checkPermission(ACCESS_ADSERVICES_TOPICS, SDK_PACKAGE_NAME)) 221 when(mMockPackageManagerGrant.checkPermission(ACCESS_ADSERVICES_AD_ID, SDK_PACKAGE_NAME)) 224 AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION, SDK_PACKAGE_NAME)) 227 ACCESS_ADSERVICES_CUSTOM_AUDIENCE, SDK_PACKAGE_NAME)) 255 when(mMockPackageManagerDeny.checkPermission(ACCESS_ADSERVICES_TOPICS, SDK_PACKAGE_NAME)) 257 when(mMockPackageManagerDeny.checkPermission(ACCESS_ADSERVICES_AD_ID, SDK_PACKAGE_NAME)) 260 AdServicesPermissions.ACCESS_ADSERVICES_ATTRIBUTION, SDK_PACKAGE_NAME)) 263 ACCESS_ADSERVICES_CUSTOM_AUDIENCE, SDK_PACKAGE_NAME))
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/shared/app1/ |
D | SdkSandboxTestSharedActivity.java | 26 private static final String SDK_PACKAGE_NAME = "com.android.testcode"; field in SdkSandboxTestSharedActivity 38 sdkSandboxManager.loadSdk(SDK_PACKAGE_NAME, params, in onCreate()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | EnqueueAsyncRegistrationTest.java | 76 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in EnqueueAsyncRegistrationTest 166 SDK_PACKAGE_NAME); in appSourceOrTriggerRegistrationRequest_sourceInvalidRegistrationUri_doesNotInsert() 203 SDK_PACKAGE_NAME) in testAppSourceRegistrationRequest_event_isValid() 261 SDK_PACKAGE_NAME) in testAppSourceRegistrationRequest_navigation_isValid() 321 SDK_PACKAGE_NAME); in appSourceOrTriggerRegistrationRequest_triggerInvalidRegistrationUri_doesNotInsert() 358 SDK_PACKAGE_NAME) in testAppTriggerRegistrationRequest_isValid() 412 SDK_PACKAGE_NAME) in testAppRegistrationRequestWithAdId_isValid() 458 SDK_PACKAGE_NAME) in testAppRegistrationRequestWithPostBody_isValid() 698 SDK_PACKAGE_NAME) in testVerifyAsyncRegistrationStoredCorrectly() 761 SDK_PACKAGE_NAME, in testAppSourcesRegistrationRequest_event_isValid() [all …]
|
D | AsyncTriggerFetcherTest.java | 120 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in AsyncTriggerFetcherTest 3128 SDK_PACKAGE_NAME); in registerTrigger_nonHttpsUrl_rejectsTrigger() 6919 SDK_PACKAGE_NAME) in buildRequest() 6928 SDK_PACKAGE_NAME) in buildRequestWithAdId()
|
D | AsyncSourceFetcherTest.java | 147 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in AsyncSourceFetcherTest 812 SDK_PACKAGE_NAME); in registerSource_nonHttpsUrl_rejectsSource() 832 SDK_PACKAGE_NAME); in testBadSourceUrl() 10448 SDK_PACKAGE_NAME); in buildDefaultRegistrationRequestBuilder()
|
D | AsyncRegistrationQueueRunnerTest.java | 127 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in AsyncRegistrationQueueRunnerTest
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | MeasurementImplTest.java | 118 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in MeasurementImplTest 173 SDK_PACKAGE_NAME) in createWebTriggerRegistrationRequest() 197 SDK_PACKAGE_NAME, in createWebSourceRegistrationRequest() 208 request, DEFAULT_CONTEXT.getPackageName(), SDK_PACKAGE_NAME, REQUEST_TIME) in createSourceRegistrationRequest() 261 SDK_PACKAGE_NAME) in testDeleteRegistrations_successfulNoOptionalParameters() 290 SDK_PACKAGE_NAME) in testDeleteRegistrations_successfulWithRange() 308 SDK_PACKAGE_NAME) in testDeleteRegistrations_successfulWithOrigin() 329 SDK_PACKAGE_NAME) in testDeleteRegistrations_internalError() 373 SDK_PACKAGE_NAME, in testRegisterEvent_noOptionalParameters_success() 388 SDK_PACKAGE_NAME, in testRegisterEvent_optionalParameters_success() [all …]
|
D | MeasurementServiceImplTest.java | 126 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in MeasurementServiceImplTest 1826 SDK_PACKAGE_NAME) in createRegistrationSourceRequest() 1839 SDK_PACKAGE_NAME) in createRegistrationTriggerRequest() 1913 sourceRegistrationRequest, APP_PACKAGE_NAME, SDK_PACKAGE_NAME, 10000L) in createSourcesRegistrationRequest() 1935 sourceRegistrationRequest, APP_PACKAGE_NAME, SDK_PACKAGE_NAME, 10000L) in createWebSourceRegistrationRequest() 1955 webTriggerRegistrationRequest, APP_PACKAGE_NAME, SDK_PACKAGE_NAME) in createWebTriggerRegistrationRequest() 1966 SDK_PACKAGE_NAME) in createDeletionRequest() 1979 return new StatusParam.Builder(APP_PACKAGE_NAME, SDK_PACKAGE_NAME).build(); in createStatusParam() 1986 assertEquals(SDK_PACKAGE_NAME, captorStatus.getValue().getSdkPackageName()); in assertPackageNameLogged()
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/shared/app2/ |
D | SdkSandboxTestSharedApp2.java | 41 private static final String SDK_PACKAGE_NAME = "com.android.testcode"; field in SdkSandboxTestSharedApp2 63 mSdkSandboxManager.loadSdk(SDK_PACKAGE_NAME, params, Runnable::run, callback); in testLoadSdkIsSuccessful()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsetid/src/com/android/adservices/service/appsetid/ |
D | AppSetIdServiceImplTest.java | 91 private static final String SDK_PACKAGE_NAME = "test_package_name"; field in AppSetIdServiceImplTest 116 .setSdkPackageName(SDK_PACKAGE_NAME) in setup() 152 .setSdkPackageName(SDK_PACKAGE_NAME) in checkThrottler_rateLimitReached_forAppPackageName()
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/app/src/com/android/tests/sdksandbox/ |
D | SdkSandboxMetricsTestApp.java | 63 private static final String SDK_PACKAGE_NAME = "com.android.tests.sdkprovider.crashtest"; field in SdkSandboxMetricsTestApp 204 "SdkSandbox-Library: %s v%d", SDK_PACKAGE_NAME, SDK_VERSION_CODE)); in testCrashSandboxGeneratesDropboxReport()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/adid/src/com/android/adservices/service/adid/ |
D | AdIdServiceImplTest.java | 96 private static final String SDK_PACKAGE_NAME = "test_package_name"; field in AdIdServiceImplTest 125 .setSdkPackageName(SDK_PACKAGE_NAME) in setup() 163 .setSdkPackageName(SDK_PACKAGE_NAME) in checkThrottler_rateLimitReached_forAppPackageName()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | TopicsServiceImplTest.java | 143 private static final String SDK_PACKAGE_NAME = "test_package_name"; field in TopicsServiceImplTest 235 .setSdkPackageName(SDK_PACKAGE_NAME) in setup() 315 .setSdkPackageName(SDK_PACKAGE_NAME) in checkEmptySdkNameRequests() 387 .setSdkPackageName(SDK_PACKAGE_NAME) in checkThrottler_rateLimitReached_forAppPackageName() 437 when(mPackageManager.checkPermission(ACCESS_ADSERVICES_TOPICS, SDK_PACKAGE_NAME)) in testEnforceForeground_sandboxCaller()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/deletion/ |
D | MeasurementDataDeleterTest.java | 141 private static final String SDK_PACKAGE_NAME = "sdk.package.name"; field in MeasurementDataDeleterTest 511 SDK_PACKAGE_NAME) in delete_deletionModeAll_success() 634 SDK_PACKAGE_NAME) in delete_deletionModeAllFlexApi_success() 738 SDK_PACKAGE_NAME) in delete_deletionModeExcludeInternalData_success()
|