Home
last modified time | relevance | path

Searched refs:mReceiver (Results 1 – 25 of 130) sorted by relevance

123456

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DReviewNotificationPermissionsReceiverTest.java59 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/
DAssistDataReceiverProxy.java40 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/
DResultReceiver.java39 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/
DMidiFramer.java37 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/
DSystemDeviceIdleHelper.java43 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()
DSystemPackageResetHelper.java38 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/
DCancellationSignalBeamerTest.java111 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/
DBaseErrorDialog.java39 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()
DAppTimeTracker.java37 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/
DDisplayEventDispatcher.cpp47 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/
DWindowMagnificationPromptControllerTest.java73 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/
DCanvasFrontend.h194 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/
DBluetoothMidiDecoderTest.java44 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()
DMidiFramerTest.java44 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/
DJsResult.java39 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/
DInputChannelCompat.java64 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/
DInputEventSenderAndReceiverTest.kt65 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/
DStorageMeasurement.java96 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/
DSynchronousResultReceiver.java161 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/
DMasterClearReceiverTest.java86 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/
DBroadcastInterceptingContext.java64 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/
DNetworkConnectivityListener.java61 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/
DDownloadManagerFunctionalTest.java64 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/
DSimActivationTracker.java69 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/
DSavedDatasetsInfoCallbackImpl.java40 private final IResultReceiver mReceiver; field in SavedDatasetsInfoCallbackImpl
50 mReceiver = requireNonNull(receiver); in SavedDatasetsInfoCallbackImpl()
86 mReceiver.send(resultCode, bundle); in send()

123456