Home
last modified time | relevance | path

Searched refs:PAYLOAD (Results 1 – 23 of 23) sorted by relevance

/packages/modules/Uwb/framework/tests/src/android/uwb/
DUwbVendorUciCallbackListenerTest.java58 private static final byte[] PAYLOAD = new byte[] {0x0, 0x1}; field in UwbVendorUciCallbackListenerTest
127 cb.onVendorResponseReceived(GID, OID, PAYLOAD);
142 verify(mUwbVendorUciCallback, times(1)).onVendorUciResponse(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
146 verify(mUwbVendorUciCallback, times(1)).onVendorUciResponse(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
147 verify(mUwbVendorUciCallback2, never()).onVendorUciResponse(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
149 mUwbVendorUciCallbackListener.onVendorResponseReceived(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
150 verify(mUwbVendorUciCallback, times(2)).onVendorUciResponse(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
151 verify(mUwbVendorUciCallback2, times(1)).onVendorUciResponse(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
154 mUwbVendorUciCallbackListener.onVendorResponseReceived(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
156 verify(mUwbVendorUciCallback2, times(2)).onVendorUciResponse(GID, OID, PAYLOAD); in testOnVendorResponseReceived_succeed()
[all …]
DUwbManagerTest.java72 private static final byte[] PAYLOAD = new byte[] {0x0, 0x1}; field in UwbManagerTest
251 when(mIUwbAdapter.sendVendorUciMessage(MESSAGE_TYPE_COMMAND, GID, OID, PAYLOAD)) in testSendVendorUciMessage()
253 assertThat(mUwbManager.sendVendorUciMessage(GID, OID, PAYLOAD)) in testSendVendorUciMessage()
256 GID, OID, PAYLOAD); in testSendVendorUciMessage()
258 RuntimeException.class, () -> mUwbManager.sendVendorUciMessage(GID, OID, PAYLOAD)); in testSendVendorUciMessage()
263 when(mIUwbAdapter.sendVendorUciMessage(MT, GID, OID, PAYLOAD)) in testSendVendorUciMessageWithMessageType()
265 assertThat(mUwbManager.sendVendorUciMessage(MT, GID, OID, PAYLOAD)) in testSendVendorUciMessageWithMessageType()
268 PAYLOAD); in testSendVendorUciMessageWithMessageType()
271 PAYLOAD)); in testSendVendorUciMessageWithMessageType()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsPublisherSubscriberTest.java56 private static final byte[] PAYLOAD = {0xa, 0xb}; field in VmsPublisherSubscriberTest
203 mPublisher.publish(SUBSCRIPTION_LAYER, publisherId, PAYLOAD); in testStartMonitoring()
204 assertDataMessage(SUBSCRIPTION_LAYER, PAYLOAD); in testStartMonitoring()
210 mPublisher.publish(SUBSCRIPTION_LAYER, publisherId, PAYLOAD); in testStartMonitoring_AfterPublish()
221 mPublisher.publish(SUBSCRIPTION_LAYER, publisherId, PAYLOAD); in testStartMonitoring_MultipleLayers()
222 assertDataMessage(SUBSCRIPTION_LAYER, PAYLOAD); in testStartMonitoring_MultipleLayers()
233 mPublisher.publish(SUBSCRIPTION_LAYER, publisherId, PAYLOAD); in testStartMonitoring_MultiplePublishers()
234 assertDataMessage(SUBSCRIPTION_LAYER, PAYLOAD); in testStartMonitoring_MultiplePublishers()
248 mPublisher.publish(SUBSCRIPTION_LAYER, publisherId, PAYLOAD); in testStopMonitoring()
259 mPublisher.publish(SUBSCRIPTION_LAYER, publisherId, PAYLOAD); in testSubscribe()
[all …]
DVmsSubscriberManagerTest.java80 private static final byte[] PAYLOAD = {0xa, 0xb}; field in VmsSubscriberManagerTest
95 PAYLOAD); in testSubscribe()
99 assertArrayEquals(PAYLOAD, message.second); in testSubscribe()
115 PAYLOAD); in testSubscribeToPublisher()
133 PAYLOAD); in testSubscribeFromPublisher()
137 assertArrayEquals(PAYLOAD, message.second); in testSubscribeFromPublisher()
154 PAYLOAD); in testUnsubscribe()
172 PAYLOAD); in testSubscribeFromWrongPublisher()
191 PAYLOAD); in testUnsubscribeFromPublisher()
209 PAYLOAD); in testSubscribeAll()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/
DFederatedComputeHttpRequestTest.java37 private static final byte[] PAYLOAD = "non_empty_request_body".getBytes(); field in FederatedComputeHttpRequestTest
45 "http://invalid.com", HttpMethod.GET, new HashMap<>(), PAYLOAD)); in testCreateRequestInvalidUri_fails()
54 "https://valid.com", HttpMethod.GET, new HashMap<>(), PAYLOAD)); in testCreateWithInvalidRequestBody_fails()
65 "https://valid.com", HttpMethod.POST, headers, PAYLOAD)); in testCreateWithContentLengthHeader_fails()
115 expectedUri, HttpMethod.POST, new HashMap<>(), PAYLOAD); in createPostRequestWithBody_valid()
119 assertThat(request.getBody()).isEqualTo(PAYLOAD); in createPostRequestWithBody_valid()
130 expectedUri, HttpMethod.POST, expectedHeaders, PAYLOAD); in createPostRequestWithBodyHeader_valid()
134 assertThat(request.getBody()).isEqualTo(PAYLOAD); in createPostRequestWithBodyHeader_valid()
145 expectedUri, HttpMethod.POST, headerList, PAYLOAD); in createGetRequestWithAcceptCompression_valid()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DDecisionLogicTest.java28 private static final String PAYLOAD = "sample payload"; field in DecisionLogicTest
36 DecisionLogic decisionLogic = DecisionLogic.create(PAYLOAD, VERSION_MAP); in testGetVersion()
37 assertEquals(PAYLOAD, decisionLogic.getPayload()); in testGetVersion()
44 DecisionLogic.create(PAYLOAD, ImmutableMap.of()); in testGetVersion()
45 assertEquals(PAYLOAD, decisionLogicWithEmptyVersions.getPayload()); in testGetVersion()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DFiraConnectorDataPacketTest.java50 private static final byte[] PAYLOAD = new byte[] {(byte) 0xF4, 0x00, 0x40}; field in FiraConnectorDataPacketTest
64 assertThat(packet.payload).isEqualTo(PAYLOAD); in fromBytes_succeedLastPacket()
76 assertThat(packet.payload).isEqualTo(PAYLOAD); in fromBytes_succeedNotLastPacket()
82 new FiraConnectorDataPacket(LAST_CHAINING_PACKET, SECID, PAYLOAD); in toBytes_succeed()
DAdminErrorMessageTest.java40 private static final byte[] PAYLOAD = field in AdminErrorMessageTest
47 MessageType.COMMAND_RESPOND, InstructionCode.ERROR_INDICATION, PAYLOAD);
124 byte[] payload = Arrays.copyOf(PAYLOAD, PAYLOAD.length); in testConstructwithBytes()
DFiraConnectorMessageTest.java54 private static final byte[] PAYLOAD = new byte[] {(byte) 0xF4, 0x00, 0x40}; field in FiraConnectorMessageTest
86 assertThat(message.payload).isEqualTo(PAYLOAD); in testHeaderFromBytes()
101 new FiraConnectorMessage(MESSAGE_TYPE, INSTRUCTION_CODE, PAYLOAD); in toBytes_succeed()
DAdminEventMessageTest.java38 private static final byte[] PAYLOAD = field in AdminEventMessageTest
44 new FiraConnectorMessage(MessageType.EVENT, InstructionCode.DATA_EXCHANGE, PAYLOAD);
125 assertThat(message.payload).isEqualTo(PAYLOAD); in testConstructor()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsBrokerServiceTest.java102 private static final byte[] PAYLOAD = {1, 2, 3, 4, 5, 6, 7, 8}; field in VmsBrokerServiceTest
2533 () -> mBrokerService.publishPacket(new Binder(), providerId, LAYER1, PAYLOAD)); in testPublishPacket_UnknownClient()
2543 () -> mBrokerService.publishPacket(mClientToken1, providerId, LAYER1, PAYLOAD)); in testPublishPacket_UnknownOffering()
2553 mBrokerService.publishPacket(mClientToken1, 12345, LAYER1, PAYLOAD); in testPublishPacket_UnknownOffering_LegacyClient()
2555 verify(mClientLog1).logPacketSent(LAYER1, PAYLOAD.length); in testPublishPacket_UnknownOffering_LegacyClient()
2556 verify(mClientLog1).logPacketReceived(LAYER1, PAYLOAD.length); in testPublishPacket_UnknownOffering_LegacyClient()
2557 verifyPacketReceived(mClientCallback1, 12345, LAYER1, PAYLOAD); in testPublishPacket_UnknownOffering_LegacyClient()
2570 mBrokerService.publishPacket(mClientToken1, providerId, LAYER1, PAYLOAD); in testPublishPacket_NoSubscribers()
2572 verify(mClientLog1).logPacketSent(LAYER1, PAYLOAD.length); in testPublishPacket_NoSubscribers()
2573 verify(mNoSubscribersLog).logPacketDropped(LAYER1, PAYLOAD.length); in testPublishPacket_NoSubscribers()
[all …]
/packages/modules/Connectivity/clatd/
Dclatd_test.cpp79 #define PAYLOAD 'H', 'e', 'l', 'l', 'o', ' ', 0x4e, 0xb8, 0x96, 0xe7, 0x95, 0x8c, 0x00 macro
623 uint8_t v4_udp_packet[] = { IPV4_UDP_HEADER UDP_HEADER PAYLOAD }; in TEST_F()
629 uint8_t v6_udp_packet[] = { IPV6_UDP_HEADER UDP_HEADER PAYLOAD }; in TEST_F()
635 uint8_t ipv4_ping[] = { IPV4_ICMP_HEADER IPV4_PING PAYLOAD }; in TEST_F()
638 uint8_t ipv6_ping[] = { IPV6_ICMPV6_HEADER IPV6_PING PAYLOAD }; in TEST_F()
680 uint8_t payload[] = { PAYLOAD }; in TEST_F()
744 uint8_t udp_ipv4[] = { IPV4_UDP_HEADER UDP_HEADER PAYLOAD }; in TEST_F()
745 uint8_t udp_ipv6[] = { IPV6_UDP_HEADER UDP_HEADER PAYLOAD }; in TEST_F()
753 uint8_t ipv4_ping[] = { IPV4_ICMP_HEADER IPV4_PING PAYLOAD }; in TEST_F()
754 uint8_t ipv6_ping[] = { IPV6_ICMPV6_HEADER IPV6_PING PAYLOAD }; in TEST_F()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java79 private static final byte[] PAYLOAD = new byte[]{1, 2, 3, 4}; field in VmsHalServiceTest
215 verify(mVmsClient).publishPacket(PUBLISHER_ID, LAYER, PAYLOAD); in testHandleDataEvent()
284 mEventCallback.onPacketReceived(PUBLISHER_ID, LAYER, PAYLOAD); in testOnPacketReceivedEvent()
397 when(mVmsClient.registerProvider(PAYLOAD)).thenReturn(PUBLISHER_ID); in testHandlePublisherIdRequestEvent()
428 when(mVmsClient.getProviderDescription(PUBLISHER_ID)).thenReturn(PAYLOAD); in testHandlePublisherInformationRequestEvent()
1098 byte[] dumpsysOutput = new byte[PAYLOAD.length]; in testDumpMetrics_VendorProperty()
1099 assertEquals(PAYLOAD.length, inputStream.read(dumpsysOutput)); in testDumpMetrics_VendorProperty()
1100 assertArrayEquals(PAYLOAD, dumpsysOutput); in testDumpMetrics_VendorProperty()
/packages/services/Car/tests/carservice_test/src/com/android/car/vms/
DVmsClientTest.java80 private static final byte[] PAYLOAD = {1, 2, 3, 4, 5, 6, 7, 8}; field in VmsClientTest
2168 () -> client.publishPacket(providerId, LAYER1, PAYLOAD)); in testPublishPacket_UnknownOffering()
2180 client.publishPacket(providerId, LAYER1, PAYLOAD); in testPublishPacket_NoSubscribers()
2197 client.publishPacket(providerId, LAYER1, PAYLOAD); in testPublishPacket_MonitorSubscriber_Enabled()
2200 verifyPacketReceived(mClientCallback1, providerId, LAYER1, PAYLOAD); in testPublishPacket_MonitorSubscriber_Enabled()
2215 client.publishPacket(providerId, LAYER1, PAYLOAD); in testPublishPacket_MonitorSubscriber_EnabledAndDisabled()
2234 client.publishPacket(providerId, LAYER1, PAYLOAD); in testPublishPacket_LayerSubscriber()
2237 verifyPacketReceived(mClientCallback1, providerId, LAYER1, PAYLOAD); in testPublishPacket_LayerSubscriber()
2254 client.publishPacket(providerId, LAYER1, PAYLOAD); in testPublishPacket_LayerSubscriber_Unsubscribe()
2273 client.publishPacket(providerId, LAYER1, PAYLOAD); in testPublishPacket_LayerSubscriber_DifferentLayer()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DRateLimitTest.java97 private static final byte[] PAYLOAD = new byte[1472]; field in RateLimitTest
209 PAYLOAD.length); in sendPacketsToTunInterfaceForDuration()
215 buffer.put(PAYLOAD); in sendPacketsToTunInterfaceForDuration()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DAggregateReportBody.java67 String PAYLOAD = "payload"; field
170 aggregationServicePayload.put(AggregationServicePayloadKeys.PAYLOAD, encryptedPayload); in aggregationServicePayloadsToJson()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDatabaseHelper.java77 String PAYLOAD = "payload"; field
140 IndexColumns.PAYLOAD +
DDatabaseIndexingManager.java35 … static com.android.settings.intelligence.search.indexing.IndexDatabaseHelper.IndexColumns.PAYLOAD;
256 values.put(PAYLOAD, dataRow.payload); in insertIndexData()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/search/
DSearchIndexablesContractTest.java66 assertThat(SearchIndexablesContract.RawData.PAYLOAD) in testRawColumns_matchContractIndexing()
/packages/modules/Bluetooth/system/gd/packet/parser/
Dlanguage_y.yy65 %token PAYLOAD "payload"
633 : PAYLOAD ':' '[' SIZE_MODIFIER ']'
639 | PAYLOAD
667 | SIZE '(' PAYLOAD ')' ':' INTEGER
Dlanguage_l.ll62 "_payload_" { return(token::PAYLOAD); }
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DCursorToSearchResultConverter.java137 IndexDatabaseHelper.IndexColumns.PAYLOAD)); in buildSingleSearchResultFromCursor()
DDatabaseResultTask.java71 IndexColumns.PAYLOAD