Home
last modified time | relevance | path

Searched refs:expectedUri (Results 1 – 19 of 19) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/
DFederatedComputeHttpRequestTest.java70 String expectedUri = "https://valid.com"; in createGetRequest_valid() local
73 expectedUri, HttpMethod.GET, new HashMap<>(), HttpClientUtil.EMPTY_BODY); in createGetRequest_valid()
75 assertThat(request.getUri()).isEqualTo(expectedUri); in createGetRequest_valid()
83 String expectedUri = "https://valid.com"; in createGetRequestWithHeader_valid() local
89 expectedUri, HttpMethod.GET, expectedHeaders, HttpClientUtil.EMPTY_BODY); in createGetRequestWithHeader_valid()
91 assertThat(request.getUri()).isEqualTo(expectedUri); in createGetRequestWithHeader_valid()
97 String expectedUri = "https://valid.com"; in createPostRequestWithoutBody_valid() local
101 expectedUri, HttpMethod.POST, new HashMap<>(), HttpClientUtil.EMPTY_BODY); in createPostRequestWithoutBody_valid()
103 assertThat(request.getUri()).isEqualTo(expectedUri); in createPostRequestWithoutBody_valid()
111 String expectedUri = "https://valid.com"; in createPostRequestWithBody_valid() local
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapapi/
DBluetoothMapIMProviderTest.java568 Uri expectedUri; in onAccountChanged() local
570 expectedUri = BluetoothMapContract.buildAccountUri(AUTHORITY); in onAccountChanged()
572 verify(resolver).notifyChange(expectedUri, null); in onAccountChanged()
576 expectedUri = BluetoothMapContract.buildAccountUriwithId(AUTHORITY, accountId); in onAccountChanged()
578 verify(resolver).notifyChange(expectedUri, null); in onAccountChanged()
593 Uri expectedUri; in onContactChanged() local
595 expectedUri = BluetoothMapContract.buildConvoContactsUri(AUTHORITY); in onContactChanged()
597 verify(resolver).notifyChange(expectedUri, null); in onContactChanged()
601 expectedUri = BluetoothMapContract.buildConvoContactsUri(AUTHORITY, accountId); in onContactChanged()
603 verify(resolver).notifyChange(expectedUri, null); in onContactChanged()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DDebugReportProcessorTest.java247 Uri expectedUri = Uri.parse("https://example.com/reportWin/1.0/?s=2.0&test=123"); in singleBuyerSessionWithComplexUrlVariables_returnsAllVariablesCorrectly() local
262 assertEquals(expectedUri, uris.get(0)); in singleBuyerSessionWithComplexUrlVariables_returnsAllVariablesCorrectly()
268 Uri expectedUri = Uri.parse("https://example.com/reportLoss?wb=0.0"); in singleBuyerSessionWithNoWinner_returnsUnknownWinningBid() local
279 assertEquals(expectedUri, uris.get(0)); in singleBuyerSessionWithNoWinner_returnsUnknownWinningBid()
285 Uri expectedUri = Uri.parse("https://example.com/reportLoss?hob=0.0"); in singleBuyerSessionWithNoWinner_returnsUnknownHighestOtherBid() local
296 assertEquals(expectedUri, uris.get(0)); in singleBuyerSessionWithNoWinner_returnsUnknownHighestOtherBid()
302 Uri expectedUri = Uri.parse("https://example.com/reportLoss?wb=1.0"); in multiBuyerLostSession_returnsWinningBid() local
317 assertEquals(expectedUri, uris.get(0)); in multiBuyerLostSession_returnsWinningBid()
485 Uri expectedUri = Uri.parse("https://example.com/reportLoss?rr=not-available"); in singleBuyerLoss_rejectReasonIsNotAvailable() local
486 assertThat(uris).containsExactly(expectedUri); in singleBuyerLoss_rejectReasonIsNotAvailable()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBroadcastReceiverTest.java123 final Uri expectedUri = buildUri(key); in toggleUpdate_synchronously_notifyChange_should_be_called() local
134 .setData(expectedUri); in toggleUpdate_synchronously_notifyChange_should_be_called()
144 verify(resolver).notifyChange(expectedUri, null); in toggleUpdate_synchronously_notifyChange_should_be_called()
262 final Uri expectedUri = buildUri(key); in toggleUpdate_unavailableUriNotified() local
273 .setData(expectedUri); in toggleUpdate_unavailableUriNotified()
280 verify(resolver).notifyChange(expectedUri, null); in toggleUpdate_unavailableUriNotified()
297 final Uri expectedUri = buildUri(key); in sliderUpdate_unavailableUriNotified() local
312 .setData(expectedUri); in sliderUpdate_unavailableUriNotified()
319 verify(resolver).notifyChange(eq(expectedUri), eq(null)); in sliderUpdate_unavailableUriNotified()
DSlicesDatabaseAccessorTest.java236 final Uri expectedUri = new Uri.Builder() in getSliceUris_publicSlice_returnPublicUri() local
245 assertThat(uri).containsExactly(expectedUri); in getSliceUris_publicSlice_returnPublicUri()
255 final Uri expectedUri = new Uri.Builder() in getSliceUris_nonPublicSlice_returnNonPublicUri() local
264 assertThat(uri).containsExactly(expectedUri); in getSliceUris_nonPublicSlice_returnNonPublicUri()
DSettingsSliceProviderTest.java461 final Uri expectedUri = new Uri.Builder() in getDescendantUris_oemSliceNoPath_notContainPrivateUri() local
470 assertThat(descendants).doesNotContain(expectedUri); in getDescendantUris_oemSliceNoPath_notContainPrivateUri()
582 final Uri expectedUri = new Uri.Builder() in getDescendantUris_privateSlicesNotNeeded_notContainPrivateSliceUri() local
591 assertThat(descendants).doesNotContain(expectedUri); in getDescendantUris_privateSlicesNotNeeded_notContainPrivateSliceUri()
DSliceBuilderUtilsTest.java333 final Uri expectedUri = new Uri.Builder().appendPath(sliceData.getKey()).build(); in testContentIntent_includesUniqueData() local
338 assertThat(intentData).isEqualTo(expectedUri); in testContentIntent_includesUniqueData()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DGetAdSelectionDataRequestTest.java42 Uri expectedUri = Uri.parse("https://example.com"); in testGetAdSelectionDataRequest_validInputWithUri_success() local
46 .setCoordinatorOriginUri(expectedUri) in testGetAdSelectionDataRequest_validInputWithUri_success()
50 expect.that(request.getCoordinatorOriginUri()).isEqualTo(expectedUri); in testGetAdSelectionDataRequest_validInputWithUri_success()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtStorageTest.java91 Uri expectedUri = AvrcpCoverArtProvider.getImageUri(mDevice1, mHandle1); in addNewImage_imageExists() local
96 Assert.assertEquals(expectedUri, uri); in addNewImage_imageExists()
102 Uri expectedUri = AvrcpCoverArtProvider.getImageUri(mDevice1, mHandle1); in addExistingImage_imageUpdated() local
107 Assert.assertEquals(expectedUri, uri); in addExistingImage_imageUpdated()
112 Assert.assertEquals(expectedUri, uri); in addExistingImage_imageUpdated()
DAvrcpCoverArtProviderTest.java113 Uri expectedUri = in getImageUri_withValidImageUuid() local
120 assertThat(AvrcpCoverArtProvider.getImageUri(mTestDevice, uuid)).isEqualTo(expectedUri); in getImageUri_withValidImageUuid()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DCloneContactsProvider2Test.java134 Uri expectedUri = ops.get(i).getUri() in assertRejectedApplyBatchResults() local
138 assertUriEquals(expectedUri, res[i].uri); in assertRejectedApplyBatchResults()
177 Uri expectedUri = ContactsContract.RawContacts.CONTENT_URI.buildUpon() in testCloneContactsProviderInsert() local
180 assertUriEquals(expectedUri, resultUri); in testCloneContactsProviderInsert()
DContactsProvider2Test.java386 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() local
391 assertUriEquals(expectedUri, localUri); in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri()
403 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() local
408 assertUriEquals(expectedUri, localUri); in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri()
418 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithoutDirectoryToLocalUri() local
421 assertUriEquals(expectedUri, localUri); in testConvertEnterpriseUriWithoutDirectoryToLocalUri()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DBeeperTest.java219 private void assertPlayedViaRingtoneManager(Uri expectedUri) { in assertPlayedViaRingtoneManager() argument
221 assertThat(ShadowRingtoneManager.getRingtoneUri()).isEqualTo(expectedUri); in assertPlayedViaRingtoneManager()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java966 final Uri expectedUri = Telephony.Mms.CONTENT_URI.buildUpon() in insert() local
970 assertEquals(expectedUri, uri); in insert()
1011 final Uri expectedUri = Telephony.Mms.CONTENT_URI.buildUpon() in insert() local
1015 assertEquals(expectedUri, uri); in insert()
1038 final Uri expectedUri = Telephony.Mms.CONTENT_URI.buildUpon() in update() local
1042 assertEquals(expectedUri, uri); in update()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java733 private void assertRootPicked(Uri expectedUri) throws Exception { in assertRootPicked() argument
739 assertEquals(expectedUri, root.getUri()); in assertRootPicked()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java702 private void assertRootPicked(Uri expectedUri) throws Exception { in assertRootPicked() argument
708 assertEquals(expectedUri, root.getUri()); in assertRootPicked()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueRunnerTest.java936 Uri expectedUri = in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectWithExistingPathAndQuery() local
945 Assert.assertEquals(expectedUri, asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectWithExistingPathAndQuery()
1019 Uri expectedUri = in runAsyncRegistrationQueueWorker_noSourceReg_RedirectHasSource() local
1023 Assert.assertEquals(expectedUri, asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_noSourceReg_RedirectHasSource()
1028 expectedUri = in runAsyncRegistrationQueueWorker_noSourceReg_RedirectHasSource()
1032 Assert.assertEquals(expectedUri, asyncReg2.getRegistrationUri()); in runAsyncRegistrationQueueWorker_noSourceReg_RedirectHasSource()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java1309 private ContentObserver expectRegisterContentObserver(Uri expectedUri) {
1313 argThat(uri -> uri.equals(expectedUri)), anyBoolean(), captor.capture());
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/v2/
DPickerDataLayerV2Test.java1620 final Uri expectedUri = getMediaUri(id, authority, intent); in assertMediaCursor() local
1625 .isEqualTo(expectedUri.toString()); in assertMediaCursor()