Home
last modified time | relevance | path

Searched refs:BroadcastReceiver (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java21 import android.content.BroadcastReceiver;
50 public static void sendNetworkStateChanged(BroadcastReceiver broadcastReceiver, in sendNetworkStateChanged()
62 public static void sendScanResultsAvailable(BroadcastReceiver broadcastReceiver, in sendScanResultsAvailable()
71 public static void sendWifiScanAvailable(BroadcastReceiver broadcastReceiver, in sendWifiScanAvailable()
81 public static void sendWifiStateChanged(BroadcastReceiver broadcastReceiver, in sendWifiStateChanged()
91 public static void sendTetherStateChanged(BroadcastReceiver broadcastReceiver, in sendTetherStateChanged()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java21 import android.content.BroadcastReceiver;
225 private BroadcastReceiver mReceiver = new BroadcastReceiver() {
260 private class TestBroadcastReceiver extends BroadcastReceiver {
385 BroadcastReceiver finish = new BroadcastReceiver() { in testRegisteredReceivePermissionDenied()
412 BroadcastReceiver finish = new BroadcastReceiver() { in testRegisteredBroadcastPermissionDenied()
434 BroadcastReceiver finish = new BroadcastReceiver() { in testLocalReceivePermissionDenied()
458 BroadcastReceiver finish = new BroadcastReceiver() { in testLocalBroadcastPermissionDenied()
480 BroadcastReceiver finish = new BroadcastReceiver() { in testRemoteReceivePermissionDenied()
504 BroadcastReceiver finish = new BroadcastReceiver() { in testRemoteBroadcastPermissionDenied()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java19 import android.content.BroadcastReceiver;
48 private final BroadcastReceiver mReceiver;
51 public BroadcastInterceptor(BroadcastReceiver receiver, IntentFilter filter) { in BroadcastInterceptor()
98 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
106 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
112 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver()
/frameworks/base/docs/html/training/run-background-service/
Dreport-status.jd96 {@link android.content.BroadcastReceiver}. In the subclass, implement the
97 {@link android.content.BroadcastReceiver#onReceive BroadcastReceiver.onReceive()} callback
101 {@link android.content.BroadcastReceiver#onReceive BroadcastReceiver.onReceive()}.
108 private class ResponseReceiver extends BroadcastReceiver
113 // Called when the BroadcastReceiver gets an Intent it's registered to receive
125 Once you've defined the {@link android.content.BroadcastReceiver}, you can define filters
146 To register the {@link android.content.BroadcastReceiver} and the
150 method. This next snippet shows how to register the {@link android.content.BroadcastReceiver}
164 A single {@link android.content.BroadcastReceiver} can handle more than one type of broadcast
167 {@link android.content.BroadcastReceiver} for each action. To define another
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java25 import android.content.BroadcastReceiver;
373BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast()
382 …Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initi… in sendOrderedBroadcast()
390BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendOrderedBroadcast()
415 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser()
423 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser()
431 String receiverPermission, int appOp, Bundle options, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser()
443BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, in sendStickyOrderedBroadcast()
466 UserHandle user, BroadcastReceiver resultReceiver, in sendStickyOrderedBroadcastAsUser()
478 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
[all …]
/frameworks/support/v4/java/android/support/v4/content/
DLocalBroadcastManager.java23 import android.content.BroadcastReceiver;
49 final BroadcastReceiver receiver;
52 ReceiverRecord(IntentFilter _filter, BroadcastReceiver _receiver) { in ReceiverRecord()
84 private final HashMap<BroadcastReceiver, ArrayList<IntentFilter>> mReceivers
85 = new HashMap<BroadcastReceiver, ArrayList<IntentFilter>>();
133 public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
163 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java30 import android.content.BroadcastReceiver;
258 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver()
262 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
267 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
273 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, in registerReceiverAsUser()
292 for (BroadcastReceiver broadcastReceiver : in sendBroadcast()
324 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser()
337 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser()
351 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcastAsUser()
431 private final Multimap<String, BroadcastReceiver> mBroadcastReceiversByAction =
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java24 import android.content.BroadcastReceiver;
477 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast()
485 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast()
494 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendOrderedBroadcast()
526 String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, in sendOrderedBroadcastAsUser()
534 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser()
543 String receiverPermission, int appOp, Bundle options, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser()
555 public void sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver resultReceiver, in sendStickyOrderedBroadcast()
573 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, in sendStickyOrderedBroadcastAsUser()
585 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
[all …]
/frameworks/base/docs/html/training/testing/integration-testing/
Dindex.jd32 {@link android.content.BroadcastReceiver}. To verify that a
33 {@link android.content.BroadcastReceiver} responds correctly, you can test the component that sends
35 {@link android.content.BroadcastReceiver} by calling
38 {@link android.content.BroadcastReceiver} method that you want to test (usually, this is
40 {@link android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
/frameworks/base/docs/html-intl/intl/ru/training/monitoring-device-state/
Dbattery-monitoring.jd41BroadcastReceiver} не нужно. Чтобы получить текущее состояние батареи в виде намерения, нужно вызв…
65 …лений. Чтобы отслеживать их, зарегистрируйте {@link android.content.BroadcastReceiver} в манифесте…
74 <p>Соответствующая реализация {@link android.content.BroadcastReceiver} позволяет извлечь данные о …
76 <pre>public class PowerConnectionReceiver extends BroadcastReceiver {
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/
Dbattery-monitoring.jd41BroadcastReceiver} を登録する必要はありません。{@code registerReceiver} を呼び出し、{@code null} をレシーバとして渡すだけで(次のコード例を…
65 …ウンド更新を開始するためにアプリを起動させる頻度に影響するものである場合です。したがって、{@link android.content.BroadcastReceiver} をアプリのマニフェスト…
74 <p>関連付けられている {@link android.content.BroadcastReceiver} 実装の中で、前のステップで説明したように、現在の充電状態と充電方法を抽出します。</p>
76 <pre>public class PowerConnectionReceiver extends BroadcastReceiver {
/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/
Dbattery-monitoring.jd41 …段所示)来注册 {@link android.content.BroadcastReceiver},系统会返回当前电池状态 intent。您可以在此处传入实际的 {@link android.co…
65 …ent.Intent#ACTION_POWER_DISCONNECTED},在清单中注册 {@link android.content.BroadcastReceiver} 来侦听这两个事件。</…
74 <p>在实施相关的 {@link android.content.BroadcastReceiver} 时,您可以按上一步骤所述提取当前的充电状态和充电方式。</p>
76 <pre>public class PowerConnectionReceiver extends BroadcastReceiver {
/frameworks/base/docs/html-intl/intl/ko/training/monitoring-device-state/
Dbattery-monitoring.jd41BroadcastReceiver}를 등록할 필요가 없으며 아래 코드 상의 리시버와 같이 간단히 {@code registerReceiver}을(를) 호출하여 {@code null…
65 … 이벤트가 영향을 주기 때문입니다. 따라서 두 이벤트를 수신하려면 매니페스트에서 {@link android.content.BroadcastReceiver}를 등록하여 인텐트 필…
74 <p>다음의 {@link android.content.BroadcastReceiver} 구현에서 이전 단계에서 설명한 대로 현재 충전 상태와 방법을 알아낼 수 있습니다.</p>
76 <pre>public class PowerConnectionReceiver extends BroadcastReceiver {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTesterDeactivateAll.java19 import android.content.BroadcastReceiver;
47 protected BroadcastReceiver sIntentReceiver = new BroadcastReceiver() {
DDcTesterFailBringUpAll.java19 import android.content.BroadcastReceiver;
53 private BroadcastReceiver mIntentReceiver = new BroadcastReceiver() {
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DActionSendMultipleConsumerActivity.java24 import android.content.BroadcastReceiver;
93 BroadcastReceiver receiver = new BroadcastReceiver() { in CustomActionSendMultipleListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserInfoController.java20 import android.content.BroadcastReceiver;
78 private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
88 private final BroadcastReceiver mProfileReceiver = new BroadcastReceiver() {
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DReceiver.java19 import android.content.BroadcastReceiver;
26 public class Receiver extends BroadcastReceiver {
/frameworks/base/packages/InputDevices/src/com/android/inputdevices/
DInputDeviceReceiver.java19 import android.content.BroadcastReceiver;
23 public class InputDeviceReceiver extends BroadcastReceiver {
/frameworks/base/core/tests/coretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/
DDisabledReceiver.java19 import android.content.BroadcastReceiver;
27 public class DisabledReceiver extends BroadcastReceiver {
DEnabledReceiver.java19 import android.content.BroadcastReceiver;
27 public class EnabledReceiver extends BroadcastReceiver {
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportReceiver.java27 import android.content.BroadcastReceiver;
39 public class BugreportReceiver extends BroadcastReceiver {
65 static void cleanupOldFiles(BroadcastReceiver br, Intent intent, String expectedAction, in cleanupOldFiles()
/frameworks/base/tests/SharedLibrary/client/src/com/google/android/test/lib_client/
DDependentAppwidgetProvider.java19 import android.content.BroadcastReceiver;
23 public class DependentAppwidgetProvider extends BroadcastReceiver {
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DBootReceiver.java19 import android.content.BroadcastReceiver;
26 public class BootReceiver extends BroadcastReceiver {
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DStartEmpty.java19 import android.content.BroadcastReceiver;
24 public class StartEmpty extends BroadcastReceiver {

12345678910>>...19