Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/os/
DResultReceiver.java31 IResultReceiver mReceiver; field in ResultReceiver
84 if (mReceiver != null) { in send()
86 mReceiver.send(resultCode, resultData); in send()
108 if (mReceiver == null) { in writeToParcel()
109 mReceiver = new MyResultReceiver(); in writeToParcel()
111 out.writeStrongBinder(mReceiver.asBinder()); in writeToParcel()
118 mReceiver = IResultReceiver.Stub.asInterface(in.readStrongBinder()); in ResultReceiver()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminInfo.java199 final ResolveInfo mReceiver; field in DeviceAdminInfo
220 mReceiver = receiver; in DeviceAdminInfo()
290 mReceiver = ResolveInfo.CREATOR.createFromParcel(source); in DeviceAdminInfo()
298 return mReceiver.activityInfo.packageName; in getPackageName()
306 return mReceiver.activityInfo.name; in getReceiverName()
314 return mReceiver.activityInfo; in getActivityInfo()
321 return new ComponentName(mReceiver.activityInfo.packageName, in getComponent()
322 mReceiver.activityInfo.name); in getComponent()
332 return mReceiver.loadLabel(pm); in loadLabel()
342 if (mReceiver.activityInfo.descriptionRes != 0) { in loadDescription()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java46 private final BroadcastReceiver mReceiver; field in BroadcastInterceptingContext.BroadcastInterceptor
50 mReceiver = receiver; in BroadcastInterceptor()
56 if (mReceiver != null) { in dispatchBroadcast()
58 mReceiver.onReceive(context, intent); in dispatchBroadcast()
115 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
/frameworks/ex/common/java/com/android/common/
DNetworkConnectivityListener.java60 private ConnectivityBroadcastReceiver mReceiver; field in NetworkConnectivityListener
129 mReceiver = new ConnectivityBroadcastReceiver(); in NetworkConnectivityListener()
142 context.registerReceiver(mReceiver, filter); in startListening()
152 mContext.unregisterReceiver(mReceiver); in stopListening()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java63 if (mReceiver != null) { in tearDown()
64 mContext.unregisterReceiver(mReceiver); in tearDown()
65 mReceiver = null; in tearDown()
211 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadToExternal()
258 Set<Long> ids = mReceiver.getDownloadIds(); in testGetDownloadIdOnNotification()
379 assertEquals(1, mReceiver.numDownloadsCompleted()); in testDownloadNoWifi()
424 assertEquals(1, mReceiver.numDownloadsCompleted()); in testServerDropConnection_body()
DDownloadManagerStressTest.java62 if (mReceiver != null) { in tearDown()
63 mContext.unregisterReceiver(mReceiver); in tearDown()
64 mReceiver = null; in tearDown()
111 assertEquals(NUM_FILES, mReceiver.numDownloadsCompleted()); in testMultipleDownloads()
DDownloadManagerBaseTest.java65 protected MultipleDownloadsCompletedReceiver mReceiver = null; field in DownloadManagerBaseTest
240 mReceiver = registerNewMultipleDownloadsReceiver(); in setUp()
846 int count = mReceiver.numDownloadsCompleted(); in waitForReceiverNotifications()
854 count = mReceiver.numDownloadsCompleted(); in waitForReceiverNotifications()
1035 assertEquals(1, mReceiver.numDownloadsCompleted()); in doBasicDownload()
/frameworks/base/core/java/android/widget/
DViewFlipper.java69 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in ViewFlipper
91 getContext().registerReceiver(mReceiver, filter); in onAttachedToWindow()
104 getContext().unregisterReceiver(mReceiver); in onDetachedFromWindow()
DAdapterViewFlipper.java77 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in AdapterViewFlipper
99 getContext().registerReceiver(mReceiver, filter); in onAttachedToWindow()
112 getContext().unregisterReceiver(mReceiver); in onDetachedFromWindow()
/frameworks/base/core/java/android/app/
DLoadedApk.java650 + " to " + (rd != null ? rd.mReceiver : null)); in performReceive()
676 final BroadcastReceiver mReceiver; field in LoadedApk.ReceiverDispatcher
699 final BroadcastReceiver receiver = mReceiver; in run()
705 + " seq=" + seq + " to " + mReceiver); in run()
717 "Finishing null broadcast to " + mReceiver); in run()
724 ClassLoader cl = mReceiver.getClass().getClassLoader(); in run()
732 "Finishing failed broadcast to " + mReceiver); in run()
736 !mInstrumentation.onException(mReceiver, e)) { in run()
739 + " in " + mReceiver, e); in run()
757 mReceiver = receiver; in ReceiverDispatcher()
[all …]
/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/core/java/android/content/pm/
DRegisteredServicesCache.java72 private final AtomicReference<BroadcastReceiver> mReceiver; field in RegisteredServicesCache
113 mReceiver = new AtomicReference<BroadcastReceiver>(receiver); in RegisteredServicesCache()
223 final BroadcastReceiver receiver = mReceiver.getAndSet(null); in close()
231 if (mReceiver.get() != null) { in finalize()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/
DDownloadManagerBaseTest.java70 protected MultipleDownloadsCompletedReceiver mReceiver = null; field in DownloadManagerBaseTest
245 mReceiver = registerNewMultipleDownloadsReceiver(); in setUp()
678 int count = mReceiver.numDownloadsCompleted(); in waitForReceiverNotifications()
686 count = mReceiver.numDownloadsCompleted(); in waitForReceiverNotifications()
/frameworks/base/media/libmedia/
DVisualizer.cpp300 : Thread(bCanCallJava), mReceiver(receiver) in CaptureThread()
312 mReceiver.periodicCapture(); in threadLoop()
/frameworks/base/include/media/
DVisualizer.h137 Visualizer& mReceiver; variable
DAudioRecord.h345 AudioRecord& mReceiver; variable
DAudioTrack.h434 AudioTrack& mReceiver; variable
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java179 getContext().registerReceiver(mReceiver, filter, permission, null); in registerMyReceiver()
191 getContext().unregisterReceiver(mReceiver); in unregisterMyReceiverNoCheck()
224 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BroadcastTest
DLaunchpadActivity.java469 registerReceiver(mReceiver, filter); in registerMyReceiver()
476 unregisterReceiver(mReceiver); in unregisterMyReceiver()
581 private BroadcastReceiver mReceiver = new BroadcastReceiver() { field in LaunchpadActivity
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java101 private WallpaperObserver mReceiver; field in ImageWallpaper.DrawableEngine
178 if (mReceiver != null) { in onDestroy()
179 unregisterReceiver(mReceiver); in onDestroy()
/frameworks/base/services/java/com/android/server/
DLocationManagerService.java928 if (!record.mReceiver.callProviderEnabledLocked(provider, enabled)) { in updateProviderListenersLocked()
932 deadReceivers.add(record.mReceiver); in updateProviderListenersLocked()
981 final Receiver mReceiver; field in LocationManagerService.UpdateRecord
995 mReceiver = receiver; in UpdateRecord()
1031 pw.println(prefix + "mProvider=" + mProvider + " mReceiver=" + mReceiver); in dump()
1076 if (record.mUid == uid && record.mReceiver != excludedReceiver) { in providerHasListener()
1796 Receiver receiver = r.mReceiver; in handleLocationChangedLocked()
1915 if (ur.mReceiver.isPendingIntent() && ur.mUid == uid) {
1923 if (!removedRecs.contains(ur.mReceiver)) {
1924 removedRecs.add(ur.mReceiver);
DDropBoxManagerService.java97 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in DropBoxManagerService
141 context.registerReceiver(mReceiver, filter); in DropBoxManagerService()
147 mReceiver.onReceive(context, (Intent) null); in DropBoxManagerService()
157 mContext.unregisterReceiver(mReceiver); in stop()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java87 private final BroadcastReceiver mReceiver = new ScoBroadcastReceiver(); field in ScoAudioTest
107 registerReceiver(mReceiver, intentFilter); in onCreate()
170 unregisterReceiver(mReceiver); in onDestroy()
/frameworks/base/core/java/android/server/
DBluetoothBondState.java92 mContext.registerReceiver(mReceiver, filter); in BluetoothBondState()
484 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in BluetoothBondState
/frameworks/base/core/java/android/webkit/
DWebTextView.java158 private MyResultReceiver mReceiver; field in WebTextView
209 mReceiver = new MyResultReceiver(mHandler); in WebTextView()
387 /* package */ ResultReceiver getResultReceiver() { return mReceiver; } in getResultReceiver()

12