Home
last modified time | relevance | path

Searched refs:receiver (Results 1 – 25 of 41) sorted by relevance

12

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DNewOutgoingCallIntentBroadcasterTest.java60 public BroadcastReceiver receiver; field in NewOutgoingCallIntentBroadcasterTest.ReceiverIntentPair
63 public ReceiverIntentPair(BroadcastReceiver receiver, Intent intent) { in ReceiverIntentPair() argument
64 this.receiver = receiver; in ReceiverIntentPair()
136 result.receiver.setResultData( in testAlreadyDisconnectedCall()
139 result.receiver.onReceive(mContext, result.intent); in testAlreadyDisconnectedCall()
248 BroadcastReceiver receiver = verifyBroadcastSent(handle.getSchemeSpecificPart(), in emergencyCallTestHelper() local
249 expectedExtras).receiver; in emergencyCallTestHelper()
250 assertNull(receiver); in emergencyCallTestHelper()
259 result.receiver.setResultData( in testUnmodifiedRegularCall()
262 result.receiver.onReceive(mContext, result.intent); in testUnmodifiedRegularCall()
[all …]
DSystemStateProviderTest.java99 ArgumentCaptor<BroadcastReceiver> receiver = in testOnEnterExitCarMode() local
103 verify(mContext).registerReceiver(receiver.capture(), any(IntentFilter.class)); in testOnEnterExitCarMode()
106 receiver.getValue().onReceive(mContext, mIntentEnter); in testOnEnterExitCarMode()
110 receiver.getValue().onReceive(mContext, mIntentExit); in testOnEnterExitCarMode()
113 receiver.getValue().onReceive(mContext, new Intent("invalid action")); in testOnEnterExitCarMode()
DComponentContextFixture.java250 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
256 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DCompatUtils.java93 public static Object invoke(final Object receiver, final Object defaultValue, in invoke() argument
99 return method.invoke(receiver, args); in invoke()
107 public static Object getFieldValue(final Object receiver, final Object defaultValue, in getFieldValue() argument
113 return field.get(receiver); in getFieldValue()
120 public static void setFieldValue(final Object receiver, final Field field, final Object value) { in setFieldValue() argument
125 field.set(receiver, value); in setFieldValue()
178 public T invoke(final Object receiver, final Object... args) { in invoke() argument
179 return (T) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke()
190 public int invoke(final Object receiver, final Object... args) { in invoke() argument
191 return (int) CompatUtils.invoke(receiver, mDefaultValue, mMethod, args); in invoke()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java63 final BroadcastReceiver receiver = new BroadcastReceiver() { in RegisteredComponentCache() local
69 mReceiver = new AtomicReference<BroadcastReceiver>(receiver); in RegisteredComponentCache()
75 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, intentFilter, null, null); in RegisteredComponentCache()
80 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, sdFilter, null, null); in RegisteredComponentCache()
84 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, userFilter, null, null); in RegisteredComponentCache()
125 final BroadcastReceiver receiver = mReceiver.getAndSet(null); in close() local
126 if (receiver != null) { in close()
127 mContext.unregisterReceiver(receiver); in close()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DPermissionsUtil.java94 public static void registerPermissionReceiver(Context context, BroadcastReceiver receiver, in registerPermissionReceiver() argument
97 LocalBroadcastManager.getInstance(context).registerReceiver(receiver, filter); in registerPermissionReceiver()
100 public static void unregisterPermissionReceiver(Context context, BroadcastReceiver receiver) { in unregisterPermissionReceiver() argument
101 LocalBroadcastManager.getInstance(context).unregisterReceiver(receiver); in unregisterPermissionReceiver()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionsProviderImpl.java66 Consumer<SourceResult> receiver; in getSuggestions() local
68 receiver = new SuggestionCursorReceiver(suggestions); in getSuggestions()
70 receiver = new NoOpConsumer<SourceResult>(); in getSuggestions()
76 mPublishThread, receiver); in getSuggestions()
/packages/apps/Settings/src/com/android/settings/dashboard/
DSummaryLoader.java156 public void registerReceiver(final BroadcastReceiver receiver, final IntentFilter filter) { in registerReceiver() argument
163 mReceivers.add(receiver); in registerReceiver()
164 mActivity.registerReceiver(receiver, filter); in registerReceiver()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java545 DownloadReceiver receiver = new DownloadReceiver(); in testNotificationClickedBroadcast() local
551 receiver.onReceive(mContext, intent); in testNotificationClickedBroadcast()
562 DownloadReceiver receiver = new DownloadReceiver(); in testNotificationCancelDownloadClicked() local
570 receiver.onReceive(mContext, intent); in testNotificationCancelDownloadClicked()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java120 final BroadcastReceiver receiver = new BroadcastReceiver() { in RegisteredServicesCache() local
143 mReceiver = new AtomicReference<BroadcastReceiver>(receiver); in RegisteredServicesCache()
DRegisteredNfcFServicesCache.java126 final BroadcastReceiver receiver = new BroadcastReceiver() { in RegisteredNfcFServicesCache() local
150 mReceiver = new AtomicReference<BroadcastReceiver>(receiver); in RegisteredNfcFServicesCache()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsDeliverReceiver.java17 package com.android.messaging.receiver;
DDefaultSmsSubscriptionChangeReceiver.java16 package com.android.messaging.receiver;
DStorageStatusReceiver.java17 package com.android.messaging.receiver;
DAbortSmsReceiver.java17 package com.android.messaging.receiver;
DAbortMmsWapPushReceiver.java17 package com.android.messaging.receiver;
DMmsWapPushDeliverReceiver.java17 package com.android.messaging.receiver;
DBootAndPackageReplacedReceiver.java17 package com.android.messaging.receiver;
DMmsWapPushReceiver.java17 package com.android.messaging.receiver;
DNotificationReceiver.java16 package com.android.messaging.receiver;
DSendStatusReceiver.java17 package com.android.messaging.receiver;
/packages/apps/TV/src/com/android/tv/receiver/
DPackageIntentsReceiver.java17 package com.android.tv.receiver;
DGlobalKeyReceiver.java17 package com.android.tv.receiver;
DBootCompletedReceiver.java17 package com.android.tv.receiver;
DAudioCapabilitiesReceiver.java16 package com.android.tv.receiver;

12