Searched refs:CustomTabsIntent (Results 1 - 3 of 3) sorted by relevance

/frameworks/support/customtabs/tests/src/android/support/customtabs/
H A DCustomTabsIntentTest.java24 * Tests for CustomTabsIntent.
29 CustomTabsIntent customTabsIntent = new CustomTabsIntent.Builder().build();
35 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_SESSION));
36 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION));
42 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent;
43 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR));
44 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0));
50 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(colorId).build().intent;
52 color == intent.getIntExtra(CustomTabsIntent
[all...]
/frameworks/support/customtabs/src/android/support/customtabs/
H A DCustomTabsIntent.java41 * You are strongly encouraged to use {@link CustomTabsIntent.Builder}.</p>
43 public final class CustomTabsIntent { class
156 private CustomTabsIntent(Intent intent, Bundle startAnimationBundle) { method in class:CustomTabsIntent
162 * Builder class for {@link CustomTabsIntent} objects.
170 * Creates a {@link CustomTabsIntent.Builder} object associated with no
178 * Creates a {@link CustomTabsIntent.Builder} object associated with a given
287 * Combines all the options that have been set and returns a new {@link CustomTabsIntent}
290 public CustomTabsIntent build() {
292 mIntent.putParcelableArrayListExtra(CustomTabsIntent.EXTRA_MENU_ITEMS, mMenuItems);
294 return new CustomTabsIntent(mInten
[all...]
H A DCustomTabsSessionToken.java36 * Obtain a {@link CustomTabsSessionToken} from an intent. See {@link CustomTabsIntent.Builder}
39 * {@link CustomTabsIntent#EXTRA_SESSION}.
44 IBinder binder = BundleCompat.getBinder(b, CustomTabsIntent.EXTRA_SESSION);

Completed in 177 milliseconds