Searched refs:CustomTabsIntent (Results 1 - 6 of 6) sorted by relevance
/frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/ |
H A D | CustomTabsIntentTest.java | 38 * Tests for CustomTabsIntent. 46 CustomTabsIntent customTabsIntent = new CustomTabsIntent.Builder().build(); 52 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_SESSION)); 54 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION)); 62 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent; 63 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR)); 64 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); 71 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(colorId).build().intent; 73 color == intent.getIntExtra(CustomTabsIntent [all...] |
H A D | TrustedWebUtilsTest.java | 51 CustomTabsIntent customTabsIntent = new CustomTabsIntent.Builder().build(); 60 CustomTabsIntent customTabsIntent = new CustomTabsIntent.Builder(mockSession).build(); 64 customTabsIntent.intent.getExtras(), CustomTabsIntent.EXTRA_SESSION));
|
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/ |
H A D | TrustedWebUtils.java | 50 * Boolean extra that triggers a {@link CustomTabsIntent} launch to be in a fullscreen UI with 53 * @see TrustedWebUtils#launchAsTrustedWebActivity(Context, CustomTabsIntent, Uri). 61 * Launch the given {@link CustomTabsIntent} as a Trusted Web Activity. The given 62 * {@link CustomTabsIntent} should have a valid {@link CustomTabsSession} associated with it 67 * @param context {@link Context} to use while launching the {@link CustomTabsIntent}. 68 * @param customTabsIntent The {@link CustomTabsIntent} to use for launching the 74 @NonNull CustomTabsIntent customTabsIntent, @NonNull Uri uri) { 76 customTabsIntent.intent.getExtras(), CustomTabsIntent.EXTRA_SESSION) == null) { 78 "Given CustomTabsIntent should be associated with a valid CustomTabsSession");
|
H A D | CustomTabsSession.java | 96 * {@link CustomTabsIntent#TOOLBAR_ACTION_BUTTON_ID}. 105 bundle.putParcelable(CustomTabsIntent.KEY_ICON, icon); 106 bundle.putString(CustomTabsIntent.KEY_DESCRIPTION, description); 109 metaBundle.putBundle(CustomTabsIntent.EXTRA_ACTION_BUTTON_BUNDLE, bundle); 129 bundle.putParcelable(CustomTabsIntent.EXTRA_REMOTEVIEWS, remoteViews); 130 bundle.putIntArray(CustomTabsIntent.EXTRA_REMOTEVIEWS_VIEW_IDS, clickableIDs); 131 bundle.putParcelable(CustomTabsIntent.EXTRA_REMOTEVIEWS_PENDINGINTENT, pendingIntent); 152 bundle.putInt(CustomTabsIntent.KEY_ID, id); 153 bundle.putParcelable(CustomTabsIntent.KEY_ICON, icon); 154 bundle.putString(CustomTabsIntent [all...] |
H A D | CustomTabsIntent.java | 45 * You are strongly encouraged to use {@link CustomTabsIntent.Builder}.</p> 47 public final class CustomTabsIntent { class 187 * @see CustomTabsIntent.Builder#setSecondaryToolbarViews(RemoteViews, int[], PendingIntent). 199 * @see CustomTabsIntent.Builder#setSecondaryToolbarViews(RemoteViews, int[], PendingIntent). 211 * @see CustomTabsIntent.Builder#setSecondaryToolbarViews(RemoteViews, int[], PendingIntent). 219 * @see CustomTabsIntent.Builder#setSecondaryToolbarViews(RemoteViews, int[], PendingIntent). 266 private CustomTabsIntent(Intent intent, Bundle startAnimationBundle) { method in class:CustomTabsIntent 272 * Builder class for {@link CustomTabsIntent} objects. 282 * Creates a {@link CustomTabsIntent.Builder} object associated with no 290 * Creates a {@link CustomTabsIntent [all...] |
H A D | CustomTabsSessionToken.java | 63 * Obtain a {@link CustomTabsSessionToken} from an intent. See {@link CustomTabsIntent.Builder} 66 * {@link CustomTabsIntent#EXTRA_SESSION}. 71 IBinder binder = BundleCompat.getBinder(b, CustomTabsIntent.EXTRA_SESSION);
|
Completed in 67 milliseconds