Home
last modified time | relevance | path

Searched refs:messenger (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DMessengerTest.java92 Messenger messenger = new Messenger(mHandler); in testConstructorAndEquals() local
94 assertTrue(messenger.equals(objMessenger)); in testConstructorAndEquals()
95 messenger = new Messenger(mIBinder); in testConstructorAndEquals()
96 assertFalse(messenger.equals(objMessenger)); in testConstructorAndEquals()
119 Messenger messenger = new Messenger(mIBinder); in testGetBinder() local
120 assertSame(mIBinder, messenger.getBinder()); in testGetBinder()
128 Messenger messenger = Messenger.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
129 assertTrue(messenger.equals(mMessenger)); in testWriteToParcel()
141 Messenger messenger = Messenger.readMessengerOrNullFromParcel(parcelWithMessenger); in testWriteMessengerOrNullToParcel() local
142 assertNotNull(messenger); in testWriteMessengerOrNullToParcel()
[all …]
/cts/tests/app/src/android/app/cts/
DBaseChainedInstrumentation.java65 final Messenger messenger = new Messenger(handler); in onCreate() local
67 extras.putParcelable(EXTRA_MESSENGER, messenger); in onCreate()
71 final Messenger messenger = arguments.getParcelable(EXTRA_MESSENGER, Messenger.class); in onCreate() local
75 messenger.send(msg); in onCreate()
DActivityManagerTest.java1735 final Messenger messenger = new Messenger(new Handler(handlerThread.getLooper(), msg -> { in testServiceDoneLRUPosition() local
1756 extras.putBinder(CommandReceiver.EXTRA_MESSENGER, messenger.getBinder()); in testServiceDoneLRUPosition()
/cts/tests/tests/media/common/src/android/media/cts/
DForegroundServiceUtil.java42 final Messenger messenger = new Messenger(new Handler(Looper.getMainLooper(), msg -> { in requestStartForegroundService() local
59 .putExtra(EXTRA_MESSENGER, messenger); in requestStartForegroundService()
/cts/tests/tests/libcorefileio/src/android/cts/
DLockHoldingService.java132 private Messenger messenger; field in LockHoldingService
135 messenger = new Messenger(new LockHoldingHandler()); in onBind()
136 return messenger.getBinder(); in onBind()
DFileChannelInterProcessLockTest.java751 static Messenger messenger;
797 messenger = new Messenger(service);
830 messenger.send(msg);
842 messenger.send(msg);
852 messenger.send(msg);
858 messenger = null;
/cts/tests/app/app/src/android/app/stubs/
DIHeartbeat.aidl24 void monitor(in Messenger messenger); in monitor() argument
DHeartbeatService.java86 public void monitor(Messenger messenger) {
104 messenger.send(msg);
DLocalForegroundService.java180 final Messenger messenger = new Messenger(binder); in handleIncomingMessengerIfNeeded() local
186 messenger.send(msg); in handleIncomingMessengerIfNeeded()
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/
DSimpleService4.java104 Messenger messenger = intent.getParcelableExtra(EXTRA_MESSENGER); in sendPidBack() local
113 messenger.send(msg); in sendPidBack()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java111 EventWaiter(Set<Integer> events, Messenger messenger) { in EventWaiter() argument
113 mMessenger = messenger; in EventWaiter()