Home
last modified time | relevance | path

Searched refs:EventUrlHelper (Results 1 – 6 of 6) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/events/
DEventUrlHelperTest.java35 Uri uri = EventUrlHelper.getEncryptedOdpEventUrl(TEST_EVENT_URL_PAYLOAD); in testEncryptDecryptEvent()
36 assertEquals(uri.getScheme(), EventUrlHelper.URI_SCHEME); in testEncryptDecryptEvent()
37 assertEquals(uri.getAuthority(), EventUrlHelper.URI_AUTHORITY); in testEncryptDecryptEvent()
41 EventUrlHelper.getEventFromOdpEventUrl(uri.toString()); in testEncryptDecryptEvent()
50 Uri uri = EventUrlHelper.getEncryptedClickTrackingUrl(TEST_EVENT_URL_PAYLOAD, in testEncryptDecryptClickTrackingUrlEvent()
52 assertEquals(uri.getScheme(), EventUrlHelper.URI_SCHEME); in testEncryptDecryptClickTrackingUrlEvent()
53 assertEquals(uri.getAuthority(), EventUrlHelper.URI_AUTHORITY); in testEncryptDecryptClickTrackingUrlEvent()
56 assertEquals(uri.getQueryParameter(EventUrlHelper.URL_LANDING_PAGE_EVENT_KEY), landingPage); in testEncryptDecryptClickTrackingUrlEvent()
59 EventUrlHelper.getEventFromOdpEventUrl(uri.toString()); in testEncryptDecryptClickTrackingUrlEvent()
68 () -> EventUrlHelper.getEventFromOdpEventUrl("https://google.com/")); in testInvalidUrl()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/display/
DOdpWebViewClient.java35 import com.android.ondevicepersonalization.services.data.events.EventUrlHelper;
118 if (!EventUrlHelper.isOdpUrl(request.getUrl().toString())) { in shouldInterceptRequest()
153 if (!EventUrlHelper.isOdpUrl(request.getUrl().toString())) { in shouldOverrideUrlLoading()
168 EventUrlHelper.URL_LANDING_PAGE_EVENT_KEY); in shouldOverrideUrlLoading()
186 if (!EventUrlHelper.isOdpUrl(url)) { in getPayLoadFromRequest()
190 return EventUrlHelper.getEventFromOdpEventUrl(url); in getPayLoadFromRequest()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/display/
DOdpWebViewClientTests.java57 import com.android.ondevicepersonalization.services.data.events.EventUrlHelper;
182 String odpUrl = EventUrlHelper.getEncryptedOdpEventUrl(mTestEventPayload).toString(); in testValidUrlOverride()
197 String odpUrl = EventUrlHelper.getEncryptedOdpEventUrl(mTestEventPayload).toString(); in testValidUrlWithNoContentIntercept()
214 String odpUrl = EventUrlHelper.getEncryptedOdpEventUrl(new EventUrlPayload( in testValidUrlWithResponseDataIntercept()
234 String odpUrl = EventUrlHelper.getEncryptedClickTrackingUrl( in testValidUrlWithRedirect()
252 String odpUrl = EventUrlHelper.getEncryptedOdpEventUrl(mTestEventPayload).toString(); in testValidUrlWithEventMetrics()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/
DEventUrlHelper.java27 public class EventUrlHelper { class
35 private EventUrlHelper() { in EventUrlHelper() method in EventUrlHelper
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImpl.java42 import com.android.ondevicepersonalization.services.data.events.EventUrlHelper;
382 eventUrl = EventUrlHelper.getEncryptedOdpEventUrl(payload); in getEventUrl()
384 eventUrl = EventUrlHelper.getEncryptedClickTrackingUrl( in getEventUrl()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImplTest.java53 import com.android.ondevicepersonalization.services.data.events.EventUrlHelper;
313 EventUrlPayload payload = EventUrlHelper.getEventFromOdpEventUrl(eventUrl); in testGetEventUrl()
337 EventUrlPayload payload = EventUrlHelper.getEventFromOdpEventUrl(eventUrl); in testGetClickUrl()
344 assertEquals(uri.getQueryParameter(EventUrlHelper.URL_LANDING_PAGE_EVENT_KEY), in testGetClickUrl()