Home
last modified time | relevance | path

Searched refs:getParcelable (Results 1 – 25 of 197) sorted by relevance

12345678

/frameworks/base/core/tests/mockingcoretests/src/android/os/
DBundleRecyclingTest.java147 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenUnparcelledWithLazyValueUnwrapped_recyclesParcel()
151 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenUnparcelledWithLazyValueUnwrapped_recyclesParcel()
160 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenMultipleLazy_recyclesParcelWhenAllUnwrapped()
163 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenMultipleLazy_recyclesParcelWhenAllUnwrapped()
166 assertNotNull(mBundle.getParcelable("lazy1", CustomParcelable.class)); in bundleGet_whenMultipleLazy_recyclesParcelWhenAllUnwrapped()
170 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenMultipleLazy_recyclesParcelWhenAllUnwrapped()
180 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenLazyAndNonLazy_recyclesParcelWhenAllUnwrapped()
185 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenLazyAndNonLazy_recyclesParcelWhenAllUnwrapped()
200 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_whenLazyAndNonLazy_doesNotRecycleWhenOnlyNonLazyRetrieved()
211 assertNotNull(mBundle.getParcelable("lazy0", CustomParcelable.class)); in bundleGet_withWithSharedParcel_doesNotRecycleParcel()
[all …]
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/ktx/
DIntentKtx.kt29 get() = this.extras?.getParcelable(
35 get() = this.extras?.getParcelable(
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageArgs.java61 return b.getParcelable(KEY_ASSET_URI); in getAssetUri()
65 return b.getParcelable(KEY_PERM_URI); in getPermUri()
/frameworks/base/core/tests/coretests/src/android/os/
DBundleTest.java117 assertEquals(ParcelFileDescriptor.class, b.getParcelable("fd").getClass()); in checkBundle()
282 a.getParcelable("key1"); in kindofEquals_lazyValues()
286 b.getParcelable("key1"); in kindofEquals_lazyValues()
381 RuntimeException e = assertThrows(RuntimeException.class, () -> bundle.getParcelable("p")); in readWriteLengthMismatch_logsWtf()
395 assertThrows(BadParcelableException.class, () -> bundle.getParcelable("key")); in getParcelable_whenThrowingAndNotDefusing_throws()
409 assertThat(bundle.<Parcelable>getParcelable("key")).isNull(); in getParcelable_whenThrowingAndDefusing_returnsNull()
423 assertThat(bundle.<Parcelable>getParcelable("key")).isNull(); in getParcelable_whenThrowingAndDefusing_leavesElement()
430 assertThat(bundle.<Parcelable>getParcelable("key")).isEqualTo(parcelable); in getParcelable_whenThrowingAndDefusing_leavesElement()
DBundleMergerTest.java279 merger.merge(a, b).getParcelable(Intent.EXTRA_STREAM, Uri.class)); in testMerge_Parcelable_BCP()
281 merger.merge(b, a).getParcelable(Intent.EXTRA_STREAM, Uri.class)); in testMerge_Parcelable_BCP()
316 ab.getParcelable(Intent.EXTRA_SUBJECT, ExplodingParcelable.class); in testMerge_Parcelable_Custom()
319 ab.getParcelable(Intent.EXTRA_STREAM, ExplodingParcelable.class); in testMerge_Parcelable_Custom()
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java351 extras.getParcelable(EXTRA_BIND_URI, android.net.Uri.class))); in call()
363 Intent intent = extras.getParcelable(EXTRA_INTENT, android.content.Intent.class); in call()
377 Intent intent = extras.getParcelable(EXTRA_INTENT, android.content.Intent.class); in call()
385 extras.getParcelable(EXTRA_BIND_URI, android.net.Uri.class))); in call()
392 extras.getParcelable(EXTRA_BIND_URI, android.net.Uri.class))); in call()
399 … validateIncomingUriOrNull(extras.getParcelable(EXTRA_BIND_URI, android.net.Uri.class))); in call()
DSliceManager.java263 return res.getParcelable(SliceProvider.EXTRA_SLICE, android.app.slice.Slice.class); in bindSlice()
313 return res.getParcelable(SliceProvider.EXTRA_SLICE, android.net.Uri.class); in mapIntentToUri()
393 return res.getParcelable(SliceProvider.EXTRA_SLICE, android.app.slice.Slice.class); in bindSlice()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip2/
DPipTransitionStateTest.java73 Assert.assertEquals(mEmptyParcelable, extra.getParcelable(EXTRA_ENTRY_KEY)); in testEnteredState_withExtra()
99 Assert.assertEquals(mEmptyParcelable, extra.getParcelable(EXTRA_ENTRY_KEY)); in testCustomState_withExtra_thenEntered_withoutExtra()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageMonitorCallbackHelperTest.java142 Intent intent = bundle.getParcelable( in testPackageMonitorCallback_SuspendCallbackCalled()
167 Intent intent = bundle.getParcelable( in testRegisterPackageMonitorCallback_callbackCalled()
209 Intent intent = bundle.getParcelable( in testNotifyPackageChanged_callbackCalled()
238 Intent intent = bundle.getParcelable( in testNotifyPackageAddedForNewUsers_callbackCalled()
262 Intent intent = bundle.getParcelable( in testNotifyResourcesChanged_callbackCalled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recordissue/
DTraceurMessageSender.kt134 msg.data.getParcelable(MessageConstants.EXTRA_PERFETTO, Uri::class.java), in handleMessage()
135 msg.data.getParcelable(MessageConstants.EXTRA_WINSCOPE, Uri::class.java) in handleMessage()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/
DTvPipNotificationTests.kt178 get() = tvExtensions?.getParcelable("content_intent")
182 get() = tvExtensions?.getParcelable("delete_intent")
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DSurfaceViewRequestUtils.java45 return bundle.getParcelable(KEY_SURFACE_CONTROL); in getSurfaceControl()
/frameworks/base/core/java/android/service/controls/templates/
DToggleTemplate.java56 … mButton = b.getParcelable(KEY_BUTTON, android.service.controls.templates.ControlButton.class); in ToggleTemplate()
DToggleRangeTemplate.java46 …mControlButton = b.getParcelable(KEY_BUTTON, android.service.controls.templates.ControlButton.clas… in ToggleRangeTemplate()
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java222 enforceTree(extras.getParcelable(DocumentsContract.EXTRA_URI, android.net.Uri.class)); in enforceTreeForExtraUris()
223 … enforceTree(extras.getParcelable(DocumentsContract.EXTRA_PARENT_URI, android.net.Uri.class)); in enforceTreeForExtraUris()
224 … enforceTree(extras.getParcelable(DocumentsContract.EXTRA_TARGET_URI, android.net.Uri.class)); in enforceTreeForExtraUris()
1107 extras.getParcelable(DocumentsContract.EXTRA_URI, android.net.Uri.class)); in callUnchecked()
1109 extras.getParcelable(DocumentsContract.EXTRA_TARGET_URI, android.net.Uri.class)); in callUnchecked()
1111 extras.getParcelable(DocumentsContract.EXTRA_PARENT_URI, android.net.Uri.class)); in callUnchecked()
1452 …final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE, android.graphics.Point.class… in openTypedAssetFileImpl()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java237 …HardwareBuffer buffer = bundle.getParcelable(BUNDLE_SNAPSHOT_HARDWARE_BUFFER, android.hardware.Har… in onCreateSnapshotView()
238 … Bitmap bitmap = bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP, android.graphics.Bitmap.class); in onCreateSnapshotView()
DActivityOptions.java1293 mUsageTimeReport = opts.getParcelable(KEY_USAGE_TIME_REPORT, PendingIntent.class); in ActivityOptions()
1297 mLaunchBounds = opts.getParcelable(KEY_LAUNCH_BOUNDS, android.graphics.Rect.class); in ActivityOptions()
1325 …final HardwareBuffer buffer = opts.getParcelable(KEY_ANIM_THUMBNAIL, android.hardware.HardwareBuff… in ActivityOptions()
1338 mSceneTransitionInfo = opts.getParcelable(KEY_SCENE_TRANSITION_INFO, in ActivityOptions()
1346 …mLaunchTaskDisplayArea = opts.getParcelable(KEY_LAUNCH_TASK_DISPLAY_AREA_TOKEN, android.window.Win… in ActivityOptions()
1349 …mLaunchRootTask = opts.getParcelable(KEY_LAUNCH_ROOT_TASK_TOKEN, android.window.WindowContainerTok… in ActivityOptions()
1379 … mSourceInfo = opts.getParcelable(KEY_SOURCE_INFO, android.app.ActivityOptions.SourceInfo.class); in ActivityOptions()
1386 …mRemoteAnimationAdapter = opts.getParcelable(KEY_REMOTE_ANIMATION_ADAPTER, android.view.RemoteAnim… in ActivityOptions()
1388 …mRemoteTransition = opts.getParcelable(KEY_REMOTE_TRANSITION, android.window.RemoteTransition.clas… in ActivityOptions()
1395 …mLaunchIntoPipParams = opts.getParcelable(KEY_LAUNCH_INTO_PIP_PARAMS, android.app.PictureInPicture… in ActivityOptions()
/frameworks/base/core/java/android/credentials/
DGetCredentialResponse.java69 return mCredential.getData().getParcelable( in getAutofillId()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DSummaryForAllUidLoader.java62 final NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE); in loadInBackground()
/frameworks/base/core/java/com/android/internal/util/
DScreenshotRequest.java327 HardwareBuffer buffer = bundle.getParcelable(KEY_BUFFER, HardwareBuffer.class); in bundleToHardwareBitmap()
328 ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE, in bundleToHardwareBitmap()
/frameworks/base/core/java/android/credentials/selection/
DFailureDialogResult.java41 return resultData.getParcelable( in fromResultData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DTargetSdkResolver.kt51 notification.extras.getParcelable( in getApplicationInfoFromExtras()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DPinnedSliceStateTest.java115 assertEquals(TEST_URI, b.getParcelable(SliceProvider.EXTRA_BIND_URI)); in testSendPinnedOnPin()
182 assertEquals(TEST_URI, b.getParcelable(SliceProvider.EXTRA_BIND_URI)); in testPinFailed()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUnarchiveErrorActivity.java46 PendingIntent intent = extras.getParcelable(Intent.EXTRA_INTENT, PendingIntent.class); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTaskTest.kt231 quickShareAction.actionIntent.intent.extras!!.getParcelable( in testCreateQuickShareAction_mutableIntent_returnsSafeIntent()
269 quickShareAction.actionIntent.intent.extras!!.getParcelable( in testCreateQuickShareAction_immutableIntent_returnsSafeIntent()

12345678