Home
last modified time | relevance | path

Searched refs:request1 (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/
DSourceRegistrationRequestInternalTest.java106 SourceRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testHashCode_equals() local
108 et.expectObjectsAreEqual(request1, request2); in testHashCode_equals()
110 Set<SourceRegistrationRequestInternal> requestSet1 = Set.of(request1); in testHashCode_equals()
119 SourceRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testAppPackageNameMismatch_notEquals() local
129 et.expectObjectsAreNotEqual(request1, request2); in testAppPackageNameMismatch_notEquals()
136 SourceRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testSdkNameMismatch_notEquals() local
146 et.expectObjectsAreNotEqual(request1, request2); in testSdkNameMismatch_notEquals()
153 SourceRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testRegistrationUrisMismatch_notEquals() local
167 et.expectObjectsAreNotEqual(request1, request2); in testRegistrationUrisMismatch_notEquals()
174 SourceRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testRequestTimeMismatch_notEquals() local
[all …]
DWebTriggerRegistrationRequestInternalTest.java105 WebTriggerRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testEquals() local
107 et.expectObjectsAreEqual(request1, request2); in testEquals()
113 WebTriggerRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testNotEquals() local
118 et.expectObjectsAreNotEqual(request1, request2); in testNotEquals()
DWebTriggerRegistrationRequestTest.java112 WebTriggerRegistrationRequest request1 = createExampleRegistrationRequest(); in testEquals() local
114 et.expectObjectsAreEqual(request1, request2); in testEquals()
120 WebTriggerRegistrationRequest request1 = createExampleRegistrationRequest(); in testNotEquals() local
125 et.expectObjectsAreNotEqual(request1, request2); in testNotEquals()
DWebSourceRegistrationRequestInternalTest.java118 WebSourceRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testEquals() local
120 et.expectObjectsAreEqual(request1, request2); in testEquals()
126 WebSourceRegistrationRequestInternal request1 = createExampleRegistrationRequest(); in testNotEquals() local
135 et.expectObjectsAreNotEqual(request1, request2); in testNotEquals()
DSourceRegistrationRequestTest.java127 SourceRegistrationRequest request1 = createExampleRegistrationRequest(); in testHashCode_equals() local
129 et.expectObjectsAreEqual(request1, request2); in testHashCode_equals()
135 SourceRegistrationRequest request1 = createExampleRegistrationRequest(); in testHashCode_notEquals() local
140 et.expectObjectsAreNotEqual(request1, request2); in testHashCode_notEquals()
DWebSourceRegistrationRequestTest.java152 WebSourceRegistrationRequest request1 = createExampleRegistrationRequest(); in testEquals() local
154 et.expectObjectsAreEqual(request1, request2); in testEquals()
160 WebSourceRegistrationRequest request1 = createExampleRegistrationRequest(); in testNotEquals() local
168 et.expectObjectsAreNotEqual(request1, request2); in testNotEquals()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkOfferTest.kt48 val request1 = mock(NetworkRequest::class.java) in testOfferNeededUnneeded() constant
50 offer.onNetworkNeeded(request1) in testOfferNeededUnneeded()
51 verify(mockCallback).onNetworkNeeded(eq(request1)) in testOfferNeededUnneeded()
52 assertTrue(offer.neededFor(request1)) in testOfferNeededUnneeded()
57 assertTrue(offer.neededFor(request1)) in testOfferNeededUnneeded()
64 offer.onNetworkUnneeded(request1) in testOfferNeededUnneeded()
65 verify(mockCallback).onNetworkUnneeded(eq(request1)) in testOfferNeededUnneeded()
66 assertFalse(offer.neededFor(request1)) in testOfferNeededUnneeded()
71 assertFalse(offer.neededFor(request1)) in testOfferNeededUnneeded()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/
DPendingRequestPoolUnitTest.java119 LongTestRequest request1 = new LongTestRequest(testRequestId1, timeoutUptimeMs); in testAddRemoveRequests() local
122 mLongPendingRequestPool.addPendingRequests(List.of(request1, request2)); in testAddRemoveRequests()
125 assertThat(mLongPendingRequestPool.getRequestIfFound(testRequestId1)).isEqualTo(request1); in testAddRemoveRequests()
141 LongTestRequest request1 = new LongTestRequest(testRequestId1, in testRequestTimeout() local
148 mLongPendingRequestPool.addPendingRequests(List.of(request1, request2, request3)); in testRequestTimeout()
178 LongTestRequest request1 = new LongTestRequest(testRequestId1, now); in testRequestsAlreadyTimeoutNoDuplicateCallbacksCalled() local
182 mLongPendingRequestPool.addPendingRequests(List.of(request1)); in testRequestsAlreadyTimeoutNoDuplicateCallbacksCalled()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DFetchAndJoinCustomAudienceRequestTest.java143 final FetchAndJoinCustomAudienceRequest request1 = in testEquals_identical() local
159 assertThat(request1.equals(request2)).isTrue(); in testEquals_identical()
160 assertThat(request2.equals(request1)).isTrue(); in testEquals_identical()
165 final FetchAndJoinCustomAudienceRequest request1 = in testEquals_different() local
181 assertThat(request1.equals(request2)).isFalse(); in testEquals_different()
182 assertThat(request2.equals(request1)).isFalse(); in testEquals_different()
187 final FetchAndJoinCustomAudienceRequest request1 = in testEquals_null() local
197 assertThat(request1.equals(request2)).isFalse(); in testEquals_null()
DScheduleCustomAudienceUpdateRequestTest.java170 ScheduleCustomAudienceUpdateRequest request1 = in testEquals_Same() local
180 et.expectObjectsAreEqual(request2, request1); in testEquals_Same()
186 ScheduleCustomAudienceUpdateRequest request1 = in testEquals_Different() local
196 et.expectObjectsAreNotEqual(request1, request2); in testEquals_Different()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClientTest.java201 RecordedRequest request1 = server.takeRequest(); in testGetAndReadNothingCorrectPath() local
202 assertEquals(mReportingPath, request1.getPath()); in testGetAndReadNothingCorrectPath()
203 assertEquals("GET", request1.getMethod()); in testGetAndReadNothingCorrectPath()
276 RecordedRequest request1 = server.takeRequest(); in testFetchPayloadCorrectPath() local
277 assertEquals(mFetchPayloadPath, request1.getPath()); in testFetchPayloadCorrectPath()
278 assertEquals("GET", request1.getMethod()); in testFetchPayloadCorrectPath()
585 RecordedRequest request1 = server.takeRequest(); in testFetchPayloadResponsesUsesCache() local
586 assertEquals(mFetchPayloadPath, request1.getPath()); in testFetchPayloadResponsesUsesCache()
587 assertEquals("GET", request1.getMethod()); in testFetchPayloadResponsesUsesCache()
636 RecordedRequest request1 = server.takeRequest(); in testFetchPayloadResponsesDefaultSkipsCache() local
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/customaudience/
DFetchAndJoinCustomAudienceInputTest.java172 FetchAndJoinCustomAudienceInput request1 = in testEquals_identical() local
190 et.expectObjectsAreEqual(request1, request2); in testEquals_identical()
197 FetchAndJoinCustomAudienceInput request1 = in testEquals_different() local
215 et.expectObjectsAreNotEqual(request1, request2); in testEquals_different()
220 FetchAndJoinCustomAudienceInput request1 = in testEquals_null() local
229 assertThat(request1).isNotNull(); in testEquals_null()
DScheduleCustomAudienceUpdateInputTest.java163 ScheduleCustomAudienceUpdateInput request1 = in testEquals_Same() local
178 et.expectObjectsAreEqual(request2, request1); in testEquals_Same()
184 ScheduleCustomAudienceUpdateInput request1 = in testEquals_Different() local
200 et.expectObjectsAreNotEqual(request1, request2); in testEquals_Different()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DPaginationTests.java101 ReadRecordsRequest<DistanceRecord> request1 = in readAllData_moreThanOnePage_allPagesReturnedCorrectly() local
106 ReadRecordsResponse<DistanceRecord> page1 = getReadRecordsResponse(request1); in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
146 ReadRecordsRequest<StepsRecord> request1 = in readAllData_multiplePagesSameStartTimeRecords_paginatedCorrectly() local
150 ReadRecordsResponse<StepsRecord> page1 = getReadRecordsResponse(request1); in readAllData_multiplePagesSameStartTimeRecords_paginatedCorrectly()
176 ReadRecordsRequest<HeartRateRecord> request1 = in readOnePage_pageTokenSpecified_returnsCorrectPage() local
180 ReadRecordsResponse<HeartRateRecord> page1 = getReadRecordsResponse(request1); in readOnePage_pageTokenSpecified_returnsCorrectPage()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDiscoveryRequestTest.kt74 val request1 = DiscoveryRequest.Builder("_ipps._tcp").build() in testEquality() constant
85 assertEquals(request1, request2) in testEquality()
87 assertNotEquals(request1, request3) in testEquality()
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java255 NsdServiceInfo request1 = new NsdServiceInfo("a_name", "a_type"); in doTestRegisterService() local
257 request1.setPort(2201); in doTestRegisterService()
263 manager.registerService(request1, PROTOCOL, listener1); in doTestRegisterService()
276 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in doTestRegisterService()
279 manager.registerService(request1, PROTOCOL, listener1); in doTestRegisterService()
283 mCallback.onRegisterServiceSucceeded(key3, request1); in doTestRegisterService()
284 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in doTestRegisterService()
292 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in doTestRegisterService()
316 DiscoveryRequest request1 = new DiscoveryRequest.Builder("a_type").build(); in doTestDiscoverService() local
337 mCallback.onDiscoverServicesStarted(key2, request1); in doTestDiscoverService()
[all …]
DAdvertisingRequestTest.kt90 val request1 = AdvertisingRequest.Builder(info, PROTOCOL_DNS_SD).build() in testEquality() constant
101 assertEquals(request1, request2) in testEquality()
103 assertNotEquals(request1, request3) in testEquality()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java978 RangingRequest request1 = RttTestUtils.getDummyRangingRequest((byte) 1); in testRangingTimeout() local
981 RttTestUtils.getDummyRangingResults(request1); in testRangingTimeout()
986 mDut.startRanging(mockIbinder, mPackageName, mFeatureId, null, request1, in testRangingTimeout()
993 verify(mockRttControllerHal).rangeRequest(mIntCaptor.capture(), eq(request1)); in testRangingTimeout()
1019 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(request1)); in testRangingTimeout()
1039 RangingRequest request1 = RttTestUtils.getDummyRangingRequest((byte) 1); in testRangingThrottleBackground() local
1047 RttTestUtils.getDummyRangingResults(request1); in testRangingThrottleBackground()
1064 mDut.startRanging(mockIbinder, mPackageName, mFeatureId, null, request1, in testRangingThrottleBackground()
1068 verify(mockRttControllerHal).rangeRequest(mIntCaptor.capture(), eq(request1)); in testRangingThrottleBackground()
1159 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(request1)); in testRangingThrottleBackground()
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DCreateMedicalDataSourceRequestTest.java111 CreateMedicalDataSourceRequest request1 = getCreateMedicalDataSourceRequest(); in testCreateMedicalDataSourceRequest_equals() local
114 assertThat(request1.equals(request2)).isTrue(); in testCreateMedicalDataSourceRequest_equals()
115 assertThat(request1.hashCode()).isEqualTo(request2.hashCode()); in testCreateMedicalDataSourceRequest_equals()
DReadMedicalResourcesRequestTest.java124 ReadMedicalResourcesRequest request1 = in testRequest_equals() local
135 assertThat(request1.equals(request2)).isTrue(); in testRequest_equals()
136 assertThat(request1.hashCode()).isEqualTo(request2.hashCode()); in testRequest_equals()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/federatedcompute/common/
DScheduleFederatedComputeRequestTest.java53 ScheduleFederatedComputeRequest request1 = in testScheduleFederatedComputeRequestEquals() local
76 assertThat(request1).isEqualTo(request2); in testScheduleFederatedComputeRequestEquals()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DRecordHelperTest.java158 ReadTableRequest request1 = in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults() local
162 try (Cursor cursor = mTransactionManager.read(request1)) { in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
244 ReadTableRequest request1 = in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults() local
246 try (Cursor cursor = mTransactionManager.read(request1)) { in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsObserversTest.java190 DataUsageRequest request1 = mStatsObservers.register(mContext, inputRequest, mUsageCallback, in testRegister_twoRequests_twoIds() local
192 assertTrue(request1.requestId > 0); in testRegister_twoRequests_twoIds()
193 assertTrue(Objects.equals(sTemplateWifi, request1.template)); in testRegister_twoRequests_twoIds()
194 assertEquals(THRESHOLD_BYTES, request1.thresholdInBytes); in testRegister_twoRequests_twoIds()
198 assertTrue(request2.requestId > request1.requestId); in testRegister_twoRequests_twoIds()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRecentLocationApps.java152 public int compare(RecentLocationApps.Request request1, in getAppListSorted()
154 return Long.compare(request1.requestFinishTime, request2.requestFinishTime); in getAppListSorted()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DRecentLocationAppsCompat.java143 public int compare(Request request1, Request request2) { in getAppListSorted()
144 return Long.compare(request1.requestFinishTime, request2.requestFinishTime); in getAppListSorted()

12