Home
last modified time | relevance | path

Searched refs:Message (Results 1 – 25 of 128) sorted by relevance

123456

/cts/tests/tests/os/src/android/os/cts/
DMessageTest.java30 import android.os.Message;
60 private Message mMessage;
74 mMessage = new Message(); in setUp()
77 public void handleMessage(Message msg) { in setUp()
85 new Message(); in testConstructor()
95 Message expected = Message.obtain(mHandler, mRunnable); in testAccessMessageProperties()
111 Message message = Message.obtain(); in testObtain()
125 Message message = Message.obtain(mHandler, WHAT, ARG1, ARG2, OBJ); in testObtain2()
126 Message expected = Message.obtain(message); in testObtain2()
137 Message expected = Message.obtain(mHandler); in testObtain3()
[all …]
DHandlerTest.java30 import android.os.Message;
80 public boolean handleMessage(Message msg) { in testConstructor()
121 Message msg = mHandler1.obtainMessage(); in testSendMessageAtTime()
138 Message msg = mHandler.obtainMessage(); in testHasMessagesWithInt()
148 Message msg = mHandler.obtainMessage(); in testHasMessagesWithObject()
159 Message msg = mHandler1.obtainMessage(); in testRemoveCallbacksAndMessages()
269 Message msg = mHandler1.obtainMessage(); in testRemoveMessages()
292 Message msg = mHandler1.obtainMessage(); in testRemoveMessagesWithObject()
307 Message wrongMessage = mHandler1.obtainMessage(); in testRemoveMessagesWithObject()
319 Message msg = mHandler1.obtainMessage(); in testSendMessage()
[all …]
DMessengerService.java24 import android.os.Message;
31 public void handleMessage(Message msg) {
32 Message reply = Message.obtain();
DTestedScreen.java24 import android.os.Message;
93 public void handleMessage(Message msg) {
107 final Message m = Message.obtain(); in queueIdle()
110 final Message m = Message.obtain(); in queueIdle()
DMessengerTest.java29 import android.os.Message;
40 private Message mMessage;
48 public boolean sendMessageAtTime(Message msg, long uptimeMillis) {
101 Message message = Message.obtain(mHandler, WHAT, MSG_ARG1, MSG_ARG2); in testSend()
169 public void handleMessage(Message msg) { in init()
186 Message msg = Message.obtain(); in executeTest()
198 public void handleMessage(Message msg) { in handleMessage()
/cts/tests/tests/libcorefileio/src/android/cts/
DLockHoldingService.java27 import android.os.Message;
111 public void handleMessage(Message msg) { in handleMessage()
142 private void acquireLock(Message msg) throws IOException, in acquireLock()
158 private void acquireLockAndThenWaitThenRelease(Message msg) in acquireLockAndThenWaitThenRelease()
184 private void notifyLockHeld(Message msg) throws RemoteException { in notifyLockHeld()
185 Message rsp = msg.obtain(); in notifyLockHeld()
191 private void notifyLockReleased(Message msg, long lockNotReleasedTimestamp, in notifyLockReleased()
193 Message rsp = msg.obtain(); in notifyLockReleased()
201 private void prepareForShutdown(Message msg) throws RemoteException { in prepareForShutdown()
203 Message rsp = msg.obtain(); in prepareForShutdown()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DConversationActionsTest.java55 ConversationActions.Message message = in testMessage_full()
56 new ConversationActions.Message.Builder(PERSON) in testMessage_full()
62 ConversationActions.Message recovered = parcelizeDeparcelize(message, in testMessage_full()
63 ConversationActions.Message.CREATOR); in testMessage_full()
71 ConversationActions.Message message = in testMessage_minimal()
72 new ConversationActions.Message.Builder(PERSON).build(); in testMessage_minimal()
74 ConversationActions.Message recovered = parcelizeDeparcelize(message, in testMessage_minimal()
75 ConversationActions.Message.CREATOR); in testMessage_minimal()
83 ConversationActions.Message message = in testRequest_minimal()
84 new ConversationActions.Message.Builder(PERSON) in testRequest_minimal()
[all …]
/cts/tests/process/src/android/os/cts/process/common/
DMessage.java34 public class Message implements Parcelable { class
35 public Message() { in Message() method in Message
140 protected Message(@android.annotation.NonNull android.os.Parcel in) { in Message() method in Message
173 public static final @android.annotation.NonNull Parcelable.Creator<Message> CREATOR
174 = new Parcelable.Creator<Message>() {
176 public Message[] newArray(int size) {
177 return new Message[size];
181 public Message createFromParcel(@android.annotation.NonNull android.os.Parcel in) {
182 return new Message(in);
/cts/tests/app/app/src/android/app/stubs/
DTestedScreen.java24 import android.os.Message;
93 public void handleMessage(Message msg) {
107 final Message m = Message.obtain(); in queueIdle()
110 final Message m = Message.obtain(); in queueIdle()
DDisplayEventActivity.java25 import android.os.Message;
92 Message msg = Message.obtain(); in launched()
105 Message msg = Message.obtain(); in callback()
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
DServiceCreator.java26 import android.os.Message;
43 public void handleMessage(Message msg) {
65 Message reply = Message.obtain();
105 Message msg = in onServiceConnected()
106 Message.obtain(null, ServiceMessages.MSG_CREATE_EXTERNAL_SERVICE_RESPONSE); in onServiceConnected()
DBaseService.java24 import android.os.Message;
53 public void handleMessage(Message msg) { in handleMessage()
57 Message reply = Message.obtain(null, ServiceMessages.MSG_IDENTIFY_RESPONSE); in handleMessage()
/cts/tests/process/src/android/os/cts/process/helper/
DBaseApplication.java20 import android.os.cts.process.common.Message;
36 Message m = new Message(); in sendBackApplicationCreated()
DBaseReceiver.java22 import android.os.cts.process.common.Message;
39 Message m = new Message(); in sendBackStartTime()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DSettingInjectorServiceTest.java34 import android.os.Message;
74 Message message = messageCapture.getNextMessage(TIMEOUT_MS); in testSettingInjectorService()
106 Message message = messageCapture.getNextMessage(TIMEOUT_MS); in testSettingInjectorService_Exception()
171 private final LinkedBlockingQueue<Message> mMessages = new LinkedBlockingQueue<>();
181 public Message getNextMessage(long timeoutMs) throws InterruptedException { in getNextMessage()
186 public void handleMessage(Message m) { in handleMessage()
187 mMessages.add(Message.obtain(m)); in handleMessage()
/cts/tests/tests/security/src/android/security/cts/
DAttributionSourceService.java30 import android.os.Message;
69 public void handleMessage(Message receivingMessage) { in handleMessage()
73 Message replyMessage = Message.obtain(null, receivingMessage.what); in handleMessage()
177 public void handleMessage(Message msg) { in handleMessage()
260 mService.send(Message.obtain(null, MSG_EXIT)); in stop()
273 Message m = null; in postAttributionSource()
276 m = Message.obtain(null, MSG_READ_ATTRIBUTION_SOURCE_BUNDLE); in postAttributionSource()
280 m = Message.obtain(null, MSG_READ_ATTRIBUTION_SOURCE, attributionSource); in postAttributionSource()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioTestRunner.java20 import android.os.Message;
58 Message msg = Message.obtain(); in sendMessage()
66 public void handleMessage(Message msg) { in handleMessage()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DServiceRunnerActivity.java27 import android.os.Message;
53 public void handleMessage(Message msg) { in handleMessage()
86 Message msg = Message.obtain(null, PermissionTestService.MSG_START_TEST);
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DIsolatedService.java22 import android.os.Message;
43 public void handleMessage(Message msg) { in handleMessage()
60 msg.replyTo.send(Message.obtain(null, MSG_SECCOMP_RESULT, result, 0)); in handleMessage()
/cts/tests/tests/externalservice/common/src/android/externalservice/common/
DRunningServiceInfo.java22 import android.os.Message;
93 public void handleMessage(Message msg) { in handleMessage()
113 Message msg = Message.obtain(null, ServiceMessages.MSG_IDENTIFY); in identifyService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DConnectionAccessClientActivity.java27 import android.os.Message;
120 public void handleMessage(Message msg) { in handleMessage()
138 private void handleStateChange(Message msg) { in handleStateChange()
157 private void handleDeviceName(Message msg) { in handleDeviceName()
161 private void handleToast(Message msg) { in handleToast()
/cts/hostsidetests/tagging/common/src/android/cts/tagging/
DTestingService.java24 import android.os.Message;
55 public void handleMessage(Message msg) { in handleMessage()
78 mClient.send(Message.obtain(null, MSG_NOTIFY_TEST_RESULT, result, 0, null)); in notifyClientOfResult()
DServiceRunnerActivity.java27 import android.os.Message;
50 public void handleMessage(Message msg) { in handleMessage()
76 Message msg = Message.obtain(null, TestingService.MSG_START_TEST);
/cts/tests/process/src/android/os/cts/process/
DProcessTest2.java49 import android.os.cts.process.common.Message;
87 try (Receiver<Message> receiver = new Receiver<>(sContext, Consts.TAG)) { in checkStartTime()
99 final Message m = receiver.waitForNextMessage(); in checkStartTime()
146 try (Receiver<Message> receiver = new Receiver<>(sContext, Consts.TAG)) { in testStartTime_sharedProcess()
158 final Message m = receiver.waitForNextMessage(); in testStartTime_sharedProcess()
179 final Message m2 = receiver.waitForNextMessage(); in testStartTime_sharedProcess()
198 try (Receiver<Message> receiver = new Receiver<>(sContext, Consts.TAG)) { in checkApplicationClass()
210 final Message m = receiver.waitForNextMessage(); in checkApplicationClass()
220 final Message m = receiver.waitForNextMessage(); in checkApplicationClass()
/cts/tests/tests/security/src/android/security/cts/activity/
DSecureRandomService.java21 import android.os.Message;
36 public void handleMessage(Message msg) {

123456