/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | CompatUtils.java | 93 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/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | NewOutgoingCallIntentBroadcasterTest.java | 78 public BroadcastReceiver receiver; field in NewOutgoingCallIntentBroadcasterTest.ReceiverIntentPair 81 public ReceiverIntentPair(BroadcastReceiver receiver, Intent intent) { in ReceiverIntentPair() argument 82 this.receiver = receiver; in ReceiverIntentPair() 197 result.receiver.setResultData( in testAlreadyDisconnectedCall() 200 result.receiver.onReceive(mContext, result.intent); in testAlreadyDisconnectedCall() 323 BroadcastReceiver receiver = verifyBroadcastSent(handle.getSchemeSpecificPart(), in emergencyCallTestHelper() local 324 expectedExtras).receiver; in emergencyCallTestHelper() 325 assertNull(receiver); in emergencyCallTestHelper() 335 result.receiver.setResultData( in testUnmodifiedRegularCall() 338 result.receiver.onReceive(mContext, result.intent); in testUnmodifiedRegularCall() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | BuiltInWallpaperAsset.java | 70 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 …]
|
D | StreamableAsset.java | 77 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 …]
|
D | CurrentWallpaperAssetV16.java | 43 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()
|
D | BitmapCachingAsset.java | 82 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()
|
D | LiveWallpaperThumbAsset.java | 50 BitmapReceiver receiver) { in decodeBitmap() argument 52 LoadThumbnailTask task = new LoadThumbnailTask(mContext, mInfo, receiver); in decodeBitmap() 58 BitmapReceiver receiver) { in decodeBitmapRegion() argument 59 receiver.onBitmapDecoded(null); in decodeBitmapRegion() 63 public void decodeRawDimensions(Activity unused, DimensionsReceiver receiver) { in decodeRawDimensions() argument 64 receiver.onDimensionsDecoded(null); in decodeRawDimensions() 157 BitmapReceiver receiver) { in LoadThumbnailTask() argument 159 mReceiver = receiver; in LoadThumbnailTask()
|
D | ContentUriAsset.java | 114 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/Settings/tests/unit/src/com/android/settings/network/ |
D | TetherProvisioningActivityTest.java | 71 final WrappedReceiver receiver = new WrappedReceiver(); in testOnCreate_FinishWithNonActiveDataSubId() local 75 .putExtra(EXTRA_PROVISION_CALLBACK, receiver) in testOnCreate_FinishWithNonActiveDataSubId() 77 assertEquals(TetheringManager.TETHER_ERROR_PROVISIONING_FAILED, receiver.get()); in testOnCreate_FinishWithNonActiveDataSubId() 84 final WrappedReceiver receiver = new WrappedReceiver(); in testOnCreate_FinishWithUnavailableProvisioningApp() local 90 .putExtra(EXTRA_PROVISION_CALLBACK, receiver) in testOnCreate_FinishWithUnavailableProvisioningApp() 93 assertEquals(TetheringManager.TETHER_ERROR_PROVISIONING_FAILED, receiver.get()); in testOnCreate_FinishWithUnavailableProvisioningApp() 100 final WrappedReceiver receiver = new WrappedReceiver(); in testOnCreate_startActivityForResult() local 109 .putExtra(EXTRA_PROVISION_CALLBACK, receiver) in testOnCreate_startActivityForResult() 116 assertEquals(TetheringManager.TETHER_ERROR_NO_ERROR, receiver.get()); in testOnCreate_startActivityForResult()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | DpcReceivedSuccessReceiverTest.java | 71 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/ |
D | DefaultCategoryProvider.java | 66 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()
|
D | DefaultExploreIntentChecker.java | 46 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/ |
D | NfcPreferenceControllerTest.java | 228 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/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestAsset.java | 59 public void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver) { in decodeBitmap() argument 60 receiver.onBitmapDecoded(mBitmap); in decodeBitmap() 65 BitmapReceiver receiver) { in decodeBitmapRegion() argument 66 receiver.onBitmapDecoded(mBitmap); in decodeBitmapRegion() 70 public void decodeRawDimensions(Activity unused, DimensionsReceiver receiver) { in decodeRawDimensions() argument 71 receiver.onDimensionsDecoded(mIsCorrupt ? null : new Point(1, 1)); in decodeRawDimensions()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | RegisteredComponentCache.java | 63 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/ThemePicker/src/com/google/android/apps/wallpaper/asset/ |
D | ThemeBundleThumbAsset.java | 45 public void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver) { in decodeBitmap() argument 47 LoadThumbnailTask task = new LoadThumbnailTask(mRes, mResId, mLayerResolver, receiver); in decodeBitmap() 53 BitmapReceiver receiver) { in decodeBitmapRegion() argument 58 public void decodeRawDimensions(@Nullable Activity activity, DimensionsReceiver receiver) { in decodeRawDimensions() argument 78 BitmapReceiver receiver) { in LoadThumbnailTask() argument 80 mReceiver = receiver; in LoadThumbnailTask()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowLocalBroadcastManager.java | 52 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/ |
D | DownloadPackageTaskTest.java | 141 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/ |
D | LiveWallpaperCategory.java | 38 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/ |
D | ContactSaveService.java | 1245 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/ |
D | BluetoothEnablerTest.java | 219 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/ |
D | WiredHeadsetManager.java | 29 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/ |
D | PermissionsUtil.java | 94 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/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | MobileNetworkActivityTest.java | 170 MobileNetworkActivity.PhoneChangeReceiver receiver = in phoneChangeReceiver_ignoresStickyBroadcastFromBeforeRegistering() local 175 receiver.register(); in phoneChangeReceiver_ignoresStickyBroadcastFromBeforeRegistering() 190 MobileNetworkActivity.PhoneChangeReceiver receiver = in phoneChangeReceiver_ignoresCarrierConfigChangeForWrongSubscriptionId() local 193 receiver.register(); in phoneChangeReceiver_ignoresCarrierConfigChangeForWrongSubscriptionId() 209 MobileNetworkActivity.PhoneChangeReceiver receiver = in phoneChangeReceiver_dispatchesCarrierConfigChangeForCorrectSubscriptionId() local 212 receiver.register(); in phoneChangeReceiver_dispatchesCarrierConfigChangeForCorrectSubscriptionId()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionsProviderImpl.java | 66 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()
|