Home
last modified time | relevance | path

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

12

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DAdminEventMessageTest.java28 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
44 new FiraConnectorMessage(MessageType.EVENT, InstructionCode.DATA_EXCHANGE, PAYLOAD);
65 MessageType.COMMAND, in testIsAdminEventMessage()
72 MessageType.EVENT, in testIsAdminEventMessage()
79 MessageType.COMMAND, in testIsAdminEventMessage()
86 MessageType.COMMAND_RESPOND, in testIsAdminEventMessage()
93 MessageType.COMMAND_RESPOND, in testIsAdminEventMessage()
100 MessageType.EVENT, in testIsAdminEventMessage()
107 MessageType.EVENT, InstructionCode.DATA_EXCHANGE, null))) in testIsAdminEventMessage()
122 assertThat(message.messageType).isEqualTo(MessageType.EVENT); in testConstructor()
[all …]
DAdminErrorMessageTest.java28 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
47 MessageType.COMMAND_RESPOND, InstructionCode.ERROR_INDICATION, PAYLOAD);
68 MessageType.EVENT, in testIsAdminErrorMessage()
75 MessageType.COMMAND, in testIsAdminErrorMessage()
82 MessageType.EVENT, in testIsAdminErrorMessage()
89 MessageType.COMMAND, in testIsAdminErrorMessage()
96 MessageType.COMMAND_RESPOND, in testIsAdminErrorMessage()
103 MessageType.COMMAND_RESPOND, in testIsAdminErrorMessage()
110 MessageType.COMMAND_RESPOND, in testIsAdminErrorMessage()
129 assertThat(message.messageType).isEqualTo(MessageType.COMMAND_RESPOND); in testConstructwithBytes()
[all …]
DFiraConnectorMessageTest.java27 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
52 private static final MessageType MESSAGE_TYPE = MessageType.EVENT;
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.java47 public enum MessageType { enum in FiraConnectorMessage
58 MessageType(int value) { in MessageType() method in FiraConnectorMessage.MessageType
63 for (MessageType type : MessageType.values()) {
75 public static MessageType valueOf(int value) { in valueOf()
76 return (MessageType) sMap.get(value); in valueOf()
84 @NonNull public final MessageType messageType;
144 MessageType messageType = in fromBytes()
145 MessageType.valueOf((header >>> MESSAGE_TYPE_BITPOS) & MESSAGE_TYPE_BITMASK); in fromBytes()
184 MessageType messageType, InstructionCode instructionCode, byte[] payload) { in FiraConnectorMessage()
DAdminErrorMessage.java171 MessageType.COMMAND_RESPOND, in AdminErrorMessage()
184 return (message.messageType == MessageType.COMMAND_RESPOND in isAdminErrorMessage()
DAdminEventMessage.java118 MessageType.EVENT, in AdminEventMessage()
132 return (message.messageType == MessageType.EVENT in isAdminEventMessage()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/appcard/
DAppCardService.kt75 val msgType = MessageType.fromInt(msg.what) in <lambda>()
78 MessageType.MSG_REGISTER_CONTEXT_LISTENER -> { in <lambda>()
85 MessageType.MSG_SEND_CONTEXT_UPDATE.type, in <lambda>()
93 MessageType.MSG_REGISTER_APP_CARD_LISTENER -> { in <lambda>()
100 MessageType.MSG_SEND_APP_CARD_UPDATE.type, in <lambda>()
108 MessageType.MSG_SEND_APP_CARD_UPDATE -> { in <lambda>()
115 MessageType.MSG_SEND_CONTEXT_UPDATE -> { in <lambda>()
122 MessageType.MSG_UNREGISTER_CONTEXT_LISTENER -> { in <lambda>()
128 MessageType.MSG_UNREGISTER_APP_CARD_LISTENER -> { in <lambda>()
150 internal enum class MessageType(val type: Int) { in <lambda>() class
[all …]
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplayPanoManager/src/com/android/car/pano/manager/
DAppCardServiceManager.kt105 val msg = Message.obtain(h, MessageType.MSG_SEND_APP_CARD_UPDATE.type, bundle) in sendAppCardOrder()
112 serviceMessenger?.send(getMessageWithHostId(MessageType.MSG_REGISTER_CONTEXT_LISTENER)) in askServiceToSendContextUpdates()
116 serviceMessenger?.send(getMessageWithHostId(MessageType.MSG_REGISTER_APP_CARD_LISTENER)) in askServiceToSendOrderUpdates()
120 serviceMessenger?.send(getMessageWithHostId(MessageType.MSG_UNREGISTER_APP_CARD_LISTENER)) in unregisterOrderListener()
124 serviceMessenger?.send(getMessageWithHostId(MessageType.MSG_UNREGISTER_CONTEXT_LISTENER)) in unregisterContextListener()
127 private fun getMessageWithHostId(type: MessageType): Message { in getMessageWithHostId()
145 val msgType = MessageType.fromInt(msg.what) in handleMessage()
148 MessageType.MSG_SEND_CONTEXT_UPDATE -> { in handleMessage()
155 MessageType.MSG_SEND_APP_CARD_UPDATE -> { in handleMessage()
179 internal enum class MessageType(val type: Int) { class
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DSppResponseMessageTest.java68 SppResponseMessage.MessageType.POST_DEV_DATA_RESPONSE); in verifySppSoapResponseWithoutErrorAttribute()
72 assertEquals(SppResponseMessage.MessageType.POST_DEV_DATA_RESPONSE, in verifySppSoapResponseWithoutErrorAttribute()
99 SppResponseMessage.MessageType.POST_DEV_DATA_RESPONSE); in verifySppSoapResponseWithErrorAttribute()
103 assertEquals(SppResponseMessage.MessageType.POST_DEV_DATA_RESPONSE, in verifySppSoapResponseWithErrorAttribute()
122 SppResponseMessage.MessageType.POST_DEV_DATA_RESPONSE); in verifyInCompleteSppSoapResponseRaiseException()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/
DTransportProviderTest.java40 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
59 MessageType.EVENT, InstructionCode.DATA_EXCHANGE, MESSAGE_PAYLOAD);
153 mTransportProvider.sendData(MessageType.COMMAND, MESSAGE_PAYLOAD, mMockSendingDataCallback); in testSendData_succeed()
161 mTransportProvider.sendData(MessageType.COMMAND , MESSAGE_PAYLOAD, in testSendData_failed()
169 mTransportProvider.sendData(MessageType.COMMAND, MESSAGE_PAYLOAD, mMockSendingDataCallback); in testSendData_updateDestinationSecid()
175 MessageType.COMMAND, in testSendData_updateDestinationSecid()
235 MessageType.COMMAND, InstructionCode.DATA_EXCHANGE, MESSAGE_PAYLOAD)); in testOnMessageReceived_receiveInvalidAdminPacket()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/
DTransport.java21 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
33 MessageType messageType, @NonNull byte[] data, SendingDataCallback sendingDataCallback); in sendData()
DTransportProvider.java29 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
114 MessageType messageType, in sendData()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallDiagnosticServiceAdapter.java36 void sendDeviceToDeviceMessage(String callId, @CallDiagnostics.MessageType int message, in sendDeviceToDeviceMessage()
93 public void sendDeviceToDeviceMessage(String callId, @CallDiagnostics.MessageType int message, in sendDeviceToDeviceMessage()
DCallDiagnosticServiceController.java478 @CallDiagnostics.MessageType int message, int value) {
556 @CallDiagnostics.MessageType int message, int value) { in handleSendD2DMessage()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DGattTransportClientProviderTest.java61 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
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.java59 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
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/secure/
DFiRaSecureChannel.java34 import com.android.server.uwb.discovery.info.FiraConnectorMessage.MessageType;
149 MessageType firaMsgType = in handleScMessage()
151 ? MessageType.COMMAND : MessageType.COMMAND_RESPOND; in handleScMessage()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DExchangeCompleteMessage.java32 super(response, MessageType.EXCHANGE_COMPLETE); in ExchangeCompleteMessage()
DPostDevDataResponse.java39 super(response, MessageType.POST_DEV_DATA_RESPONSE); in PostDevDataResponse()
DSppResponseMessage.java50 public static class MessageType { class in SppResponseMessage
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothMasInstance.java89 public static final class MessageType { class in BluetoothMasInstance
DSdpMasRecord.java31 public static final class MessageType { class in SdpMasRecord
/packages/modules/Uwb/framework/java/android/uwb/
DUwbManager.java1113 @interface MessageType {} annotation in UwbManager
1156 public @SendVendorUciStatus int sendVendorUciMessage(@MessageType int mt, in sendVendorUciMessage()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvisioner.java466 != SppResponseMessage.MessageType.POST_DEV_DATA_RESPONSE) { in handleSoapMessageResponse()
505 != SppResponseMessage.MessageType.POST_DEV_DATA_RESPONSE) { in handleSoapMessageResponse()
530 != SppResponseMessage.MessageType.EXCHANGE_COMPLETE) { in handleSoapMessageResponse()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/
DMceStateMachine.java490 if ((supportedMessageTypes & SdpMasRecord.MessageType.MMS) > 0) { in setDefaultMessageType()
492 } else if ((supportedMessageTypes & SdpMasRecord.MessageType.SMS_CDMA) > 0) { in setDefaultMessageType()
494 } else if ((supportedMessageTypes & SdpMasRecord.MessageType.SMS_GSM) > 0) { in setDefaultMessageType()

12