/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ReviewNotificationPermissionsReceiverTest.java | 59 private MockReviewNotificationPermissionsReceiver mReceiver; field in ReviewNotificationPermissionsReceiverTest 64 mReceiver = new MockReviewNotificationPermissionsReceiver(); in setUp() 83 mReceiver.onReceive(mContext, mIntent); in testReceive_remindMeLater_firstTime() 84 assertTrue(mReceiver.mRescheduled); in testReceive_remindMeLater_firstTime() 85 assertTrue(mReceiver.mCanceled); in testReceive_remindMeLater_firstTime() 108 mReceiver.onReceive(mContext, mIntent); in testReceive_remindMeLater_laterTimes() 109 assertTrue(mReceiver.mRescheduled); in testReceive_remindMeLater_laterTimes() 110 assertTrue(mReceiver.mCanceled); in testReceive_remindMeLater_laterTimes() 129 mReceiver.onReceive(mContext, mIntent); in testReceive_dismiss() 130 assertFalse(mReceiver.mRescheduled); in testReceive_dismiss() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AssistDataReceiverProxy.java | 40 private IAssistDataReceiver mReceiver; field in AssistDataReceiverProxy 43 mReceiver = receiver; in AssistDataReceiverProxy() 56 if (mReceiver != null) { in onAssistDataReceivedLocked() 58 mReceiver.onHandleAssistData(data); in onAssistDataReceivedLocked() 68 if (mReceiver != null) { in onAssistScreenshotReceivedLocked() 70 mReceiver.onHandleAssistScreenshot(screenshot); in onAssistScreenshotReceivedLocked() 90 mReceiver.asBinder().linkToDeath(this, 0); in linkToDeath() 97 if (mReceiver != null) { in unlinkToDeath() 98 mReceiver.asBinder().unlinkToDeath(this, 0); in unlinkToDeath() 100 mReceiver = null; in unlinkToDeath()
|
/frameworks/base/core/java/android/os/ |
D | ResultReceiver.java | 39 IResultReceiver mReceiver; field in ResultReceiver 92 if (mReceiver != null) { in send() 94 mReceiver.send(resultCode, resultData); in send() 116 if (mReceiver == null) { in writeToParcel() 117 mReceiver = new MyResultReceiver(); in writeToParcel() 119 out.writeStrongBinder(mReceiver.asBinder()); in writeToParcel() 126 mReceiver = IResultReceiver.Stub.asInterface(in.readStrongBinder()); in ResultReceiver()
|
/frameworks/base/core/java/com/android/internal/midi/ |
D | MidiFramer.java | 37 private MidiReceiver mReceiver; field in MidiFramer 45 mReceiver = receiver; in MidiFramer() 80 mReceiver.send(data, sysExStartOffset, in onSend() 94 mReceiver.send(data, sysExStartOffset, in onSend() 98 mReceiver.send(data, offset, 1, timestamp); in onSend() 113 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend() 124 mReceiver.send(data, sysExStartOffset, in onSend()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemDeviceIdleHelper.java | 43 private @Nullable BroadcastReceiver mReceiver; field in SystemDeviceIdleHelper 74 if (mRegistrationRequired && mReceiver == null) { in onRegistrationStateChanged() 84 mReceiver = receiver; in onRegistrationStateChanged() 85 } else if (!mRegistrationRequired && mReceiver != null) { in onRegistrationStateChanged() 86 BroadcastReceiver receiver = mReceiver; in onRegistrationStateChanged() 87 mReceiver = null; in onRegistrationStateChanged()
|
D | SystemPackageResetHelper.java | 38 private BroadcastReceiver mReceiver; field in SystemPackageResetHelper 46 Preconditions.checkState(mReceiver == null); in onRegister() 47 mReceiver = new Receiver(); in onRegister() 60 mContext.registerReceiver(mReceiver, filter); in onRegister() 65 Preconditions.checkState(mReceiver != null); in onUnregister() 66 mContext.unregisterReceiver(mReceiver); in onUnregister() 67 mReceiver = null; in onUnregister()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | CancellationSignalBeamerTest.java | 111 assertThat(mReceiver.unbeam(null)).isNull(); in testUnbeam_null() 116 mReceiver.forget(null); in testForget_null() 121 mReceiver.cancel(null); in testCancel_null() 126 mReceiver.forget(new Binder()); in testForget_withUnknownToken() 131 mReceiver.cancel(new Binder()); in testCancel_withUnknownToken() 136 mReceiver.binderDied(new Binder()); in testBinderDied_withUnknownToken() 221 mReceivedSignal = mReceiver.unbeam(cancellationSignalToken); in invokeGenericService() 225 private Receiver mReceiver; field in CancellationSignalBeamerTest 232 mReceiver.cancel(token); in setUpSenderReceiver() 237 mReceiver.forget(token); in setUpSenderReceiver() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BaseErrorDialog.java | 39 private BroadcastReceiver mReceiver; field in BaseErrorDialog 58 if (mReceiver == null) { in onStart() 59 mReceiver = new BroadcastReceiver() { in onStart() 67 getContext().registerReceiver(mReceiver, in onStart() 75 if (mReceiver != null) { in onStop() 77 getContext().unregisterReceiver(mReceiver); in onStop() 83 mReceiver = null; in onStop()
|
D | AppTimeTracker.java | 37 private final PendingIntent mReceiver; field in AppTimeTracker 47 mReceiver = receiver; in AppTimeTracker() 94 mReceiver.send(context, 0, fillinIntent); in deliverResult() 107 pw.print(prefix); pw.print("mReceiver="); pw.println(mReceiver); in dump() 127 proto.write(AppTimeTrackerProto.RECEIVER, mReceiver.toString()); in dumpDebug()
|
/frameworks/native/libs/gui/ |
D | DisplayEventDispatcher.cpp | 47 mReceiver(vsyncSource, eventRegistration, layerHandle), in DisplayEventDispatcher() 55 status_t result = mReceiver.initCheck(); in initialize() 62 int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, this, NULL); in initialize() 74 if (!mReceiver.initCheck() && mLooper != nullptr) { in dispose() 75 mLooper->removeFd(mReceiver.getFd()); in dispose() 93 status_t status = mReceiver.requestNextVsync(); in scheduleVsync() 106 mReceiver.sendEvents(&event, 1); in injectEvent() 110 return mReceiver.getFd(); in getFd() 164 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { in processPendingEvents() 228 return mReceiver.getLatestVsyncEventData(outVsyncEventData); in getLatestVsyncEventData()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | WindowMagnificationPromptControllerTest.java | 73 private BroadcastReceiver mReceiver; field in WindowMagnificationPromptControllerTest 113 mReceiver.onReceive(mTestableContext, intent); in tapTurnOnAction_isShown_cancelNotificationAndLaunchMagnificationSettings() 124 mReceiver.onReceive(mTestableContext, intent); in tapTurnOnAction_isShown_settingsValueIsFalseAndUnregisterReceiver() 128 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in tapTurnOnAction_isShown_settingsValueIsFalseAndUnregisterReceiver() 136 mReceiver.onReceive(mTestableContext, intent); in tapDismissAction_isShown_cancelNotificationAndUnregisterReceiver() 139 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in tapDismissAction_isShown_cancelNotificationAndUnregisterReceiver() 149 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in promptSettingsChangeToFalse_isShown_cancelNotificationAndUnregisterReceiver() 159 verify(mTestableContext.getSpyContext()).unregisterReceiver(mReceiver); in onDestroy_isShown_cancelNotificationAndUnregisterReceiver() 177 mReceiver = mWindowMagnificationPromptController.mNotificationActionReceiver; in showNotificationAndAssert() 178 assertThat(mReceiver).isNotNull(); in showNotificationAndAssert()
|
/frameworks/base/libs/hwui/canvas/ |
D | CanvasFrontend.h | 194 mReceiver(std::in_place, std::forward<Args>(args)...) { } in CanvasFrontend() 233 LOG_ALWAYS_FATAL_IF(!mReceiver.has_value()); in receiver() 234 return *mReceiver; in receiver() 238 auto ret = std::move(mReceiver.value()); in finish() 239 mReceiver.reset(); in finish() 246 mReceiver.emplace(std::forward<Args>(args)...); in reset() 250 std::optional<CanvasOpReceiver> mReceiver; 254 LOG_ALWAYS_FATAL_IF(!mReceiver.has_value()); in submit() 255 mReceiver->push_container(CanvasOpContainer(std::move(op), transform())); in submit()
|
/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/ |
D | BluetoothMidiDecoderTest.java | 44 AccumulatingMidiReceiver mReceiver; field in BluetoothMidiDecoderTest.DecoderChecker 48 mReceiver = new AccumulatingMidiReceiver(); in DecoderChecker() 54 byte[][] actualRows = mReceiver.getBuffers(); in compareWithExpected() 55 Long[] actualTimestamps = mReceiver.getTimestamps(); in compareWithExpected() 76 mDecoder.decodePacket(packet, mReceiver); in decodePacket() 83 mDecoder.decodePacket(packet, mReceiver); in decodePackets()
|
D | MidiFramerTest.java | 44 AccumulatingMidiReceiver mReceiver; field in MidiFramerTest.FramerChecker 48 mReceiver = new AccumulatingMidiReceiver(); in FramerChecker() 49 mFramer = new MidiFramer(mReceiver); in FramerChecker() 53 byte[][] actualRows = mReceiver.getBuffers(); in compareWithExpected()
|
/frameworks/base/core/java/android/webkit/ |
D | JsResult.java | 39 private final ResultReceiver mReceiver; field in JsResult 64 mReceiver = receiver; in JsResult() 77 mReceiver.onJsResultComplete(this); in wakeUp()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | InputChannelCompat.java | 64 private final BatchedInputEventReceiver mReceiver; field in InputChannelCompat.InputEventReceiver 75 mReceiver = new BatchedInputEventReceiver(inputChannel, looper, choreographer) { in InputEventReceiver() 88 mReceiver.setBatchingEnabled(batchingEnabled); in setBatchingEnabled() 95 mReceiver.dispose(); in dispose()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | InputEventSenderAndReceiverTest.kt | 65 private lateinit var mReceiver: SpyInputEventReceiver variable in InputEventSenderAndReceiverTest 75 mReceiver = SpyInputEventReceiver(channels[1], looper) in setUp() 88 val receivedKey = mReceiver.getInputEvent() as KeyEvent in testSendAndReceiveKey() 103 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) in testSendAndReceiveTimeline() 115 mReceiver.reportTimeline(sent.inputEventId, sent.gpuCompletedTime, sent.presentTime) in testSendAndReceiveInvalidTimeline() 119 mReceiver.reportTimeline(2 /*inputEventId*/, 3 /*gpuCompletedTime*/, 4 /*presentTime*/) in testSendAndReceiveInvalidTimeline()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageMeasurement.java | 96 private WeakReference<MeasurementReceiver> mReceiver; field in StorageMeasurement 115 if (mReceiver == null || mReceiver.get() == null) { in setReceiver() 116 mReceiver = new WeakReference<MeasurementReceiver>(receiver); in setReceiver() 129 mReceiver = null; in onDestroy() 140 final MeasurementReceiver receiver = (mReceiver != null) ? mReceiver.get() : null; in onPostExecute()
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/ |
D | SynchronousResultReceiver.java | 161 rr = mReceiver; in complete() 231 ISynchronousResultReceiver mReceiver = null; field in SynchronousResultReceiver 250 if (mReceiver == null) { in writeToParcel() 251 mReceiver = new MyResultReceiver(); in writeToParcel() 253 out.writeStrongBinder(mReceiver.asBinder()); in writeToParcel() 260 mReceiver = ISynchronousResultReceiver.Stub.asInterface(in.readStrongBinder()); in SynchronousResultReceiver()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | MasterClearReceiverTest.java | 86 private final MasterClearReceiver mReceiver = new MasterClearReceiver(); field in MasterClearReceiverTest 127 mReceiver.onReceive(mContext, intent); in testNoExtras() 140 mReceiver.onReceive(mContext, intent); in testWipeExternalDirectory() 158 mReceiver.onReceive(mContext, intent); in testAllExtras() 171 mReceiver.onReceive(mContext, intent); in testNonSystemUser() 186 mReceiver.onReceive(mContext, intent); in testHeadlessSystemUser() 278 mReceiver.setPendingResult(new BroadcastReceiver.PendingResult( in setPendingResultForUser()
|
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 64 private final BroadcastReceiver mReceiver; field in BroadcastInterceptingContext.BroadcastInterceptor 70 mReceiver = receiver; in BroadcastInterceptor() 77 if (mReceiver != null) { in dispatchBroadcast() 80 mReceiver.onReceive(context, intent); in dispatchBroadcast() 82 mHandler.post(() -> mReceiver.onReceive(context, intent)); in dispatchBroadcast() 195 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
|
/frameworks/ex/common/java/com/android/common/ |
D | NetworkConnectivityListener.java | 61 private ConnectivityBroadcastReceiver mReceiver; field in NetworkConnectivityListener 130 mReceiver = new ConnectivityBroadcastReceiver(); in NetworkConnectivityListener() 143 context.registerReceiver(mReceiver, filter); in startListening() 153 mContext.unregisterReceiver(mReceiver); in stopListening()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerFunctionalTest.java | 64 if (mReceiver != null) { in tearDown() 65 mContext.unregisterReceiver(mReceiver); in tearDown() 66 mReceiver = null; in tearDown() 211 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadToExternal() 258 Set<Long> ids = mReceiver.getDownloadIds(); in testGetDownloadIdOnNotification() 312 assertEquals(1, mReceiver.numDownloadsCompleted()); in testRelativeRedirect() 391 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadNoWifi() 420 assertEquals(1, mReceiver.numDownloadsCompleted()); in testServerDropConnection_body()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SimActivationTracker.java | 69 private final BroadcastReceiver mReceiver; field in SimActivationTracker 76 mReceiver = new BroadcastReceiver() { in SimActivationTracker() 93 mPhone.getContext().registerReceiver(mReceiver, intentFilter); in SimActivationTracker() 176 mPhone.getContext().unregisterReceiver(mReceiver); in dispose()
|
/frameworks/base/core/java/android/service/autofill/ |
D | SavedDatasetsInfoCallbackImpl.java | 40 private final IResultReceiver mReceiver; field in SavedDatasetsInfoCallbackImpl 50 mReceiver = requireNonNull(receiver); in SavedDatasetsInfoCallbackImpl() 86 mReceiver.send(resultCode, bundle); in send()
|