Home
last modified time | relevance | path

Searched refs:InstructionCode (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DAdminEventMessageTest.java27 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
44 new FiraConnectorMessage(MessageType.EVENT, InstructionCode.DATA_EXCHANGE, PAYLOAD);
66 InstructionCode.DATA_EXCHANGE, in testIsAdminEventMessage()
73 InstructionCode.ERROR_INDICATION, in testIsAdminEventMessage()
80 InstructionCode.ERROR_INDICATION, in testIsAdminEventMessage()
87 InstructionCode.DATA_EXCHANGE, in testIsAdminEventMessage()
94 InstructionCode.ERROR_INDICATION, in testIsAdminEventMessage()
101 InstructionCode.DATA_EXCHANGE, in testIsAdminEventMessage()
107 MessageType.EVENT, InstructionCode.DATA_EXCHANGE, null))) in testIsAdminEventMessage()
123 assertThat(message.instructionCode).isEqualTo(InstructionCode.DATA_EXCHANGE); in testConstructor()
[all …]
DAdminErrorMessageTest.java27 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
47 MessageType.COMMAND_RESPOND, InstructionCode.ERROR_INDICATION, PAYLOAD);
69 InstructionCode.DATA_EXCHANGE, in testIsAdminErrorMessage()
76 InstructionCode.DATA_EXCHANGE, in testIsAdminErrorMessage()
83 InstructionCode.ERROR_INDICATION, in testIsAdminErrorMessage()
90 InstructionCode.ERROR_INDICATION, in testIsAdminErrorMessage()
97 InstructionCode.DATA_EXCHANGE, in testIsAdminErrorMessage()
104 InstructionCode.ERROR_INDICATION, in testIsAdminErrorMessage()
111 InstructionCode.ERROR_INDICATION, in testIsAdminErrorMessage()
130 assertThat(message.instructionCode).isEqualTo(InstructionCode.ERROR_INDICATION); in testConstructwithBytes()
[all …]
DFiraConnectorMessageTest.java26 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
53 private static final InstructionCode INSTRUCTION_CODE = InstructionCode.DATA_EXCHANGE;
78 byte header, MessageType expectedType, InstructionCode expectedCode) { in testHeaderFromBytes()
91 testHeaderFromBytes((byte) 0x00, MessageType.COMMAND, InstructionCode.DATA_EXCHANGE); in fromBytes_succeed()
92 testHeaderFromBytes((byte) 0x01, MessageType.COMMAND, InstructionCode.ERROR_INDICATION); in fromBytes_succeed()
93 testHeaderFromBytes((byte) 0x41, MessageType.EVENT, InstructionCode.ERROR_INDICATION); in fromBytes_succeed()
95 (byte) 0x81, MessageType.COMMAND_RESPOND, InstructionCode.ERROR_INDICATION); in fromBytes_succeed()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DFiraConnectorMessage.java87 public enum InstructionCode { enum in FiraConnectorMessage
97 InstructionCode(int value) { in InstructionCode() method in FiraConnectorMessage.InstructionCode
102 for (InstructionCode type : InstructionCode.values()) {
114 public static InstructionCode valueOf(int value) { in valueOf()
115 return (InstructionCode) sMap.get(value); in valueOf()
123 @NonNull public final InstructionCode instructionCode;
146 InstructionCode instructionCode = in fromBytes()
147 InstructionCode.valueOf(header & INSTRUCTION_CODE_BITMASK); in fromBytes()
184 MessageType messageType, InstructionCode instructionCode, byte[] payload) { in FiraConnectorMessage()
DAdminErrorMessage.java172 InstructionCode.ERROR_INDICATION, in AdminErrorMessage()
185 && message.instructionCode == InstructionCode.ERROR_INDICATION in isAdminErrorMessage()
DAdminEventMessage.java119 InstructionCode.DATA_EXCHANGE, in AdminEventMessage()
133 && message.instructionCode == InstructionCode.DATA_EXCHANGE in isAdminEventMessage()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/
DTransportProviderTest.java39 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
59 MessageType.EVENT, InstructionCode.DATA_EXCHANGE, MESSAGE_PAYLOAD);
176 InstructionCode.DATA_EXCHANGE, in testSendData_updateDestinationSecid()
235 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, MESSAGE_PAYLOAD)); in testOnMessageReceived_receiveInvalidAdminPacket()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DGattTransportClientProviderTest.java60 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
91 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, MESSAGE_PAYLOAD1);
551 new FiraConnectorMessage(MessageType.EVENT, InstructionCode.DATA_EXCHANGE, bytes); in testSendMessage_messageLengthGreaterThanCapabilitites()
593 MessageType.EVENT, InstructionCode.DATA_EXCHANGE, messagePayload); in testSendMessage_succeedThreePacket()
709 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, messagePayload); in testOutCharactersticNotifyAndRead_succeedThreePackets()
770 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, messagePayload) in testOutCharactersticNotifyAndRead_packetLengthOverflow()
806 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, messagePayload) in testOutCharactersticNotifyAndRead_tooManyConcurrentSessions()
855 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, messagePayload) in testOutCharactersticNotifyAndRead_messageLengthOverflow()
DGattTransportServerProviderTest.java58 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
85 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, MESSAGE_PAYLOAD1);
286 new FiraConnectorMessage(MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, bytes); in testSendMessage_failedMessageLengthGreaterThanCapabilitites()
378 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, messagePayload); in testSendMessageAndOutCharactersticRead_threeReadSucceed()
529 MessageType.EVENT, InstructionCode.DATA_EXCHANGE, messagePayload); in testInCharactersticWrite_succeed()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/
DTransportProvider.java28 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
122 InstructionCode.DATA_EXCHANGE, in sendData()