Home
last modified time | relevance | path

Searched refs:receivers (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/support/v4/java/android/support/v4/content/
DLocalBroadcastManager.java71 final ArrayList<ReceiverRecord> receivers; field in LocalBroadcastManager.BroadcastRecord
75 receivers = _receivers; in BroadcastRecord()
173 ArrayList<ReceiverRecord> receivers = mActions.get(action); in unregisterReceiver() local
174 if (receivers != null) { in unregisterReceiver()
175 for (int k=0; k<receivers.size(); k++) { in unregisterReceiver()
176 if (receivers.get(k).receiver == receiver) { in unregisterReceiver()
177 receivers.remove(k); in unregisterReceiver()
181 if (receivers.size() <= 0) { in unregisterReceiver()
219 ArrayList<ReceiverRecord> receivers = null; in sendBroadcast() local
236 if (receivers == null) { in sendBroadcast()
[all …]
/frameworks/base/docs/html/training/monitoring-device-state/
Dmanifest-receivers.jd32 your application manifest. Then within each of these receivers you simply reschedule your recurring
36 receivers is triggered&mdash;potentially much more frequently than required.</p>
38 <p>A better approach is to disable or enable the broadcast receivers at runtime. That way you can
39 use the receivers you declared in the manifest as passive alarms that are triggered by system events
46 component defined in the manifest, including whichever broadcast receivers you wish to enable or
58 your receivers except the connectivity-change receiver. Conversely, once you are connected you can
Dindex.jd57 <dt><b><a href="manifest-receivers.html">Manipulating Broadcast Receivers On Demand</a></b></dt>
58 <dd>Broadcast receivers that you've declared in the manifest can be toggled at runtime to disable
60 efficiency by toggling and cascading state change receivers and delay actions until the device is in
Dconnectivity-monitoring.jd10 next.link=manifest-receivers.html
90 <p>This technique requires toggling broadcast receivers you've declard in the manifest, which is
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastRecord.java53 final List receivers; // contains BroadcastFilter and ResolveInfo field in BroadcastRecord
161 final int N = receivers != null ? receivers.size() : 0; in dump()
165 Object o = receivers.get(i); in dump()
192 receivers = _receivers; in BroadcastRecord()
DBroadcastQueue.java379 if (r.nextReceiver < r.receivers.size()) { in finishReceiverLocked()
380 Object obj = r.receivers.get(r.nextReceiver); in finishReceiverLocked()
561 final int N = r.receivers.size(); in processNextBroadcast()
565 Object target = r.receivers.get(i); in processNextBroadcast()
631 int numReceivers = (r.receivers != null) ? r.receivers.size() : 0; in processNextBroadcast()
659 if (r.receivers == null || r.nextReceiver >= numReceivers in processNextBroadcast()
720 Object nextReceiver = r.receivers.get(recIdx); in processNextBroadcast()
1037 Object curReceiver = r.receivers.get(r.nextReceiver-1); in broadcastTimeoutLocked()
1089 Object curReceiver = r.receivers.get(r.nextReceiver-1); in logBroadcastReceiverDiscardLocked()
DProcessRecord.java149 final ArraySet<ReceiverList> receivers = new ArraySet<ReceiverList>(); field in ProcessRecord
382 if (receivers.size() > 0) { in dump()
384 for (int i=0; i<receivers.size(); i++) { in dump()
385 pw.print(prefix); pw.print(" - "); pw.println(receivers.valueAt(i)); in dump()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsApplication.java181 HashMap<String, SmsApplicationData> receivers = new HashMap<String, SmsApplicationData>(); in getApplicationCollectionInternal() local
193 if (!receivers.containsKey(packageName)) { in getApplicationCollectionInternal()
198 receivers.put(packageName, smsApplicationData); in getApplicationCollectionInternal()
216 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
236 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
253 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
266 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
269 receivers.remove(packageName); in getApplicationCollectionInternal()
273 return receivers.values(); in getApplicationCollectionInternal()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkScorerAppManagerTest.java95 List<ResolveInfo> receivers = new ArrayList<>(); in setScorers() local
97 receivers.add(scorer.first); in setScorers()
122 .thenReturn(receivers); in setScorers()
/frameworks/base/core/java/android/content/pm/
DPackageInfo.java120 public ActivityInfo[] receivers; field in PackageInfo
308 dest.writeTypedArray(receivers, parcelableFlags); in writeToParcel()
357 receivers = source.createTypedArray(ActivityInfo.CREATOR); in PackageInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java321 List<ResolveInfo> receivers = new ArrayList<ResolveInfo>(); in getCarrierPackageNamesForIntent() local
322 receivers.addAll(packageManager.queryBroadcastReceivers(intent, 0)); in getCarrierPackageNamesForIntent()
323 receivers.addAll(packageManager.queryIntentContentProviders(intent, 0)); in getCarrierPackageNamesForIntent()
324 receivers.addAll(packageManager.queryIntentActivities(intent, 0)); in getCarrierPackageNamesForIntent()
325 receivers.addAll(packageManager.queryIntentServices(intent, 0)); in getCarrierPackageNamesForIntent()
327 for (ResolveInfo resolveInfo : receivers) { in getCarrierPackageNamesForIntent()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java92 List<ResolveInfo> receivers = in getAllValidScorers() local
94 for (ResolveInfo receiver : receivers) { in getAllValidScorers()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java145 ArrayMap receivers = (ArrayMap) receiversField.get(loadedApk); in setWebViewProxy() local
146 for (Object receiverMap : receivers.values()) { in setWebViewProxy()
/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/
Dindex.jd47 <dt><b><a href="manifest-receivers.html">根据需要操作广播接收器</a></b></dt>
Dconnectivity-monitoring.jd10 next.link=manifest-receivers.html
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/
Dindex.jd47 <dt><b><a href="manifest-receivers.html">オンデマンドでのブロードキャスト レシーバ操作</a></b></dt>
Dconnectivity-monitoring.jd10 next.link=manifest-receivers.html
/frameworks/base/docs/html-intl/intl/ko/training/monitoring-device-state/
Dindex.jd47 <dt><b><a href="manifest-receivers.html">온디맨드로 브로드캐스트 수신기 조작</a></b></dt>
Dconnectivity-monitoring.jd10 next.link=manifest-receivers.html
/frameworks/base/docs/html-intl/intl/ru/training/monitoring-device-state/
Dindex.jd47 …<dt><b><a href="manifest-receivers.html">Операции с приемниками широковещательных намерений по зап…
Dconnectivity-monitoring.jd10 next.link=manifest-receivers.html
/frameworks/base/media/lib/signer/
DREADME.txt7 o This library is effectively a PUBLIC API for unbundled CAST receivers
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java90 public void setExpectedReceivers(String[] receivers) { in setExpectedReceivers() argument
91 mExpectedReceivers = receivers; in setExpectedReceivers()
/frameworks/base/docs/html/guide/topics/manifest/
Dreceiver-element.jd27 subclass) as one of the application's components. Broadcast receivers enable
37 for more on dynamically created receivers.
50 application components, including broadcast receivers. The
/frameworks/base/docs/html/training/run-background-service/
Dreport-status.jd21 The section <b>Broadcast receivers</b> in the
83 // Broadcasts the Intent to receivers in this app.

123