Home
last modified time | relevance | path

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

12345

/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.java38 IResultReceiver mReceiver; field in ResultReceiver
91 if (mReceiver != null) { in send()
93 mReceiver.send(resultCode, resultData); in send()
115 if (mReceiver == null) { in writeToParcel()
116 mReceiver = new MyResultReceiver(); in writeToParcel()
118 out.writeStrongBinder(mReceiver.asBinder()); in writeToParcel()
125 mReceiver = IResultReceiver.Stub.asInterface(in.readStrongBinder()); in ResultReceiver()
/frameworks/native/libs/gui/
DDisplayEventDispatcher.cpp39 : mLooper(looper), mReceiver(vsyncSource, configChanged), mWaitingForVsync(false) { in DisplayEventDispatcher()
44 status_t result = mReceiver.initCheck(); in initialize()
51 int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, this, NULL); in initialize()
63 if (!mReceiver.initCheck() && mLooper != nullptr) { in dispose()
64 mLooper->removeFd(mReceiver.getFd()); in dispose()
81 status_t status = mReceiver.requestNextVsync(); in scheduleVsync()
93 status_t status = mReceiver.requestLatestConfig(); in requestLatestConfig()
101 return mReceiver.getFd(); in getFd()
140 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { in processPendingEvents()
/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()
107 mReceiver.send(mBuffer, 0, mCount, timestamp); in onSend()
118 mReceiver.send(data, sysExStartOffset, in onSend()
/frameworks/base/packages/Tethering/src/android/net/util/
DVersionedBroadcastListener.java48 private BroadcastReceiver mReceiver; field in VersionedBroadcastListener
63 if (mReceiver != null) return; in startListening()
65 mReceiver = new Receiver(mTag, mGenerationNumber, mCallback); in startListening()
66 mContext.registerReceiver(mReceiver, mFilter, null, mHandler); in startListening()
72 if (mReceiver == null) return; in stopListening()
75 mContext.unregisterReceiver(mReceiver); in stopListening()
76 mReceiver = null; in stopListening()
/frameworks/base/tests/RollbackTest/lib/src/com/android/tests/rollback/host/
DWatchdogEventLogger.java30 private LogcatReceiver mReceiver; field in WatchdogEventLogger
33 mReceiver = new LogcatReceiver(device, "logcat -s WatchdogRollbackLogger", in start()
35 mReceiver.start(); in start()
39 if (mReceiver != null) { in stop()
40 mReceiver.stop(); in stop()
41 mReceiver.clear(); in stop()
49 try (InputStreamSource logcatStream = mReceiver.getLogcatData()) { in getWatchdogLoggingEvents()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DCurrentUserTrackerTest.java38 private CurrentUserTracker.UserReceiver mReceiver; field in CurrentUserTrackerTest
45 mReceiver = new CurrentUserTracker.UserReceiver(mBroadcastDispatcher); in setUp()
46 mTracker = new CurrentUserTracker(mReceiver) { in setUp()
57 CurrentUserTracker secondTracker = new CurrentUserTracker(mReceiver) { in testBroadCastDoesntCrashOnConcurrentModification()
72 mReceiver.onReceive(getContext(), intent); in triggerUserSwitch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthController.java82 IBiometricServiceReceiverInternal mReceiver; field in AuthController
102 if (mReceiver != null) {
103 mReceiver.onDialogDismissed(BiometricPrompt.DISMISSED_REASON_USER_CANCEL,
105 mReceiver = null;
127 if (mReceiver != null) {
128 mReceiver.onDialogDismissed(
131 mReceiver = null;
143 if (mReceiver == null) { in onTryAgainPressed()
148 mReceiver.onTryAgainPressed(); in onTryAgainPressed()
156 if (mReceiver == null) { in onDeviceCredentialPressed()
[all …]
/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()
DBluetoothMidiEncoderTest.java58 AccumulatingPacketReceiver mReceiver; field in BluetoothMidiEncoderTest.EncoderChecker
62 mReceiver = new AccumulatingPacketReceiver(); in EncoderChecker()
64 mEncoder = new BluetoothPacketEncoder(mReceiver, maxBytes); in EncoderChecker()
84 byte[][] actualRows = mReceiver.getBuffers(); in compareWithExpected()
DBluetoothMidiCodecTest.java54 AccumulatingMidiReceiver mReceiver; field in BluetoothMidiCodecTest.EncoderDecoderChecker
75 mReceiver = new AccumulatingMidiReceiver(); in EncoderDecoderChecker()
76 mFramer = new MidiFramer(mReceiver); in EncoderDecoderChecker()
156 byte[][] inMessages = mReceiver.getBuffers(); in test()
160 Long[] actualTimestamps = mReceiver.getTimestamps(); in test()
/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/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/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthControllerTest.java77 private IBiometricServiceReceiverInternal mReceiver; field in AuthControllerTest
117 verify(mReceiver).onDialogDismissed( in testSendsReasonUserCanceled_whenDismissedByUserCancel()
127 verify(mReceiver).onDialogDismissed( in testSendsReasonNegative_whenDismissedByButtonNegative()
137 verify(mReceiver).onDialogDismissed( in testSendsReasonConfirmed_whenDismissedByButtonPositive()
147 verify(mReceiver).onDialogDismissed( in testSendsReasonConfirmNotRequired_whenDismissedByAuthenticated()
157 verify(mReceiver).onDialogDismissed( in testSendsReasonError_whenDismissedByError()
167 verify(mReceiver).onDialogDismissed( in testSendsReasonServerRequested_whenDismissedByServer()
181 verify(mReceiver).onDialogDismissed( in testSendsReasonCredentialConfirmed_whenDeviceCredentialAuthenticated()
334 verify(mReceiver).onDialogDismissed( in testCancelAuthentication_whenCredentialConfirmed_doesntCrash()
426 assertNull(mAuthController.mReceiver); in testClientNotified_whenTaskStackChangesDuringAuthentication()
[all …]
/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/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java63 private final BroadcastReceiver mReceiver; field in BroadcastInterceptingContext.BroadcastInterceptor
67 mReceiver = receiver; in BroadcastInterceptor()
73 if (mReceiver != null) { in dispatchBroadcast()
75 mReceiver.onReceive(context, intent); in dispatchBroadcast()
147 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
/frameworks/base/services/core/java/com/android/server/am/
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/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/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DInputChannelCompat.java71 private final BatchedInputEventReceiver mReceiver; field in InputChannelCompat.InputEventReceiver
77 mReceiver = new BatchedInputEventReceiver(inputChannel, looper, choreographer) { in InputEventReceiver()
91 mReceiver.dispose(); in dispose()
/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/tests/testables/src/android/testing/
DTestableContext.java69 private LeakCheck.Tracker mReceiver; field in TestableContext
87 mReceiver = check != null ? check.getTracker("receiver") : null; in TestableContext()
189 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiver()
196 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiver()
203 if (mReceiver != null) mReceiver.getLeakInfo(receiver).addAllocation(new Throwable()); in registerReceiverAsUser()
210 if (mReceiver != null) mReceiver.getLeakInfo(receiver).clearAllocations(); in unregisterReceiver()
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/
DUsbAoapHostTestActivity.java44 private UsbStateReceiver mReceiver; field in UsbAoapHostTestActivity
58 mReceiver = new UsbStateReceiver(); in onCreate()
59 registerReceiver(mReceiver, filter); in onCreate()
75 unregisterReceiver(mReceiver); in onDestroy()
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/
DUsbAoapDeviceTestActivity.java44 private AccessoryReceiver mReceiver; field in UsbAoapDeviceTestActivity
60 mReceiver = new AccessoryReceiver(); in onCreate()
61 registerReceiver(mReceiver, filter); in onCreate()
80 unregisterReceiver(mReceiver); in onDestroy()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/deviceidle/
DBluetoothConstraint.java71 mContext.registerReceiver(mReceiver, filter); in startMonitoring()
83 mContext.unregisterReceiver(mReceiver); in stopMonitoring()
125 final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothConstraint

12345