Commit Graph

3021 Commits

Author SHA1 Message Date
Makoto Onuki
68bfa3736d Make ApiDemos movable to SD card
Change-Id: I53d923a44360c16d42d1b646a182c706888027a8
2016-02-16 17:03:02 -08:00
Keyvan Amiri
304b67538e SupportLeanbackDemos: Fixed password crash when no payment is selected
am: be98b3af70

* commit 'be98b3af70d0fb280dd688040b04880a9e4d543f':
  SupportLeanbackDemos: Fixed password crash when no payment is selected
2016-02-10 21:57:59 +00:00
Keyvan Amiri
be98b3af70 SupportLeanbackDemos: Fixed password crash when no payment is selected
The second Guided Step fragment crashed when a password was entered but
no credit card info was selected, because it was trying to extract "Visa"
or "Master" substrings from an empty string. Put a check for string
sizes before this extraction is performed.

Change-Id: I9b93a302f5f855b1853885ff4e5fc9a04c200766
2016-02-10 13:46:30 -08:00
Makoto Onuki
08d2a04420 Add a secondary DA to ApiDemos for testing
Bug 27107878

Change-Id: Id8179926d424ca8b4678ac028f4c9eab7a81a4c2
2016-02-10 11:28:49 -08:00
Keyvan Amiri
781069923c SupportLeanbackShowcase: Added new credit card workflow and theme background for the wizard view
am: 64cae78d53

* commit '64cae78d53a7c0d4dc0a80bfddc03ecdee2667f7':
  SupportLeanbackShowcase: Added new credit card workflow and theme background for the wizard view
2016-02-10 02:32:00 +00:00
Keyvan Amiri
767529d63b SupportLeanbackShowcase: Fixed the crash/background color/selector in Guided Step Wizard view
am: 285adeccf2

* commit '285adeccf24b63136af8d9b9075c51089f143f1d':
  SupportLeanbackShowcase: Fixed the crash/background color/selector in Guided Step Wizard view
2016-02-10 02:31:51 +00:00
Keyvan Amiri
9ad3922d43 SupportLeanbackShowcase: Provided context for calls to GuidedAction.Builder
am: 329cd510f0

* commit '329cd510f09bcff759f6e63e54aa7fb85b955444':
  SupportLeanbackShowcase: Provided context for calls to GuidedAction.Builder
2016-02-10 02:31:42 +00:00
Keyvan Amiri
64cae78d53 SupportLeanbackShowcase: Added new credit card workflow and theme
background for the wizard view

Created a payment workflow consisting of a set of fragments for
entering & adding new credit card information (checks in place
for validity of the card number as well as expiration date).
Also, changed the dropdown subaction's background colors to
be consistent with the rest of guided step fragment view.
Fixed the back key pressed to "not" exit the entire wizard on the last
fragment (it not goes back to the payment fragment section when back
button is pressed).

Change-Id: I39cf316f09b765cffbd0a7e012539c49dbe238ed
2016-02-09 18:20:57 -08:00
Keyvan Amiri
285adeccf2 SupportLeanbackShowcase: Fixed the crash/background color/selector in Guided Step
Wizard view

Guided Action layout have gone through changes that caused "Rent" action to fail
in the example wizard view. Added layout_width and layout_height to all
the containers, as well as a changing "addSharedElement" in
"TransitionsHelper" in leanback support library.

Background color was added & action selector (while loading a video) was
removed by defining new themes.

Change-Id: Ia296e02720513edaea1d4197aacb5b4f88776545
2016-02-09 18:08:31 -08:00
Keyvan Amiri
329cd510f0 SupportLeanbackShowcase: Provided context for calls to
GuidedAction.Builder

GuidedActions were created without the activity argument in the old
version; updated the API calls to use their context within the fragment.

Change-Id: I4b3433f9e0cdfe5fa84a56a78413c219fbc4d939
2016-02-09 18:06:18 -08:00
Kirill Grouchnikov
cbe66188b7 Switch DrawerLayout to new listener API.
am: 8369074daf

* commit '8369074daf4603fa483aac75a423e7041adde04e':
  Switch DrawerLayout to new listener API.
2016-02-10 02:05:40 +00:00
Kirill Grouchnikov
8369074daf Switch DrawerLayout to new listener API.
setDrawerListener is deprecated in favor of the new
addDrawerListener.

Change-Id: I374cff5ff481f206d5a94835c0c00e719c2f6e25
2016-02-09 17:07:03 -08:00
Dongwon Kang
faf2da3510 LeanbackDemo: Bring piped activity to full-screen when relaunched
Bug: 26696836
Change-Id: Ic0e682d79eaa76b8e53b9a7c58c667fe22d3ab42
2016-02-10 00:42:23 +00:00
Steven Dao
f290b1df4a Merge "Add role description sample to Support4Demos" into nyc-dev 2016-02-09 00:44:39 +00:00
Vladislav Kaznacheev
c2baa88d9d Merge "Introduce the example of pointer capture API" into nyc-dev 2016-02-09 00:39:58 +00:00
Vladislav Kaznacheev
2ba9c45dc0 Add example of pointer icon resource reference to ApiDemos
Change-Id: I3e88a097725b69aefd38169c0b37d64ebd6ddec5
2016-02-09 00:37:12 +00:00
Steven Dao
6993542bfc Add role description sample to Support4Demos
Change-Id: I031d018724d7a9213de8fa2d6c1626f057946b2c
2016-02-09 00:36:27 +00:00
Vladislav Kaznacheev
8789484eab Introduce the example of pointer capture API
Change-Id: I36276669ca0c8d8b200390064deca8c42603cb0d
2016-02-09 00:36:02 +00:00
Dongwon Kang
d2a8a47bc4 Merge "SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()" 2016-02-05 18:32:32 +00:00
Alan Viverette
10150941ff Fix ApiDemos layout
Change-Id: I67b15d38a8d947d30ce9c3789c5000c7850861d2
2016-02-05 12:49:44 -05:00
Alan Viverette
47683023d5 Fix duplicate IDs in Material controls demo
Change-Id: Ic87b4ae520ba22387e4902bdc6b841b635921080
2016-02-05 12:41:56 -05:00
Dongwon Kang
9ca8c945ae SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()
Instead of Activity#onPictureInPictureChanged()

Change-Id: Id31ac91c9e43569fe387f087ff2e9a6c1afac6ce
2016-02-05 16:31:25 +09:00
Vladislav Kaznacheev
f0b04a92f5 Merge "Introduce the examples of pointer shape API." 2016-02-04 20:20:47 +00:00
Keyvan Amiri
215519ac33 Merge "SupportLeanbackShowcase: Changed styles into new theme APIs" into mnc-ub-dev
am: 9e9fdcb8e9

* commit '9e9fdcb8e926467381a26e494eccae7e435a20c3':
  SupportLeanbackShowcase: Changed styles into new theme APIs
2016-02-04 00:10:12 +00:00
Keyvan Amiri
5abd85c64e SupportLeanbackShowcase: Changed styles into new theme APIs
The card styles are  converted into themes, and in the
ImageCardViewPresenter, each ImageCardView is generated through the use
of the resource ID of each specific theme.
This is to conform to the latest widget API change which moved a set of
attributes to theme for customizing widgets.

Bug: 26249596
Change-Id: Id64aeebb96bee13c6cb68f8ab69cacdfb9a98531
2016-02-03 15:58:27 -08:00
Jun Mukai
6cb3668322 Introduce the examples of pointer shape API.
Change-Id: Ib0be39d560fbc00db661f639a02c4df2e2c1867b
2016-02-03 14:54:44 -08:00
Keyvan Amiri
e3bd539556 Merge "Fixed the video view crash in SupportLeanbackShowcase master build" into mnc-ub-dev
am: 4c7054297b

* commit '4c7054297b3405205cc6c8ba86901e13bb22617d':
  Fixed the video view crash in SupportLeanbackShowcase master build
2016-02-01 23:16:48 +00:00
Keyvan Amiri
4c7054297b Merge "Fixed the video view crash in SupportLeanbackShowcase master build" into mnc-ub-dev 2016-02-01 23:11:43 +00:00
Keyvan Amiri
32be3d30dc Fixed the video view crash in SupportLeanbackShowcase master build
The "Video consumption Examples" view in SupportLeanBackShowcase was failing on
the master build (fugu-userdebug N AAC30 2573265 devkeys),
since onCreate gets called in the reverse order of fragments' appearence in the
code when using a single transaction.
Fixed that by using separate transactions per fragment addition, and now the
example video view works on the master build as well as the LMP-MR1 build.

Bug: 26894030

Change-Id: Ic020cb87049af7e2095387ca1aab017f2b026630
2016-02-01 15:00:29 -08:00
Wale Ogunwale
1d69889c68 Merge "Made some changes to window caption APIs" 2016-02-01 19:06:22 +00:00
Wale Ogunwale
cd7ce74e67 Merge "Renamed Activity class multi-window APIs" 2016-02-01 15:04:50 +00:00
Wale Ogunwale
17e2686917 Merge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT" 2016-01-31 19:57:20 +00:00
Wale Ogunwale
f60b4f1def Made some changes to window caption APIs
As recommended by API council.

Bug: 26509365
Change-Id: I52cbe40334f65868952791150510311ab1cc00e6
2016-01-30 16:04:17 -08:00
Wale Ogunwale
45c135d672 Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT
Per feedback from API council.

Bug: 26508215
Change-Id: Ic2f142a6df023bcb75ee2f91abafa9e0c35fd3bd
2016-01-30 11:34:54 -08:00
Wale Ogunwale
8b52f7e0c2 Renamed Activity class multi-window APIs
As requested by API council.

Bug: 26507736
Change-Id: I8911c0b969ae05b686bea1dc26feba12cd074e6a
2016-01-29 18:08:31 -08:00
Susnata Basak
cff66dc9a5 Merge "Updating SupportLeanbackDemo to showcase GuidedStepFragment." into mnc-ub-dev
am: c140afb120

* commit 'c140afb120c664de8757a7df7d0eb16a60d91a09':
  Updating SupportLeanbackDemo to showcase GuidedStepFragment.
2016-01-29 21:45:34 +00:00
Susnata Basak
c140afb120 Merge "Updating SupportLeanbackDemo to showcase GuidedStepFragment." into mnc-ub-dev 2016-01-29 21:39:53 +00:00
susnata
15871fb0d4 Updating SupportLeanbackDemo to showcase GuidedStepFragment.
Included sample activities/fragments to showcase how to
use GuidedStepFragment in half screen mode.

Change-Id: I9eefe417ddf79b0dfe896a5cec25b7c7cd3a41e7
2016-01-29 13:29:00 -08:00
Chris Banes
d95f46cbbc Make AVDC sample drawable larger
am: 2353152044

* commit '2353152044fe8dd408522435c15823b7c7723186':
  Make AVDC sample drawable larger
2016-01-29 11:54:27 +00:00
Chris Banes
2353152044 Make AVDC sample drawable larger
Makes it easier to see

Change-Id: Ied27b97481d9d523e6410d6769229b3abb10c14f
2016-01-29 11:49:44 +00:00
Chris Banes
e8644c83e2 Merge "Add AVDC demo to Support7Demos" into mnc-ub-dev
am: b58648deb6

* commit 'b58648deb6040c417bf6f1ceb254c93a5001f48b':
  Add AVDC demo to Support7Demos
2016-01-29 09:21:59 +00:00
Chris Banes
b58648deb6 Merge "Add AVDC demo to Support7Demos" into mnc-ub-dev 2016-01-29 09:17:08 +00:00
Chris Banes
cb5ed20163 Add AVDC demo to Support7Demos
Also renamed some of the other demos to
fit into the correct categories.

BUG: 26638431

Change-Id: Iaa7333f67cd7606bb504e7bbfe766da543ea7afa
2016-01-29 09:16:39 +00:00
Dongwon Kang
97dc94b712 Merge "LeanbackDemo: Support Picture-in-picture" 2016-01-29 01:18:56 +00:00
Keyvan Amiri
34b38ee421 SupportLeanbackShowcase: update support library version
am: 4e89da7764

* commit '4e89da7764e6a9e8031318064c0f49ad12ec5a40':
  SupportLeanbackShowcase: update support library version
2016-01-28 19:12:07 +00:00
Keyvan Amiri
4e89da7764 SupportLeanbackShowcase: update support library version
update android support library to 23.1.1

Change-Id: Ibf50836110dea71992946214ab5c9578582ffd84
2016-01-28 10:51:34 -08:00
Dongwon Kang
25015d6bac LeanbackDemo: Support Picture-in-picture
Bug: 26696836
Change-Id: I9809470b1fdc7bfbb049da3d40ab209578c4b656
2016-01-27 11:15:59 -08:00
Yohei Yukawa
fa3c909d8d Merge "Add sample code for EditorInfo#hintLocales." 2016-01-27 18:00:35 +00:00
Yuichi Araki
e3b8b3614f Merge "Add usage of BottomSheetBehavior with Fragment" into mnc-ub-dev
am: 2b497aca8c

* commit '2b497aca8c5b2fb4465c04491fb019990920e72f':
  Add usage of BottomSheetBehavior with Fragment
2016-01-27 04:08:28 +00:00
Yohei Yukawa
85a32da54f Add sample code for EditorInfo#hintLocales.
This CL adds some sample entries so that IME developers can test their
IMEs with various EditorInfo#hintLocales.

Bug: 22859862
Change-Id: Ic0bc98bc4c9cb7b874ca8d54433bde76d05e8e03
2016-01-26 13:50:50 -08:00