/frameworks/native/libs/gui/ |
D | LayerState.cpp | 32 output.writeUint64(what); in write() 104 what = input.readUint64(); in read() 183 what(0), in DisplayState() 195 output.writeUint32(what); in write() 208 what = input.readUint32(); in read() 219 if (other.what & eSurfaceChanged) { in merge() 220 what |= eSurfaceChanged; in merge() 223 if (other.what & eLayerStackChanged) { in merge() 224 what |= eLayerStackChanged; in merge() 227 if (other.what & eDisplayProjectionChanged) { in merge() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | BaseCommands.java | 181 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() argument 183 mRadioStateChangedRegistrants.addUnique(h, what, obj); in registerForRadioStateChanged() 184 Message.obtain(h, what, new AsyncResult(obj, null, null)).sendToTarget(); in registerForRadioStateChanged() 195 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() argument 196 mImsNetworkStateChangedRegistrants.addUnique(h, what, obj); in registerForImsNetworkStateChanged() 204 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() argument 206 mOnRegistrants.addUnique(h, what, obj); in registerForOn() 209 Message.obtain(h, what, new AsyncResult(obj, null, null)).sendToTarget(); in registerForOn() 222 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() argument 224 mAvailRegistrants.addUnique(h, what, obj); in registerForAvailable() [all …]
|
D | CommandsInterface.java | 148 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged() argument 151 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged() argument 155 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged() argument 165 void registerForOn(Handler h, int what, Object obj); in registerForOn() argument 176 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable() argument 187 void registerForNotAvailable(Handler h, int what, Object obj); in registerForNotAvailable() argument 197 void registerForOffOrNotAvailable(Handler h, int what, Object obj); in registerForOffOrNotAvailable() argument 204 void registerForIccStatusChanged(Handler h, int what, Object obj); in registerForIccStatusChanged() argument 207 void registerForIccSlotStatusChanged(Handler h, int what, Object obj); in registerForIccSlotStatusChanged() argument 211 void registerForCallStateChanged(Handler h, int what, Object obj); in registerForCallStateChanged() argument [all …]
|
D | CallManager.java | 1170 public void registerForDisconnect(Handler h, int what, Object obj) { in registerForDisconnect() argument 1171 mDisconnectRegistrants.addUnique(h, what, obj); in registerForDisconnect() 1193 public void registerForPreciseCallStateChanged(Handler h, int what, Object obj){ in registerForPreciseCallStateChanged() argument 1194 mPreciseCallStateRegistrants.addUnique(h, what, obj); in registerForPreciseCallStateChanged() 1210 public void registerForUnknownConnection(Handler h, int what, Object obj){ in registerForUnknownConnection() argument 1211 mUnknownConnectionRegistrants.addUnique(h, what, obj); in registerForUnknownConnection() 1235 public void registerForNewRingingConnection(Handler h, int what, Object obj){ in registerForNewRingingConnection() argument 1236 mNewRingingConnectionRegistrants.addUnique(h, what, obj); in registerForNewRingingConnection() 1257 public void registerForIncomingRing(Handler h, int what, Object obj){ in registerForIncomingRing() argument 1258 mIncomingRingRegistrants.addUnique(h, what, obj); in registerForIncomingRing() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | HandlerCaller.java | 80 public boolean hasMessages(int what) { in hasMessages() argument 81 return mH.hasMessages(what); in hasMessages() 84 public void removeMessages(int what) { in removeMessages() argument 85 mH.removeMessages(what); in removeMessages() 88 public void removeMessages(int what, Object obj) { in removeMessages() argument 89 mH.removeMessages(what, obj); in removeMessages() 118 public Message obtainMessage(int what) { in obtainMessage() argument 119 return mH.obtainMessage(what); in obtainMessage() 122 public Message obtainMessageBO(int what, boolean arg1, Object arg2) { in obtainMessageBO() argument 123 return mH.obtainMessage(what, arg1 ? 1 : 0, 0, arg2); in obtainMessageBO() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | MessageQueueTest.java | 46 "msg.isInuse is false, should always be true, #" + msg.what)); in handleMessage() 49 if (msg.what != mCount) { in handleMessage() 52 + ", received #" + msg.what)); in handleMessage() 59 "Message received after done, #" + msg.what)); in handleMessage() 98 if (msg.what == 0) { in testAtFrontOfQueue() 126 "msg.isInuse is false, should always be true, #" + msg.what)); in handleMessage() 129 if (msg.what != mCount) { in handleMessage() 132 + ", received #" + msg.what)); in handleMessage() 139 "Message received after done, #" + msg.what)); in handleMessage() 159 if (msg.what == 0) { in testFieldIntegrity() [all …]
|
D | IdleHandlerTest.java | 70 if (msg.what == 0) { in testOneShotFirst() 72 } else if (msg.what == 1) { in testOneShotFirst() 103 if (msg.what == 0) { in testOneShotLater() 106 } else if (msg.what == 1) { in testOneShotLater() 108 } else if (msg.what == 2) { in testOneShotLater() 141 if (msg.what == 0) { in testRepeatedFirst() 143 } else if (msg.what == 1) { in testRepeatedFirst() 174 if (msg.what == 0) { in testRepeatedLater() 177 } else if (msg.what == 1) { in testRepeatedLater() 179 } else if (msg.what == 2) { in testRepeatedLater()
|
D | BroadcasterTest.java | 44 msg.what = MESSAGE_A; in test1() 50 if (msg.what == MESSAGE_B) { in test1() 80 msg.what = MESSAGE_A; in go() 86 int index = msg.what - MESSAGE_B; in handleMessage() 143 msg.what = MESSAGE_A; in test4() 149 if (msg.what == MESSAGE_C && msg.getTarget() == h1) { in test4() 178 msg.what = MESSAGE_B; in test5() 184 if (msg.what == MESSAGE_D && msg.getTarget() == h2) { in test5() 214 msg.what = MESSAGE_A; in test6() 220 if (msg.what == MESSAGE_C && msg.getTarget() == h1) { in test6()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | AsyncChannel.java | 469 msg.what = CMD_CHANNEL_DISCONNECTED; in disconnect() 505 public void sendMessage(int what) { in sendMessage() argument 507 msg.what = what; in sendMessage() 518 public void sendMessage(int what, int arg1) { in sendMessage() argument 520 msg.what = what; in sendMessage() 533 public void sendMessage(int what, int arg1, int arg2) { in sendMessage() argument 535 msg.what = what; in sendMessage() 550 public void sendMessage(int what, int arg1, int arg2, Object obj) { in sendMessage() argument 552 msg.what = what; in sendMessage() 565 public void sendMessage(int what, Object obj) { in sendMessage() argument [all …]
|
D | StateMachine.java | 485 mWhat = (msg != null) ? msg.what : 0; in update() 548 String what = mSm != null ? mSm.getWhatToString(mWhat) : ""; in toString() local 549 if (TextUtils.isEmpty(what)) { in toString() 555 sb.append(what); in toString() 796 if (mSm != null && msg.what != SM_INIT_CMD && msg.what != SM_QUIT_CMD) { in handleMessage() 800 if (mDbg) mSm.log("handleMessage: E msg.what=" + msg.what); in handleMessage() 807 if (mIsConstructionCompleted || (mMsg.what == SM_QUIT_CMD)) { in handleMessage() 810 } else if (!mIsConstructionCompleted && (mMsg.what == SM_INIT_CMD) in handleMessage() 824 if (mSm != null && msg.what != SM_INIT_CMD && msg.what != SM_QUIT_CMD) { in handleMessage() 1055 if (mDbg) mSm.log("moveDeferredMessageAtFrontOfQueue; what=" + curMsg.what); in moveDeferredMessageAtFrontOfQueue() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Handler.java | 323 sb.append("#").append(message.what); in getTraceName() 341 return "0x" + Integer.toHexString(message.what); in getMessageName() 362 public final Message obtainMessage(int what) in obtainMessage() argument 364 return Message.obtain(this, what); in obtainMessage() 377 public final Message obtainMessage(int what, @Nullable Object obj) { in obtainMessage() argument 378 return Message.obtain(this, what, obj); in obtainMessage() 391 public final Message obtainMessage(int what, int arg1, int arg2) in obtainMessage() argument 393 return Message.obtain(this, what, arg1, arg2); in obtainMessage() 407 public final Message obtainMessage(int what, int arg1, int arg2, @Nullable Object obj) { in obtainMessage() argument 408 return Message.obtain(this, what, arg1, arg2, obj); in obtainMessage() [all …]
|
D | Message.java | 43 public int what; field in Message 175 m.what = orig.what; in obtain() 225 public static Message obtain(Handler h, int what) { in obtain() argument 228 m.what = what; in obtain() 241 public static Message obtain(Handler h, int what, Object obj) { in obtain() argument 244 m.what = what; in obtain() 260 public static Message obtain(Handler h, int what, int arg1, int arg2) { in obtain() argument 263 m.what = what; in obtain() 281 public static Message obtain(Handler h, int what, in obtain() argument 285 m.what = what; in obtain() [all …]
|
D | Registrant.java | 28 Registrant(Handler h, int what, Object obj) in Registrant() argument 31 this.what = what; in Registrant() 83 msg.what = what; in internalNotifyRegistrant() 106 msg.what = what; in messageForRegistrant() 124 int what; field in Registrant
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SimulatedCommandsVerifier.java | 64 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() argument 74 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged() argument 84 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() argument 94 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() argument 104 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() argument 114 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable() argument 124 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable() argument 134 public void registerForIccStatusChanged(Handler h, int what, Object obj) { in registerForIccStatusChanged() argument 144 public void registerForIccSlotStatusChanged(Handler h, int what, Object obj) { in registerForIccSlotStatusChanged() argument 154 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged() argument [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | MetaKeyKeyListener.java | 283 public static boolean isMetaTracker(CharSequence text, Object what) { in isMetaTracker() argument 284 return what == CAP || what == ALT || what == SYM || in isMetaTracker() 285 what == SELECTING; in isMetaTracker() 292 public static boolean isSelectingMetaTracker(CharSequence text, Object what) { in isSelectingMetaTracker() argument 293 return what == SELECTING; in isSelectingMetaTracker() 296 private static void adjust(Spannable content, Object what) { in adjust() argument 297 int current = content.getSpanFlags(what); in adjust() 300 content.setSpan(what, 0, 0, USED); in adjust() 302 content.removeSpan(what); in adjust() 316 private static void resetLock(Spannable content, Object what) { in resetLock() argument [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioPortEventHandler.java | 75 if (msg.what == AUDIOPORT_EVENT_NEW_LISTENER) { in init() 86 if (msg.what == AUDIOPORT_EVENT_PORT_LIST_UPDATED || in init() 87 msg.what == AUDIOPORT_EVENT_PATCH_LIST_UPDATED || in init() 88 msg.what == AUDIOPORT_EVENT_SERVICE_DIED) { in init() 98 if (msg.what != AUDIOPORT_EVENT_SERVICE_DIED) { in init() 105 sendMessageDelayed(obtainMessage(msg.what, msg.obj), in init() 111 switch (msg.what) { in init() 118 if (msg.what == AUDIOPORT_EVENT_PORT_LIST_UPDATED) { in init() 182 int what, int arg1, int arg2, Object obj) { in postEventFromNative() argument 192 Message m = handler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative() [all …]
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
D | Transport.java | 108 public boolean sendMessage(int service, int what, ByteBuffer content) { in sendMessage() argument 110 checkMessageId(what); in sendMessage() 123 mOutputBuffer.putShort((short)what); in sendMessage() 203 private void dispatchMessageReceived(int service, int what, ByteBuffer content) { in dispatchMessageReceived() argument 209 callback.onMessageReceived(service, what, content); in dispatchMessageReceived() 211 mLogger.log("Discarding message " + what in dispatchMessageReceived() 222 private static void checkMessageId(int what) { in checkMessageId() argument 223 if (what < 0 || what > 0xffff) { in checkMessageId() 224 throw new IllegalArgumentException("message id out of range: " + what); in checkMessageId() 247 public void onMessageReceived(int service, int what, ByteBuffer content); in onMessageReceived() argument [all …]
|
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooperTest.java | 89 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 91 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 93 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 95 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 147 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove() 149 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove() 176 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce() 178 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce() 180 collector.checkThat("3: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce() 210 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeTwice() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | MockWifiP2pMonitor.java | 44 public void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 50 ifaceHandlers.put(what, handler); in registerHandler() 61 public void sendMessage(String iface, int what) { in sendMessage() argument 62 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 68 assertTrue("No handler for iface=" + iface + ",what=" + message.what, in sendMessage() 78 + ",what=" + message.what, sent); in sendMessage() 83 Handler handler = ifaceHandlers.get(message.what); in sendMessage()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockWifiMonitor.java | 42 public void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 48 ifaceHandlers.put(what, handler); in registerHandler() 59 public void sendMessage(String iface, int what) { in sendMessage() argument 60 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 66 assertTrue("No handler for iface=" + iface + ",what=" + message.what, in sendMessage() 76 + ",what=" + message.what, sent); in sendMessage() 81 Handler handler = ifaceHandlers.get(message.what); in sendMessage()
|
D | WifiMonitorTest.java | 87 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() 105 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorWepProhibhited() 123 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigAuthError() 141 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigPbcOverlapError() 159 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigError() 176 assertEquals(WifiMonitor.WPS_SUCCESS_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventSuccess() 191 assertEquals(WifiMonitor.WPS_OVERLAP_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventOverlap() 206 assertEquals(WifiMonitor.WPS_TIMEOUT_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventTimeout() 222 assertEquals(WifiMonitor.ANQP_DONE_EVENT, messageCaptor.getValue().what); in testBroadcastAnqpDoneEvent() 243 assertEquals(WifiMonitor.RX_HS20_ANQP_ICON_EVENT, messageCaptor.getValue().what); in testBroadcastIconDoneEvent() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMonitor.java | 122 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 128 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(what); in registerHandler() 131 ifaceHandlers.put(what, ifaceWhatHandlers); in registerHandler() 142 public synchronized void deregisterHandler(String iface, int what, Handler handler) { in deregisterHandler() argument 147 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(what); in deregisterHandler() 220 private void sendMessage(String iface, int what) { in sendMessage() argument 221 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 224 private void sendMessage(String iface, int what, Object obj) { in sendMessage() argument 225 sendMessage(iface, Message.obtain(null, what, obj)); in sendMessage() 228 private void sendMessage(String iface, int what, int arg1) { in sendMessage() argument [all …]
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringInternal.java | 182 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() argument 183 setSpan(what, start, end, flags, true/*enforceParagraph*/); in setSpan() 192 private void setSpan(Object what, int start, int end, int flags, boolean enforceParagraph) { in setSpan() argument 223 if (spans[i] == what) { in setSpan() 231 sendSpanChanged(what, ostart, oend, nstart, nend); in setSpan() 248 mSpans[mSpanCount] = what; in setSpan() 255 sendSpanAdded(what, nstart, nend); in setSpan() 259 /* package */ void removeSpan(Object what) { in removeSpan() argument 260 removeSpan(what, 0 /* flags */); in removeSpan() 266 public void removeSpan(Object what, int flags) { in removeSpan() argument [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pMonitor.java | 102 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 108 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(what); in registerHandler() 111 ifaceHandlers.put(what, ifaceWhatHandlers); in registerHandler() 182 private void sendMessage(String iface, int what) { in sendMessage() argument 183 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 186 private void sendMessage(String iface, int what, Object obj) { in sendMessage() argument 187 sendMessage(iface, Message.obtain(null, what, obj)); in sendMessage() 190 private void sendMessage(String iface, int what, int arg1) { in sendMessage() argument 191 sendMessage(iface, Message.obtain(null, what, arg1, 0)); in sendMessage() 194 private void sendMessage(String iface, int what, int arg1, int arg2) { in sendMessage() argument [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AHandler.cpp | 31 uint32_t what = msg->what(); in deliverMessage() local 32 ssize_t idx = mMessages.indexOfKey(what); in deliverMessage() 34 mMessages.add(what, 1); in deliverMessage()
|