/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | lib.rs | 69 pub enum Message { enum 205 pub fn create_channel() -> (Sender<Message>, Receiver<Message>) { in create_channel() 206 channel::<Message>(1) in create_channel() 211 mut rx: Receiver<Message>, in dispatch() argument 212 tx: Sender<Message>, in dispatch() argument 235 Message::InterfaceShutdown => { in dispatch() 242 Message::AdapterShutdown => { in dispatch() 246 Message::Cleanup => { in dispatch() 250 Message::AdapterReady => { in dispatch() 258 Message::A2dp(a) => { in dispatch() [all …]
|
D | bluetooth_qa.rs | 4 use crate::{bluetooth::FLOSS_VER, Message, RPCProxy}; 56 tx: Sender<Message>, 61 pub fn new(tx: Sender<Message>) -> BluetoothQA { in new() 64 callbacks: Callbacks::new(tx.clone(), Message::QaCallbackDisconnected), in new() 115 let _ = txl.send(Message::QaAddMediaPlayer(name, browsing_supported)).await; in add_media_player() 121 let _ = txl.send(Message::QaRfcommSendMsc(dlci, addr)).await; in rfcomm_send_msc() 127 let _ = txl.send(Message::QaFetchDiscoverableMode).await; in fetch_discoverable_mode() 133 let _ = txl.send(Message::QaFetchConnectable).await; in fetch_connectable() 139 let _ = txl.send(Message::QaSetConnectable(mode)).await; in set_connectable() 145 let _ = txl.send(Message::QaFetchAlias).await; in fetch_alias() [all …]
|
D | battery_service.rs | 11 use crate::Message; 33 tx: Sender<Message>, 102 tx: Sender<Message>, in new() argument 106 let callbacks = Callbacks::new(tx.clone(), Message::BatteryServiceCallbackDisconnected); in new() 378 tx: Sender<Message>, 382 fn new(tx: Sender<Message>) -> Self { in new() 391 let _ = tx.send(Message::BatteryServiceRefresh).await; in refresh_battery_info() 403 tx: Sender<Message>, 408 fn new(tx: Sender<Message>, api_tx: Sender<APIMessage>) -> Self { in new() argument 423 .send(Message::BatteryService(BatteryServiceActions::OnClientRegistered( in on_client_registered() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMonitorTest.java | 40 import android.os.Message; 100 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() 103 Message message = messageCaptor.getValue(); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() 121 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToErrorWepProhibhited() 139 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigAuthError() 157 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigPbcOverlapError() 175 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventFailDueToConfigError() 193 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventSuccess() 208 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventOverlap() 223 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastWpsEventTimeout() [all …]
|
D | MockWifiMonitor.java | 22 import android.os.Message; 55 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 62 sendMessage(iface, Message.obtain(null, what, arg1, 0)); in sendMessage() 65 public void sendMessage(String iface, Message message) { in sendMessage() 73 if (sendMessage(entry.getValue(), Message.obtain(message))) { in sendMessage() 82 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage()
|
D | InterfaceConflictManagerTest.java | 44 import android.os.Message; 154 mDut.manageInterfaceConflictForStateMachine("Some Tag", Message.obtain(), in testUserApprovalDisabled() 177 mDut.manageInterfaceConflictForStateMachine("Some Tag", Message.obtain(), in testUserApprovalDisabledForSpecificPackage() 195 mDut.manageInterfaceConflictForStateMachine("Some Tag", Message.obtain(), in testBypassDialog() 214 Message msg = Message.obtain(); in testUserApprovalNeededButCommandCanProceed() 251 Message msg = Message.obtain(); in testUserApproved() 291 Message msg = Message.obtain(); in testUserRejected() 331 Message msg = Message.obtain(); in testUserApprovedWithDeferredMessages() 364 Message waitingMsg = Message.obtain(); in testUserApprovedWithDeferredMessages() 409 Message msg = Message.obtain(); in testUserRejectedWithDeferredMessages() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientStateMachineTest.java | 41 import android.os.Message; 277 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_DISCONNECTED); in testStateTransitionFromConnectingToDisconnected() 297 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testStateTransitionFromConnectingToConnected() 320 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testStateTransitionFromConnectedWithMasDisconnected() 333 msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_DISCONNECTED); in testStateTransitionFromConnectedWithMasDisconnected() 348 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testReceiveEmptyEvent() 362 Message notification = Message.obtain(mHandler, MceStateMachine.MSG_NOTIFICATION); in testReceiveEmptyEvent() 371 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testSetMessageStatus() 398 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testDisconnect() 424 Message msg = Message.obtain(mHandler, MceStateMachine.MSG_MAS_CONNECTED); in testDisconnectTimeout() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | SendTestBroadcastActivity.java | 22 import android.os.Message; 49 public void handleMessage(Message msg) { 128 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() 143 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() 159 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() 174 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() 189 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() 204 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() 219 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() 234 Message msg = mDelayHandler.obtainMessage(0, this); in onCreate() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pMonitorTest.java | 26 import android.os.Message; 69 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastSupplicantDisconnectionEvent() 85 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventToTwoHandlers() 101 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventWhenIfaceIsNull() 115 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastEventWhenIfaceHandlerIsNull() 129 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastP2pFrequencyChanged() 146 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastP2pProvisionDiscoveryFailure() 165 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in testBroadcastP2pProvisionDiscoveryRejection()
|
D | WifiP2pServiceImplTest.java | 116 import android.os.Message; 247 private ArgumentCaptor<Message> mMessageCaptor = ArgumentCaptor.forClass(Message.class); 455 Message msg = Message.obtain(); in sendChannelInfoUpdateMsg() 466 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendChannelInfoUpdateMsg() 476 Message msg = Message.obtain(); in sendAddLocalServiceMsg() 485 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendAddLocalServiceMsg() 529 Message msg = Message.obtain(); in sendDiscoverPeersMsg() 539 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendDiscoverPeersMsg() 549 Message msg = Message.obtain(); in sendAddServiceRequestMsg() 553 mP2pStateMachineMessenger.send(Message.obtain(msg)); in sendAddServiceRequestMsg() [all …]
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | HostNfcFEmulationManagerTest.java | 44 import android.os.Message; 85 .mockStatic(Message.class) in setUp() 138 Message message = mock(Message.class); in setUp() 139 when(Message.obtain(null, HostNfcFService.MSG_COMMAND_PACKET)).thenReturn(message); in setUp() 140 when(Message.obtain(null, HostNfcFService.MSG_DEACTIVATED)).thenReturn(message); in setUp() 141 when(Message.obtain()).thenReturn(message); in setUp() 186 Message message = mock(Message.class); in testOnNfcDisabled() 187 when(Message.obtain(null, HostNfcFService.MSG_COMMAND_PACKET)).thenReturn(message); in testOnNfcDisabled() 194 ExtendedMockito.verify(() -> Message.obtain(null, HostNfcFService.MSG_COMMAND_PACKET)); in testOnNfcDisabled() 204 Message message = mock(Message.class); in testOnUserSwitched() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/ |
D | UserPresetsManager.java | 5 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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/common/ |
D | CarUiPortraitServiceManager.java | 29 import android.os.Message; 48 private final List<Message> mMessageCache = new ArrayList<>(); 62 Message msg = Message.obtain(null, MSG_REGISTER_CLIENT); 72 for (Message msg : mMessageCache) { 99 Message msg = Message.obtain(/* handler= */ null, key, value, 0); in notifySystemUI() 108 private void notifySystemUI(Message msg) { in notifySystemUI() 127 Message msg = Message.obtain(null, MSG_UNREGISTER_CLIENT); in doUnbindService()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | GestureNavContract.java | 29 import android.os.Message; 59 private final Message mCallback; 61 public GestureNavContract(ComponentName componentName, UserHandle user, Message callback) { in GestureNavContract() 80 Message callback = Message.obtain(); in sendEndPosition() 103 Message callback = extras.getParcelable(EXTRA_REMOTE_CALLBACK); in fromIntent() 128 public Message setCurrentContext(ActivityContext context) { in setCurrentContext() 131 Message msg = Message.obtain(); in setCurrentContext() 138 public boolean handleMessage(@NonNull Message message) { in handleMessage()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiP2pConnection.java | 24 import android.os.Message; 57 private void sendMessageToAllClientModeImpls(Message msg) { in sendMessageToAllClientModeImpls() 61 clientModeManager.sendMessageToClientModeImpl(Message.obtain(msg)); in sendMessageToAllClientModeImpls() 71 public void handleMessage(Message msg) { in handleMessage() 171 public void replyToMessage(Message msg, int what) { in replyToMessage() 173 Message dstMsg = obtainMessageWithWhatAndArg2(msg, what); in replyToMessage() 182 private Message obtainMessageWithWhatAndArg2(Message srcMsg, int what) { in obtainMessageWithWhatAndArg2() 183 Message msg = Message.obtain(); in obtainMessageWithWhatAndArg2()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/ |
D | ImapHelper.java | 41 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/Bluetooth/android/app/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 36 import android.os.Message; 384 public void handleMessage(Message msg) { 443 private void handleMessageSendData(Message msg) { in handleMessageSendData() 458 private void handleMessageSetPreferredTransport(Message msg) { in handleMessageSetPreferredTransport() 491 private void handleMessageSetIdleTime(Message msg) { in handleMessageSetIdleTime() 501 private void handleMessageOnGetIdleTime(Message msg) { in handleMessageOnGetIdleTime() 513 private void handleMessageGetIdleTime(Message msg) { in handleMessageGetIdleTime() 521 private void handleMessageOnVirtualUnplug(Message msg) { in handleMessageOnVirtualUnplug() 531 private void handleMessageSetReport(Message msg) { in handleMessageSetReport() 546 private void handleMessageOnHandshake(Message msg) { in handleMessageOnHandshake() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferTest.java | 43 import android.os.Message; 212 Message message = Message.obtain(mEventHandler, TRANSPORT_ERROR); in eventHandler_handleMessage_TRANSPORT_ERROR_connectThreadIsNull() 230 Message message = Message.obtain(mEventHandler, TRANSPORT_CONNECTED, transport); in eventHandler_handleMessage_TRANSPORT_CONNECTED_obexSessionStarted() 237 Message message = Message.obtain(mEventHandler, BluetoothOppObexSession.MSG_SHARE_COMPLETE); in eventHandler_handleMessage_MSG_SHARE_COMPLETE_shareAdded() 271 Message message = in eventHandler_handleMessage_MSG_SESSION_COMPLETE_batchFinished() 272 Message.obtain(mEventHandler, BluetoothOppObexSession.MSG_SESSION_COMPLETE, info); in eventHandler_handleMessage_MSG_SESSION_COMPLETE_batchFinished() 281 Message message = in eventHandler_handleMessage_MSG_SESSION_ERROR_batchFailed() 282 Message.obtain(mEventHandler, BluetoothOppObexSession.MSG_SESSION_ERROR, info); in eventHandler_handleMessage_MSG_SESSION_ERROR_batchFailed() 312 Message message = in eventHandler_handleMessage_MSG_SHARE_INTERRUPTED_batchFailed() 313 Message.obtain(mEventHandler, BluetoothOppObexSession.MSG_SHARE_INTERRUPTED, info); in eventHandler_handleMessage_MSG_SHARE_INTERRUPTED_batchFailed() [all …]
|
/packages/services/Car/tests/common_utils/src/com/android/car/test/ |
D | FakeHandlerWrapper.java | 23 import android.os.Message; 44 private ArrayList<Message> mQueuedMessages = new ArrayList<>(); 53 Message msg = invocation.getArgument(0); in FakeHandlerWrapper() 78 ArrayList<Message> messages = new ArrayList<>(mQueuedMessages); in dispatchQueuedMessages() 80 for (Message msg : messages) { in dispatchQueuedMessages() 89 public ArrayList<Message> getQueuedMessages() { in getQueuedMessages()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | RetransmitterTest.java | 34 import android.os.Message; 71 Message mockMessage = mock(Message.class); in setUp() 85 .sendMessageDelayed(any(Message.class), eq((long) IKE_RETRANS_TIMEOUT_MS_LIST[0])); in testSendRequestAndQueueRetransmit() 103 verify(mMockHandler).sendMessageDelayed(any(Message.class), eq(expectedTimeout)); in testRetransmitUserConfiguredRetransmit() 168 .sendMessageDelayed(any(Message.class), eq((long) IKE_RETRANS_TIMEOUT_MS_LIST[0])); in testSuspendAndRestartRetransmit() 178 verify(mMockHandler).sendMessageDelayed(any(Message.class), eq(expectedTimeout)); in testRestartRetransmit() 188 .sendMessageDelayed(any(Message.class), eq(expectedTimeout)); in testRestartRetransmit()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterState.java | 21 import android.os.Message; 141 protected String getLogRecString(Message msg) { in getLogRecString() 187 public boolean processMessage(Message msg) { in processMessage() 209 public boolean processMessage(Message msg) { in processMessage() 235 public boolean processMessage(Message msg) { in processMessage() 274 public boolean processMessage(Message msg) { in processMessage() 314 public boolean processMessage(Message msg) { in processMessage() 354 public boolean processMessage(Message msg) { in processMessage() 398 public boolean processMessage(Message msg) { in processMessage()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | MessageDisplayController.java | 59 private abstract static class Message { class in MessageDisplayController 64 private class HelpMessage extends Message { 81 private class ProgressMessage extends Message { 132 Message messageToDisplay = getMessageToDisplay(timeStamp); in MessageDisplayController() 185 private Message getMessageToDisplay(long timeStamp) { in getMessageToDisplay() 197 Message helpMessageToDisplay = getHelpMessageToDisplay(timeStamp); in getMessageToDisplay() 218 Message message = mProgressMessageList.peekFirst(); in getProgressMessageToDisplay() 239 Message message = mHelpMessageList.peekFirst(); in getHelpMessageToDisplay()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareStateManager.java | 96 import android.os.Message; 979 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in delayedInitialization() 989 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in getAwareInterface() 1000 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in releaseAwareInterface() 1197 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in connect() 1230 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in disconnect() 1242 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in deferDisableAware() 1254 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in reconfigure() 1263 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in terminateSession() 1276 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in publish() [all …]
|
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/appcard/ |
D | AppCardService.kt | 25 import android.os.Message in <lambda>() 73 override fun handleMessage(msg: Message) { in <lambda>() 83 val message = Message.obtain( in <lambda>() 98 val message = Message.obtain( in <lambda>() 111 val message = Message.obtain(handler, msg.what, msg.obj) in <lambda>() 118 val message = Message.obtain(handler, msg.what, msg.obj) in <lambda>() 136 private fun getHostId(msg: Message): String? { in <lambda>()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | MessagesListing.java | 34 private final ArrayList<Message> mMessages; 37 mMessages = new ArrayList<Message>(); in MessagesListing() 61 Message msg = new Message(attrs); in parse() 81 public ArrayList<Message> getList() { in getList()
|