Home
last modified time | relevance | path

Searched refs:Messenger (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/os/
DMessenger.java25 public final class Messenger implements Parcelable { class
36 public Messenger(Handler target) { in Messenger() method in Messenger
72 return mTarget.asBinder().equals(((Messenger)otherObj) in equals()
91 public static final Parcelable.Creator<Messenger> CREATOR
92 = new Parcelable.Creator<Messenger>() {
93 public Messenger createFromParcel(Parcel in) {
95 return target != null ? new Messenger(target) : null;
98 public Messenger[] newArray(int size) {
99 return new Messenger[size];
111 public static void writeMessengerOrNullToParcel(Messenger messenger, in writeMessengerOrNullToParcel()
[all …]
DMessenger.aidl20 parcelable Messenger;
DMessage.java75 public Messenger replyTo;
464 Messenger.writeMessengerOrNullToParcel(replyTo, dest); in writeToParcel()
476 replyTo = Messenger.readMessengerOrNullFromParcel(source); in readFromParcel()
/frameworks/base/core/tests/coretests/src/android/os/
DMessengerTest.java27 import android.os.Messenger;
32 private Messenger mServiceMessenger;
37 mServiceMessenger = new Messenger(service);
48 private Messenger mTestMessenger;
57 mTestMessenger = new Messenger(mTestHandler); in go()
DMessengerService.java25 import android.os.Messenger;
40 private final Messenger mMessenger = new Messenger(mHandler);
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java28 import android.os.Messenger;
175 private Messenger mSrcMessenger;
178 private Messenger mDstMessenger;
207 mSrcMessenger = new Messenger(srcHandler); in connectSrcHandlerToPackageSync()
234 public int connectSync(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connectSync()
255 return connectSync(srcContext, srcHandler, new Messenger(dstHandler)); in connectSync()
349 public void connect(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connect()
371 public void connected(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connected()
377 mSrcMessenger = new Messenger(mSrcHandler); in connected()
394 connect(srcContext, srcHandler, new Messenger(dstHandler)); in connect()
[all …]
DAsyncService.java24 import android.os.Messenger;
47 protected Messenger mMessenger;
87 mMessenger = new Messenger(mHandler); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DTakeScreenshotService.java24 import android.os.Messenger;
37 final Messenger callback = msg.replyTo;
56 return new Messenger(mHandler).getBinder(); in onBind()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DIWifiP2pManager.aidl19 import android.os.Messenger;
28 Messenger getMessenger(); in getMessenger()
DWifiP2pManager.java32 import android.os.Messenger;
449 Messenger messenger = getMessenger(); in initialize()
628 public Messenger getMessenger() { in getMessenger()
DWifiP2pService.java51 import android.os.Messenger;
230 public Messenger getMessenger() { in getMessenger()
233 return new Messenger(mP2pStateMachine.getHandler()); in getMessenger()
/frameworks/base/docs/html/guide/topics/fundamentals/
Dbound-services.jd21 <li><a href="#Messenger">Using a Messenger</a></li>
140 <dt><a href="#Messenger">Using a Messenger</a></dt>
142 an interface for the service with a {@link android.os.Messenger}. In this manner, the service
145 is the basis for a {@link android.os.Messenger} that can then share an {@link android.os.IBinder}
147 android.os.Message} objects. Additionally, the client can define a {@link android.os.Messenger} of
150 android.os.Messenger} queues all requests into a single thread so that you don't have to design
157 IPC. The previous technique, using a {@link android.os.Messenger}, is actually based on AIDL as
158 its underlying structure. As mentioned above, the {@link android.os.Messenger} creates a queue of
332 <h3 id="Messenger">Using a Messenger</h3>
337 <p>When you need to perform IPC, using a {@link android.os.Messenger} for your interface is
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl24 import android.os.Messenger;
104 Messenger getMessenger(); in getMessenger()
DWifiManager.java28 import android.os.Messenger;
1193 public Messenger getMessenger() { in getMessenger()
DWifiStateMachine.java66 import android.os.Messenger;
888 public void disableNetwork(Messenger replyTo, int netId, int reason) { in disableNetwork()
894 public void startWps(Messenger replyTo, WpsInfo config) { in startWps()
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DManagerService.java26 import android.os.Messenger;
113 private Messenger mMessenger = new Messenger(mIncomingHandler);
DLayoutTestsExecutor.java29 import android.os.Messenger;
120 private Messenger mManagerServiceMessenger;
126 mManagerServiceMessenger = new Messenger(service);
/frameworks/base/core/java/android/net/
DMobileDataStateTracker.java33 import android.os.Messenger;
82 private Messenger mMessenger;
/frameworks/base/services/java/com/android/server/
DWifiService.java50 import android.os.Messenger;
890 public Messenger getMessenger() { in getMessenger()
897 return new Messenger(mAsyncServiceHandler); in getMessenger()
/frameworks/base/telephony/java/com/android/internal/telephony/
DDataConnectionTracker.java35 import android.os.Messenger;
448 intent.putExtra(EXTRA_MESSENGER, new Messenger(this)); in broadcastMessenger()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkController.java37 import android.os.Messenger;
181 Messenger wifiMessenger = mWifiManager.getMessenger(); in NetworkController()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneWindowManager.java49 import android.os.Messenger;
2611 Messenger messenger = new Messenger(service); in takeScreenshot()
2626 msg.replyTo = new Messenger(h); in takeScreenshot()
/frameworks/base/docs/html/guide/developing/tools/
Daidl.jd44 href="{@docRoot}guide/topics/fundamentals/bound-services.html#Messenger">using a Messenger</a>.
/frameworks/base/api/
Dcurrent.txt14815 field public android.os.Messenger replyTo;
14828 public final class Messenger implements android.os.Parcelable {
14829 ctor public Messenger(android.os.Handler);
14830 ctor public Messenger(android.os.IBinder);
14833 method public static android.os.Messenger readMessengerOrNullFromParcel(android.os.Parcel);
14835 method public static void writeMessengerOrNullToParcel(android.os.Messenger, android.os.Parcel);
D14.txt14815 field public android.os.Messenger replyTo;
14828 public final class Messenger implements android.os.Parcelable {
14829 ctor public Messenger(android.os.Handler);
14830 ctor public Messenger(android.os.IBinder);
14833 method public static android.os.Messenger readMessengerOrNullFromParcel(android.os.Parcel);
14835 method public static void writeMessengerOrNullToParcel(android.os.Messenger, android.os.Parcel);

12