Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/os/
DMessenger.java32 public final class Messenger implements Parcelable { class
43 public Messenger(Handler target) { in Messenger() method in Messenger
79 return mTarget.asBinder().equals(((Messenger)otherObj) in equals()
98 public static final @android.annotation.NonNull Parcelable.Creator<Messenger> CREATOR
99 = new Parcelable.Creator<Messenger>() {
100 public Messenger createFromParcel(Parcel in) {
102 return target != null ? new Messenger(target) : null;
105 public Messenger[] newArray(int size) {
106 return new Messenger[size];
118 public static void writeMessengerOrNullToParcel(Messenger messenger, in writeMessengerOrNullToParcel()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBidirectionalAsyncChannelServer.java23 import android.os.Messenger;
41 private final Map<Messenger, AsyncChannel> mClients = new HashMap<>();
43 private Messenger mMessenger;
80 mMessenger = new Messenger(handler); in BidirectionalAsyncChannelServer()
83 public Messenger getMessenger() { in getMessenger()
87 public Set<Messenger> getClientMessengers() { in getClientMessengers()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DIWifiP2pManager.aidl19 import android.os.Messenger;
28 Messenger getMessenger(in IBinder binder); in getMessenger()
29 Messenger getP2pStateMachineMessenger(); in getP2pStateMachineMessenger()
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java30 import android.os.Messenger;
202 private Messenger mSrcMessenger;
205 private Messenger mDstMessenger;
238 mSrcMessenger = new Messenger(srcHandler); in connectSrcHandlerToPackageSync()
266 public int connectSync(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connectSync()
287 return connectSync(srcContext, srcHandler, new Messenger(dstHandler)); in connectSync()
382 public void connect(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connect()
405 public void connected(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connected()
411 mSrcMessenger = new Messenger(mSrcHandler); in connected()
427 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()
DScreenshotHelper.java13 import android.os.Messenger;
125 Messenger messenger = new Messenger(service); in takeScreenshot()
144 msg.replyTo = new Messenger(h); in takeScreenshot()
/frameworks/base/core/tests/coretests/src/android/os/
DMessengerTest.java28 private Messenger mServiceMessenger;
33 mServiceMessenger = new Messenger(service);
44 private Messenger mTestMessenger;
53 mTestMessenger = new Messenger(mTestHandler); in go()
DMessengerService.java35 private final Messenger mMessenger = new Messenger(mHandler);
/frameworks/base/core/java/android/net/
DNetworkProvider.java28 import android.os.Messenger;
71 private final Messenger mMessenger;
105 mMessenger = new Messenger(handler); in NetworkProvider()
111 public @Nullable Messenger getMessenger() { in getMessenger()
DIConnectivityManager.aidl35 import android.os.Messenger;
160 int registerNetworkFactory(in Messenger messenger, in String name); in registerNetworkFactory()
161 void unregisterNetworkFactory(in Messenger messenger); in unregisterNetworkFactory()
163 int registerNetworkProvider(in Messenger messenger, in String name); in registerNetworkProvider()
164 void unregisterNetworkProvider(in Messenger messenger); in unregisterNetworkProvider()
168 Network registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
173 in Messenger messenger, int timeoutSec, in IBinder binder, int legacy, in requestNetwork()
182 in Messenger messenger, in IBinder binder, String callingPackageName); in listenForNetwork()
DINetworkStatsService.aidl29 import android.os.Messenger;
80 in DataUsageRequest request, in Messenger messenger, in IBinder binder); in registerUsageCallback()
/frameworks/base/telephony/java/android/telephony/
DVisualVoicemailService.java30 import android.os.Messenger;
117 private final Messenger mReplyTo;
119 private VisualVoicemailTask(Messenger replyTo, int taskId) { in VisualVoicemailTask()
156 private final Messenger mMessenger = new Messenger(new Handler() {
/frameworks/base/core/java/android/nfc/cardemulation/
DHostNfcFService.java28 import android.os.Messenger;
169 Messenger mNfcService = null;
171 final Messenger mMessenger = new Messenger(new MsgHandler());
DHostApduService.java28 import android.os.Messenger;
241 Messenger mNfcService = null;
243 final Messenger mMessenger = new Messenger(new MsgHandler());
/frameworks/base/core/java/android/net/nsd/
DINsdManager.aidl19 import android.os.Messenger;
29 Messenger getMessenger(); in getMessenger()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiScanner.aidl19 import android.os.Messenger;
27 Messenger getMessenger(); in getMessenger()
DIWifiManager.aidl39 import android.os.Messenger;
142 int startLocalOnlyHotspot(in Messenger messenger, in IBinder binder, String packageName); in startLocalOnlyHotspot()
146 void startWatchLocalOnlyHotspot(in Messenger messenger, in IBinder binder); in startWatchLocalOnlyHotspot()
160 Messenger getWifiServiceMessenger(String packageName); in getWifiServiceMessenger()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DTakeScreenshotService.java25 import android.os.Messenger;
41 final Messenger callback = msg.replyTo;
81 return new Messenger(mHandler).getBinder(); in onBind()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DLocalOnlyHotspotRequestInfo.java25 import android.os.Messenger;
41 private final Messenger mMessenger;
53 LocalOnlyHotspotRequestInfo(@NonNull IBinder binder, @NonNull Messenger messenger, in LocalOnlyHotspotRequestInfo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java34 import android.os.Messenger;
77 public DataUsageRequest register(DataUsageRequest inputRequest, Messenger messenger, in register()
209 Messenger messenger, IBinder binder, int callingUid, in buildRequestInfo()
229 private final Messenger mMessenger;
237 Messenger messenger, IBinder binder, int callingUid, in RequestInfo()
332 Messenger messenger, IBinder binder, int callingUid, in NetworkUsageRequestInfo()
374 Messenger messenger, IBinder binder, int callingUid, in UserUsageRequestInfo()
/frameworks/base/core/java/android/os/image/
DDynamicSystemClient.java36 import android.os.Messenger;
247 mService = new Messenger(service); in onServiceConnected()
274 private final Messenger mMessenger;
279 private Messenger mService;
293 mMessenger = new Messenger(new IncomingHandler(this)); in DynamicSystemClient()
/frameworks/base/core/java/android/service/media/
DCameraPrewarmService.java24 import android.os.Messenger;
64 return new Messenger(mHandler).getBinder(); in onBind()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java72 import android.os.Messenger;
118 private Messenger mWifiServiceMessenger;
119 final ArgumentCaptor<Messenger> mMessengerCaptor = ArgumentCaptor.forClass(Messenger.class);
130 mWifiServiceMessenger = new Messenger(mHandler); in setUp()
180 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testCreationAndCloseOfLocalOnlyHotspotReservation()
198 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testLocalOnlyHotspotReservationCallsStopProperlyInTryWithResources()
359 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspot()
370 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspotThrowsSecurityException()
382 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspotThrowsIllegalStateException()
392 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testCorrectLooperIsUsedForHandler()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DLocalOnlyHotspotRequestInfoTest.java27 import android.os.Messenger;
49 private Messenger mMessenger;
62 mMessenger = new Messenger(mHandler); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DMmTelFeatureTests.java30 import android.os.Messenger;
109 private final Messenger mHandlerMessenger = new Messenger(mHandler);

1234