/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 427 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/ |
D | LocalBroadcastManager.java | 49 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/ |
D | BroadcastInterceptingContext.java | 49 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/ |
D | receiver-element.jd | 1 page.title=<receiver> 8 <dd><pre class="stx"><receiver android:<a href="#enabled">enabled</a>=["true" | "false"] 16 </receiver></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 — 52 {@code <receiver>} 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/ |
D | android_view_DisplayEventReceiver.cpp | 188 sp<NativeDisplayEventReceiver> receiver = new NativeDisplayEventReceiver(env, in nativeInit() local 190 status_t status = receiver->initialize(); in nativeInit() 198 receiver->incStrong(gDisplayEventReceiverClassInfo.clazz); // retain a reference for the object in nativeInit() 199 return reinterpret_cast<jint>(receiver.get()); in nativeInit() 203 sp<NativeDisplayEventReceiver> receiver = in nativeDispose() local 205 receiver->dispose(); in nativeDispose() 206 receiver->decStrong(gDisplayEventReceiverClassInfo.clazz); // drop reference held by the object in nativeDispose() 210 sp<NativeDisplayEventReceiver> receiver = in nativeScheduleVsync() local 212 status_t status = receiver->scheduleVsync(); in nativeScheduleVsync()
|
D | android_view_InputEventReceiver.cpp | 242 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 …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 173 public void invokeInstallPackage(Uri packageURI, int flags, GenericReceiver receiver, in invokeInstallPackage() argument 176 mContext.registerReceiver(receiver, receiver.filter); in invokeInstallPackage() 180 synchronized (receiver) { in invokeInstallPackage() 214 while((!receiver.isDone()) && (waitTime < MAX_WAIT_TIME) ) { in invokeInstallPackage() 216 receiver.wait(WAIT_TIME_INCR); in invokeInstallPackage() 222 if(!receiver.isDone()) { in invokeInstallPackage() 228 mContext.unregisterReceiver(receiver); in invokeInstallPackage() 601 GenericReceiver receiver = new DeleteReceiver(pkg.packageName); in installFromRawResource() local 602 invokeDeletePackage(pkg.packageName, 0, receiver); in installFromRawResource() 615 InstallReceiver receiver = new InstallReceiver(pkg.packageName); in installFromRawResource() local [all …]
|
/frameworks/base/services/java/com/android/server/am/ |
D | ReceiverList.java | 38 public final IIntentReceiver receiver; field in ReceiverList 50 receiver = _receiver; in ReceiverList() 66 owner.unregisterReceiver(receiver); in binderDied() 106 sb.append((receiver.asBinder() instanceof Binder) ? " local:" : " remote:"); in toString() 107 sb.append(Integer.toHexString(System.identityHashCode(receiver.asBinder()))); in toString()
|
D | PendingThumbnailsRecord.java | 29 final IThumbnailReceiver receiver; // who is waiting. field in PendingThumbnailsRecord 35 receiver = _receiver; in PendingThumbnailsRecord()
|
D | BroadcastQueue.java | 206 r.receiver = app.thread.asBinder(); in processCurBroadcastLocked() 230 r.receiver = null; in processCurBroadcastLocked() 309 public BroadcastRecord getMatchingOrderedReceiver(IBinder receiver) { in getMatchingOrderedReceiver() argument 312 if (r != null && r.receiver == receiver) { in getMatchingOrderedReceiver() 329 r.receiver = null; in finishReceiverLocked() 355 private static void performReceiveLocked(ProcessRecord app, IIntentReceiver receiver, in performReceiveLocked() argument 362 app.thread.scheduleRegisteredReceiver(receiver, intent, resultCode, in performReceiveLocked() 365 receiver.performReceive(intent, resultCode, data, extras, ordered, sticky); in performReceiveLocked() 406 r.receiver = filter.receiverList.receiver.asBinder(); in deliverToRegisteredReceiverLocked() 427 performReceiveLocked(filter.receiverList.app, filter.receiverList.receiver, in deliverToRegisteredReceiverLocked() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | LocationManagerService.java | 433 Receiver receiver = mReceivers.get(binder); in locationCallbackFinished() local 434 if (receiver != null) { in locationCallbackFinished() 435 synchronized (receiver) { in locationCallbackFinished() 438 receiver.decrementPendingBroadcastsLocked(); in locationCallbackFinished() 1063 Receiver receiver, int uid) { in UpdateRecord() argument 1065 mReceiver = receiver; in UpdateRecord() 1115 Receiver receiver = mReceivers.get(binder); in getReceiver() local 1116 if (receiver == null) { in getReceiver() 1117 receiver = new Receiver(listener); in getReceiver() 1118 mReceivers.put(binder, receiver); in getReceiver() [all …]
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
D | DownloadManagerBaseTest.java | 203 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/ |
D | JsPromptResult.java | 42 public JsPromptResult(ResultReceiver receiver) { in JsPromptResult() argument 43 super(receiver); in JsPromptResult()
|
D | JsResult.java | 57 public JsResult(ResultReceiver receiver) { in JsResult() argument 58 mReceiver = receiver; in JsResult()
|
D | CallbackProxy.java | 568 final JsResultReceiver receiver = (JsResultReceiver) msg.obj; in handleMessage() local 569 final JsResult res = receiver.mJsResult; in handleMessage() 576 receiver.setReady(); in handleMessage() 599 receiver.setReady(); in handleMessage() 605 final JsResultReceiver receiver = (JsResultReceiver) msg.obj; in handleMessage() local 606 final JsResult res = receiver.mJsResult; in handleMessage() 613 receiver.setReady(); in handleMessage() 644 receiver.setReady(); in handleMessage() 650 final JsResultReceiver receiver = (JsResultReceiver) msg.obj; in handleMessage() local 651 final JsPromptResult res = receiver.mJsResult; in handleMessage() [all …]
|
/frameworks/base/core/tests/hosttests/src/android/content/pm/ |
D | PackageManagerHostTestUtils.java | 256 InstallReceiver receiver = new InstallReceiver(); in installFileForwardLocked() local 259 mDevice.executeShellCommand(cmd, receiver); in installFileForwardLocked() 261 return receiver.getErrorMessage(); in installFileForwardLocked() 475 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in executeShellCommand() local 476 mDevice.executeShellCommand(command, receiver); in executeShellCommand() 477 String output = receiver.getOutput(); in executeShellCommand() 521 CollectingOutputReceiver receiver = new CollectingOutputReceiver(); in rebootDevice() local 522 mDevice.executeShellCommand(command, receiver); in rebootDevice() 523 String output = receiver.getOutput(); in rebootDevice()
|
/frameworks/base/docs/html/intl/ja/training/monitoring-device-state/ |
D | battery-monitoring.jd | 67 <pre><receiver android:name=".PowerConnectionReceiver"> 72 </receiver></pre> 110 <pre><receiver android:name=".BatteryLevelReceiver"> 115 </receiver></pre>
|
D | manifest-receivers.jd | 40 <pre>ComponentName receiver = new ComponentName(context, myReceiver.class); 44 pm.setComponentEnabledSetting(receiver,
|
/frameworks/base/docs/html/intl/ru/training/monitoring-device-state/ |
D | battery-monitoring.jd | 67 <pre><receiver android:name=".PowerConnectionReceiver"> 72 </receiver></pre> 110 <pre><receiver android:name=".BatteryLevelReceiver"> 115 </receiver></pre>
|
/frameworks/base/docs/html/intl/zh-CN/training/monitoring-device-state/ |
D | battery-monitoring.jd | 67 <pre><receiver android:name=".PowerConnectionReceiver"> 72 </receiver></pre> 110 <pre><receiver android:name=".BatteryLevelReceiver"> 115 </receiver></pre>
|
D | manifest-receivers.jd | 40 <pre>ComponentName receiver = new ComponentName(context, myReceiver.class); 44 pm.setComponentEnabledSetting(receiver,
|
/frameworks/base/docs/html/intl/ko/training/monitoring-device-state/ |
D | battery-monitoring.jd | 67 <pre><receiver android:name=".PowerConnectionReceiver"> 72 </receiver></pre> 110 <pre><receiver android:name=".BatteryLevelReceiver"> 115 </receiver></pre>
|
D | manifest-receivers.jd | 40 <pre>ComponentName receiver = new ComponentName(context, myReceiver.class); 44 pm.setComponentEnabledSetting(receiver,
|
/frameworks/native/services/surfaceflinger/tests/vsync/ |
D | vsync.cpp | 22 int receiver(int fd, int events, void* data) in receiver() function 55 loop->addFd(myDisplayEvent.getFd(), 0, ALOOPER_EVENT_INPUT, receiver, in main()
|
/frameworks/base/docs/html/training/monitoring-device-state/ |
D | manifest-receivers.jd | 49 <pre>ComponentName receiver = new ComponentName(context, myReceiver.class); 53 pm.setComponentEnabledSetting(receiver, 58 your receivers except the connectivity-change receiver. Conversely, once you are connected you can 63 Simply enable a broadcast receiver that listens for connectivity changes and initiates the
|