Home
last modified time | relevance | path

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

123456

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java427 BluetoothReceiver receiver = getBluetoothReceiver(mask); in enable() local
433 removeReceiver(receiver); in enable()
449 removeReceiver(receiver); in enable()
457 && (receiver.getFiredFlags() & mask) == mask) { in enable()
459 long finish = receiver.getCompletedTime(); in enable()
465 removeReceiver(receiver); in enable()
471 int firedFlags = receiver.getFiredFlags(); in enable()
472 removeReceiver(receiver); in enable()
487 BluetoothReceiver receiver = getBluetoothReceiver(mask); in disable() local
493 removeReceiver(receiver); in disable()
[all …]
/frameworks/support/v4/java/android/support/v4/content/
DLocalBroadcastManager.java49 final BroadcastReceiver receiver; field in LocalBroadcastManager.ReceiverRecord
54 receiver = _receiver; in ReceiverRecord()
61 builder.append(receiver); in toString()
133 public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
135 ReceiverRecord entry = new ReceiverRecord(filter, receiver); in registerReceiver()
136 ArrayList<IntentFilter> filters = mReceivers.get(receiver); in registerReceiver()
139 mReceivers.put(receiver, filters); in registerReceiver()
163 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument
165 ArrayList<IntentFilter> filters = mReceivers.remove(receiver); in unregisterReceiver()
176 if (receivers.get(k).receiver == receiver) { in unregisterReceiver()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java49 public BroadcastInterceptor(BroadcastReceiver receiver, IntentFilter filter) { in BroadcastInterceptor() argument
50 mReceiver = receiver; in BroadcastInterceptor()
96 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
98 mInterceptors.add(new BroadcastInterceptor(receiver, filter)); in registerReceiver()
104 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
106 return registerReceiver(receiver, filter); in registerReceiver()
110 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument
115 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
/frameworks/base/docs/html/guide/topics/manifest/
Dreceiver-element.jd1 page.title=&lt;receiver&gt;
8 <dd><pre class="stx">&lt;receiver android:<a href="#enabled">enabled</a>=["true" | "false"]
16 &lt;/receiver&gt;</pre></dd>
26 <dd>Declares a broadcast receiver (a {@link android.content.BroadcastReceiver}
32 There are two ways to make a broadcast receiver known to the system: One is
34 the receiver dynamically in code and register it with the <code>{@link
43 <dd>Whether or not the broadcast receiver can be instantiated by the system &mdash;
52 {@code &lt;receiver&gt;} attributes must both be "{@code true}" for
53 the broadcast receiver to be enabled. If either is "{@code false}", it is
58 <dd>Whether or not the broadcast receiver can receive messages from sources
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp242 sp<NativeInputEventReceiver> receiver = new NativeInputEventReceiver(env, in nativeInit() local
244 status_t status = receiver->initialize(); in nativeInit()
252 receiver->incStrong(gInputEventReceiverClassInfo.clazz); // retain a reference for the object in nativeInit()
253 return reinterpret_cast<jint>(receiver.get()); in nativeInit()
257 sp<NativeInputEventReceiver> receiver = in nativeDispose() local
259 receiver->dispose(); in nativeDispose()
260 receiver->decStrong(gInputEventReceiverClassInfo.clazz); // drop reference held by the object in nativeDispose()
265 sp<NativeInputEventReceiver> receiver = in nativeFinishInputEvent() local
267 status_t status = receiver->finishInputEvent(seq, handled); in nativeFinishInputEvent()
277 sp<NativeInputEventReceiver> receiver = in nativeConsumeBatchedInputEvents() local
[all …]
Dandroid_view_DisplayEventReceiver.cpp214 sp<NativeDisplayEventReceiver> receiver = new NativeDisplayEventReceiver(env, in nativeInit() local
216 status_t status = receiver->initialize(); in nativeInit()
224 receiver->incStrong(gDisplayEventReceiverClassInfo.clazz); // retain a reference for the object in nativeInit()
225 return reinterpret_cast<jint>(receiver.get()); in nativeInit()
229 sp<NativeDisplayEventReceiver> receiver = in nativeDispose() local
231 receiver->dispose(); in nativeDispose()
232 receiver->decStrong(gDisplayEventReceiverClassInfo.clazz); // drop reference held by the object in nativeDispose()
236 sp<NativeDisplayEventReceiver> receiver = in nativeScheduleVsync() local
238 status_t status = receiver->scheduleVsync(); in nativeScheduleVsync()
/frameworks/base/services/java/com/android/server/
DLocationManagerService.java645 Receiver receiver = mReceivers.get(binder); in locationCallbackFinished() local
646 if (receiver != null) { in locationCallbackFinished()
647 synchronized (receiver) { in locationCallbackFinished()
650 receiver.decrementPendingBroadcastsLocked(); in locationCallbackFinished()
1027 UpdateRecord(String provider, LocationRequest request, Receiver receiver) { in UpdateRecord() argument
1030 mReceiver = receiver; in UpdateRecord()
1082 Receiver receiver = mReceivers.get(binder); in getReceiver() local
1083 if (receiver == null) { in getReceiver()
1084 receiver = new Receiver(listener, null, pid, uid, packageName); in getReceiver()
1085 mReceivers.put(binder, receiver); in getReceiver()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java204 public void invokeInstallPackage(Uri packageURI, int flags, GenericReceiver receiver, in invokeInstallPackage() argument
207 mContext.registerReceiver(receiver, receiver.filter); in invokeInstallPackage()
211 synchronized (receiver) { in invokeInstallPackage()
245 while ((!receiver.isDone()) && (waitTime < MAX_WAIT_TIME)) { in invokeInstallPackage()
247 receiver.wait(WAIT_TIME_INCR); in invokeInstallPackage()
253 if (!receiver.isDone()) { in invokeInstallPackage()
259 mContext.unregisterReceiver(receiver); in invokeInstallPackage()
717 GenericReceiver receiver = new DeleteReceiver(pkg.packageName); in installFromRawResource() local
718 invokeDeletePackage(pkg.packageName, 0, receiver); in installFromRawResource()
729 InstallReceiver receiver = new InstallReceiver(pkg.packageName); in installFromRawResource() local
[all …]
/frameworks/base/services/java/com/android/server/am/
DReceiverList.java38 public final IIntentReceiver receiver; field in ReceiverList
51 receiver = _receiver; in ReceiverList()
68 owner.unregisterReceiver(receiver); in binderDied()
111 sb.append((receiver.asBinder() instanceof Binder) ? " local:" : " remote:"); in toString()
112 sb.append(Integer.toHexString(System.identityHashCode(receiver.asBinder()))); in toString()
DPendingThumbnailsRecord.java29 final IThumbnailReceiver receiver; // who is waiting. field in PendingThumbnailsRecord
35 receiver = _receiver; in PendingThumbnailsRecord()
DBroadcastQueue.java217 r.receiver = app.thread.asBinder(); in processCurBroadcastLocked()
241 r.receiver = null; in processCurBroadcastLocked()
320 public BroadcastRecord getMatchingOrderedReceiver(IBinder receiver) { in getMatchingOrderedReceiver() argument
323 if (r != null && r.receiver == receiver) { in getMatchingOrderedReceiver()
340 r.receiver = null; in finishReceiverLocked()
366 private static void performReceiveLocked(ProcessRecord app, IIntentReceiver receiver, in performReceiveLocked() argument
373 app.thread.scheduleRegisteredReceiver(receiver, intent, resultCode, in performReceiveLocked()
376 receiver.performReceive(intent, resultCode, data, extras, ordered, in performReceiveLocked()
418 r.receiver = filter.receiverList.receiver.asBinder(); in deliverToRegisteredReceiverLocked()
439 performReceiveLocked(filter.receiverList.app, filter.receiverList.receiver, in deliverToRegisteredReceiverLocked()
[all …]
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java203 MultipleDownloadsCompletedReceiver receiver = new MultipleDownloadsCompletedReceiver(); in registerNewMultipleDownloadsReceiver() local
204 mContext.registerReceiver(receiver, new IntentFilter( in registerNewMultipleDownloadsReceiver()
206 return receiver; in registerNewMultipleDownloadsReceiver()
226 WiFiChangedReceiver receiver = new WiFiChangedReceiver(mContext); in setWiFiStateOn() local
227 mContext.registerReceiver(receiver, new IntentFilter( in setWiFiStateOn()
230 synchronized (receiver) { in setWiFiStateOn()
234 while (receiver.getWiFiIsOn() != enable && !timedOut) { in setWiFiStateOn()
236 receiver.wait(DEFAULT_WAIT_POLL_TIME); in setWiFiStateOn()
250 assertEquals(enable, receiver.getWiFiIsOn()); in setWiFiStateOn()
/frameworks/base/core/java/android/webkit/
DJsPromptResult.java42 public JsPromptResult(ResultReceiver receiver) { in JsPromptResult() argument
43 super(receiver); in JsPromptResult()
DJsResult.java57 public JsResult(ResultReceiver receiver) { in JsResult() argument
58 mReceiver = receiver; in JsResult()
DCallbackProxy.java571 final JsResultReceiver receiver = (JsResultReceiver) msg.obj; in handleMessage() local
572 final JsResult res = receiver.mJsResult; in handleMessage()
579 receiver.setReady(); in handleMessage()
602 receiver.setReady(); in handleMessage()
608 final JsResultReceiver receiver = (JsResultReceiver) msg.obj; in handleMessage() local
609 final JsResult res = receiver.mJsResult; in handleMessage()
616 receiver.setReady(); in handleMessage()
647 receiver.setReady(); in handleMessage()
653 final JsResultReceiver receiver = (JsResultReceiver) msg.obj; in handleMessage() local
654 final JsPromptResult res = receiver.mJsResult; in handleMessage()
[all …]
/frameworks/base/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()
/frameworks/base/docs/html/intl/ko/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/base/docs/html/intl/ru/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/base/docs/html-intl/ru/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/base/docs/html-intl/ko/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/base/docs/html/intl/ja/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/base/docs/html-intl/zh-cn/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/base/docs/html/intl/zh-CN/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/base/docs/html-intl/ja/training/monitoring-device-state/
Dbattery-monitoring.jd67 <pre>&lt;receiver android:name=".PowerConnectionReceiver">
72 &lt;/receiver></pre>
110 <pre>&lt;receiver android:name=".BatteryLevelReceiver">
115 &lt;/receiver></pre>
/frameworks/native/services/surfaceflinger/tests/vsync/
Dvsync.cpp22 int receiver(int fd, int events, void* data) in receiver() function
55 loop->addFd(myDisplayEvent.getFd(), 0, ALOOPER_EVENT_INPUT, receiver, in main()

123456