Home
last modified time | relevance | path

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

123

/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/android/app/admin/
DDeviceAdminInfo.java227 final ResolveInfo mReceiver; field in DeviceAdminInfo
248 mReceiver = receiver; in DeviceAdminInfo()
318 mReceiver = ResolveInfo.CREATOR.createFromParcel(source); in DeviceAdminInfo()
326 return mReceiver.activityInfo.packageName; in getPackageName()
334 return mReceiver.activityInfo.name; in getReceiverName()
342 return mReceiver.activityInfo; in getActivityInfo()
349 return new ComponentName(mReceiver.activityInfo.packageName, in getComponent()
350 mReceiver.activityInfo.name); in getComponent()
360 return mReceiver.loadLabel(pm); in loadLabel()
370 if (mReceiver.activityInfo.descriptionRes != 0) { in loadDescription()
[all …]
/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.java47 private final BroadcastReceiver mReceiver; field in BroadcastInterceptingContext.BroadcastInterceptor
51 mReceiver = receiver; in BroadcastInterceptor()
57 if (mReceiver != null) { in dispatchBroadcast()
59 mReceiver.onReceive(context, intent); in dispatchBroadcast()
116 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp61 DisplayEventReceiver mReceiver; member in android::NativeDisplayEventReceiver
84 status_t result = mReceiver.initCheck(); in initialize()
90 int rc = mMessageQueue->getLooper()->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, in initialize()
101 if (!mReceiver.initCheck()) { in dispose()
102 mMessageQueue->getLooper()->removeFd(mReceiver.getFd()); in dispose()
116 status_t status = mReceiver.requestNextVsync(); in scheduleVsync()
159 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { in processPendingEvents()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java68 private ScorerChangedReceiver mReceiver; field in NetworkScoreService
118 if (mReceiver != null) { in registerPackageReceiverIfNeeded()
120 Log.v(TAG, "Unregistering receiver for " + mReceiver.mRegisteredPackage); in registerPackageReceiverIfNeeded()
122 mContext.unregisterReceiver(mReceiver); in registerPackageReceiverIfNeeded()
123 mReceiver = null; in registerPackageReceiverIfNeeded()
135 mReceiver = new ScorerChangedReceiver(scorer.mPackageName); in registerPackageReceiverIfNeeded()
137 mContext.registerReceiverAsUser(mReceiver, UserHandle.OWNER, filter, null, null); in registerPackageReceiverIfNeeded()
DLocationManagerService.java1295 if (isCurrentProfile(UserHandle.getUserId(record.mReceiver.mUid))) { in updateProviderListenersLocked()
1297 if (!record.mReceiver.callProviderEnabledLocked(provider, enabled)) { in updateProviderListenersLocked()
1301 deadReceivers.add(record.mReceiver); in updateProviderListenersLocked()
1334 if (isCurrentProfile(UserHandle.getUserId(record.mReceiver.mUid))) { in applyRequirementsLocked()
1335 if (checkLocationAccess(record.mReceiver.mUid, record.mReceiver.mPackageName, in applyRequirementsLocked()
1336 record.mReceiver.mAllowedResolutionLevel)) { in applyRequirementsLocked()
1355 if (isCurrentProfile(UserHandle.getUserId(record.mReceiver.mUid))) { in applyRequirementsLocked()
1358 if (record.mReceiver.mWorkSource != null in applyRequirementsLocked()
1359 && record.mReceiver.mWorkSource.size() > 0 in applyRequirementsLocked()
1360 && record.mReceiver.mWorkSource.getName(0) != null) { in applyRequirementsLocked()
[all …]
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
DSampleTrustAgent.java71 mLocalBroadcastManager.registerReceiver(mReceiver, filter); in onCreate()
73 registerReceiver(mReceiver, filter); in onCreate()
131 mLocalBroadcastManager.unregisterReceiver(mReceiver); in onDestroy()
133 unregisterReceiver(mReceiver); in onDestroy()
139 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/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java62 if (mReceiver != null) { in tearDown()
63 mContext.unregisterReceiver(mReceiver); in tearDown()
64 mReceiver = null; in tearDown()
208 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadToExternal()
255 Set<Long> ids = mReceiver.getDownloadIds(); in testGetDownloadIdOnNotification()
378 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadNoWifi()
407 assertEquals(1, mReceiver.numDownloadsCompleted()); in testServerDropConnection_body()
DDownloadManagerStressTest.java61 if (mReceiver != null) { in tearDown()
62 mContext.unregisterReceiver(mReceiver); in tearDown()
63 mReceiver = null; in tearDown()
110 assertEquals(NUM_FILES, mReceiver.numDownloadsCompleted()); in testMultipleDownloads()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DUsageTracker.java50 mContext.registerReceiver(mReceiver, new IntentFilter(mResetAction)); in setListening()
53 mContext.unregisterReceiver(mReceiver); in setListening()
94 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in UsageTracker
/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/qs/tiles/
DAirplaneModeTile.java102 mContext.registerReceiver(mReceiver, filter); in setListening()
104 mContext.unregisterReceiver(mReceiver); in setListening()
109 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in AirplaneModeTile
DIntentTile.java48 mContext.registerReceiver(mReceiver, new IntentFilter(action)); in IntentTile()
54 mContext.unregisterReceiver(mReceiver); in handleDestroy()
138 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in IntentTile
/frameworks/base/media/java/android/media/tv/
DITvInputSessionWrapper.java65 private TvInputEventReceiver mReceiver; field in ITvInputSessionWrapper
73 mReceiver = new TvInputEventReceiver(channel, context.getMainLooper()); in ITvInputSessionWrapper()
88 if (mReceiver != null) { in executeMessage()
89 mReceiver.dispose(); in executeMessage()
90 mReceiver = null; in executeMessage()
/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/core/java/android/widget/
DViewFlipper.java70 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in ViewFlipper
100 getContext().registerReceiverAsUser(mReceiver, android.os.Process.myUserHandle(), in onAttachedToWindow()
114 getContext().unregisterReceiver(mReceiver); in onDetachedFromWindow()
DAdapterViewFlipper.java86 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in AdapterViewFlipper
116 getContext().registerReceiverAsUser(mReceiver, android.os.Process.myUserHandle(), in onAttachedToWindow()
131 getContext().unregisterReceiver(mReceiver); in onDetachedFromWindow()
DDateTimeView.java221 private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
285 context.registerReceiver(mReceiver, filter);
292 context.unregisterReceiver(mReceiver);
/frameworks/base/core/java/android/app/
DLoadedApk.java787 + " to " + (rd != null ? rd.mReceiver : null)); in performReceive()
813 final BroadcastReceiver mReceiver; field in LoadedApk.ReceiverDispatcher
836 final BroadcastReceiver receiver = mReceiver; in run()
842 + " seq=" + seq + " to " + mReceiver); in run()
854 "Finishing null broadcast to " + mReceiver); in run()
862 ClassLoader cl = mReceiver.getClass().getClassLoader(); in run()
870 "Finishing failed broadcast to " + mReceiver); in run()
874 !mInstrumentation.onException(mReceiver, e)) { in run()
878 + " in " + mReceiver, e); in run()
897 mReceiver = receiver; in ReceiverDispatcher()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java48 private final Receiver mReceiver = new Receiver(); field in HotspotControllerImpl
64 mReceiver.setListening(!mCallbacks.isEmpty()); in addCallback()
71 mReceiver.setListening(!mCallbacks.isEmpty()); in removeCallback()
/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
/frameworks/base/services/core/java/com/android/server/notification/
DCountdownConditionProvider.java53 private final Receiver mReceiver = new Receiver(); field in CountdownConditionProvider
71 mContext.registerReceiver(mReceiver, new IntentFilter(ACTION)); in onConnected()
80 mContext.unregisterReceiver(mReceiver); in onDestroy()
DNextAlarmTracker.java115 mContext.unregisterReceiver(mReceiver); in reset()
124 mContext.registerReceiverAsUser(mReceiver, new UserHandle(mCurrentUserId), filter, null, in reset()
132 mContext.unregisterReceiver(mReceiver); in destroy()
225 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in NextAlarmTracker

123