Home
last modified time | relevance | path

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

12345678910>>...32

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DBaseCommands.java187 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() argument
189 mRadioStateChangedRegistrants.addUnique(h, what, obj); in registerForRadioStateChanged()
190 Message.obtain(h, what, new AsyncResult(obj, null, null)).sendToTarget(); in registerForRadioStateChanged()
201 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() argument
202 mImsNetworkStateChangedRegistrants.addUnique(h, what, obj); in registerForImsNetworkStateChanged()
210 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() argument
212 mOnRegistrants.addUnique(h, what, obj); in registerForOn()
215 Message.obtain(h, what, new AsyncResult(obj, null, null)).sendToTarget(); in registerForOn()
228 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() argument
230 mAvailRegistrants.addUnique(h, what, obj); in registerForAvailable()
[all …]
DCommandsInterface.java154 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged() argument
157 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged() argument
161 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged() argument
171 void registerForOn(Handler h, int what, Object obj); in registerForOn() argument
182 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable() argument
193 void registerForNotAvailable(Handler h, int what, Object obj); in registerForNotAvailable() argument
203 void registerForOffOrNotAvailable(Handler h, int what, Object obj); in registerForOffOrNotAvailable() argument
210 void registerForIccStatusChanged(Handler h, int what, Object obj); in registerForIccStatusChanged() argument
213 void registerForIccSlotStatusChanged(Handler h, int what, Object obj); in registerForIccSlotStatusChanged() argument
217 void registerForCallStateChanged(Handler h, int what, Object obj); in registerForCallStateChanged() argument
[all …]
DSettingsObserver.java51 public void observe(Uri uri, int what) { in observe() argument
52 mUriEventMap.put(uri, what); in observe()
72 final Integer what = mUriEventMap.get(uri); in onChange() local
73 if (what != null) { in onChange()
74 mHandler.obtainMessage(what.intValue()).sendToTarget(); in onChange()
DCallManager.java1169 public void registerForDisconnect(Handler h, int what, Object obj) { in registerForDisconnect() argument
1170 mDisconnectRegistrants.addUnique(h, what, obj); in registerForDisconnect()
1192 public void registerForPreciseCallStateChanged(Handler h, int what, Object obj){ in registerForPreciseCallStateChanged() argument
1193 mPreciseCallStateRegistrants.addUnique(h, what, obj); in registerForPreciseCallStateChanged()
1209 public void registerForUnknownConnection(Handler h, int what, Object obj){ in registerForUnknownConnection() argument
1210 mUnknownConnectionRegistrants.addUnique(h, what, obj); in registerForUnknownConnection()
1234 public void registerForNewRingingConnection(Handler h, int what, Object obj){ in registerForNewRingingConnection() argument
1235 mNewRingingConnectionRegistrants.addUnique(h, what, obj); in registerForNewRingingConnection()
1256 public void registerForIncomingRing(Handler h, int what, Object obj){ in registerForIncomingRing() argument
1257 mIncomingRingRegistrants.addUnique(h, what, obj); in registerForIncomingRing()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DHandlerCaller.java80 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/native/libs/gui/
DLayerState.cpp35 : what(0), in layer_state_t()
80 SAFE_PARCEL(output.writeUint64, what); in write()
183 SAFE_PARCEL(input.readUint64, &what); in read()
319 : what(0), in DisplayState()
329 SAFE_PARCEL(output.writeUint32, what); in write()
345 SAFE_PARCEL(input.readUint32, &what); in read()
359 if (other.what & eSurfaceChanged) { in merge()
360 what |= eSurfaceChanged; in merge()
363 if (other.what & eLayerStackChanged) { in merge()
364 what |= eLayerStackChanged; in merge()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DMessageQueueTest.java46 "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 …]
DIdleHandlerTest.java70 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()
DBroadcasterTest.java44 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/
DAsyncChannel.java469 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 …]
DStateMachine.java486 mWhat = (msg != null) ? msg.what : 0; in update()
549 String what = mSm != null ? mSm.getWhatToString(mWhat) : ""; in toString() local
550 if (TextUtils.isEmpty(what)) { in toString()
556 sb.append(what); in toString()
797 if (mSm != null && msg.what != SM_INIT_CMD && msg.what != SM_QUIT_CMD) { in handleMessage()
801 if (mDbg) mSm.log("handleMessage: E msg.what=" + msg.what); in handleMessage()
808 if (mIsConstructionCompleted || (mMsg.what == SM_QUIT_CMD)) { in handleMessage()
811 } else if (!mIsConstructionCompleted && (mMsg.what == SM_INIT_CMD) in handleMessage()
825 if (mSm != null && msg.what != SM_INIT_CMD && msg.what != SM_QUIT_CMD) { in handleMessage()
1056 if (mDbg) mSm.log("moveDeferredMessageAtFrontOfQueue; what=" + curMsg.what); in moveDeferredMessageAtFrontOfQueue()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimulatedCommandsVerifier.java67 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() argument
77 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged() argument
87 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() argument
97 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() argument
107 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() argument
117 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable() argument
127 public void registerForOffOrNotAvailable(Handler h, int what, Object obj) { in registerForOffOrNotAvailable() argument
137 public void registerForIccStatusChanged(Handler h, int what, Object obj) { in registerForIccStatusChanged() argument
147 public void registerForIccSlotStatusChanged(Handler h, int what, Object obj) { in registerForIccSlotStatusChanged() argument
157 public void registerForCallStateChanged(Handler h, int what, Object obj) { in registerForCallStateChanged() argument
[all …]
/frameworks/base/core/java/android/os/
DHandler.java327 sb.append("#").append(message.what); in getTraceName()
345 return "0x" + Integer.toHexString(message.what); in getMessageName()
366 public final Message obtainMessage(int what) in obtainMessage() argument
368 return Message.obtain(this, what); in obtainMessage()
381 public final Message obtainMessage(int what, @Nullable Object obj) { in obtainMessage() argument
382 return Message.obtain(this, what, obj); in obtainMessage()
395 public final Message obtainMessage(int what, int arg1, int arg2) in obtainMessage() argument
397 return Message.obtain(this, what, arg1, arg2); in obtainMessage()
411 public final Message obtainMessage(int what, int arg1, int arg2, @Nullable Object obj) { in obtainMessage() argument
412 return Message.obtain(this, what, arg1, arg2, obj); in obtainMessage()
[all …]
DMessage.java43 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 …]
DRegistrant.java28 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/base/core/java/android/text/method/
DMetaKeyKeyListener.java283 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/
DAudioPortEventHandler.java76 if (msg.what == AUDIOPORT_EVENT_NEW_LISTENER) { in init()
88 if (msg.what == AUDIOPORT_EVENT_PORT_LIST_UPDATED || in init()
89 msg.what == AUDIOPORT_EVENT_PATCH_LIST_UPDATED || in init()
90 msg.what == AUDIOPORT_EVENT_SERVICE_DIED) { in init()
100 if (msg.what != AUDIOPORT_EVENT_SERVICE_DIED) { in init()
107 sendMessageDelayed(obtainMessage(msg.what, msg.obj), in init()
113 switch (msg.what) { in init()
120 if (msg.what == AUDIOPORT_EVENT_PORT_LIST_UPDATED) { in init()
184 int what, int arg1, int arg2, Object obj) { in postEventFromNative() argument
194 Message m = handler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
[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/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java89 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/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()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java185 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
186 setSpan(what, start, end, flags, true/*enforceParagraph*/); in setSpan()
195 private void setSpan(Object what, int start, int end, int flags, boolean enforceParagraph) { in setSpan() argument
226 if (spans[i] == what) { in setSpan()
234 sendSpanChanged(what, ostart, oend, nstart, nend); in setSpan()
251 mSpans[mSpanCount] = what; in setSpan()
258 sendSpanAdded(what, nstart, nend); in setSpan()
262 /* package */ void removeSpan(Object what) { in removeSpan() argument
263 removeSpan(what, 0 /* flags */); in removeSpan()
269 public void removeSpan(Object what, int flags) { in removeSpan() argument
[all …]
DSpannable.java39 public void setSpan(Object what, int start, int end, int flags); in setSpan() argument
46 public void removeSpan(Object what); in removeSpan() argument
57 default void removeSpan(Object what, int flags) { in removeSpan() argument
58 removeSpan(what); in removeSpan()
DSpannableString.java59 public void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
60 super.setSpan(what, start, end, flags); in setSpan()
63 public void removeSpan(Object what) { in removeSpan() argument
64 super.removeSpan(what); in removeSpan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardLifecyclesDispatcher.java53 void dispatch(int what) { in dispatch() argument
54 mHandler.obtainMessage(what).sendToTarget(); in dispatch()
62 void dispatch(int what, int pmReason) { in dispatch() argument
63 final Message message = mHandler.obtainMessage(what); in dispatch()
71 switch (msg.what) {
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerServiceShellCommand.java76 final String what = getNextArgRequired(); in requestSet() local
78 switch(what) { in requestSet()
84 pw.println("Invalid set: " + what); in requestSet()
90 final String what = getNextArgRequired(); in requestGet() local
91 switch(what) { in requestGet()
95 pw.println("Invalid get: " + what); in requestGet()

12345678910>>...32