OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:broadcastReceiver
(Results
1 - 12
of
12
) sorted by null
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
SimpleLogger.java
19
import android.content.
BroadcastReceiver
;
64
public void registerReceiver(
BroadcastReceiver
broadcastReceiver
) {
65
broadcastManager.registerReceiver(
broadcastReceiver
, new IntentFilter(LOG_INTENT));
68
public void unregisterReceiver(
BroadcastReceiver
broadcastReceiver
) {
69
broadcastManager.unregisterReceiver(
broadcastReceiver
);
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
ShadowLocalBroadcastManager.java
3
import android.content.
BroadcastReceiver
;
36
protected void registerReceiver(
BroadcastReceiver
receiver, IntentFilter filter) {
41
protected void unregisterReceiver(
BroadcastReceiver
receiver) {
45
if (wrapper.
broadcastReceiver
== receiver) {
62
final
BroadcastReceiver
receiver = wrapper.
broadcastReceiver
;
85
public final
BroadcastReceiver
broadcastReceiver
;
88
public Wrapper(
BroadcastReceiver
broadcastReceiver
, IntentFilter intentFilter)
[
all
...]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
CreateAndManageUserTest.java
22
import android.content.
BroadcastReceiver
;
161
LocalBroadcastReceiver
broadcastReceiver
= new LocalBroadcastReceiver();
162
localBroadcastManager.registerReceiver(
broadcastReceiver
,
166
assertEquals(userHandle,
broadcastReceiver
.waitForBroadcastReceived());
168
localBroadcastManager.unregisterReceiver(
broadcastReceiver
);
186
LocalBroadcastReceiver
broadcastReceiver
= new LocalBroadcastReceiver();
187
localBroadcastManager.registerReceiver(
broadcastReceiver
,
191
assertEquals(userHandle,
broadcastReceiver
.waitForBroadcastReceived());
195
localBroadcastManager.unregisterReceiver(
broadcastReceiver
);
213
LocalBroadcastReceiver
broadcastReceiver
= new LocalBroadcastReceiver()
[
all
...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
TestUtils.java
21
import android.content.
BroadcastReceiver
;
60
BroadcastReceiver
broadcastReceiver
= new
BroadcastReceiver
() {
71
mContext.registerReceiver(
broadcastReceiver
, intentFilter);
79
mContext.unregisterReceiver(
broadcastReceiver
);
87
mContext.unregisterReceiver(
broadcastReceiver
);
92
mContext.unregisterReceiver(
broadcastReceiver
);
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowContextWrapperTest.java
15
import android.content.
BroadcastReceiver
;
58
BroadcastReceiver
receiver =
broadcastReceiver
("Larry");
74
BroadcastReceiver
larryReceiver =
broadcastReceiver
("Larry");
77
BroadcastReceiver
bobReceiver =
broadcastReceiver
("Bob");
93
BroadcastReceiver
receiver =
broadcastReceiver
("Larry");
121
BroadcastReceiver
receiver = broadcastReceiver("Larry")
[
all
...]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowApplication.java
8
import android.content.
BroadcastReceiver
;
137
public List<
BroadcastReceiver
> getReceiversForIntent(Intent intent) {
259
public
BroadcastReceiver
broadcastReceiver
;
267
BroadcastReceiver
broadcastReceiver
,
272
this.
broadcastReceiver
=
broadcastReceiver
;
280
public
BroadcastReceiver
getBroadcastReceiver() {
281
return
broadcastReceiver
;
[
all
...]
ShadowInstrumentation.java
20
import android.content.
BroadcastReceiver
;
205
BroadcastReceiver
resultReceiver,
225
"Unexpected
BroadcastReceiver
on "
230
+ registeredReceiver.
broadcastReceiver
265
final
BroadcastReceiver
receiver = wrapper.
broadcastReceiver
;
340
final
BroadcastReceiver
.PendingResult result =
346
wrapper.
broadcastReceiver
.setPendingResult(result);
350
Shadow.extract(wrapper.
broadcastReceiver
);
600
Intent registerReceiver(
BroadcastReceiver
receiver, IntentFilter filter, Context context)
[
all
...]
ShadowContextImpl.java
13
import android.content.
BroadcastReceiver
;
165
BroadcastReceiver
resultReceiver,
193
protected Intent registerReceiver(
BroadcastReceiver
receiver, IntentFilter filter) {
199
BroadcastReceiver
receiver,
209
BroadcastReceiver
receiver,
220
protected void unregisterReceiver(
BroadcastReceiver
broadcastReceiver
) {
221
getShadowInstrumentation().unregisterReceiver(
broadcastReceiver
);
/cts/tests/tests/content/src/android/content/cts/
ContextTest.java
20
import android.content.
BroadcastReceiver
;
107
private ArrayList<
BroadcastReceiver
> mRegisteredReceiverList;
131
mRegisteredReceiverList = new ArrayList<
BroadcastReceiver
>();
142
for (
BroadcastReceiver
receiver : mRegisteredReceiverList) {
500
private void registerBroadcastReceiver(
BroadcastReceiver
receiver, IntentFilter filter) {
543
final TestBroadcastReceiver
broadcastReceiver
= new TestBroadcastReceiver();
544
broadcastReceiver
.mIsOrderedBroadcasts = true;
551
mContext.sendOrderedBroadcast(intent, null,
broadcastReceiver
, null, 1,
562
assertTrue("Receiver didn't make any response.",
broadcastReceiver
.hadReceivedBroadCast());
563
assertEquals("Incorrect code: " +
broadcastReceiver
.getResultCode(), 3
[
all
...]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
MockContext.java
279
public void sendOrderedBroadcast(Intent intent, String s,
BroadcastReceiver
broadcastReceiver
, Handler handler, int i, String s1, Bundle bundle) {
289
public void sendStickyOrderedBroadcast(Intent intent,
BroadcastReceiver
broadcastReceiver
, Handler handler, int i, String s, Bundle bundle) {
299
public Intent registerReceiver(
BroadcastReceiver
broadcastReceiver
, IntentFilter intentFilter) {
304
public Intent registerReceiver(
BroadcastReceiver
broadcastReceiver
, IntentFilter intentFilter, String s, Handler handler) {
309
public void unregisterReceiver(
BroadcastReceiver
broadcastReceiver
) {
[
all
...]
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
ShadowLocalBroadcastManagerTest.java
10
import android.content.
BroadcastReceiver
;
39
final
BroadcastReceiver
receiver = new
BroadcastReceiver
() {
57
final
BroadcastReceiver
receiver = new
BroadcastReceiver
() {
77
final
BroadcastReceiver
receiver = new
BroadcastReceiver
() {
92
broadcastManager.registerReceiver(new
BroadcastReceiver
() {
112
BroadcastReceiver
receiver = new
BroadcastReceiver
() {
[
all
...]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
ActivityManagerTestBase.java
[
all
...]
Completed in 1378 milliseconds