Home
last modified time | relevance | path

Searched refs:FiraConnectorMessage (Results 1 – 14 of 14) 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;
28 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
43 private static final FiraConnectorMessage CONNECTOR_MESSAGE =
44 new FiraConnectorMessage(MessageType.EVENT, InstructionCode.DATA_EXCHANGE, PAYLOAD);
64 new FiraConnectorMessage( in testIsAdminEventMessage()
71 new FiraConnectorMessage( in testIsAdminEventMessage()
78 new FiraConnectorMessage( in testIsAdminEventMessage()
85 new FiraConnectorMessage( in testIsAdminEventMessage()
92 new FiraConnectorMessage( in testIsAdminEventMessage()
99 new FiraConnectorMessage( in testIsAdminEventMessage()
[all …]
DAdminErrorMessageTest.java27 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
28 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
45 private static final FiraConnectorMessage CONNECTOR_MESSAGE =
46 new FiraConnectorMessage(
67 new FiraConnectorMessage( in testIsAdminErrorMessage()
74 new FiraConnectorMessage( in testIsAdminErrorMessage()
81 new FiraConnectorMessage( in testIsAdminErrorMessage()
88 new FiraConnectorMessage( in testIsAdminErrorMessage()
95 new FiraConnectorMessage( in testIsAdminErrorMessage()
102 new FiraConnectorMessage( in testIsAdminErrorMessage()
[all …]
DFiraConnectorMessageTest.java26 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
27 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
58 assertThat(FiraConnectorMessage.fromBytes(new byte[] {})).isNull(); in fromBytes_emptyData()
66 assertThrows(IllegalArgumentException.class, () -> FiraConnectorMessage.fromBytes(bytes)); in fromBytes_failedInvalidMessageType()
74 assertThrows(IllegalArgumentException.class, () -> FiraConnectorMessage.fromBytes(bytes)); in fromBytes_failedInvalidInstructionCode()
81 FiraConnectorMessage message = FiraConnectorMessage.fromBytes(bytes); in testHeaderFromBytes()
100 FiraConnectorMessage message = in toBytes_succeed()
101 new FiraConnectorMessage(MESSAGE_TYPE, INSTRUCTION_CODE, PAYLOAD); in toBytes_succeed()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/
DTransportProvider.java27 import com.android.server.uwb.discovery.info.FiraConnectorMessage;
28 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
29 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
119 new FiraConnectorMessage( in sendData()
190 public abstract boolean sendMessage(int secid, FiraConnectorMessage message); in sendMessage()
198 protected void onMessageReceived(int secid, FiraConnectorMessage message) { in onMessageReceived()
248 private void processAdminMessage(FiraConnectorMessage message) { in processAdminMessage()
DTransport.java21 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/
DTransportProviderTest.java38 import com.android.server.uwb.discovery.info.FiraConnectorMessage;
39 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
40 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
57 private static final FiraConnectorMessage MESSAGE =
58 new FiraConnectorMessage(
64 public FiraConnectorMessage lastSendMessage;
73 public boolean sendMessage(int secid, FiraConnectorMessage message) { in sendMessage()
174 new FiraConnectorMessage( in testSendData_updateDestinationSecid()
234 new FiraConnectorMessage( in testOnMessageReceived_receiveInvalidAdminPacket()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DFiraConnectorMessage.java37 public class FiraConnectorMessage { class
38 private static final String TAG = FiraConnectorMessage.class.getSimpleName();
136 public static FiraConnectorMessage fromBytes(@NonNull byte[] bytes) { in fromBytes()
152 return new FiraConnectorMessage(messageType, instructionCode, payload); in fromBytes()
183 public FiraConnectorMessage( in FiraConnectorMessage() method in FiraConnectorMessage
DAdminErrorMessage.java34 public class AdminErrorMessage extends FiraConnectorMessage {
159 @NonNull FiraConnectorMessage firaConnectorMessage) { in convertToAdminErrorMessage()
183 public static boolean isAdminErrorMessage(@NonNull FiraConnectorMessage message) { in isAdminErrorMessage()
DAdminEventMessage.java38 public class AdminEventMessage extends FiraConnectorMessage {
104 @NonNull FiraConnectorMessage firaConnectorMessage) { in convertToAdminEventMessage()
131 public static boolean isAdminEventMessage(@NonNull FiraConnectorMessage message) { in isAdminEventMessage()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DGattTransportServerProviderTest.java57 import com.android.server.uwb.discovery.info.FiraConnectorMessage;
58 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
59 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
83 private static final FiraConnectorMessage MESSAGE =
84 new FiraConnectorMessage(
285 FiraConnectorMessage message = in testSendMessage_failedMessageLengthGreaterThanCapabilitites()
286 new FiraConnectorMessage(MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, bytes); in testSendMessage_failedMessageLengthGreaterThanCapabilitites()
376 FiraConnectorMessage message = in testSendMessageAndOutCharactersticRead_threeReadSucceed()
377 new FiraConnectorMessage( in testSendMessageAndOutCharactersticRead_threeReadSucceed()
527 FiraConnectorMessage message = in testInCharactersticWrite_succeed()
[all …]
DGattTransportClientProviderTest.java59 import com.android.server.uwb.discovery.info.FiraConnectorMessage;
60 import com.android.server.uwb.discovery.info.FiraConnectorMessage.InstructionCode;
61 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
89 private static final FiraConnectorMessage MESSAGE =
90 new FiraConnectorMessage(
550 FiraConnectorMessage message = in testSendMessage_messageLengthGreaterThanCapabilitites()
551 new FiraConnectorMessage(MessageType.EVENT, InstructionCode.DATA_EXCHANGE, bytes); in testSendMessage_messageLengthGreaterThanCapabilitites()
591 FiraConnectorMessage message = in testSendMessage_succeedThreePacket()
592 new FiraConnectorMessage( in testSendMessage_succeedThreePacket()
707 FiraConnectorMessage message = in testOutCharactersticNotifyAndRead_succeedThreePackets()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/
DGattTransportServerProvider.java40 import com.android.server.uwb.discovery.info.FiraConnectorMessage;
296 public boolean sendMessage(int secid, FiraConnectorMessage message) { in sendMessage()
404 FiraConnectorMessage message = FiraConnectorMessage.fromBytes(byteStream.toByteArray()); in processInDataPacket()
DGattTransportClientProvider.java40 import com.android.server.uwb.discovery.info.FiraConnectorMessage;
338 public boolean sendMessage(int secid, FiraConnectorMessage message) { in sendMessage()
472 FiraConnectorMessage message = FiraConnectorMessage.fromBytes(byteStream.toByteArray()); in processOutDataPacket()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/
DFiRaSecureChannel.java34 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;