Home
last modified time | relevance | path

Searched refs:what (Results 1 – 25 of 728) sorted by relevance

12345678910>>...30

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DBaseCommands.java123 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() argument
124 Registrant r = new Registrant (h, what, obj); in registerForRadioStateChanged()
139 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() argument
140 Registrant r = new Registrant (h, what, obj); in registerForImsNetworkStateChanged()
149 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() argument
150 Registrant r = new Registrant (h, what, obj); in registerForOn()
169 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() argument
170 Registrant r = new Registrant (h, what, obj); in registerForAvailable()
189 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable() argument
190 Registrant r = new Registrant (h, what, obj); in registerForNotAvailable()
[all …]
DCommandsInterface.java143 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged() argument
146 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged() argument
148 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged() argument
157 void registerForOn(Handler h, int what, Object obj); in registerForOn() argument
166 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable() argument
175 void registerForNotAvailable(Handler h, int what, Object obj); in registerForNotAvailable() argument
184 void registerForOffOrNotAvailable(Handler h, int what, Object obj); in registerForOffOrNotAvailable() argument
190 void registerForIccStatusChanged(Handler h, int what, Object obj); in registerForIccStatusChanged() argument
193 void registerForCallStateChanged(Handler h, int what, Object obj); in registerForCallStateChanged() argument
196 void registerForNetworkStateChanged(Handler h, int what, Object obj); in registerForNetworkStateChanged() argument
[all …]
/frameworks/base/core/java/com/android/internal/os/
DHandlerCaller.java73 public boolean hasMessages(int what) { in hasMessages() argument
74 return mH.hasMessages(what); in hasMessages()
77 public void removeMessages(int what) { in removeMessages() argument
78 mH.removeMessages(what); in removeMessages()
81 public void removeMessages(int what, Object obj) { in removeMessages() argument
82 mH.removeMessages(what, obj); in removeMessages()
109 public Message obtainMessage(int what) { in obtainMessage() argument
110 return mH.obtainMessage(what); in obtainMessage()
113 public Message obtainMessageBO(int what, boolean arg1, Object arg2) { in obtainMessageBO() argument
114 return mH.obtainMessage(what, arg1 ? 1 : 0, 0, arg2); in obtainMessageBO()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java458 msg.what = CMD_CHANNEL_DISCONNECTED; in disconnect()
492 public void sendMessage(int what) { in sendMessage() argument
494 msg.what = what; in sendMessage()
504 public void sendMessage(int what, int arg1) { in sendMessage() argument
506 msg.what = what; in sendMessage()
518 public void sendMessage(int what, int arg1, int arg2) { in sendMessage() argument
520 msg.what = what; in sendMessage()
534 public void sendMessage(int what, int arg1, int arg2, Object obj) { in sendMessage() argument
536 msg.what = what; in sendMessage()
549 public void sendMessage(int what, Object obj) { in sendMessage() argument
[all …]
DStateMachine.java485 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()
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()
1246 if (mDbg) mSm.log("deferMessage: msg=" + msg.what); in deferMessage()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DMessageQueueTest.java48 "msg.isInuse is false, should always be true, #" + msg.what)); in handleMessage()
51 if (msg.what != mCount) { in handleMessage()
54 + ", received #" + msg.what)); in handleMessage()
61 "Message received after done, #" + msg.what)); in handleMessage()
100 if (msg.what == 0) { in testAtFrontOfQueue()
128 "msg.isInuse is false, should always be true, #" + msg.what)); in handleMessage()
131 if (msg.what != mCount) { in handleMessage()
134 + ", received #" + msg.what)); in handleMessage()
141 "Message received after done, #" + msg.what)); in handleMessage()
161 if (msg.what == 0) { in testFieldIntegrity()
[all …]
DIdleHandlerTest.java71 if (msg.what == 0) { in testOneShotFirst()
73 } else if (msg.what == 1) { in testOneShotFirst()
104 if (msg.what == 0) { in testOneShotLater()
107 } else if (msg.what == 1) { in testOneShotLater()
109 } else if (msg.what == 2) { in testOneShotLater()
142 if (msg.what == 0) { in testRepeatedFirst()
144 } else if (msg.what == 1) { in testRepeatedFirst()
175 if (msg.what == 0) { in testRepeatedLater()
178 } else if (msg.what == 1) { in testRepeatedLater()
180 } else if (msg.what == 2) { in testRepeatedLater()
DBroadcasterTest.java47 msg.what = MESSAGE_A; in test1()
53 if (msg.what == MESSAGE_B) { in test1()
83 msg.what = MESSAGE_A; in go()
89 int index = msg.what - MESSAGE_B; in handleMessage()
146 msg.what = MESSAGE_A; in test4()
152 if (msg.what == MESSAGE_C && msg.getTarget() == h1) { in test4()
181 msg.what = MESSAGE_B; in test5()
187 if (msg.what == MESSAGE_D && msg.getTarget() == h2) { in test5()
217 msg.what = MESSAGE_A; in test6()
223 if (msg.what == MESSAGE_C && msg.getTarget() == h1) { in test6()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommandsVerifier.java59 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() argument
69 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged() argument
79 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() argument
89 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() argument
99 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() argument
109 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable() argument
119 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable() argument
129 public void registerForIccStatusChanged(Handler h, int what, Object obj) { in registerForIccStatusChanged() argument
139 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged() argument
149 public void registerForNetworkStateChanged(Handler h, int what, Object obj) { in registerForNetworkStateChanged() argument
[all …]
/frameworks/base/core/java/android/os/
DHandler.java260 sb.append("#").append(message.what); in getTraceName()
277 return "0x" + Integer.toHexString(message.what); in getMessageName()
296 public final Message obtainMessage(int what) in obtainMessage() argument
298 return Message.obtain(this, what); in obtainMessage()
310 public final Message obtainMessage(int what, Object obj) in obtainMessage() argument
312 return Message.obtain(this, what, obj); in obtainMessage()
324 public final Message obtainMessage(int what, int arg1, int arg2) in obtainMessage() argument
326 return Message.obtain(this, what, arg1, arg2); in obtainMessage()
339 public final Message obtainMessage(int what, int arg1, int arg2, Object obj) in obtainMessage() argument
341 return Message.obtain(this, what, arg1, arg2, obj); in obtainMessage()
[all …]
DMessage.java41 public int what; field in Message
146 m.what = orig.what; in obtain()
195 public static Message obtain(Handler h, int what) { in obtain() argument
198 m.what = what; in obtain()
211 public static Message obtain(Handler h, int what, Object obj) { in obtain() argument
214 m.what = what; in obtain()
230 public static Message obtain(Handler h, int what, int arg1, int arg2) { in obtain() argument
233 m.what = what; in obtain()
251 public static Message obtain(Handler h, int what, in obtain() argument
255 m.what = what; in obtain()
[all …]
DRegistrant.java28 Registrant(Handler h, int what, Object obj) in Registrant() argument
31 this.what = what; in Registrant()
79 msg.what = what; in internalNotifyRegistrant()
103 msg.what = what; in messageForRegistrant()
120 int what; field in Registrant
/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java282 public static boolean isMetaTracker(CharSequence text, Object what) { in isMetaTracker() argument
283 return what == CAP || what == ALT || what == SYM || in isMetaTracker()
284 what == SELECTING; in isMetaTracker()
291 public static boolean isSelectingMetaTracker(CharSequence text, Object what) { in isSelectingMetaTracker() argument
292 return what == SELECTING; in isSelectingMetaTracker()
295 private static void adjust(Spannable content, Object what) { in adjust() argument
296 int current = content.getSpanFlags(what); in adjust()
299 content.setSpan(what, 0, 0, USED); in adjust()
301 content.removeSpan(what); in adjust()
315 private static void resetLock(Spannable content, Object what) { in resetLock() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DPhoneMock.java176 public void registerForSilentRedial(Handler h, int what, Object obj) { in registerForSilentRedial() argument
200 public void registerForPreciseCallStateChanged(Handler h, int what, Object obj) { in registerForPreciseCallStateChanged() argument
201 mPreciseCallStateRegistrants.addUnique(h, what, obj); in registerForPreciseCallStateChanged()
215 public void registerForHandoverStateChanged(Handler h, int what, Object obj) { in registerForHandoverStateChanged() argument
216 mHandoverRegistrants.addUnique(h, what, obj); in registerForHandoverStateChanged()
236 public void registerForUnknownConnection(Handler h, int what, Object obj) { in registerForUnknownConnection() argument
237 mUnknownConnectionRegistrants.addUnique(h, what, obj); in registerForUnknownConnection()
245 Handler h, int what, Object obj) { in registerForNewRingingConnection() argument
246 mNewRingingConnectionRegistrants.addUnique(h, what, obj); in registerForNewRingingConnection()
254 Handler h, int what, Object obj) { in registerForVideoCapabilityChanged() argument
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
DSpannableBuilder.java133 public void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
134 if (isWatcher(what)) { in setSpan()
135 final WatcherWrapper span = new WatcherWrapper(what); in setSpan()
137 what = span; in setSpan()
139 super.setSpan(what, start, end, flags); in setSpan()
166 public void removeSpan(Object what) { in removeSpan() argument
168 if (isWatcher(what)) { in removeSpan()
169 watcher = getWatcherFor(what); in removeSpan()
171 what = watcher; in removeSpan()
177 super.removeSpan(what); in removeSpan()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DMessageThreadUtil.java64 switch (msg.what) { in getMainThreadProxy()
76 Log.e("ThreadUtil", "Unsupported message, what=" + msg.what); in getMainThreadProxy()
143 switch (msg.what) { in getBackgroundProxy()
162 Log.e("ThreadUtil", "Unsupported message, what=" + msg.what); in getBackgroundProxy()
180 public int what;
190 what = arg1 = arg2 = arg3 = arg4 = arg5 = 0;
200 static SyncQueueItem obtainMessage(int what, int arg1, int arg2, int arg3, int arg4,
211 item.what = what;
222 static SyncQueueItem obtainMessage(int what, int arg1, int arg2) {
223 return obtainMessage(what, arg1, arg2, 0, 0, 0, null);
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DMessageQueueTest.java48 assertThat(msg.what, is(0)); in allArguments()
64 assertThat(msg.what, is(1)); in sendInOrder()
68 assertThat(msg.what, is(3)); in sendInOrder()
72 assertThat(msg.what, is(5)); in sendInOrder()
86 assertThat(msg.what, is(3)); in sendAtFront()
90 assertThat(msg.what, is(1)); in sendAtFront()
94 assertThat(msg.what, is(5)); in sendAtFront()
113 assertThat(msg.what, is(2)); in remove()
117 assertThat(msg.what, is(2)); in remove()
121 assertThat(msg.what, is(3)); in remove()
[all …]
/frameworks/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java84 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
86 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
88 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
90 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
116 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
118 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
145 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
147 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
149 collector.checkThat("3: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
179 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeTwice()
[all …]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java108 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockWifiMonitor.java42 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()
DWifiMonitorTest.java85 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
103 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
121 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigAuthError()
139 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
157 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigError()
174 assertEquals(WifiMonitor.WPS_SUCCESS_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventSuccess()
189 assertEquals(WifiMonitor.WPS_OVERLAP_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventOverlap()
204 assertEquals(WifiMonitor.WPS_TIMEOUT_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventTimeout()
220 assertEquals(WifiMonitor.ANQP_DONE_EVENT, messageCaptor.getValue().what); in testBroadcastAnqpDoneEvent()
241 assertEquals(WifiMonitor.RX_HS20_ANQP_ICON_EVENT, messageCaptor.getValue().what); in testBroadcastIconDoneEvent()
[all …]
/frameworks/base/media/java/android/media/
DAudioPortEventHandler.java63 if (msg.what == AUDIOPORT_EVENT_NEW_LISTENER) { in init()
74 if (msg.what == AUDIOPORT_EVENT_PORT_LIST_UPDATED || in init()
75 msg.what == AUDIOPORT_EVENT_PATCH_LIST_UPDATED || in init()
76 msg.what == AUDIOPORT_EVENT_SERVICE_DIED) { in init()
86 if (msg.what != AUDIOPORT_EVENT_SERVICE_DIED) { in init()
93 switch (msg.what) { in init()
100 if (msg.what == AUDIOPORT_EVENT_PORT_LIST_UPDATED) { in init()
160 int what, int arg1, int arg2, Object obj) { in postEventFromNative() argument
170 Message m = handler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java151 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
152 setSpan(what, start, end, flags, true/*enforceParagraph*/); in setSpan()
159 private void setSpan(Object what, int start, int end, int flags, boolean enforceParagraph) { in setSpan() argument
190 if (spans[i] == what) { in setSpan()
198 sendSpanChanged(what, ostart, oend, nstart, nend); in setSpan()
215 mSpans[mSpanCount] = what; in setSpan()
222 sendSpanAdded(what, nstart, nend); in setSpan()
225 /* package */ void removeSpan(Object what) { in removeSpan() argument
231 if (spans[i] == what) { in removeSpan()
243 sendSpanRemoved(what, ostart, oend); in removeSpan()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMonitor.java104 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument
110 Set<Handler> ifaceWhatHandlers = ifaceHandlers.get(what); in registerHandler()
113 ifaceHandlers.put(what, ifaceWhatHandlers); in registerHandler()
219 private void sendMessage(String iface, int what) { in sendMessage() argument
220 sendMessage(iface, Message.obtain(null, what)); in sendMessage()
223 private void sendMessage(String iface, int what, Object obj) { in sendMessage() argument
224 sendMessage(iface, Message.obtain(null, what, obj)); in sendMessage()
227 private void sendMessage(String iface, int what, int arg1) { in sendMessage() argument
228 sendMessage(iface, Message.obtain(null, what, arg1, 0)); in sendMessage()
231 private void sendMessage(String iface, int what, int arg1, int arg2) { in sendMessage() argument
[all …]
/frameworks/av/media/libstagefright/foundation/
DAHandler.cpp31 uint32_t what = msg->what(); in deliverMessage() local
32 ssize_t idx = mMessages.indexOfKey(what); in deliverMessage()
34 mMessages.add(what, 1); in deliverMessage()

12345678910>>...30