Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 17 of 17) sorted by relevance

/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiDispatcher.java44 public void onConnect(MidiReceiver receiver) {
45 mReceivers.add(receiver);
54 public void onDisconnect(MidiReceiver receiver) {
55 mReceivers.remove(receiver);
79 for (MidiReceiver receiver : mReceivers) { in onSend()
81 receiver.send(msg, offset, count, timestamp); in onSend()
84 mReceivers.remove(receiver); in onSend()
91 for (MidiReceiver receiver : mReceivers) { in flush()
92 receiver.flush(); in flush()
DMidiFramer.java41 public MidiFramer(MidiReceiver receiver) { in MidiFramer() argument
42 mReceiver = receiver; in MidiFramer()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiDispatcher.java44 public void onConnect(MidiReceiver receiver) {
45 mReceivers.add(receiver);
54 public void onDisconnect(MidiReceiver receiver) {
55 mReceivers.remove(receiver);
79 for (MidiReceiver receiver : mReceivers) { in onSend()
81 receiver.send(msg, offset, count, timestamp); in onSend()
84 mReceivers.remove(receiver); in onSend()
91 for (MidiReceiver receiver : mReceivers) { in flush()
92 receiver.flush(); in flush()
DMidiFramer.java41 public MidiFramer(MidiReceiver receiver) { in MidiFramer() argument
42 mReceiver = receiver; in MidiFramer()
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMediaButtonHelper.java38 ComponentName receiver) { in registerMediaButtonEventReceiverCompat() argument
43 sMethodRegisterMediaButtonEventReceiver.invoke(audioManager, receiver); in registerMediaButtonEventReceiverCompat()
63 ComponentName receiver) { in unregisterMediaButtonEventReceiverCompat() argument
68 sMethodUnregisterMediaButtonEventReceiver.invoke(audioManager, receiver); in unregisterMediaButtonEventReceiverCompat()
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/receiver/
DMmsReceiver.java17 package com.example.android.smssample.receiver;
DSmsReceiver.java17 package com.example.android.smssample.receiver;
DSmsReceiverLegacy.java17 package com.example.android.smssample.receiver;
DMmsReceiverLegacy.java17 package com.example.android.smssample.receiver;
DMessagingReceiver.java17 package com.example.android.smssample.receiver;
/development/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java81 private NetworkReceiver receiver = new NetworkReceiver(); field in NetworkActivity
89 receiver = new NetworkReceiver(); in onCreate()
90 this.registerReceiver(receiver, filter); in onCreate()
121 if (receiver != null) { in onDestroy()
122 this.unregisterReceiver(receiver); in onDestroy()
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DWiFiDirectActivity.java57 private BroadcastReceiver receiver = null; field in WiFiDirectActivity
86 receiver = new WiFiDirectBroadcastReceiver(manager, channel, this); in onResume()
87 registerReceiver(receiver, intentFilter); in onResume()
93 unregisterReceiver(receiver); in onPause()
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/
DMessagingService.java22 import com.example.android.smssample.receiver.MessagingReceiver;
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DWiFiServiceDiscoveryActivity.java66 private BroadcastReceiver receiver = null; field in WiFiServiceDiscoveryActivity
299 receiver = new WiFiDirectBroadcastReceiver(manager, channel, this); in onResume()
300 registerReceiver(receiver, intentFilter); in onResume()
306 unregisterReceiver(receiver); in onPause()
/development/apps/Development/src/com/android/development/
DBadBehaviorActivity.java274 ExponentialReceiver receiver = new ExponentialReceiver(); in onCreate()
275 receiver.name = "ExponentialReceiver " + i; in onCreate()
276 registerReceiver(receiver, filter); in onCreate()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DSessionManager.java110 public PlaylistItem add(Uri uri, String mime, PendingIntent receiver) { in add() argument
112 log("add: uri=" + uri + ", receiver=" + receiver); in add()
120 Integer.toString(mSessionId), Integer.toString(mItemId), uri, mime, receiver); in add()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/provider/
DSampleMediaRouteProvider.java370 PendingIntent receiver = (PendingIntent)intent.getParcelableExtra( in handleEnqueue() local
380 + ", receiver=" + receiver); in handleEnqueue()
381 PlaylistItem item = mSessionManager.add(uri, mime, receiver); in handleEnqueue()
570 PendingIntent receiver = item.getUpdateReceiver(); in handleStatusChange() local
571 if (receiver != null) { in handleStatusChange()
578 receiver.send(getContext(), 0, intent); in handleStatusChange()