/frameworks/base/core/java/android/os/ |
H A D | Registrant.java | 78 Message msg = Message.obtain(); 80 msg.what = what; 82 msg.obj = new AsyncResult(userObj, result, exception); 84 h.sendMessage(msg); 102 Message msg = h.obtainMessage(); 104 msg.what = what; 105 msg.obj = userObj; 107 return msg;
|
H A D | MessageQueue.java | 135 Message msg = mMessages; 136 if (msg != null && msg.target == null) { 139 prevMsg = msg; 140 msg = msg.next; 141 } while (msg != null && !msg.isAsynchronous()); 143 if (msg != null) { 144 if (now < msg 283 enqueueMessage(Message msg, long when) argument [all...] |
H A D | Handler.java | 78 public boolean handleMessage(Message msg); argument 84 public void handleMessage(Message msg) { argument 90 public void dispatchMessage(Message msg) { argument 91 if (msg.callback != null) { 92 handleCallback(msg); 95 if (mCallback.handleMessage(msg)) { 99 handleMessage(msg); 493 public final boolean sendMessage(Message msg) argument 495 return sendMessageDelayed(msg, 0); 520 Message msg 553 sendMessageDelayed(Message msg, long delayMillis) argument 579 sendMessageAtTime(Message msg, long uptimeMillis) argument 602 sendMessageAtFrontOfQueue(Message msg) argument 613 enqueueMessage(MessageQueue queue, Message msg, long uptimeMillis) argument 706 send(Message msg) argument [all...] |
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/ |
H A D | UiObjectNotFoundException.java | 27 public UiObjectNotFoundException(String msg) { argument 28 super(msg);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
H A D | TakeScreenshotService.java | 34 public void handleMessage(Message msg) { 35 switch (msg.what) { 37 final Messenger callback = msg.replyTo; 49 }, msg.arg1 > 0, msg.arg2 > 0);
|
/frameworks/av/media/libmedia/ |
H A D | SoundPoolThread.cpp | 25 void SoundPoolThread::write(SoundPoolMsg msg) { argument 33 mMsgQueue.push(msg); 43 SoundPoolMsg msg = mMsgQueue[0]; local 46 return msg; 84 SoundPoolMsg msg = read(); local 85 ALOGV("Got message m=%d, mData=%d", msg.mMessageType, msg.mData); 86 switch (msg.mMessageType) { 91 doLoadSample(msg.mData); 95 msg [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | RilMessageDecoder.java | 69 Message msg = obtainMessage(CMD_START); 70 msg.obj = rilMsg; 71 sendMessage(msg); 81 Message msg = obtainMessage(RilMessageDecoder.CMD_PARAMS_READY); 82 msg.arg1 = resCode.value(); 83 msg.obj = cmdParams; 84 sendMessage(msg); 88 Message msg = mCaller.obtainMessage(CatService.MSG_ID_RIL_MSG_DECODED, 90 msg.sendToTarget(); 106 public boolean processMessage(Message msg) { argument 121 processMessage(Message msg) argument [all...] |
/frameworks/wilhelm/src/android/ |
H A D | android_GenericPlayer.cpp | 138 sp<AMessage> msg = new AMessage(kWhatPrepare, id()); local 139 msg->post(); 146 sp<AMessage> msg = new AMessage(kWhatPlay, id()); local 147 msg->post(); 153 sp<AMessage> msg = new AMessage(kWhatPause, id()); local 154 msg->post(); 173 sp<AMessage> msg = new AMessage(kWhatSeek, id()); local 174 msg->setInt64(WHATPARAM_SEEK_SEEKTIME_MS, timeMsec); 175 msg->post(); 181 sp<AMessage> msg local 189 sp<AMessage> msg = new AMessage(kWhatBuffUpdateThres, id()); local 218 sp<AMessage> msg = new AMessage(kWhatAttachAuxEffect, id()); local 228 sp<AMessage> msg = new AMessage(kWhatSetAuxEffectSendLevel, id()); local 259 sp<AMessage> msg = new AMessage(kWhatSetPlayEvents, id()); local 287 sp<AMessage> msg = new AMessage(kWhatNotif, id()); local 300 sp<AMessage> msg = new AMessage(kWhatNotif, id()); local 312 onMessageReceived(const sp<AMessage> &msg) argument 407 onNotify(const sp<AMessage> &msg) argument 473 onSeek(const sp<AMessage> &msg) argument 478 onLoop(const sp<AMessage> &msg) argument 498 onBufferingUpdate(const sp<AMessage> &msg) argument 503 onSetBufferingUpdateThreshold(const sp<AMessage> &msg) argument 513 onAttachAuxEffect(const sp<AMessage> &msg) argument 518 onSetAuxEffectSendLevel(const sp<AMessage> &msg) argument 523 onSetPlayEvents(const sp<AMessage> &msg) argument 537 onOneShot(const sp<AMessage> &msg) argument 567 sp<AMessage> msg = new AMessage(kWhatSeekComplete, id()); local 574 sp<AMessage> msg = new AMessage(kWhatBufferingUpdate, id()); local 707 sp<AMessage> msg = new AMessage(kWhatOneShot, id()); local [all...] |
/frameworks/base/libs/androidfw/ |
H A D | InputTransport.cpp | 146 status_t InputChannel::sendMessage(const InputMessage* msg) { argument 147 size_t msgLength = msg->size(); 150 nWrite = ::send(mFd, msg, msgLength, MSG_DONTWAIT | MSG_NOSIGNAL); 157 msg->header.type, error); 171 mName.string(), msg->header.type); 177 ALOGD("channel '%s' ~ sent message of type %d", mName.string(), msg->header.type); 182 status_t InputChannel::receiveMessage(InputMessage* msg) { argument 185 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); 209 if (!msg->isValid(nRead)) { 217 ALOGD("channel '%s' ~ received message of type %d", mName.string(), msg 258 InputMessage msg; local 314 InputMessage msg; local 344 InputMessage msg; local 545 InputMessage& msg = batch.samples.editItemAt(i); local 565 updateTouchState(InputMessage* msg) argument 647 rewriteMessage(const TouchState& state, InputMessage* msg) argument 837 InputMessage msg; local 873 initializeKeyEvent(KeyEvent* event, const InputMessage* msg) argument 887 initializeMotionEvent(MotionEvent* event, const InputMessage* msg) argument 915 addSample(MotionEvent* event, const InputMessage* msg) argument 926 canAddSample(const Batch& batch, const InputMessage *msg) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | IntentService.java | 64 public void handleMessage(Message msg) { argument 65 onHandleIntent((Intent)msg.obj); 66 stopSelf(msg.arg1); 116 Message msg = mServiceHandler.obtainMessage(); 117 msg.arg1 = startId; 118 msg.obj = intent; 119 mServiceHandler.sendMessage(msg);
|
/frameworks/base/core/java/android/content/ |
H A D | AsyncQueryHandler.java | 66 public void handleMessage(Message msg) { argument 70 WorkerArgs args = (WorkerArgs) msg.obj; 72 int token = msg.what; 73 int event = msg.arg1; 113 reply.arg1 = msg.arg1; 116 Log.d(TAG, "WorkerHandler.handleMsg: msg.arg1=" + msg.arg1 168 Message msg = mWorkerThreadHandler.obtainMessage(token); 169 msg.arg1 = EVENT_ARG_QUERY; 179 msg 330 handleMessage(Message msg) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | CallbackProxy.java | 303 public void handleMessage(Message msg) { argument 309 switch (msg.what) { 311 String startedUrl = msg.getData().getString("url"); 315 (Bitmap) msg.obj); 320 String finishedUrl = (String) msg.obj; 329 mWebChromeClient.onReceivedIcon(mWebView.getWebView(), (Bitmap) msg.obj); 336 (String) msg.obj, msg.arg1 == 1); 343 (String) msg.obj); 349 int reasonCode = msg 1608 sendMessageToUiThreadSync(Message msg) argument [all...] |
H A D | WebSyncManager.java | 48 public void handleMessage(Message msg) { argument 49 if (msg.what == SYNC_MESSAGE) { 87 Message msg = mHandler.obtainMessage(SYNC_MESSAGE); 88 mHandler.sendMessageDelayed(msg, SYNC_LATER_INTERVAL); 104 Message msg = mHandler.obtainMessage(SYNC_MESSAGE); 105 mHandler.sendMessageDelayed(msg, SYNC_NOW_INTERVAL); 119 Message msg = mHandler.obtainMessage(SYNC_MESSAGE); 120 mHandler.sendMessageDelayed(msg, SYNC_LATER_INTERVAL); 135 Message msg = mHandler.obtainMessage(SYNC_MESSAGE); 136 mHandler.sendMessageDelayed(msg, SYNC_LATER_INTERVA [all...] |
H A D | WebIconDatabaseClassic.java | 71 public void handleMessage(Message msg) { argument 73 switch (msg.what) { 75 ((IconResult) msg.obj).dispatch(); 85 public void handleMessage(Message msg) { 88 switch (msg.what) { 90 nativeOpen((String) msg.obj); 102 IconListener l = (IconListener) msg.obj; 103 String url = msg.getData().getString("url"); 108 bulkRequestIcons(msg); 112 nativeRetainIconForPageUrl((String) msg 133 postMessage(Message msg) argument 141 bulkRequestIcons(Message msg) argument [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
H A D | GSMTestHandler.java | 62 public boolean handleMessage(Message msg) { argument 64 mCurrentMessage = msg; 96 Message msg; 98 msg = null; 108 msg = Message.obtain(); 109 msg.copyFrom(mCurrentMessage); 115 if (msg == null || code == GSMPhoneTest.ANY_MESSAGE || msg.what == code) return msg;
|
/frameworks/av/libvideoeditor/osal/src/ |
H A D | M4PSW_DebugTrace.c | 39 * M4OSA_Char* cond, char* msg, M4OSA_ERR err) 46 * @param msg (IN): the error message 56 M4OSA_Char* msg, 68 printf("Error: %li, on %s: %s\n",err,cond,msg); 70 printf("Error: %li, on %s: %s Line %lu in: %s\n",err,cond,msg,line,file); 52 M4OSA_DebugTrace(M4OSA_Int32 line, M4OSA_Char* file, M4OSA_Int32 level, M4OSA_Char* cond, M4OSA_Char* msg, M4OSA_ERR err) argument
|
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TimedTextPlayer.cpp | 70 sp<AMessage> msg = new AMessage(kWhatSeek, id()); local 71 msg->setInt64("seekTimeUs", timeUs); 72 msg->post(); 76 sp<AMessage> msg = new AMessage(kWhatSetSource, id()); local 77 msg->setObject("source", source); 78 msg->post(); 81 void TimedTextPlayer::onMessageReceived(const sp<AMessage> &msg) { argument 82 switch (msg->what()) { 116 CHECK(msg->findInt32("generation", &generation)); 118 // Drop obsolete msg 233 sp<AMessage> msg = new AMessage(kWhatRetryRead, id()); local 261 sp<AMessage> msg = new AMessage(kWhatSendSubtitle, id()); local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
H A D | Handler_Delegate.java | 35 /*package*/ static boolean sendMessageAtTime(Handler handler, Message msg, long uptimeMillis) { argument 39 callback.sendMessageAtTime(handler, msg, uptimeMillis); 47 void sendMessageAtTime(Handler handler, Message msg, long uptimeMillis); argument
|
/frameworks/av/media/libstagefright/ |
H A D | MediaCodec.cpp | 79 const sp<AMessage> &msg, sp<AMessage> *response) { 80 status_t err = msg->postAndAwaitResponse(response); 121 sp<AMessage> msg = new AMessage(kWhatInit, id()); local 122 msg->setString("name", name); 123 msg->setInt32("nameIsType", nameIsType); 126 msg->setInt32("encoder", encoder); 130 return PostAndAwaitResponse(msg, &response); 138 sp<AMessage> msg = new AMessage(kWhatConfigure, id()); local 140 msg->setMessage("format", format); 141 msg 78 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument 158 sp<AMessage> msg = new AMessage(kWhatStart, id()); local 165 sp<AMessage> msg = new AMessage(kWhatStop, id()); local 172 sp<AMessage> msg = new AMessage(kWhatRelease, id()); local 189 sp<AMessage> msg = new AMessage(kWhatQueueInputBuffer, id()); local 216 sp<AMessage> msg = new AMessage(kWhatQueueInputBuffer, id()); local 235 sp<AMessage> msg = new AMessage(kWhatDequeueInputBuffer, id()); local 256 sp<AMessage> msg = new AMessage(kWhatDequeueOutputBuffer, id()); local 275 sp<AMessage> msg = new AMessage(kWhatReleaseOutputBuffer, id()); local 284 sp<AMessage> msg = new AMessage(kWhatReleaseOutputBuffer, id()); local 292 sp<AMessage> msg = new AMessage(kWhatGetOutputFormat, id()); local 306 sp<AMessage> msg = new AMessage(kWhatGetBuffers, id()); local 315 sp<AMessage> msg = new AMessage(kWhatGetBuffers, id()); local 324 sp<AMessage> msg = new AMessage(kWhatFlush, id()); local 337 sp<AMessage> msg = new AMessage(kWhatRequestActivityNotification, id()); local 447 onMessageReceived(const sp<AMessage> &msg) argument 1216 sp<AMessage> msg = new AMessage(kWhatQueueInputBuffer, id()); local 1262 sp<AMessage> msg = info->mNotify; local 1276 updateBuffers( int32_t portIndex, const sp<AMessage> &msg) argument 1303 onQueueInputBuffer(const sp<AMessage> &msg) argument 1417 onReleaseOutputBuffer(const sp<AMessage> &msg) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | IState.java | 59 * @param msg to process 63 boolean processMessage(Message msg); argument
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneStateListener.java | 350 public void handleMessage(Message msg) { 351 //Log.d("TelephonyRegistry", "what=0x" + Integer.toHexString(msg.what) + " msg=" + msg); 352 switch (msg.what) { 354 PhoneStateListener.this.onServiceStateChanged((ServiceState)msg.obj); 357 PhoneStateListener.this.onSignalStrengthChanged(msg.arg1); 360 PhoneStateListener.this.onMessageWaitingIndicatorChanged(msg.arg1 != 0); 363 PhoneStateListener.this.onCallForwardingIndicatorChanged(msg.arg1 != 0); 366 PhoneStateListener.this.onCellLocationChanged((CellLocation)msg [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
H A D | IsimFileHandler.java | 50 protected void logd(String msg) { argument 51 Log.d(LOG_TAG, msg); 55 protected void loge(String msg) { argument 56 Log.e(LOG_TAG, msg);
|
/frameworks/base/core/java/com/android/internal/view/ |
H A D | IInputConnectionWrapper.java | 76 public void handleMessage(Message msg) { argument 77 executeMessage(msg); 178 void dispatchMessage(Message msg) { argument 183 executeMessage(msg); 184 msg.recycle(); 188 mH.sendMessage(msg); 191 void executeMessage(Message msg) { argument 192 switch (msg.what) { 194 SomeArgs args = (SomeArgs)msg.obj; 203 msg [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerRenderer.cpp | 62 sp<AMessage> msg = new AMessage(kWhatQueueBuffer, id()); local 63 msg->setInt32("audio", static_cast<int32_t>(audio)); 64 msg->setBuffer("buffer", buffer); 65 msg->setMessage("notifyConsumed", notifyConsumed); 66 msg->post(); 72 sp<AMessage> msg = new AMessage(kWhatQueueEOS, id()); local 73 msg->setInt32("audio", static_cast<int32_t>(audio)); 74 msg->setInt32("finalResult", finalResult); 75 msg->post(); 90 sp<AMessage> msg local 111 onMessageReceived(const sp<AMessage> &msg) argument 212 sp<AMessage> msg = new AMessage(kWhatDrainAudioQueue, id()); local 318 sp<AMessage> msg = new AMessage(kWhatDrainVideoQueue, id()); local 413 onQueueBuffer(const sp<AMessage> &msg) argument 499 onQueueEOS(const sp<AMessage> &msg) argument 523 onFlush(const sp<AMessage> &msg) argument 578 dropBufferWhileFlushing( bool audio, const sp<AMessage> &msg) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooperRoster.cpp | 75 const sp<AMessage> &msg, int64_t delayUs) { 77 return postMessage_l(msg, delayUs); 81 const sp<AMessage> &msg, int64_t delayUs) { 82 ssize_t index = mHandlers.indexOfKey(msg->target()); 96 msg->target()); 102 looper->post(msg, delayUs); 107 void ALooperRoster::deliverMessage(const sp<AMessage> &msg) { argument 113 ssize_t index = mHandlers.indexOfKey(msg->target()); 126 msg->target()); 133 handler->onMessageReceived(msg); 74 postMessage( const sp<AMessage> &msg, int64_t delayUs) argument 80 postMessage_l( const sp<AMessage> &msg, int64_t delayUs) argument 155 postAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument [all...] |