Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/fingerprint/
DClientMonitor.java40 private IFingerprintServiceReceiver mReceiver; field in ClientMonitor
65 mReceiver = receiver; in ClientMonitor()
115 if (mReceiver == null) in onAcquired()
118 mReceiver.onAcquired(getHalDeviceId(), acquiredInfo); in onAcquired()
138 if (mReceiver != null) { in onError()
140 mReceiver.onError(getHalDeviceId(), error); in onError()
158 mReceiver = null; in destroy()
164 mReceiver = null; in binderDied()
193 return mReceiver; in getReceiver()
/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/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/support/v4/java/android/support/v4/os/
DResultReceiver.java44 IResultReceiver mReceiver; field in ResultReceiver
97 if (mReceiver != null) { in send()
99 mReceiver.send(resultCode, resultData); in send()
121 if (mReceiver == null) { in writeToParcel()
122 mReceiver = new MyResultReceiver(); in writeToParcel()
124 out.writeStrongBinder(mReceiver.asBinder()); in writeToParcel()
131 mReceiver = IResultReceiver.Stub.asInterface(in.readStrongBinder()); in ResultReceiver()
/frameworks/base/libs/androidfw/
DDisplayEventDispatcher.cpp42 status_t result = mReceiver.initCheck(); in initialize()
48 int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, in initialize()
59 if (!mReceiver.initCheck()) { in dispose()
60 mLooper->removeFd(mReceiver.getFd()); in dispose()
77 status_t status = mReceiver.requestNextVsync(); in scheduleVsync()
120 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { in processPendingEvents()
/frameworks/base/core/java/android/webkit/
DJsResult.java37 private final ResultReceiver mReceiver; field in JsResult
62 mReceiver = receiver; in JsResult()
75 mReceiver.onJsResultComplete(this); in wakeUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java48 private final BroadcastReceiver mReceiver; field in BroadcastInterceptingContext.BroadcastInterceptor
52 mReceiver = receiver; in BroadcastInterceptor()
58 if (mReceiver != null) { in dispatchBroadcast()
60 mReceiver.onReceive(context, intent); in dispatchBroadcast()
117 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java62 if (mReceiver != null) { in tearDown()
63 mContext.unregisterReceiver(mReceiver); in tearDown()
64 mReceiver = null; in tearDown()
209 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadToExternal()
256 Set<Long> ids = mReceiver.getDownloadIds(); in testGetDownloadIdOnNotification()
310 assertEquals(1, mReceiver.numDownloadsCompleted()); in testRelativeRedirect()
389 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadNoWifi()
418 assertEquals(1, mReceiver.numDownloadsCompleted()); in testServerDropConnection_body()
DDownloadManagerStressTest.java63 if (mReceiver != null) { in tearDown()
64 mContext.unregisterReceiver(mReceiver); in tearDown()
65 mReceiver = null; in tearDown()
112 assertEquals(NUM_FILES, mReceiver.numDownloadsCompleted()); in testMultipleDownloads()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileLifecycleManagerTests.java65 getContext().registerReceiver(mReceiver, new IntentFilter(TILE_UPDATE_BROADCAST)); in setUp()
75 getContext().unregisterReceiver(mReceiver); in tearDown()
243 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in TileLifecycleManagerTests
294 registerReceiver(mReceiver, new IntentFilter(ACTION_KILL)); in onCreate()
301 unregisterReceiver(mReceiver); in onDestroy()
311 private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
DSampleTrustAgent.java72 mLocalBroadcastManager.registerReceiver(mReceiver, filter); in onCreate()
74 registerReceiver(mReceiver, filter); in onCreate()
132 mLocalBroadcastManager.unregisterReceiver(mReceiver); in onDestroy()
134 unregisterReceiver(mReceiver); in onDestroy()
140 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in SampleTrustAgent
/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/services/core/java/com/android/server/am/
DAppTimeTracker.java35 private final PendingIntent mReceiver; field in AppTimeTracker
45 mReceiver = receiver; in AppTimeTracker()
92 mReceiver.send(context, 0, fillinIntent); in deliverResult()
105 pw.print(prefix); pw.print("mReceiver="); pw.println(mReceiver); in dump()
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
DWifiTrackerTest.java112 mWifiTracker.mReceiver.onReceive(mContext, i); in testWifiStateCallback()
253 mWifiTracker.mReceiver.onReceive(mContext, i); in testEnableResumeScanning()
255 mWifiTracker.mReceiver.onReceive(mContext, i); in testEnableResumeScanning()
259 mWifiTracker.mReceiver.onReceive(mContext, i); in testEnableResumeScanning()
266 mWifiTracker.mReceiver.onReceive(mContext, i); in testEnableResumeScanning()
342 mWifiTracker.mReceiver.onReceive(mContext, intent); in sendConnected()
347 mWifiTracker.mReceiver.onReceive(mContext, i); in sendScanResultsAndProcess()
349 mWifiTracker.mReceiver.onReceive(mContext, i); in sendScanResultsAndProcess()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodSessionWrapper.java59 ImeInputEventReceiver mReceiver; field in IInputMethodSessionWrapper
68 mReceiver = new ImeInputEventReceiver(channel, context.getMainLooper()); in IInputMethodSessionWrapper()
142 if (mReceiver != null) { in doFinishSession()
143 mReceiver.dispose(); in doFinishSession()
144 mReceiver = null; in doFinishSession()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSafetyWarningDialog.java59 context.registerReceiver(mReceiver, filter); in SafetyWarningDialog()
96 mContext.unregisterReceiver(mReceiver); in onDismiss()
100 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in SafetyWarningDialog
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageMeasurement.java135 private WeakReference<MeasurementReceiver> mReceiver; field in StorageMeasurement
160 if (mReceiver == null || mReceiver.get() == null) { in setReceiver()
161 mReceiver = new WeakReference<MeasurementReceiver>(receiver); in setReceiver()
177 mReceiver = null; in onDestroy()
258 final MeasurementReceiver receiver = (mReceiver != null) ? mReceiver.get() : null; in handleMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileController.java127 mContext.registerReceiverAsUser(mReceiver, UserHandle.ALL, filter, null, null); in setListening()
129 mContext.unregisterReceiver(mReceiver); in setListening()
133 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in ManagedProfileController
/frameworks/base/core/java/android/widget/
DViewFlipper.java68 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in ViewFlipper
98 getContext().registerReceiverAsUser(mReceiver, android.os.Process.myUserHandle(), in onAttachedToWindow()
112 getContext().unregisterReceiver(mReceiver); in onDetachedFromWindow()
DAdapterViewFlipper.java83 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in AdapterViewFlipper
113 getContext().registerReceiverAsUser(mReceiver, android.os.Process.myUserHandle(), in onAttachedToWindow()
128 getContext().unregisterReceiver(mReceiver); in onDetachedFromWindow()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DSourceActivity.java47 private AccessoryReceiver mReceiver; field in SourceActivity
77 mReceiver = new AccessoryReceiver(); in onCreate()
78 registerReceiver(mReceiver, filter); in onCreate()
101 unregisterReceiver(mReceiver); in onDestroy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DAirplaneModeTile.java120 mContext.registerReceiver(mReceiver, filter); in setListening()
122 mContext.unregisterReceiver(mReceiver); in setListening()
127 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in AirplaneModeTile
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java39 private final Receiver mReceiver = new Receiver(); field in HotspotControllerImpl
85 mReceiver.setListening(!mCallbacks.isEmpty()); in addCallback()
95 mReceiver.setListening(!mCallbacks.isEmpty()); in removeCallback()
/frameworks/base/media/java/android/media/tv/
DITvInputSessionWrapper.java79 private TvInputEventReceiver mReceiver; field in ITvInputSessionWrapper
88 mReceiver = new TvInputEventReceiver(channel, context.getMainLooper()); in ITvInputSessionWrapper()
116 if (mReceiver != null) { in executeMessage()
117 mReceiver.dispose(); in executeMessage()
118 mReceiver = null; in executeMessage()
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java120 registerReceiver(mReceiver, mFilter); in startRunning()
133 unregisterReceiver(mReceiver); in stopRunning()
164 BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BatteryWaster

1234