Home
last modified time | relevance | path

Searched refs:Message (Results 1 – 25 of 501) sorted by relevance

12345678910>>...21

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMonitorTest.java36 import android.os.Message;
90 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
93 Message message = messageCaptor.getValue(); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
111 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
129 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigAuthError()
147 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
165 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigError()
182 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventSuccess()
197 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventOverlap()
212 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventTimeout()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiScannerTest.java44 import android.os.Message;
280 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStartScan()
282 Message message = messageArgumentCaptor.getValue(); in testStartScan()
313 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStopScan()
315 Message message = messageArgumentCaptor.getValue(); in testStopScan()
339 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStartScanListenerOnSuccess()
341 Message sentMessage = messageArgumentCaptor.getValue(); in testStartScanListenerOnSuccess()
348 Message responseMessage = Message.obtain(); in testStartScanListenerOnSuccess()
369 ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class); in testStartScanListenerOnResults()
371 Message sentMessage = messageArgumentCaptor.getValue(); in testStartScanListenerOnResults()
[all …]
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/
DMessageUtils.java19 import static com.android.car.messenger.common.Conversation.Message.MessageStatus.MESSAGE_STATUS_NO…
20 import static com.android.car.messenger.common.Conversation.Message.MessageStatus.MESSAGE_STATUS_RE…
21 import static com.android.car.messenger.common.Conversation.Message.MessageStatus.MESSAGE_STATUS_UN…
35 import com.android.car.messenger.common.Conversation.Message;
36 import com.android.car.messenger.common.Conversation.Message.MessageStatus;
37 import com.android.car.messenger.common.Conversation.Message.MessageType;
55 public static List<Message> getUnreadMessages(@Nullable Cursor messagesCursor) { in getUnreadMessages()
56 List<Message> unreadMessages = new ArrayList<>(); in getUnreadMessages()
66 unreadMessages.sort(comparingLong(Message::getTimestamp)); in getUnreadMessages()
76 public static Pair<List<Message>, Long> getReadMessagesAndReplyTimestamp( in getReadMessagesAndReplyTimestamp()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestBroadcastActivity.java22 import android.os.Message;
49 public void handleMessage(Message msg) {
110 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
124 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
139 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
153 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
167 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
181 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
195 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
209 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/statemachine/
DStateMachine.java22 import android.os.Message;
469 LogRec(StateMachine sm, Message msg, String info, IState state, IState orgState, in LogRec()
480 public void update(StateMachine sm, Message msg, String info, IState state, IState orgState, in update()
664 synchronized void add(StateMachine sm, Message msg, String messageInfo, IState state, in add()
692 private Message mMsg;
763 private ArrayList<Message> mDeferredMessages = new ArrayList<Message>();
770 public boolean processMessage(Message msg) { in processMessage()
781 public boolean processMessage(Message msg) { in processMessage()
793 public final void handleMessage(Message msg) { in handleMessage()
833 private void performTransitions(State msgProcessedState, Message msg) { in performTransitions()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java35 import android.os.Message;
171 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_DISCONNECTED); in testStateTransitionFromConnectingToDisconnected()
192 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testStateTransitionFromConnectingToConnected()
214 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testStateTransitionFromConnectedWithMasDisconnected()
226 msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_DISCONNECTED); in testStateTransitionFromConnectedWithMasDisconnected()
243 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testReceiveEmptyEvent()
256 Message notification = Message.obtain(mHandler, MceStateMachine.MSG_NOTIFICATION); in testReceiveEmptyEvent()
267 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testSetMessageStatus()
293 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testDisconnect()
319 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testDisconnectTimeout()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java88 import android.os.Message;
166 private ArgumentCaptor<Message> mMessageCaptor = ArgumentCaptor.forClass(Message.class);
306 Message msg = Message.obtain(); in sendChannelInfoUpdateMsg()
314 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendChannelInfoUpdateMsg()
324 Message msg = Message.obtain(); in sendAddLocalServiceMsg()
328 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendAddLocalServiceMsg()
357 Message msg = Message.obtain(); in sendDiscoverPeersMsg()
360 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendDiscoverPeersMsg()
370 Message msg = Message.obtain(); in sendAddServiceRequestMsg()
374 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendAddServiceRequestMsg()
[all …]
DWifiP2pMonitorTest.java24 import android.os.Message;
66 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastSupplicantDisconnectionEvent()
82 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventToTwoHandlers()
98 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventWhenIfaceIsNull()
112 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventWhenIfaceHandlerIsNull()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DUserPresetsManager.java5 import android.os.Message;
32 public void handleMessage(Message msg) {
42 public boolean handleMessage(Message msg) { in handleMessage()
75 Message msg = mProcessingHandler.obtainMessage(LOAD); in load()
90 Message msg = mProcessingHandler.obtainMessage(SAVE); in save()
99 Message msg = mProcessingHandler.obtainMessage(DELETE); in delete()
110 Message msg = mProcessingHandler.obtainMessage(UPDATE); in update()
120 Message msg = mResultHandler.obtainMessage(LOAD_RESULT); in processLoad()
125 private void resultLoad(Message msg) { in resultLoad()
131 private void processSave(Message msg) { in processSave()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java43 import android.os.Message;
639 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in delayedInitialization()
649 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in getAwareInterface()
660 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in releaseAwareInterface()
705 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in connect()
724 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in disconnect()
735 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in deferDisableAware()
746 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in reconfigure()
755 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in terminateSession()
768 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in publish()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiP2pConnection.java24 import android.os.Message;
54 private void sendMessageToAllClientModeImpls(Message msg) { in sendMessageToAllClientModeImpls()
58 clientModeManager.sendMessageToClientModeImpl(Message.obtain(msg)); in sendMessageToAllClientModeImpls()
68 public void handleMessage(Message msg) { in handleMessage()
168 public void replyToMessage(Message msg, int what) { in replyToMessage()
170 Message dstMsg = obtainMessageWithWhatAndArg2(msg, what); in replyToMessage()
179 private Message obtainMessageWithWhatAndArg2(Message srcMsg, int what) { in obtainMessageWithWhatAndArg2()
180 Message msg = Message.obtain(); in obtainMessageWithWhatAndArg2()
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DConversation.java68 private final List<Message> mMessages;
84 @NonNull List<Message> messages, in Conversation()
117 bundle.putParcelableArray(KEY_MESSAGES, Message.getBundleArrayForMessages(mMessages)); in toBundle()
165 Message.getMessagesFromBundleArray( in fromBundle()
221 public List<Message> getMessages() { in getMessages()
291 private List<Message> mMessages;
343 public Builder setMessages(@NonNull List<Message> messages) { in setMessages()
461 public static final class Message { class in Conversation
494 public Message(@NonNull String text, long timestamp, @Nullable Person person) { in Message() method in Conversation.Message
516 private static Bundle[] getBundleArrayForMessages(List<Message> messages) { in getBundleArrayForMessages()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java41 import com.android.voicemail.impl.mail.Message;
207 Message[] messages; in fetchAllVoicemails()
218 for (Message message : messages) { in fetchAllVoicemails()
240 Message messageDetails = messageStructureWrapper.messageStructure; in getVoicemailFromMessageStructure()
247 folder.fetch(new Message[] {messageDetails}, fetchProfile, listener); in getVoicemailFromMessageStructure()
297 private MessageStructureWrapper fetchMessageStructure(Message message) throws MessagingException { in fetchMessageStructure()
309 folder.fetch(new Message[] {message}, fetchProfile, listener); in fetchMessageStructure()
320 Message message = folder.getMessage(uid); in fetchVoicemailPayload()
339 private VoicemailPayload fetchVoicemailPayload(Message message) throws MessagingException { in fetchVoicemailPayload()
347 folder.fetch(new Message[] {message}, fetchProfile, listener); in fetchVoicemailPayload()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java75 import android.os.Message;
238 private static Message verifyHandleMessageAndGetMessage(InOrder order, Handler handler) { in verifyHandleMessageAndGetMessage()
239 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in verifyHandleMessageAndGetMessage()
244 private static class ConditionalMessageCaptor implements ArgumentMatcher<Message> {
245 private Message mLastValue;
252 public Message getLastValue() { in getLastValue()
258 public boolean matches(Message message) { in matches()
269 private static Message verifyHandleMessageAndGetMessage(InOrder order, Handler handler, in verifyHandleMessageAndGetMessage()
279 Message scanResultMessage = verifyHandleMessageAndGetMessage(order, handler, in verifyScanResultsReceived()
285 Message scanResultMessage) { in assertScanResultsMessage()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiAsyncChannel.java20 import android.os.Message;
57 public void sendMessage(Message msg) { in sendMessage()
71 public void replyToMessage(Message srcMsg, Message dstMsg) { in replyToMessage()
88 public Message sendMessageSynchronously(Message msg) { in sendMessageSynchronously()
92 Message replyMessage = super.sendMessageSynchronously(msg); in sendMessageSynchronously()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DUiThreadHelper.java27 import android.os.Message;
57 Message.obtain( in hideKeyboardAsync()
66 Message mHideKeyboardMsg = Message.obtain(HANDLER.get(root.getContext()), MSG_HIDE_KEYBOARD, in hideKeyboardAsync()
73 Message.obtain(HANDLER.get(activity), MSG_SET_ORIENTATION, orientation, 0, activity) in setOrientationAsync()
83 Message.obtain(HANDLER.get(context), MSG_RUN_COMMAND, arg1, arg2, command).sendToTarget(); in runAsyncCommand()
97 public boolean handleMessage(Message message) { in handleMessage()
102 ((Message) message.getData().getParcelable(STATS_LOGGER_KEY)) in handleMessage()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java74 import android.os.Message;
306 Message reqNetworkMsg = Message.obtain(); in testDataPathWithPortInfoOnPublisher()
345 Message reqNetworkMsg = Message.obtain(); in testDataPathWithPortInfoInvalidPort()
379 Message reqNetworkMsg = Message.obtain(); in testDataPathWithPortInfoButNoSecurityOnSubscriber()
417 Message reqNetworkMsg = Message.obtain(); in testDestroyNdiDuringNdpSetupResponder()
505 Message reqNetworkMsg = Message.obtain(); in testMultipleNdpsOnSingleNdi()
550 Message endNetworkReqMsg = Message.obtain(); in testMultipleNdpsOnSingleNdi()
612 Message reqNetworkMsg = Message.obtain(); in testMultipleIdenticalRequests()
627 Message endNetworkReqMsg = Message.obtain(); in testMultipleIdenticalRequests()
638 endNetworkReqMsg = Message.obtain(); in testMultipleIdenticalRequests()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMonitor.java25 import android.os.Message;
158 sendMessage(iface, Message.obtain(null, what)); in sendMessage()
162 sendMessage(iface, Message.obtain(null, what, obj)); in sendMessage()
166 sendMessage(iface, Message.obtain(null, what, arg1, 0)); in sendMessage()
170 sendMessage(iface, Message.obtain(null, what, arg1, arg2)); in sendMessage()
174 sendMessage(iface, Message.obtain(null, what, arg1, arg2, obj)); in sendMessage()
177 private void sendMessage(String iface, Message message) { in sendMessage()
185 sendMessage(handler, Message.obtain(message)); in sendMessage()
203 sendMessage(handler, Message.obtain(message)); in sendMessage()
213 private void sendMessage(Handler handler, Message message) { in sendMessage()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DStateMachineTest.java25 import android.os.Message;
180 public boolean processMessage(Message message) { in processMessage()
283 public boolean processMessage(Message message) { in processMessage()
388 public boolean processMessage(Message message) { in processMessage()
461 public boolean processMessage(Message message) { in processMessage()
616 public boolean processMessage(Message message) { in processMessage()
711 public boolean processMessage(Message message) { in processMessage()
812 public boolean processMessage(Message message) { in processMessage()
823 public boolean processMessage(Message message) { in processMessage()
913 public boolean processMessage(Message message) { in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterState.java22 import android.os.Message;
151 protected String getLogRecString(Message msg) { in getLogRecString()
186 public boolean processMessage(Message msg) { in processMessage()
208 public boolean processMessage(Message msg) { in processMessage()
252 public boolean processMessage(Message msg) { in processMessage()
287 public boolean processMessage(Message msg) { in processMessage()
327 public boolean processMessage(Message msg) { in processMessage()
367 public boolean processMessage(Message msg) { in processMessage()
407 public boolean processMessage(Message msg) { in processMessage()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareManager.java37 import android.os.Message;
623 public void handleMessage(Message msg) { in WifiAwareEventCallbackProxy()
660 Message msg = mHandler.obtainMessage(CALLBACK_CONNECT_SUCCESS); in onConnectSuccess()
669 Message msg = mHandler.obtainMessage(CALLBACK_CONNECT_FAIL); in onConnectFail()
678 Message msg = mHandler.obtainMessage(CALLBACK_IDENTITY_CHANGED); in onIdentityChanged()
722 public void handleMessage(Message msg) { in WifiAwareDiscoverySessionCallbackProxy()
799 Message msg = mHandler.obtainMessage(CALLBACK_SESSION_STARTED); in onSessionStarted()
808 Message msg = mHandler.obtainMessage(CALLBACK_SESSION_CONFIG_SUCCESS); in onSessionConfigSuccess()
816 Message msg = mHandler.obtainMessage(CALLBACK_SESSION_CONFIG_FAIL); in onSessionConfigFail()
825 Message msg = mHandler.obtainMessage(CALLBACK_SESSION_TERMINATED); in onSessionTerminated()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java23 import android.os.Message;
123 public void handleMessage(Message msg) { in handleMessage()
147 Message msgReg = in handleMessage()
279 Message msg = Message.obtain(mCallback); in handleRegistration()
313 Message msgReg = mHandler.obtainMessage(MSG_MNS_NOTIFICATION_REGISTRATION); in setMnsRecord()
419 Message msg = mHandler.obtainMessage(MSG_MNS_SEND_EVENT, masInstanceId, 0, eventBytes); in sendEvent()
429 Message msg = Message.obtain(mCallback); in notifyMnsSdpSearch()
557 Message msg = Message.obtain(mCallback); in notifyUpdateWakeLock()
/packages/apps/Launcher3/src/com/android/launcher3/
DGestureNavContract.java27 import android.os.Message;
50 private final Message mCallback;
52 public GestureNavContract(ComponentName componentName, UserHandle user, Message callback) { in GestureNavContract()
67 Message callback = Message.obtain(); in sendEndPosition()
93 Message callback = extras.getParcelable(EXTRA_REMOTE_CALLBACK); in fromIntent()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/util/
DConversationUtil.java29 import com.android.car.messenger.common.Conversation.Message;
30 import com.android.car.messenger.common.Conversation.Message.MessageStatus;
45 Message lastMessage = getLastMessage(conversation); in getConversationTimestamp()
57 Message lastMessageGroup = ConversationUtil.getLastMessage(conversation); in isReplied()
69 public static Message getLastMessage(@Nullable Conversation conversation) { in getLastMessage()
83 Message lastMessage = getLastMessage(conversation); in getConversationStatus()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java58 import android.os.Message;
153 Message currentMessage = getCurrentMessage(); in enter()
174 Message currentMessage = getCurrentMessage(); in exit()
181 public boolean processMessage(Message message) { in processMessage()
267 Message currentMessage = getCurrentMessage(); in enter()
277 Message currentMessage = getCurrentMessage(); in exit()
285 public boolean processMessage(Message message) { in processMessage()
363 Message currentMessage = getCurrentMessage(); in enter()
373 Message currentMessage = getCurrentMessage(); in exit()
381 public boolean processMessage(Message message) { in processMessage()
[all …]

12345678910>>...21