Home
last modified time | relevance | path

Searched refs:Messenger (Results 1 – 25 of 88) 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 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/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
DMediaRouteProviderService.java66 import android.os.Messenger;
108 private final Messenger mReceiveMessenger;
132 mReceiveMessenger = new Messenger(mReceiveHandler); in MediaRouteProviderService()
191 boolean onRegisterClient(Messenger messenger, int requestId, int version) { in onRegisterClient()
215 boolean onUnregisterClient(Messenger messenger, int requestId) { in onUnregisterClient()
229 void onBinderDied(Messenger messenger) { in onBinderDied()
240 boolean onCreateRouteController(Messenger messenger, int requestId, in onCreateRouteController()
256 boolean onReleaseRouteController(Messenger messenger, int requestId, in onReleaseRouteController()
272 boolean onSelectRoute(Messenger messenger, int requestId, in onSelectRoute()
291 boolean onUnselectRoute(Messenger messenger, int requestId, in onUnselectRoute()
[all …]
DMediaRouteProviderProtocol.java20 import android.os.Messenger;
221 public static boolean isValidRemoteMessenger(Messenger messenger) { in isValidRemoteMessenger()
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
DMediaRouteProviderService.java58 import android.os.Messenger;
101 private final Messenger mReceiveMessenger;
125 mReceiveMessenger = new Messenger(mReceiveHandler); in MediaRouteProviderService()
184 boolean onRegisterClient(Messenger messenger, int requestId, int version) { in onRegisterClient()
208 boolean onUnregisterClient(Messenger messenger, int requestId) { in onUnregisterClient()
222 void onBinderDied(Messenger messenger) { in onBinderDied()
233 boolean onCreateRouteController(Messenger messenger, int requestId, in onCreateRouteController()
249 boolean onReleaseRouteController(Messenger messenger, int requestId, in onReleaseRouteController()
265 boolean onSelectRoute(Messenger messenger, int requestId, in onSelectRoute()
284 boolean onUnselectRoute(Messenger messenger, int requestId, in onUnselectRoute()
[all …]
DMediaRouteProviderProtocol.java20 import android.os.Messenger;
221 public static boolean isValidRemoteMessenger(Messenger messenger) { in isValidRemoteMessenger()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBidirectionalAsyncChannelServer.java23 import android.os.Messenger;
40 private final Map<Messenger, AsyncChannel> mClients = new HashMap<>();
42 private Messenger mMessenger;
79 mMessenger = new Messenger(handler); in BidirectionalAsyncChannelServer()
82 public Messenger getMessenger() { in getMessenger()
/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/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.java28 import android.os.Messenger;
196 private Messenger mSrcMessenger;
199 private Messenger mDstMessenger;
231 mSrcMessenger = new Messenger(srcHandler); in connectSrcHandlerToPackageSync()
258 public int connectSync(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connectSync()
279 return connectSync(srcContext, srcHandler, new Messenger(dstHandler)); in connectSync()
373 public void connect(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connect()
395 public void connected(Context srcContext, Handler srcHandler, Messenger dstMessenger) { in connected()
401 mSrcMessenger = new Messenger(mSrcHandler); in connected()
417 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.java11 import android.os.Messenger;
76 Messenger messenger = new Messenger(service); in takeScreenshot()
91 msg.replyTo = new Messenger(h); in takeScreenshot()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java44 import android.os.Messenger;
148 handleUnregisterNetworkFactory((Messenger)msg.obj); in handleMessage()
322 private final HashMap<Messenger, NetworkAgentInfo> mNetworkAgentInfos =
323 new HashMap<Messenger, NetworkAgentInfo>();
324 private final HashMap<Messenger, NetworkFactoryInfo> mNetworkFactoryInfos =
325 new HashMap<Messenger, NetworkFactoryInfo>();
331 public final Messenger messenger;
334 public NetworkFactoryInfo(String name, Messenger messenger, AsyncChannel asyncChannel) { in NetworkFactoryInfo()
351 final Messenger messenger;
364 NetworkRequestInfo(Messenger m, NetworkRequest r, IBinder binder, boolean isRequest) { in NetworkRequestInfo()
[all …]
/frameworks/base/core/java/android/net/
DIConnectivityManager.aidl30 import android.os.Messenger;
138 void registerNetworkFactory(in Messenger messenger, in String name); in registerNetworkFactory()
142 void unregisterNetworkFactory(in Messenger messenger); in unregisterNetworkFactory()
144 int registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
148 in Messenger messenger, int timeoutSec, in IBinder binder, int legacy); in requestNetwork()
156 in Messenger messenger, in IBinder binder); in listenForNetwork()
177 void startNattKeepalive(in Network network, int intervalSeconds, in Messenger messenger, in startNattKeepalive()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiTrafficPoller.java31 import android.os.Messenger;
67 private final List<Messenger> mClients = new ArrayList<Messenger>();
109 public void addClient(Messenger client) { in addClient()
114 public void removeClient(Messenger client) { in removeClient()
166 mClients.add((Messenger) msg.obj); in handleMessage()
224 for (Messenger client : mClients) { in notifyOnDataActivity()
DLocalOnlyHotspotRequestInfo.java25 import android.os.Messenger;
41 private final Messenger mMessenger;
53 LocalOnlyHotspotRequestInfo(@NonNull IBinder binder, @NonNull Messenger messenger, in LocalOnlyHotspotRequestInfo()
/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/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java53 import android.os.Messenger;
84 private Messenger mWifiServiceMessenger;
85 final ArgumentCaptor<Messenger> mMessengerCaptor = ArgumentCaptor.forClass(Messenger.class);
94 mWifiServiceMessenger = new Messenger(mHandler); in setUp()
143 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testCreationAndCloseOfLocalOnlyHotspotReservation()
161 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testLocalOnlyHotspotReservationCallsStopProperlyInTryWithResources()
322 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspot()
333 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspotThrowsSecurityException()
345 .startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), anyString()); in testStartLocalOnlyHotspotThrowsIllegalStateException()
355 when(mWifiService.startLocalOnlyHotspot(any(Messenger.class), any(IBinder.class), in testCorrectLooperIsUsedForHandler()
[all …]
/frameworks/base/core/java/android/net/nsd/
DINsdManager.aidl19 import android.os.Messenger;
28 Messenger getMessenger(); in getMessenger()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiScanner.aidl19 import android.os.Messenger;
27 Messenger getMessenger(); in getMessenger()
DIWifiManager.aidl35 import android.os.Messenger;
136 int startLocalOnlyHotspot(in Messenger messenger, in IBinder binder, String packageName); in startLocalOnlyHotspot()
140 void startWatchLocalOnlyHotspot(in Messenger messenger, in IBinder binder); in startWatchLocalOnlyHotspot()
150 Messenger getWifiServiceMessenger(String packageName); in getWifiServiceMessenger()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DTakeScreenshotService.java24 import android.os.Messenger;
38 final Messenger callback = msg.replyTo;
78 return new Messenger(mHandler).getBinder(); in onBind()
/frameworks/support/media/src/main/java/android/support/v4/media/
DMediaBrowserCompat.java63 import android.os.Messenger;
974 void onServiceConnected(Messenger callback, String root, MediaSessionCompat.Token session, in onServiceConnected()
976 void onConnectionFailed(Messenger callback); in onConnectionFailed()
977 void onLoadChildren(Messenger callback, String parentId, List list, Bundle options, in onLoadChildren()
999 Messenger mCallbacksMessenger;
1326 public void onServiceConnected(final Messenger callback, final String root, in onServiceConnected()
1371 public void onConnectionFailed(final Messenger callback) { in onConnectionFailed()
1393 public void onLoadChildren(final Messenger callback, final String parentId, in onLoadChildren()
1465 private boolean isCurrent(Messenger callback, String funcName) { in isCurrent()
1522 mCallbacksMessenger = new Messenger(mHandler); in onServiceConnected()
[all …]

1234