/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsResponseTests.java | 102 final MdnsResponse response = new MdnsResponse(/* now= */ 0, serviceName, INTERFACE_INDEX, in makeCompleteResponse() local 104 response.addPointerRecord(new MdnsPointerRecord(serviceType, receiptTimeMillis, in makeCompleteResponse() 106 response.setServiceRecord(new MdnsServiceRecord(serviceName, receiptTimeMillis, in makeCompleteResponse() 109 response.setTextRecord(new MdnsTextRecord(serviceName, receiptTimeMillis, in makeCompleteResponse() 111 response.addInet4AddressRecord(new MdnsInetAddressRecord( in makeCompleteResponse() 114 response.addInet6AddressRecord(new MdnsInetAddressRecord( in makeCompleteResponse() 117 return response; in makeCompleteResponse() 127 MdnsResponse response = new MdnsResponse(0, TEST_SERVICE_NAME, INTERFACE_INDEX, mNetwork); in getInet4AddressRecord_returnsAddedRecord() local 128 assertFalse(response.hasInet4AddressRecord()); in getInet4AddressRecord_returnsAddedRecord() 129 assertTrue(response.addInet4AddressRecord(record)); in getInet4AddressRecord_returnsAddedRecord() [all …]
|
D | MdnsResponseDecoderTests.java | 230 MdnsResponse response = responses.valueAt(0); in testDecodeMultipleAnswerPacket() local 231 assertTrue(response.isComplete()); in testDecodeMultipleAnswerPacket() 233 MdnsInetAddressRecord inet4AddressRecord = response.getInet4AddressRecord(); in testDecodeMultipleAnswerPacket() 239 MdnsServiceRecord serviceRecord = response.getServiceRecord(); in testDecodeMultipleAnswerPacket() 261 MdnsTextRecord textRecord = response.getTextRecord(); in testDecodeMultipleAnswerPacket() 275 MdnsResponse response = responseArraySet.valueAt(0); in verifyResponse() local 276 assertTrue(response.isComplete()); in verifyResponse() 278 MdnsInetAddressRecord inet6AddressRecord = response.getInet6AddressRecord(); in verifyResponse() 306 MdnsResponse response = new MdnsResponse(responses.valueAt(0)); in testIsComplete() local 307 assertTrue(response.isComplete()); in testIsComplete() [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/satellite/entitlement/ |
D | SatelliteEntitlementResponseTest.java | 81 SatelliteEntitlementResponse response = new SatelliteEntitlementResponse( in testGetSatelliteEntitlementResponse() local 83 assertEquals(SATELLITE_ENTITLEMENT_STATUS_ENABLED, response.getEntitlementStatus()); in testGetSatelliteEntitlementResponse() 84 assertTrue(response.getPlmnAllowed().size() == 2); in testGetSatelliteEntitlementResponse() 86 response.getPlmnAllowed().get(0).mPlmn); in testGetSatelliteEntitlementResponse() 88 response.getPlmnAllowed().get(0).mDataPlanType); in testGetSatelliteEntitlementResponse() 90 response.getPlmnAllowed().get(0).mAllowedServicesInfo); in testGetSatelliteEntitlementResponse() 92 response.getPlmnAllowed().get(1).mPlmn); in testGetSatelliteEntitlementResponse() 94 response.getPlmnAllowed().get(1).mDataPlanType); in testGetSatelliteEntitlementResponse() 96 response.getPlmnAllowed().get(1).mAllowedServicesInfo); in testGetSatelliteEntitlementResponse() 97 assertTrue(response.getPlmnBarredList().size() == 2); in testGetSatelliteEntitlementResponse() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsResponseDecoder.java | 52 for (MdnsResponse response : responses) { in findResponseWithPointer() 53 if (DnsUtils.equalsDnsLabelIgnoreDnsCase(response.getServiceName(), pointer)) { in findResponseWithPointer() 54 return response; in findResponseWithPointer() 64 for (MdnsResponse response : responses) { in findResponseWithHostName() 65 MdnsServiceRecord serviceRecord = response.getServiceRecord(); in findResponseWithHostName() 71 return response; in findResponseWithHostName() 181 MdnsResponse response = findResponseWithPointer(responses, in augmentResponses() local 183 if (response == null) { in augmentResponses() 184 response = new MdnsResponse(now, pointerRecord.getPointer(), interfaceIndex, in augmentResponses() 186 responses.add(response); in augmentResponses() [all …]
|
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/grpc/impl/ |
D | DeviceCheckinClientImplTest.java | 168 AtomicReference<GetDeviceCheckInStatusGrpcResponse> response = new AtomicReference<>(); in getCheckInStatus_succeeds() local 169 mBgExecutor.submit(() -> response.set( in getCheckInStatus_succeeds() 179 assertThat(response.get().isSuccessful()).isTrue(); in getCheckInStatus_succeeds() 194 AtomicReference<GetDeviceCheckInStatusGrpcResponse> response = new AtomicReference<>(); in getCheckInStatus_noFcmToken_succeeds() local 195 mBgExecutor.submit(() -> response.set( in getCheckInStatus_noFcmToken_succeeds() 205 assertThat(response.get().isSuccessful()).isTrue(); in getCheckInStatus_noFcmToken_succeeds() 220 AtomicReference<GetDeviceCheckInStatusGrpcResponse> response = new AtomicReference<>(); in getCheckInStatus_emptyFcmToken_succeeds() local 221 mBgExecutor.submit(() -> response.set( in getCheckInStatus_emptyFcmToken_succeeds() 231 assertThat(response.get().isSuccessful()).isTrue(); in getCheckInStatus_emptyFcmToken_succeeds() 246 AtomicReference<GetDeviceCheckInStatusGrpcResponse> response = new AtomicReference<>(); in getCheckInStatus_blankFcmToken_succeeds() local [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
D | GetTranscriptResponseAsync.java | 27 @Nullable private final GetTranscriptResponse response; field in GetTranscriptResponseAsync 30 public GetTranscriptResponseAsync(GetTranscriptResponse response) { in GetTranscriptResponseAsync() argument 31 Assert.checkArgument(response != null); in GetTranscriptResponseAsync() 32 this.response = response; in GetTranscriptResponseAsync() 38 this.response = null; in GetTranscriptResponseAsync() 42 if (response != null) { in getTranscript() 43 return response.getTranscript(); in getTranscript() 55 if (response != null) { in getErrorDescription() 56 return "Transcription error: " + response.getStatus(); in getErrorDescription() 63 if (response == null) { in getTranscriptionStatus() [all …]
|
D | TranscriptionResponseAsync.java | 26 @Nullable private final TranscribeVoicemailAsyncResponse response; field in TranscriptionResponseAsync 29 public TranscriptionResponseAsync(TranscribeVoicemailAsyncResponse response) { in TranscriptionResponseAsync() argument 30 Assert.checkArgument(response != null); in TranscriptionResponseAsync() 31 this.response = response; in TranscriptionResponseAsync() 37 this.response = null; in TranscriptionResponseAsync() 41 if (response != null) { in getTranscriptionId() 42 return response.getTranscriptionId(); in getTranscriptionId() 48 if (response != null) { in getEstimatedWaitMillis() 49 return response.getEstimatedWaitSecs() * 1_000L; in getEstimatedWaitMillis() 56 return super.toString() + ", response: " + response; in toString()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/response/ |
D | GetImsiPseudonymResponseTest.java | 17 package com.android.server.wifi.entitlement.response; 64 GetImsiPseudonymResponse response = new GetImsiPseudonymResponse(bodyArray.toString()); in responseBodyCorrectWithRefreshInterval() local 65 assertEquals(Response.RESPONSE_CODE_REQUEST_SUCCESSFUL, response.getAuthResponseCode()); in responseBodyCorrectWithRefreshInterval() 66 assertEquals(AKA_TOKEN, response.getAkaToken()); in responseBodyCorrectWithRefreshInterval() 68 response.getGetImsiPseudonymResponseCode()); in responseBodyCorrectWithRefreshInterval() 69 PseudonymInfo pseudonymInfo = response.toPseudonymInfo(IMSI).get(); in responseBodyCorrectWithRefreshInterval() 87 GetImsiPseudonymResponse response = new GetImsiPseudonymResponse(bodyArray.toString()); in responseBodyCorrectWithoutRefreshInterval() local 88 assertEquals(Response.RESPONSE_CODE_REQUEST_SUCCESSFUL, response.getAuthResponseCode()); in responseBodyCorrectWithoutRefreshInterval() 89 assertEquals(AKA_TOKEN, response.getAkaToken()); in responseBodyCorrectWithoutRefreshInterval() 91 response.getGetImsiPseudonymResponseCode()); in responseBodyCorrectWithoutRefreshInterval() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | UserIdentificationAssociationResponseTest.java | 33 UserIdentificationAssociationResponse response = forFailure(); in testFailure_noMessage() local 35 assertThat(response).isNotNull(); in testFailure_noMessage() 36 assertThat(response.isSuccess()).isFalse(); in testFailure_noMessage() 37 assertThat(response.getErrorMessage()).isNull(); in testFailure_noMessage() 38 assertThat(response.getValues()).isNull(); in testFailure_noMessage() 43 UserIdentificationAssociationResponse response = forFailure("D'OH!"); in testFailure_withMessage() local 45 assertThat(response).isNotNull(); in testFailure_withMessage() 46 assertThat(response.isSuccess()).isFalse(); in testFailure_withMessage() 47 assertThat(response.getErrorMessage()).isEqualTo("D'OH!"); in testFailure_withMessage() 48 assertThat(response.getValues()).isNull(); in testFailure_withMessage() [all …]
|
/packages/services/Car/tools/telemetry/lua-interpreter/tests/ |
D | app_test.py | 17 response = self.client.get('/') 18 self.assertIn('Lua Telemetry Interpreter', str(response.data)) 21 response = self.client.post('/get_published_data_file_names_and_content') 22 data = response.get_json()['file_names'] 30 data = response.get_json()['memory_publisher'] 34 response = self.client.post( 45 rendered_html = BeautifulSoup(response.data.decode('UTF-8'), 'html.parser') 50 response = self.client.post( 58 rendered_html = BeautifulSoup(response.data.decode('UTF-8'), 'html.parser') 66 response = self.client.post( [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/testing/ |
D | TestInformationHandler.java | 120 final Bundle response = new Bundle(); in call() local 143 response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, false); in call() 144 return response; in call() 180 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 182 return response; in call() 196 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 198 return response; in call() 203 return response; in call() 206 response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, mDeviceProfile.isTablet); in call() 207 return response; in call() [all …]
|
/packages/services/Car/cpp/computepipe/tests/runner/graph/includes/ |
D | GrpcGraphServerImpl.h | 92 proto::GraphOptionsResponse* response) override { in GetGraphOptions() argument 95 response->set_serialized_options(options.SerializeAsString()); in GetGraphOptions() 101 proto::StatusResponse* response) override { in SetGraphConfig() argument 102 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in SetGraphConfig() 103 response->set_message(kSetGraphConfigMessage); in SetGraphConfig() 109 proto::StatusResponse* response) override { in SetDebugOption() argument 110 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in SetDebugOption() 111 response->set_message(kSetDebugOptionMessage); in SetDebugOption() 117 proto::StatusResponse* response) override { in StartGraphExecution() argument 118 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in StartGraphExecution() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | QuickstepTestInformationHandler.java | 43 final Bundle response = new Bundle(); in call() local 62 response.putStringArrayList(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 64 return response; in call() 70 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call() 71 return response; in call() 76 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call() 77 return response; in call() 97 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 99 return response; in call() 108 response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, true); in call() [all …]
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | device.cc | 106 auto response = RejectBuilder::MakeBuilder(static_cast<CommandPdu>(0), Status::INVALID_COMMAND); in VendorPacketHandler() local 107 send_message(label, false, std::move(response)); in VendorPacketHandler() 127 auto response = in VendorPacketHandler() local 129 send_message(label, false, std::move(response)); in VendorPacketHandler() 175 auto response = RejectBuilder::MakeBuilder(pkt->GetCommandPdu(), Status::INVALID_PARAMETER); in VendorPacketHandler() local 176 send_message(label, false, std::move(response)); in VendorPacketHandler() 198 auto response = RejectBuilder::MakeBuilder(pkt->GetCommandPdu(), Status::INVALID_PARAMETER); in VendorPacketHandler() local 199 send_message(label, false, std::move(response)); in VendorPacketHandler() 212 auto response = RejectBuilder::MakeBuilder(pkt->GetCommandPdu(), Status::INVALID_COMMAND); in VendorPacketHandler() local 213 send_message(label, false, std::move(response)); in VendorPacketHandler() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/ |
D | MeasurementHttpResponseTest.java | 34 final MeasurementHttpResponse response = in testBuildWithMinimalRequiredValues() local 37 Assert.assertNotNull(response); in testBuildWithMinimalRequiredValues() 38 Assert.assertEquals(responseCode, response.getStatusCode()); in testBuildWithMinimalRequiredValues() 39 Assert.assertNotNull(response.getHeaders()); in testBuildWithMinimalRequiredValues() 40 Assert.assertEquals(0, response.getHeaders().size()); in testBuildWithMinimalRequiredValues() 41 Assert.assertNull(response.getPayload()); in testBuildWithMinimalRequiredValues() 48 final MeasurementHttpResponse response = in testBuildWithAllValues() local 58 Assert.assertNotNull(response); in testBuildWithAllValues() 59 Assert.assertEquals(responseCode, response.getStatusCode()); in testBuildWithAllValues() 60 Assert.assertNotNull(response.getHeaders()); in testBuildWithAllValues() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetClccResponseTest.java | 41 HeadsetClccResponse response = in constructor() local 51 assertThat(response.mIndex).isEqualTo(TEST_INDEX); in constructor() 52 assertThat(response.mDirection).isEqualTo(TEST_DIRECTION); in constructor() 53 assertThat(response.mStatus).isEqualTo(TEST_STATUS); in constructor() 54 assertThat(response.mMode).isEqualTo(TEST_MODE); in constructor() 55 assertThat(response.mMpty).isEqualTo(TEST_MPTY); in constructor() 56 assertThat(response.mNumber).isEqualTo(TEST_NUMBER); in constructor() 57 assertThat(response.mType).isEqualTo(TEST_TYPE); in constructor() 62 HeadsetClccResponse response = in buildString() local 73 response.buildString(builder); in buildString() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/ |
D | HealthConnectChangeLogsTests.java | 284 ChangeLogsResponse response = getChangeLogs(changeLogsRequest); in testChangeLogs_noOperations_returnsEmptyChangelogs() local 286 assertThat(response.getUpsertedRecords()).isEmpty(); in testChangeLogs_noOperations_returnsEmptyChangelogs() 287 assertThat(response.getDeletedLogs()).isEmpty(); in testChangeLogs_noOperations_returnsEmptyChangelogs() 298 ChangeLogsResponse response = getChangeLogs(changeLogsRequest); in testChangeLogs_insert_returnsUpsertedLogsOnly() local 300 assertThat(response.getUpsertedRecords()).containsExactlyElementsIn(testRecords); in testChangeLogs_insert_returnsUpsertedLogsOnly() 301 assertThat(response.getDeletedLogs()).isEmpty(); in testChangeLogs_insert_returnsUpsertedLogsOnly() 317 ChangeLogsResponse response = getChangeLogs(changeLogsRequest); in testChangeLogs_insert_filterNonExistingDataOrigin_returnsEmptyLogs() local 319 assertThat(response.getUpsertedRecords()).isEmpty(); in testChangeLogs_insert_filterNonExistingDataOrigin_returnsEmptyLogs() 337 ChangeLogsResponse response = getChangeLogs(changeLogsRequest); in testChangeLogs_insertAndDelete_filterNonExistingDataOrigin_returnsEmptyLogs() local 339 assertThat(response.getUpsertedRecords()).isEmpty(); in testChangeLogs_insertAndDelete_filterNonExistingDataOrigin_returnsEmptyLogs() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/ |
D | MeasurementErrorResponseTest.java | 42 MeasurementErrorResponse response = new MeasurementErrorResponse.Builder().build(); in testDefaults() local 44 expect.that(response.getStatusCode()).isEqualTo(0); in testDefaults() 45 expect.that(response.getErrorMessage()).isNull(); in testDefaults() 64 MeasurementErrorResponse response = in testAdServicesException_invalidArgument_expectIllegalArgumentException() local 68 assertThat(AdServicesStatusUtils.asException(response)) in testAdServicesException_invalidArgument_expectIllegalArgumentException() 74 MeasurementErrorResponse response = in testAdServicesException_internalError_expectIllegalStateException() local 76 assertThat(AdServicesStatusUtils.asException(response)) in testAdServicesException_internalError_expectIllegalStateException() 82 MeasurementErrorResponse response = in testAdServicesException_ioError_expectIOException() local 84 assertThat(AdServicesStatusUtils.asException(response)).isInstanceOf(IOException.class); in testAdServicesException_ioError_expectIOException() 89 MeasurementErrorResponse response = in testAdServicesException_unauthorized_expectSecurityException() local [all …]
|
/packages/services/Car/cpp/computepipe/runner/graph/ |
D | GrpcGraph.cpp | 39 ResponseType* response) { in FinishRpcAndGetResult() argument 42 rpc->Finish(response, &grpcStatus, reinterpret_cast<void*>(random_tag)); in FinishRpcAndGetResult() 103 proto::GraphOptionsResponse response; in initialize() local 104 auto [mStatus, mErrorMessage] = FinishRpcAndGetResult(rpc.get(), &cq, &response); in initialize() 111 std::string serialized_options = response.serialized_options(); in initialize() 152 proto::StatusResponse response; in handleConfigPhase() local 153 auto [mStatus, mErrorMessage] = FinishRpcAndGetResult(rpc.get(), &cq, &response); in handleConfigPhase() 159 if (response.code() != proto::RemoteGraphStatusCode::SUCCESS) { in handleConfigPhase() 160 LOG(ERROR) << "Failed to cofngure remote graph. " << response.message(); in handleConfigPhase() 163 mStatus = static_cast<Status>(static_cast<int>(response.code())); in handleConfigPhase() [all …]
|
/packages/modules/HealthFitness/tests/cts/phr/src/android/healthconnect/cts/phr/ |
D | ReadMedicalResourcesResponseTest.java | 53 ReadMedicalResourcesResponse response = in testReadMedicalResourcesResponse_constructor_emptyList() local 56 assertThat(response.getMedicalResources()).isEqualTo(List.of()); in testReadMedicalResourcesResponse_constructor_emptyList() 57 assertThat(response.getNextPageToken()).isNull(); in testReadMedicalResourcesResponse_constructor_emptyList() 58 assertThat(response.getRemainingCount()).isEqualTo(0); in testReadMedicalResourcesResponse_constructor_emptyList() 64 ReadMedicalResourcesResponse response = in testReadMedicalResourcesResponse_constructor_singleton() local 67 assertThat(response.getMedicalResources()).isEqualTo(medicalResources); in testReadMedicalResourcesResponse_constructor_singleton() 68 assertThat(response.getNextPageToken()).isNull(); in testReadMedicalResourcesResponse_constructor_singleton() 69 assertThat(response.getRemainingCount()).isEqualTo(0); in testReadMedicalResourcesResponse_constructor_singleton() 82 ReadMedicalResourcesResponse response = in testReadMedicalResourcesResponse_constructor_multipleEntries() local 85 assertThat(response.getMedicalResources()).isEqualTo(medicalResources); in testReadMedicalResourcesResponse_constructor_multipleEntries() [all …]
|
/packages/providers/ContactsKeysProvider/src/com/android/providers/contactkeys/ |
D | E2eeContactKeysProvider.java | 121 final Bundle response = new Bundle(); in updateOrInsertE2eeContactKey() local 140 response.putBoolean(E2eeContactKeys.KEY_UPDATED_ROWS, rowsUpdateOrInserted > 0); in updateOrInsertE2eeContactKey() 142 return response; in updateOrInsertE2eeContactKey() 163 final Bundle response = new Bundle(); in getE2eeContactKey() local 164 response.putParcelable(E2eeContactKeys.KEY_CONTACT_KEY, contactKey); in getE2eeContactKey() 166 return response; in getE2eeContactKey() 180 final Bundle response = new Bundle(); in getAllE2eeContactKeys() local 190 response.putParcelableList(E2eeContactKeys.KEY_CONTACT_KEYS, contactKeys); in getAllE2eeContactKeys() 192 return response; in getAllE2eeContactKeys() 198 response.putParcelableList(E2eeContactKeys.KEY_CONTACT_KEYS, contactKeys); in getAllE2eeContactKeys() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | UserHalService.java | 588 UserIdentificationResponse response; in getUserAssociation() local 590 response = UserHalHelper.toUserIdentificationResponse(responseAsPropValue); in getUserAssociation() 595 if (DBG) Slogf.d(TAG, "getUserAssociation(): response=" + response); in getUserAssociation() 598 if (response.requestId != request.requestId) { in getUserAssociation() 600 + "response: " + response); in getUserAssociation() 603 if (response.numberAssociation != request.numberAssociationTypes) { in getUserAssociation() 606 + ": " + response); in getUserAssociation() 611 int actualType = response.associations[i].type; in getUserAssociation() 613 Slogf.w(TAG, "Wrong type on index " + i + " of HAL response (" + response + ") for " in getUserAssociation() 624 int[] associationTypes = new int[response.numberAssociation]; in getUserAssociation() [all …]
|
/packages/apps/SecureElement/src/com/android/se/security/ara/ |
D | AccessRuleApplet.java | 74 ResponseApdu response = send(apdu); in readAllAccessRules() local 77 if (response.isStatus(0x9000)) { in readAllAccessRules() 81 tempTlv = BerTlv.decode(response.getData(), 0, false); in readAllAccessRules() 91 stream.write(response.getData()); in readAllAccessRules() 108 response = send(apdu); in readAllAccessRules() 110 if (response.isStatus(0x9000)) { in readAllAccessRules() 112 stream.write(response.getData()); in readAllAccessRules() 119 + response.getSW1SW2()); in readAllAccessRules() 124 } else if (response.isStatus(0x6A88)) { in readAllAccessRules() 128 + response.getSW1SW2()); in readAllAccessRules() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalHelperTest.java | 534 UserIdentificationResponse response = UserHalHelper.toUserIdentificationResponse(prop); in testToUserIdentificationResponse_ok() local 536 assertWithMessage("Wrong request id on %s", response) in testToUserIdentificationResponse_ok() 537 .that(response.requestId).isEqualTo(42); in testToUserIdentificationResponse_ok() 538 assertWithMessage("Wrong number of associations on %s", response) in testToUserIdentificationResponse_ok() 539 .that(response.numberAssociation).isEqualTo(3); in testToUserIdentificationResponse_ok() 540 assertAssociation(response, 0, KEY_FOB, ASSOCIATED_ANOTHER_USER); in testToUserIdentificationResponse_ok() 541 assertAssociation(response, 1, CUSTOM_1, ASSOCIATED_CURRENT_USER); in testToUserIdentificationResponse_ok() 542 assertAssociation(response, 2, CUSTOM_2, NOT_ASSOCIATED_ANY_USER); in testToUserIdentificationResponse_ok() 543 assertWithMessage("Wrong error message on %s", response) in testToUserIdentificationResponse_ok() 544 .that(response.errorMessage).isEqualTo("D'OH!"); in testToUserIdentificationResponse_ok() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | BaseDurationAggregationTest.java | 122 AggregateRecordsResponse<ResultType> response = in noData_largeWindow_returnsNull() local 132 assertThat(response.get(mAggregationType)).isNull(); in noData_largeWindow_returnsNull() 133 assertThat(response.getZoneOffset(mAggregationType)).isNull(); in noData_largeWindow_returnsNull() 134 assertThat(response.getDataOrigins(mAggregationType)).isEmpty(); in noData_largeWindow_returnsNull() 145 AggregateRecordsResponse<ResultType> response = in oneRecord_largeWindow_returnsRecordDuration() local 155 assertThat(response.get(mAggregationType)).isNotNull(); in oneRecord_largeWindow_returnsRecordDuration() 156 assertThat(response.get(mAggregationType)) in oneRecord_largeWindow_returnsRecordDuration() 158 assertThat(response.getZoneOffset(mAggregationType)).isEqualTo(record.getStartZoneOffset()); in oneRecord_largeWindow_returnsRecordDuration() 159 assertThat(response.getDataOrigins(mAggregationType)) in oneRecord_largeWindow_returnsRecordDuration() 173 AggregateRecordsResponse<ResultType> response = in oneRecord_startsBeforeWindowStart_endsOnWindowEnd_returnsOverlapDuration() local [all …]
|