Home
last modified time | relevance | path

Searched refs:TestFormatJsonMapping (Results 1 – 12 of 12) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DE2ETest.java173 public interface TestFormatJsonMapping { interface in E2ETest
299 .getJSONArray(TestFormatJsonMapping.URI_TO_RESPONSE_HEADERS_KEY) in getFirstUrl()
301 .getString(TestFormatJsonMapping.URI_TO_RESPONSE_HEADERS_URL_KEY); in getFirstUrl()
306 obj.getJSONArray(TestFormatJsonMapping.URI_TO_RESPONSE_HEADERS_KEY) in hasArDebugPermission()
308 return urlToResponse.optBoolean(TestFormatJsonMapping.DEBUG_PERMISSION_KEY, false); in hasArDebugPermission()
313 obj.getJSONArray(TestFormatJsonMapping.URI_TO_RESPONSE_HEADERS_KEY) in hasAdIdPermission()
315 return urlToResponse.optBoolean(TestFormatJsonMapping.HAS_AD_ID_PERMISSION, false); in hasAdIdPermission()
320 obj.getJSONArray(TestFormatJsonMapping.URI_TO_RESPONSE_HEADERS_KEY) in hasSourceDebugReportingPermission()
322 .getJSONObject(TestFormatJsonMapping.URI_TO_RESPONSE_HEADERS_RESPONSE_KEY); in hasSourceDebugReportingPermission()
323 if (headersMapJson.isNull(TestFormatJsonMapping.SOURCE_REGISTRATION_HEADER)) { in hasSourceDebugReportingPermission()
[all …]
DE2EMockTest.java536 obj.put(TestFormatJsonMapping.REPORT_TIME_KEY, String.valueOf(triggerTime)); in processActualDebugEventReports()
555 map.put(TestFormatJsonMapping.REPORT_TIME_KEY, eventReports.get(i).getReportTime()); in getActualEventReportObjects()
556 map.put(TestFormatJsonMapping.REPORT_TO_KEY, destinations.get(i).toString()); in getActualEventReportObjects()
557 map.put(TestFormatJsonMapping.PAYLOAD_KEY, payloads.get(i)); in getActualEventReportObjects()
570 map.put(TestFormatJsonMapping.REPORT_TIME_KEY, String.valueOf(timestamp)); in getActualDebugReportObjects()
571 map.put(TestFormatJsonMapping.REPORT_TO_KEY, destinations.get(i).toString()); in getActualDebugReportObjects()
572 map.put(TestFormatJsonMapping.PAYLOAD_KEY, payloads.get(i)); in getActualDebugReportObjects()
612 TestFormatJsonMapping.REPORT_TIME_KEY, in getActualAggregateReportObjects()
620 TestFormatJsonMapping.REPORT_TO_KEY, in getActualAggregateReportObjects()
623 TestFormatJsonMapping.PAYLOAD_KEY, in getActualAggregateReportObjects()
DE2EInteropMockTest.java66 TestFormatJsonMapping.TIMESTAMP_KEY,
67 TestFormatJsonMapping.REPORT_TIME_KEY));
72 TestFormatJsonMapping.SCHEDULED_REPORT_TIME,
73 TestFormatJsonMapping.SOURCE_REGISTRATION_TIME));
DE2EImpressionNoiseMockTest.java158 String uri = reportObject.optString(TestFormatJsonMapping.REPORT_TO_KEY); in getExpectedTriggerDataDistributions()
159 JSONObject payload = reportObject.optJSONObject(TestFormatJsonMapping.PAYLOAD_KEY); in getExpectedTriggerDataDistributions()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/actions/
DRegisterSource.java30 import com.android.adservices.service.measurement.E2ETest.TestFormatJsonMapping;
51 TestFormatJsonMapping.REGISTRATION_REQUEST_KEY); in RegisterSource()
55 TestFormatJsonMapping.ATTRIBUTION_SOURCE_KEY, in RegisterSource()
56 TestFormatJsonMapping.ATTRIBUTION_SOURCE_DEFAULT); in RegisterSource()
58 mPublisher = regParamsJson.optString(TestFormatJsonMapping.CONTEXT_ORIGIN_URI_KEY); in RegisterSource()
67 TestFormatJsonMapping.PLATFORM_AD_ID)); in RegisterSource()
69 if (!regParamsJson.isNull(TestFormatJsonMapping.INPUT_EVENT_KEY)) { in RegisterSource()
73 .getString(TestFormatJsonMapping.INPUT_EVENT_KEY) in RegisterSource()
74 .equals(TestFormatJsonMapping.SOURCE_VIEW_TYPE) in RegisterSource()
82 TestFormatJsonMapping.INTEROP_INPUT_EVENT_KEY).equals( in RegisterSource()
[all …]
DRegisterWebSource.java31 import com.android.adservices.service.measurement.E2ETest.TestFormatJsonMapping;
51 obj.getJSONObject(TestFormatJsonMapping.REGISTRATION_REQUEST_KEY); in RegisterWebSource()
56 regParamsJson.getJSONArray(TestFormatJsonMapping.SOURCE_PARAMS_REGISTRATIONS_KEY); in RegisterWebSource()
59 regParamsJson, TestFormatJsonMapping.SOURCE_APP_DESTINATION_URI_KEY); in RegisterWebSource()
62 regParamsJson, TestFormatJsonMapping.SOURCE_WEB_DESTINATION_URI_KEY); in RegisterWebSource()
65 regParamsJson, TestFormatJsonMapping.SOURCE_VERIFIED_DESTINATION_URI_KEY); in RegisterWebSource()
67 String packageName = regParamsJson.optString(TestFormatJsonMapping.ATTRIBUTION_SOURCE_KEY); in RegisterWebSource()
74 TestFormatJsonMapping.SOURCE_TOP_ORIGIN_URI_KEY))) in RegisterWebSource()
77 .getString(TestFormatJsonMapping.INPUT_EVENT_KEY) in RegisterWebSource()
78 .equals(TestFormatJsonMapping.SOURCE_VIEW_TYPE) in RegisterWebSource()
[all …]
DRegisterListSources.java29 import com.android.adservices.service.measurement.E2ETest.TestFormatJsonMapping;
51 obj.getJSONObject(TestFormatJsonMapping.REGISTRATION_REQUEST_KEY); in RegisterListSources()
53 regParamsJson.getJSONArray(TestFormatJsonMapping.REGISTRATION_URIS_KEY); in RegisterListSources()
57 TestFormatJsonMapping.ATTRIBUTION_SOURCE_KEY, in RegisterListSources()
58 TestFormatJsonMapping.ATTRIBUTION_SOURCE_DEFAULT); in RegisterListSources()
60 mPublisher = regParamsJson.optString(TestFormatJsonMapping.SOURCE_TOP_ORIGIN_URI_KEY); in RegisterListSources()
66 .getString(TestFormatJsonMapping.INPUT_EVENT_KEY) in RegisterListSources()
67 .equals(TestFormatJsonMapping.SOURCE_VIEW_TYPE) in RegisterListSources()
78 .setAdIdValue(regParamsJson.optString(TestFormatJsonMapping.PLATFORM_AD_ID)) in RegisterListSources()
81 mTimestamp = obj.getLong(TestFormatJsonMapping.TIMESTAMP_KEY); in RegisterListSources()
DRegisterTrigger.java29 import com.android.adservices.service.measurement.E2ETest.TestFormatJsonMapping;
50 TestFormatJsonMapping.REGISTRATION_REQUEST_KEY); in RegisterTrigger()
54 TestFormatJsonMapping.ATTRIBUTION_SOURCE_KEY, in RegisterTrigger()
55 TestFormatJsonMapping.ATTRIBUTION_SOURCE_DEFAULT); in RegisterTrigger()
57 mDestination = regParamsJson.optString(TestFormatJsonMapping.CONTEXT_ORIGIN_URI_KEY); in RegisterTrigger()
65 .setAdIdValue(regParamsJson.optString(TestFormatJsonMapping.PLATFORM_AD_ID)) in RegisterTrigger()
69 mTimestamp = obj.getLong(TestFormatJsonMapping.TIMESTAMP_KEY); in RegisterTrigger()
DRegisterWebTrigger.java30 import com.android.adservices.service.measurement.E2ETest.TestFormatJsonMapping;
50 obj.getJSONObject(TestFormatJsonMapping.REGISTRATION_REQUEST_KEY); in RegisterWebTrigger()
55 regParamsJson.getJSONArray(TestFormatJsonMapping.TRIGGER_PARAMS_REGISTRATIONS_KEY); in RegisterWebTrigger()
57 String packageName = regParamsJson.optString(TestFormatJsonMapping.ATTRIBUTION_SOURCE_KEY); in RegisterWebTrigger()
64 TestFormatJsonMapping.TRIGGER_TOP_ORIGIN_URI_KEY))) in RegisterWebTrigger()
73 mTimestamp = obj.getLong(TestFormatJsonMapping.TIMESTAMP_KEY); in RegisterWebTrigger()
94 TestFormatJsonMapping.REGISTRATION_URI_KEY))) in createTriggerParams()
DUninstallApp.java21 import com.android.adservices.service.measurement.E2ETest.TestFormatJsonMapping;
32 mUri = Uri.parse(obj.getString(TestFormatJsonMapping.INSTALLS_URI_KEY)); in UninstallApp()
33 mTimestamp = obj.getLong(TestFormatJsonMapping.INSTALLS_TIMESTAMP_KEY); in UninstallApp()
DInstallApp.java21 import com.android.adservices.service.measurement.E2ETest.TestFormatJsonMapping;
32 mUri = Uri.parse(obj.getString(TestFormatJsonMapping.INSTALLS_URI_KEY)); in InstallApp()
33 mTimestamp = obj.getLong(TestFormatJsonMapping.INSTALLS_TIMESTAMP_KEY); in InstallApp()
DUriConfig.java28 mShouldEnroll = uriObj.optBoolean(E2ETest.TestFormatJsonMapping.ENROLL, true); in UriConfig()