/frameworks/base/core/java/com/android/internal/midi/ |
D | MidiDispatcher.java | 42 void onReceiverFailure(MidiReceiver receiver, IOException failure); in onReceiverFailure() argument 51 public void onConnect(MidiReceiver receiver) { 52 mReceivers.add(receiver); 56 public void onDisconnect(MidiReceiver receiver) { 57 mReceivers.remove(receiver); 89 for (MidiReceiver receiver : mReceivers) { in onSend() 91 receiver.send(msg, offset, count, timestamp); in onSend() 96 mReceivers.remove(receiver); in onSend() 98 mFailureHandler.onReceiverFailure(receiver, e); in onSend() 106 for (MidiReceiver receiver : mReceivers) { in onFlush() [all …]
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 475 final BroadcastReceiver receiver = new BroadcastReceiver() { in enable() local 491 mContext.registerReceiver(receiver, filter); in enable() 503 mContext.unregisterReceiver(receiver); in enable() 521 final BroadcastReceiver receiver = new BroadcastReceiver() { in disable() local 537 mContext.registerReceiver(receiver, filter); in disable() 549 mContext.unregisterReceiver(receiver); in disable() 573 final BroadcastReceiver receiver = new BroadcastReceiver() { in discoverable() local 589 mContext.registerReceiver(receiver, filter); in discoverable() 599 mContext.unregisterReceiver(receiver); in discoverable() 623 final BroadcastReceiver receiver = new BroadcastReceiver() { in undiscoverable() local [all …]
|
/frameworks/hardware/interfaces/displayservice/1.0/vts/functional/ |
D | VtsFwkDisplayServiceV1_0TargetTest.cpp | 85 receiver = ret; in SetUp() 86 ASSERT_NE(receiver, nullptr); in SetUp() 90 EXPECT_SUCCESS(receiver->init(cb)); in SetUp() 94 EXPECT_SUCCESS(receiver->close()); in TearDown() 98 sp<IDisplayEventReceiver> receiver; member in DisplayServiceTest 107 EXPECT_SUCCESS(receiver->requestNextVsync()); in TEST_F() 119 EXPECT_SUCCESS(receiver->setVsyncRate(1)); in TEST_F() 124 EXPECT_SUCCESS(receiver->setVsyncRate(2)); in TEST_F() 129 EXPECT_SUCCESS(receiver->setVsyncRate(4)); in TEST_F() 148 EXPECT_BAD_VALUE(receiver->init(cb)); // already opened in SetUp in TEST_F() [all …]
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiSender.java | 30 public void connect(MidiReceiver receiver) { in connect() argument 31 if (receiver == null) { in connect() 34 onConnect(receiver); in connect() 42 public void disconnect(MidiReceiver receiver) { in disconnect() argument 43 if (receiver == null) { in disconnect() 46 onDisconnect(receiver); in disconnect() 54 abstract public void onConnect(MidiReceiver receiver); in onConnect() argument 61 abstract public void onDisconnect(MidiReceiver receiver); in onDisconnect() argument
|
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/ |
D | ITetheringConnector.aidl | 26 IIntResultListener receiver); in tether() argument 29 IIntResultListener receiver); in untether() argument 32 String callingAttributionTag, IIntResultListener receiver); in setUsbTethering() argument 35 String callingAttributionTag, IIntResultListener receiver); in startTethering() argument 38 IIntResultListener receiver); in stopTethering() argument 40 void requestLatestTetheringEntitlementResult(int type, in ResultReceiver receiver, in requestLatestTetheringEntitlementResult() argument 48 IIntResultListener receiver); in isTetheringSupported() argument 51 IIntResultListener receiver); in stopAllTethering() argument
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | PendingReports.java | 283 final ComponentName receiver = getApproverComponent(primaryUser); in authorizeReportImpl() local 284 if (receiver == null) { in authorizeReportImpl() 301 cancelReportImpl(listener, receiver, primaryUser); in authorizeReportImpl() 306 cancelReportImpl(listener, receiver, primaryUser); in authorizeReportImpl() 310 sendBroadcast(receiver, primaryUser); in authorizeReportImpl() 318 final ComponentName receiver = getApproverComponent(primaryUser); in cancelReportImpl() local 319 if (primaryUser != UserHandle.USER_NULL && receiver != null) { in cancelReportImpl() 320 cancelReportImpl(listener, receiver, primaryUser); in cancelReportImpl() 328 private void cancelReportImpl(IIncidentAuthListener listener, ComponentName receiver, in cancelReportImpl() argument 335 sendBroadcast(receiver, primaryUser); in cancelReportImpl() [all …]
|
/frameworks/base/core/java/android/hardware/face/ |
D | IFaceService.aidl | 31 IFaceServiceReceiver receiver, int flags, String opPackageName); in authenticate() argument 53 void enroll(int userId, IBinder token, in byte [] cryptoToken, IFaceServiceReceiver receiver, in enroll() argument 60 void remove(IBinder token, int faceId, int userId, IFaceServiceReceiver receiver, in remove() argument 100 void enumerate(IBinder token, int userId, IFaceServiceReceiver receiver); in enumerate() argument 103 IFaceServiceReceiver receiver, String opPackageName); in setFeature() argument 105 void getFeature(int userId, int feature, IFaceServiceReceiver receiver, String opPackageName); in getFeature() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DarkIconDispatcherImpl.java | 65 public void addDarkReceiver(DarkReceiver receiver) { in addDarkReceiver() argument 66 mReceivers.put(receiver, receiver); in addDarkReceiver() 67 receiver.onDarkChanged(mTintArea, mDarkIntensity, mIconTint); in addDarkReceiver() 71 DarkReceiver receiver = (area, darkIntensity, tint) -> imageView.setImageTintList( in addDarkReceiver() local 73 mReceivers.put(imageView, receiver); in addDarkReceiver() 74 receiver.onDarkChanged(mTintArea, mDarkIntensity, mIconTint); in addDarkReceiver()
|
/frameworks/base/core/jni/ |
D | android_view_DisplayEventReceiver.cpp | 149 sp<NativeDisplayEventReceiver> receiver = new NativeDisplayEventReceiver(env, in nativeInit() local 151 status_t status = receiver->initialize(); in nativeInit() 159 receiver->incStrong(gDisplayEventReceiverClassInfo.clazz); // retain a reference for the object in nativeInit() 160 return reinterpret_cast<jlong>(receiver.get()); in nativeInit() 164 NativeDisplayEventReceiver* receiver = in nativeDispose() local 166 receiver->dispose(); in nativeDispose() 167 receiver->decStrong(gDisplayEventReceiverClassInfo.clazz); // drop reference held by the object in nativeDispose() 171 sp<NativeDisplayEventReceiver> receiver = in nativeScheduleVsync() local 173 status_t status = receiver->scheduleVsync(); in nativeScheduleVsync()
|
D | android_view_InputEventReceiver.cpp | 351 sp<NativeInputEventReceiver> receiver = new NativeInputEventReceiver(env, in nativeInit() local 353 status_t status = receiver->initialize(); in nativeInit() 361 receiver->incStrong(gInputEventReceiverClassInfo.clazz); // retain a reference for the object in nativeInit() 362 return reinterpret_cast<jlong>(receiver.get()); in nativeInit() 366 sp<NativeInputEventReceiver> receiver = in nativeDispose() local 368 receiver->dispose(); in nativeDispose() 369 receiver->decStrong(gInputEventReceiverClassInfo.clazz); // drop reference held by the object in nativeDispose() 374 sp<NativeInputEventReceiver> receiver = in nativeFinishInputEvent() local 376 status_t status = receiver->finishInputEvent(seq, handled); in nativeFinishInputEvent() 386 sp<NativeInputEventReceiver> receiver = in nativeConsumeBatchedInputEvents() local [all …]
|
D | android_hardware_SensorManager.cpp | 441 sp<Receiver> receiver = new Receiver(queue, messageQueue, eventQWeak); in nativeInitSensorEventQueue() local 442 receiver->incStrong((void*)nativeInitSensorEventQueue); in nativeInitSensorEventQueue() 443 return jlong(receiver.get()); in nativeInitSensorEventQueue() 448 sp<Receiver> receiver(reinterpret_cast<Receiver *>(eventQ)); in nativeEnableSensor() local 449 return receiver->getSensorEventQueue()->enableSensor(handle, rate_us, maxBatchReportLatency, in nativeEnableSensor() 454 sp<Receiver> receiver(reinterpret_cast<Receiver *>(eventQ)); in nativeDisableSensor() local 455 return receiver->getSensorEventQueue()->disableSensor(handle); in nativeDisableSensor() 459 sp<Receiver> receiver(reinterpret_cast<Receiver *>(eventQ)); in nativeDestroySensorEventQueue() local 460 receiver->destroy(); in nativeDestroySensorEventQueue() 461 receiver->decStrong((void*)nativeInitSensorEventQueue); in nativeDestroySensorEventQueue() [all …]
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillManagerService.java | 350 void destroySessions(@UserIdInt int userId, IResultReceiver receiver) { in destroySessions() argument 366 receiver.send(0, new Bundle()); in destroySessions() 373 void listSessions(int userId, IResultReceiver receiver) { in listSessions() argument 393 receiver.send(0, resultData); in listSessions() 671 private void send(@NonNull IResultReceiver receiver, int value) { in send() argument 673 receiver.send(value, null); in send() 679 private void send(@NonNull IResultReceiver receiver, @NonNull Bundle value) { in send() argument 681 receiver.send(0, value); in send() 687 private void send(@NonNull IResultReceiver receiver, @Nullable String value) { in send() argument 688 send(receiver, SyncResultReceiver.bundleFor(value)); in send() [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | EntitlementManagerTest.java | 137 final TetheringConfiguration config, final ResultReceiver receiver) { in runUiTetherProvisioning() argument 138 Intent intent = super.runUiTetherProvisioning(type, config, receiver); in runUiTetherProvisioning() 139 assertUiTetherProvisioningIntent(type, config, receiver, intent); in runUiTetherProvisioning() 141 receiver.send(fakeEntitlementResult, null); in runUiTetherProvisioning() 146 final ResultReceiver receiver, final Intent intent) { in assertUiTetherProvisioningIntent() argument 155 assertEquals(receiver, intent.getParcelableExtra(EXTRA_PROVISION_CALLBACK)); in assertUiTetherProvisioningIntent() 299 ResultReceiver receiver = new ResultReceiver(null) { in testRequestLastEntitlementCacheValue() local 305 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, true); in testRequestLastEntitlementCacheValue() 312 receiver = new ResultReceiver(null) { in testRequestLastEntitlementCacheValue() 318 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, false); in testRequestLastEntitlementCacheValue() [all …]
|
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 66 public BroadcastInterceptor(BroadcastReceiver receiver, IntentFilter filter) { in BroadcastInterceptor() argument 67 mReceiver = receiver; in BroadcastInterceptor() 128 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument 130 mInterceptors.add(new BroadcastInterceptor(receiver, filter)); in registerReceiver() 136 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument 138 return registerReceiver(receiver, filter); in registerReceiver() 142 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument 147 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | EntitlementManager.java | 370 ResultReceiver receiver = buildProxyReceiver(type, false/* notifyFail */, null); in runSilentTetherProvisioning() local 377 intent.putExtra(EXTRA_PROVISION_CALLBACK, receiver); in runSilentTetherProvisioning() 387 ResultReceiver receiver = buildProxyReceiver(type, true/* notifyFail */, null); in runUiTetherProvisioning() local 388 runUiTetherProvisioning(type, config, receiver); in runUiTetherProvisioning() 399 ResultReceiver receiver) { in runUiTetherProvisioning() argument 405 intent.putExtra(EXTRA_PROVISION_CALLBACK, receiver); in runUiTetherProvisioning() 569 final ResultReceiver receiver) { in buildProxyReceiver() argument 578 if (receiver != null) receiver.send(updatedCacheValue, null); in buildProxyReceiver() 594 private ResultReceiver writeToParcel(final ResultReceiver receiver) { in writeToParcel() argument 596 receiver.writeToParcel(parcel, 0); in writeToParcel() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 191 BroadcastReceiver receiver, IntentFilter filter, Handler scheduler) { in registerReceiver() argument 192 mBroadcastReceivers.add(new BroadcastReceiverRegistration(receiver, filter, scheduler)); in registerReceiver() 195 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument 196 mBroadcastReceivers.removeIf(r -> r.receiver == receiver); in unregisterReceiver() 310 for (final BroadcastReceiverRegistration receiver : mBroadcastReceivers) { in injectBroadcast() 311 receiver.sendBroadcastIfApplicable(context, userId, intent); in injectBroadcast() 316 for (final BroadcastReceiverRegistration receiver : mBroadcastReceivers) { in rethrowBackgroundBroadcastExceptions() 317 final Exception e = receiver.backgroundException.getAndSet(null); in rethrowBackgroundBroadcastExceptions() 471 public final BroadcastReceiver receiver; field in MockSystemServices.BroadcastReceiverRegistration 478 public BroadcastReceiverRegistration(BroadcastReceiver receiver, IntentFilter filter, in BroadcastReceiverRegistration() argument [all …]
|
D | DpmMockContext.java | 410 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument 411 mMockSystemServices.registerReceiver(receiver, filter, null); in registerReceiver() 412 return spiedContext.registerReceiver(receiver, filter); in registerReceiver() 416 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument 418 mMockSystemServices.registerReceiver(receiver, filter, scheduler); in registerReceiver() 419 return spiedContext.registerReceiver(receiver, filter, broadcastPermission, scheduler); in registerReceiver() 423 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, in registerReceiverAsUser() argument 425 mMockSystemServices.registerReceiver(receiver, filter, scheduler); in registerReceiverAsUser() 426 return spiedContext.registerReceiverAsUser(receiver, user, filter, broadcastPermission, in registerReceiverAsUser() 431 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationManagerService.java | 479 for (Receiver receiver : mReceivers.values()) { in onAppOpChangedLocked() 480 receiver.updateMonitoring(true); in onAppOpChangedLocked() 552 for (Receiver receiver : mReceivers.values()) { in onPackageDisappearedLocked() 553 if (receiver.mCallerIdentity.mPackageName.equals(packageName)) { in onPackageDisappearedLocked() 557 deadReceivers.add(receiver); in onPackageDisappearedLocked() 563 for (Receiver receiver : deadReceivers) { in onPackageDisappearedLocked() 564 removeUpdatesLocked(receiver); in onPackageDisappearedLocked() 1687 Receiver receiver = mReceivers.get(listener.asBinder()); in locationCallbackFinished() local 1688 if (receiver != null) { in locationCallbackFinished() 1689 receiver.decrementPendingBroadcastsLocked(); in locationCallbackFinished() [all …]
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
D | IFingerprintService.aidl | 34 IFingerprintServiceReceiver receiver, int flags, String opPackageName); in authenticate() argument 57 …id enroll(IBinder token, in byte [] cryptoToken, int groupId, IFingerprintServiceReceiver receiver, in enroll() argument 65 IFingerprintServiceReceiver receiver); in remove() argument 104 void enumerate(IBinder token, int userId, IFingerprintServiceReceiver receiver); in enumerate() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SliceBroadcastRelayHandler.java | 100 public void register(Context context, ComponentName receiver, IntentFilter filter) { in register() argument 101 mReceivers.add(receiver); in register() 112 for (ComponentName receiver : mReceivers) { in onReceive() 113 intent.setComponent(receiver); in onReceive() 115 if (DEBUG) Log.d(TAG, "Forwarding " + receiver + " " + intent + " " + mUserId); in onReceive()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BstatsCpuTimesValidationTest.java | 653 final ICmdReceiver receiver = ICmdReceiver.Stub.asInterface(startActivity()); in doSomeWork() local 654 receiver.doSomeWork(WORK_DURATION_MS); in doSomeWork() 655 receiver.finishHost(); in doSomeWork() 659 final ICmdReceiver receiver = ICmdReceiver.Stub.asInterface(startIsolatedService()); in doSomeWorkInIsolatedProcess() local 660 receiver.doSomeWork(WORK_DURATION_MS); in doSomeWorkInIsolatedProcess() 661 receiver.finishHost(); in doSomeWorkInIsolatedProcess() 665 final ICmdReceiver receiver; in doSomeWork() local 668 receiver = ICmdReceiver.Stub.asInterface(startActivity()); in doSomeWork() 671 receiver = ICmdReceiver.Stub.asInterface(startActivity()); in doSomeWork() 674 receiver = ICmdReceiver.Stub.asInterface(startForegroundService()); in doSomeWork() [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableContext.java | 188 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument 189 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiver() 190 return super.registerReceiver(receiver, filter); in registerReceiver() 194 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument 196 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiver() 197 return super.registerReceiver(receiver, filter, broadcastPermission, scheduler); in registerReceiver() 201 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, in registerReceiverAsUser() argument 203 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiverAsUser() 204 return super.registerReceiverAsUser(receiver, user, filter, broadcastPermission, in registerReceiverAsUser() 209 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument [all …]
|
/frameworks/native/libs/gui/tests/ |
D | RegionSampling_test.cpp | 34 ChoreographerSync(DisplayEventReceiver& receiver) : receiver_(receiver) {} in ChoreographerSync() 75 auto receiver = std::make_unique<DisplayEventReceiver>(); in make() local 76 if (!receiver || receiver->initCheck() == NO_INIT) { in make() 80 return std::unique_ptr<ChoreographerSim>(new ChoreographerSim(std::move(receiver))); in make() 104 ChoreographerSim(std::unique_ptr<DisplayEventReceiver> receiver) in ChoreographerSim() 105 : display_event_receiver_{std::move(receiver)}, in ChoreographerSim()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 107 for (final Object receiver : record.receivers) { in verifyRemaining() 108 final ResolveInfo resolveInfo = (ResolveInfo) receiver; in verifyRemaining() 164 for (final ResolveInfo receiver : receivers) { in excludeReceivers() 166 && !packageName.equals(receiver.activityInfo.applicationInfo.packageName)) in excludeReceivers() 168 .getUserId(receiver.activityInfo.applicationInfo.uid))) { in excludeReceivers() 169 excludedList.add(receiver); in excludeReceivers()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbMidiDevice.java | 123 MidiReceiver receiver = mReceiver; in onSend() local 124 if (receiver != null) { in onSend() 125 receiver.send(msg, offset, count, timestamp); in onSend() 129 public void setReceiver(MidiReceiver receiver) { in setReceiver() argument 130 mReceiver = receiver; in setReceiver() 135 MidiReceiver receiver = mReceiver; in onFlush() local 136 if (receiver != null) { in onFlush() 137 receiver.flush(); in onFlush()
|