Home
last modified time | relevance | path

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

1234

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DNewOutgoingCallIntentBroadcasterTest.java74 public BroadcastReceiver receiver; field in NewOutgoingCallIntentBroadcasterTest.ReceiverIntentPair
77 public ReceiverIntentPair(BroadcastReceiver receiver, Intent intent) { in ReceiverIntentPair() argument
78 this.receiver = receiver; in ReceiverIntentPair()
169 result.receiver.setResultData( in testAlreadyDisconnectedCall()
172 result.receiver.onReceive(mContext, result.intent); in testAlreadyDisconnectedCall()
289 BroadcastReceiver receiver = verifyBroadcastSent(handle.getSchemeSpecificPart(), in emergencyCallTestHelper() local
290 expectedExtras).receiver; in emergencyCallTestHelper()
291 assertNull(receiver); in emergencyCallTestHelper()
301 result.receiver.setResultData( in testUnmodifiedRegularCall()
304 result.receiver.onReceive(mContext, result.intent); in testUnmodifiedRegularCall()
[all …]
DSystemStateHelperTest.java142 ArgumentCaptor<BroadcastReceiver> receiver = in testOnEnterExitCarMode() local
146 verify(mContext).registerReceiver(receiver.capture(), any(IntentFilter.class)); in testOnEnterExitCarMode()
149 receiver.getValue().onReceive(mContext, mIntentEnter); in testOnEnterExitCarMode()
153 receiver.getValue().onReceive(mContext, mIntentExit); in testOnEnterExitCarMode()
156 receiver.getValue().onReceive(mContext, new Intent("invalid action")); in testOnEnterExitCarMode()
/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/WallpaperPicker2/src/com/android/wallpaper/asset/
DBuiltInWallpaperAsset.java70 BitmapReceiver receiver) { in decodeBitmapRegion() argument
71 DecodeBitmapRegionAsyncTask task = new DecodeBitmapRegionAsyncTask(rect, receiver); in decodeBitmapRegion()
76 public void decodeRawDimensions(Activity unused, DimensionsReceiver receiver) { in decodeRawDimensions() argument
77 DecodeDimensionsAsyncTask task = new DecodeDimensionsAsyncTask(receiver); in decodeRawDimensions()
83 BitmapReceiver receiver) { in decodeBitmap() argument
84 DecodeBitmapAsyncTask task = new DecodeBitmapAsyncTask(targetWidth, targetHeight, receiver); in decodeBitmap()
135 public DecodeBitmapAsyncTask(int width, int height, BitmapReceiver receiver) { in DecodeBitmapAsyncTask() argument
138 mReceiver = receiver; in DecodeBitmapAsyncTask()
173 public DecodeBitmapRegionAsyncTask(Rect rect, BitmapReceiver receiver) { in DecodeBitmapRegionAsyncTask() argument
175 mReceiver = receiver; in DecodeBitmapRegionAsyncTask()
[all …]
DStreamableAsset.java77 BitmapReceiver receiver) { in decodeBitmap() argument
78 DecodeBitmapAsyncTask task = new DecodeBitmapAsyncTask(targetWidth, targetHeight, receiver); in decodeBitmap()
83 public void decodeRawDimensions(Activity unused, DimensionsReceiver receiver) { in decodeRawDimensions() argument
84 DecodeDimensionsAsyncTask task = new DecodeDimensionsAsyncTask(receiver); in decodeRawDimensions()
90 BitmapReceiver receiver) { in decodeBitmapRegion() argument
91 runDecodeBitmapRegionTask(rect, targetWidth, targetHeight, receiver); in decodeBitmapRegion()
144 BitmapReceiver receiver) { in runDecodeBitmapRegionTask() argument
146 new DecodeBitmapRegionAsyncTask(rect, targetWidth, targetHeight, receiver); in runDecodeBitmapRegionTask()
246 public DecodeBitmapAsyncTask(int targetWidth, int targetHeight, BitmapReceiver receiver) { in DecodeBitmapAsyncTask() argument
247 mReceiver = receiver; in DecodeBitmapAsyncTask()
[all …]
DCurrentWallpaperAssetV16.java43 BitmapReceiver receiver) { in decodeBitmapRegion() argument
44 receiver.onBitmapDecoded(null); in decodeBitmapRegion()
49 BitmapReceiver receiver) { in decodeBitmap() argument
50 DecodeBitmapAsyncTask task = new DecodeBitmapAsyncTask(receiver, targetWidth, targetHeight); in decodeBitmap()
60 public void decodeRawDimensions(Activity unused, DimensionsReceiver receiver) { in decodeRawDimensions() argument
61 DecodeDimensionsAsyncTask task = new DecodeDimensionsAsyncTask(receiver); in decodeRawDimensions()
87 public DecodeBitmapAsyncTask(BitmapReceiver receiver, int width, int height) { in DecodeBitmapAsyncTask() argument
88 mReceiver = receiver; in DecodeBitmapAsyncTask()
124 public DecodeDimensionsAsyncTask(DimensionsReceiver receiver) { in DecodeDimensionsAsyncTask() argument
125 mReceiver = receiver; in DecodeDimensionsAsyncTask()
DBitmapCachingAsset.java82 public void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver) { in decodeBitmap() argument
85 mOriginalAsset.decodeBitmap(targetWidth, targetHeight, receiver::onBitmapDecoded); in decodeBitmap()
91 receiver.onBitmapDecoded(cached); in decodeBitmap()
97 receiver.onBitmapDecoded(bitmap); in decodeBitmap()
104 BitmapReceiver receiver) { in decodeBitmapRegion() argument
105 mOriginalAsset.decodeBitmapRegion(rect, targetWidth, targetHeight, receiver); in decodeBitmapRegion()
109 public void decodeRawDimensions(@Nullable Activity activity, DimensionsReceiver receiver) { in decodeRawDimensions() argument
110 mOriginalAsset.decodeRawDimensions(activity, receiver); in decodeRawDimensions()
DLiveWallpaperThumbAsset.java49 BitmapReceiver receiver) { in decodeBitmap() argument
51 LoadThumbnailTask task = new LoadThumbnailTask(mInfo, receiver); in decodeBitmap()
57 BitmapReceiver receiver) { in decodeBitmapRegion() argument
58 receiver.onBitmapDecoded(null); in decodeBitmapRegion()
62 public void decodeRawDimensions(Activity unused, DimensionsReceiver receiver) { in decodeRawDimensions() argument
63 receiver.onDimensionsDecoded(null); in decodeRawDimensions()
154 public LoadThumbnailTask(android.app.WallpaperInfo info, BitmapReceiver receiver) { in LoadThumbnailTask() argument
156 mReceiver = receiver; in LoadThumbnailTask()
DContentUriAsset.java114 final BitmapReceiver receiver) { in decodeBitmapRegion() argument
119 super.decodeBitmapRegion(rect, targetWidth, targetHeight, receiver); in decodeBitmapRegion()
129 receiver.onBitmapDecoded(null); in decodeBitmapRegion()
139 receiver.onBitmapDecoded(null); in decodeBitmapRegion()
143 BitmapCropTask task = new BitmapCropTask(fullBitmap, rect, receiver); in decodeBitmapRegion()
294 public BitmapCropTask(Bitmap fromBitmap, Rect cropRect, BitmapReceiver receiver) { in BitmapCropTask() argument
297 mReceiver = receiver; in BitmapCropTask()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DDpcReceivedSuccessReceiverTest.java71 final DpcReceivedSuccessReceiver receiver = new DpcReceivedSuccessReceiver( in testNoAccountMigration() local
77 receiver.onReceive(mContext, TEST_INTENT); in testNoAccountMigration()
97 final DpcReceivedSuccessReceiver receiver = new DpcReceivedSuccessReceiver(TEST_ACCOUNT, in testAccountMigration() local
102 invokeOnReceiveAndVerifyIntent(receiver, /* postOnReceive */ aVoid -> { in testAccountMigration()
116 final DpcReceivedSuccessReceiver receiver = new DpcReceivedSuccessReceiver(TEST_ACCOUNT, in testAccountCopy() local
121 invokeOnReceiveAndVerifyIntent(receiver, /* postOnReceive */ aVoid -> { in testAccountCopy()
128 private void invokeOnReceiveAndVerifyIntent(final DpcReceivedSuccessReceiver receiver, in invokeOnReceiveAndVerifyIntent() argument
138 receiver.onReceive(mContext, TEST_INTENT); in invokeOnReceiveAndVerifyIntent()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultCategoryProvider.java66 public void fetchCategories(CategoryReceiver receiver, boolean forceRefresh) { in fetchCategories() argument
69 receiver.onCategoryReceived(category); in fetchCategories()
71 receiver.doneFetchingCategories(); in fetchCategories()
78 doFetch(receiver, forceRefresh); in fetchCategories()
106 protected void doFetch(final CategoryReceiver receiver, boolean forceRefresh) { in doFetch() argument
110 receiver.onCategoryReceived(category); in doFetch()
116 receiver.doneFetchingCategories(); in doFetch()
132 public FetchCategoriesTask(CategoryReceiver receiver, Context context) { in FetchCategoriesTask() argument
133 mReceiver = receiver; in FetchCategoriesTask()
DDefaultExploreIntentChecker.java46 public void fetchValidActionViewIntent(Uri uri, IntentReceiver receiver) { in fetchValidActionViewIntent() argument
48 receiver.onIntentReceived(mUriToActionViewIntentMap.get(uri)); in fetchValidActionViewIntent()
52 new FetchActionViewIntentTask(mAppContext, uri, receiver).execute(); in fetchValidActionViewIntent()
60 public FetchActionViewIntentTask(Context appContext, Uri uri, IntentReceiver receiver) { in FetchActionViewIntentTask() argument
63 mReceiver = receiver; in FetchActionViewIntentTask()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPreferenceControllerTest.java228 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate() local
231 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate()
239 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate() local
243 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate()
251 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate() local
255 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate()
263 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_nfcOn_sliceUpdates() local
267 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_nfcOn_sliceUpdates()
275 final NfcUpdateReceiver receiver = worker.new NfcUpdateReceiver(worker); in ncfSliceWorker_nfcBroadcast_nfcOff_sliceUpdates() local
279 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_nfcOff_sliceUpdates()
/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/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowLocalBroadcastManager.java52 public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
53 sRegisteredReceivers.add(new Wrapper(receiver, filter)); in registerReceiver()
57 public void unregisterReceiver(BroadcastReceiver receiver) { in unregisterReceiver() argument
61 if (wrapper.getBroadcastReceiver() == receiver) { in unregisterReceiver()
78 final BroadcastReceiver receiver = wrapper.getBroadcastReceiver(); in sendBroadcast() local
81 (Runnable) () -> receiver.onReceive(RuntimeEnvironment.application, in sendBroadcast()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDownloadPackageTaskTest.java141 BroadcastReceiver receiver = verifyDownloadReceiver(); in testDownloadFailed() local
144 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testDownloadFailed()
160 BroadcastReceiver receiver = verifyDownloadReceiver(); in testDownloadSucceeded() local
163 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testDownloadSucceeded()
180 BroadcastReceiver receiver = verifyDownloadReceiver(); in testSendBroadcastTwice() local
183 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testSendBroadcastTwice()
184 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testSendBroadcastTwice()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DLiveWallpaperCategory.java38 public void fetchWallpapers(Context context, WallpaperReceiver receiver, boolean forceReload) { in fetchWallpapers() argument
41 getMutableWallpapers(), mExcludedPackages, receiver); in fetchWallpapers()
45 super.fetchWallpapers(context, receiver, forceReload); in fetchWallpapers()
77 @Nullable List<String> excludedPackages, @Nullable WallpaperReceiver receiver) { in FetchLiveWallpapersTask() argument
81 mReceiver = receiver; in FetchLiveWallpapersTask()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java1245 ResultReceiver receiver) { in createSplitContactIntent() argument
1249 serviceIntent.putExtra(ContactSaveService.EXTRA_RESULT_RECEIVER, receiver); in createSplitContactIntent()
1269 final ResultReceiver receiver = intent.getParcelableExtra(EXTRA_RESULT_RECEIVER); in splitContact() local
1273 if (receiver != null) { in splitContact()
1274 receiver.send(BAD_ARGUMENTS, new Bundle()); in splitContact()
1286 if (receiver != null) { in splitContact()
1287 receiver.send(CP2_ERROR, new Bundle()); in splitContact()
1295 if (receiver != null) { in splitContact()
1296 receiver.send(CP2_ERROR, new Bundle()); in splitContact()
1302 if (receiver != null) { in splitContact()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java219 BroadcastReceiver receiver = captor.getValue(); in bluetoothTurnsOff_switchTurnsOff() local
222 receiver.onReceive(mContext, turningOff); in bluetoothTurnsOff_switchTurnsOff()
225 receiver.onReceive(mContext, off); in bluetoothTurnsOff_switchTurnsOff()
242 BroadcastReceiver receiver = captor.getValue(); in bluetoothTurnsOn_switchTurnsOn() local
245 receiver.onReceive(mContext, turningOn); in bluetoothTurnsOn_switchTurnsOn()
248 receiver.onReceive(mContext, on); in bluetoothTurnsOn_switchTurnsOn()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DWiredHeadsetManager.java29 private final WiredHeadsetBroadcastReceiver receiver; field in WiredHeadsetManager
36 receiver = new WiredHeadsetBroadcastReceiver(); in WiredHeadsetManager()
53 context.registerReceiver(receiver, intentFilter); in registerReceiver()
57 context.unregisterReceiver(receiver); in unregisterReceiver()
/packages/apps/Contacts/src/com/android/contacts/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/tests/robotests/src/com/android/settings/connecteddevice/
DAddDevicePreferenceControllerTest.java94 BroadcastReceiver receiver = ReflectionHelpers.getField( in addDevice_bt_resume_on_then_off() local
97 receiver.onReceive(mContext, intent); in addDevice_bt_resume_on_then_off()
111 BroadcastReceiver receiver = ReflectionHelpers.getField( in addDevice_bt_resume_off_then_on() local
114 receiver.onReceive(mContext, intent); in addDevice_bt_resume_off_then_on()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DManagedProfileTest.java99 BlockingBroadcastReceiver receiver = in removeProfileAndWait() local
102 receiver.register(); in removeProfileAndWait()
106 Intent confirmation = receiver.awaitForBroadcast(timeoutMillis); in removeProfileAndWait()
113 receiver.unregisterQuietly(); in removeProfileAndWait()
/packages/apps/ThemePicker/src/com/android/customization/picker/
DTimeTicker.java22 TimeTicker receiver = new TimeTicker(listener); in registerNewReceiver() local
25 context.registerReceiver(receiver, filter); in registerNewReceiver()
26 return receiver; in registerNewReceiver()

1234