/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 | 50 public BroadcastInterceptor(BroadcastReceiver receiver, IntentFilter filter) { in BroadcastInterceptor() argument 51 mReceiver = receiver; in BroadcastInterceptor() 97 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument 99 mInterceptors.add(new BroadcastInterceptor(receiver, filter)); in registerReceiver() 105 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument 107 return registerReceiver(receiver, filter); in registerReceiver() 111 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument 116 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/services/java/com/android/server/ |
D | LocationManagerService.java | 694 Receiver receiver = mReceivers.get(binder); in locationCallbackFinished() local 695 if (receiver != null) { in locationCallbackFinished() 696 synchronized (receiver) { in locationCallbackFinished() 699 receiver.decrementPendingBroadcastsLocked(); in locationCallbackFinished() 1131 UpdateRecord(String provider, LocationRequest request, Receiver receiver) { in UpdateRecord() argument 1134 mReceiver = receiver; in UpdateRecord() 1187 Receiver receiver = mReceivers.get(binder); in getReceiverLocked() local 1188 if (receiver == null) { in getReceiverLocked() 1189 receiver = new Receiver(listener, null, pid, uid, packageName); in getReceiverLocked() 1190 mReceivers.put(binder, receiver); in getReceiverLocked() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | KeyEventCompat.java | 37 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, in dispatch() argument 112 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, in dispatch() argument 114 return event.dispatch(receiver); in dispatch() 135 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, in dispatch() argument 137 return KeyEventCompatEclair.dispatch(event, receiver, state, target); in dispatch() 207 public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, in dispatch() argument 209 return IMPL.dispatch(event, receiver, state, target); in dispatch()
|
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 178 sp<Receiver> receiver = new Receiver(queue, messageQueue, eventQ, scratch); in nativeInitSensorEventQueue() local 179 receiver->incStrong((void*)nativeInitSensorEventQueue); in nativeInitSensorEventQueue() 180 return jint(receiver.get()); in nativeInitSensorEventQueue() 184 sp<Receiver> receiver(reinterpret_cast<Receiver *>(eventQ)); in nativeEnableSensor() local 185 return receiver->getSensorEventQueue()->enableSensor(handle, us); in nativeEnableSensor() 189 sp<Receiver> receiver(reinterpret_cast<Receiver *>(eventQ)); in nativeDisableSensor() local 190 return receiver->getSensorEventQueue()->disableSensor(handle); in nativeDisableSensor() 194 sp<Receiver> receiver(reinterpret_cast<Receiver *>(eventQ)); in nativeDestroySensorEventQueue() local 195 receiver->destroy(); in nativeDestroySensorEventQueue() 196 receiver->decStrong((void*)nativeInitSensorEventQueue); in nativeDestroySensorEventQueue()
|
D | android_view_DisplayEventReceiver.cpp | 218 sp<NativeDisplayEventReceiver> receiver = new NativeDisplayEventReceiver(env, in nativeInit() local 220 status_t status = receiver->initialize(); in nativeInit() 228 receiver->incStrong(gDisplayEventReceiverClassInfo.clazz); // retain a reference for the object in nativeInit() 229 return reinterpret_cast<jint>(receiver.get()); in nativeInit() 233 sp<NativeDisplayEventReceiver> receiver = in nativeDispose() local 235 receiver->dispose(); in nativeDispose() 236 receiver->decStrong(gDisplayEventReceiverClassInfo.clazz); // drop reference held by the object in nativeDispose() 240 sp<NativeDisplayEventReceiver> receiver = in nativeScheduleVsync() local 242 status_t status = receiver->scheduleVsync(); in nativeScheduleVsync()
|
D | android_view_InputEventReceiver.cpp | 340 sp<NativeInputEventReceiver> receiver = new NativeInputEventReceiver(env, in nativeInit() local 342 status_t status = receiver->initialize(); in nativeInit() 350 receiver->incStrong(gInputEventReceiverClassInfo.clazz); // retain a reference for the object in nativeInit() 351 return reinterpret_cast<jint>(receiver.get()); in nativeInit() 355 sp<NativeInputEventReceiver> receiver = in nativeDispose() local 357 receiver->dispose(); in nativeDispose() 358 receiver->decStrong(gInputEventReceiverClassInfo.clazz); // drop reference held by the object in nativeDispose() 363 sp<NativeInputEventReceiver> receiver = in nativeFinishInputEvent() local 365 status_t status = receiver->finishInputEvent(seq, handled); in nativeFinishInputEvent() 375 sp<NativeInputEventReceiver> receiver = in nativeConsumeBatchedInputEvents() local [all …]
|
/frameworks/base/services/java/com/android/server/am/ |
D | ReceiverList.java | 38 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()
|
D | PendingThumbnailsRecord.java | 29 final IThumbnailReceiver receiver; // who is waiting. field in PendingThumbnailsRecord 35 receiver = _receiver; in PendingThumbnailsRecord()
|
D | BroadcastQueue.java | 217 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() 428 r.receiver = filter.receiverList.receiver.asBinder(); in deliverToRegisteredReceiverLocked() 449 performReceiveLocked(filter.receiverList.app, filter.receiverList.receiver, in deliverToRegisteredReceiverLocked() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 204 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/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()
|
/frameworks/support/v4/eclair/android/support/v4/view/ |
D | KeyEventCompatEclair.java | 28 public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, in dispatch() argument 30 return event.dispatch(receiver, (KeyEvent.DispatcherState)state, target); in dispatch()
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 81 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/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-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/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/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/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>
|