Commit Graph

22 Commits

Author SHA1 Message Date
Aurimas Liutikas
33be7cbcbe Add explicit exported tags
Bug: 195988762
Test: make javac-check
Change-Id: Ifd07672da0141c74ad32613a17691c6cd09e54de
Merged-In: Ifd07672da0141c74ad32613a17691c6cd09e54de
(cherry picked from commit 7512a62755)
2021-09-14 11:09:20 -07:00
Bob Badour
40a7447daa [LSC] Add LOCAL_LICENSE_KINDS to development
Added SPDX-license-identifier-Apache-2.0 to:
  apps/Development/Android.mk
  apps/DumpViewer/app/src/main/Android.mk
  apps/OBJViewer/Android.bp
  samples/ApiDemos/Android.mk
  samples/ApiDemos/tests/Android.mk
  samples/HeavyWeight/Android.bp
  samples/IntentPlayground/Android.mk
  samples/MultiClientInputMethod/Android.mk
  samples/MultiDisplay/Android.mk
  samples/MySampleRss/Android.bp
  samples/RenderScript/HelloCompute/Android.mk
  samples/RenderScript/Levels/Android.mk
  samples/ShortcutDemo/launcher/Android.mk
  samples/ShortcutDemo/publisher/Android.mk
  samples/ShortcutSample/Android.mk
  testrunner/tests/Android_java.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I535f73ffa885f723b9dca745f199ce3a3fd409ea
2021-04-20 14:03:26 -07:00
vineel sadineni
7a629ba096 Migrated various apps under development/samples/ShortcutDemo/launcher to androidx
Bug: 76692459
Test:  mmma development/samples/ShortcutDemo/launcher
Change-Id: Ic68392460192d91af2dcbfb4790f020b95d2bfee
2018-05-18 10:36:49 -07:00
Alan Viverette
a3d037382d Migrate to AAPT2
Bug: 73250914
Test: make checkbuild
Change-Id: I64ad5cb08aeb1e1c5cd2594dc0be1bbb105610f6
2018-02-27 20:30:57 +00:00
Makoto Onuki
d057d9f027 The test launcher should work on N-MR2 too.
Fixes 38345873
Test: manual
Change-Id: I72cedfe860c0c57672d057b209df03917ed6411c
2017-05-16 12:07:57 -07:00
Makoto Onuki
4ddd7cecca Fix potential NPE and also add more log.
Test: Manual test, launch, tc.

Change-Id: I9e540ee8a0daa540ef1cc1b02a9a46c772773586
2017-03-30 13:26:14 -07:00
Sunny Goyal
8e930924c5 Merge "Updating samples as per API changes" 2017-01-26 22:22:57 +00:00
Sunny Goyal
fb19290186 Updating samples as per API changes
Test: Manually tested on device
Bug: 34174006
Change-Id: I811753b2ebfb7319f50b1eabbc00c3decaaea755
2017-01-24 12:21:20 -08:00
Makoto Onuki
64ef7bcd6f Support new ACTION_CREATE_SHORTCUT in sample apps
Test: manual tests
Change-Id: I188b846152ccf7fdb143be69d6375ece4f61211b
2017-01-20 16:38:27 -08:00
Makoto Onuki
0778a898f4 Use the new API being introduced in I34e9f351d2a8addf
Bug: 34340531
Test: Manual tests
Change-Id: I5c4a95edb7008bbd5723f87249cbc68c06f82234
2017-01-20 09:10:07 -08:00
Makoto Onuki
fc6a83fd85 Use the new shortcut manager APIs
Test: Manual tests
Change-Id: Ia521472f42cac7057afd42648339d3b0fb7d432a
2016-12-12 15:55:46 -08:00
Makoto Onuki
5671322243 Shortcut launcher demo:
- Listen to work profile broadcasts and refresh the screen.
- Fix the bug about mixing up user 0 and user 10.
- Add a "user has any shortcuts or not" test to detect
user unlock races.

Change-Id: I4c5ae34317b669dd8fcda466a960074b22e88d5a
2016-08-02 10:26:51 -07:00
Makoto Onuki
74d5f56ed8 Fix demo launcher
- pinShortcuts() needs to be passed all pinned shortcut IDs from the target app,
but originally it was passing those from the target *activity*.

- Also LauncherApps throws IllegalStateException when work profile is off.
Catch runtime exceptions and show a message.

Change-Id: I5a97c808ed7d9aff17bd11aa4ed28ee0efc330f0
2016-07-29 10:54:12 -07:00
Makoto Onuki
1cf985bff6 Shortcut Demo: Address API changes
Bug 29515722
Bug 29516909
Bug 29515090

Change-Id: I7214d1d75acb7550cb8181d076d0b7b938a04488
2016-06-21 11:37:35 -07:00
Makoto Onuki
a02d7acf66 ShortcutManager demo: Manifest shortcuts + API renames
Bug 28785283
Bug 28536066

Change-Id: I5b12715038a30a143f2df7ccc188ea23e88605f9
2016-05-24 17:53:49 -07:00
Makoto Onuki
28dde7fe5f Fix the tab focus when view pager current page changes.
Bug 27548047

Change-Id: I3ed4202b0077b965d3dafec2d969d3ddf7d5737c
2016-05-09 15:24:13 -07:00
Makoto Onuki
d1d0d5ac76 Improve the shortcut manager sample launcher.
Now it's actually usable as a launcher, and supports work profile too.

- Also make sure when the client app adds a shortcut, it'll always get
an unique ID.

Bug 27548047

Change-Id: I025cbcd6483010986208652f85638966bf2448c4
2016-05-04 14:22:38 -07:00
Makoto Onuki
ed8e4d8529 Don't override the setting activity shortcut
- Also dump updated shortcuts on logcat

Bug 27548047

Change-Id: Id6a80e518dd801f530bbd30b6379ed86d7cf8a2b
2016-03-15 11:10:23 -07:00
Makoto Onuki
05b869cfcc Don't use the launcher shortcut APIs when not allowed.
Bug 27548047

Change-Id: Ie9f85b1662be9b071458180c128554711642e55e
2016-03-14 15:14:40 -07:00
Makoto Onuki
618cfbf728 Shortcut Demo: update shortcuts
Bug 27548047

Change-Id: I354cd468217f735dd79407de59a855cace247a85
2016-03-10 15:21:12 -08:00
Makoto Onuki
ad5c8aaf19 Improve shortcut demo
Bug 27548047

Change-Id: Iba717ec910e1fd48e623f5dea4604fc27e5d2818
2016-03-10 12:40:09 -08:00
Makoto Onuki
ebdd0c2e4e Improve shortcut demo
- Add launcher demo
- Now we build two of launchers and publishers, for better testing

Bug 27548047

Change-Id: Iede6abcf611261c83b7486f07709b56c6f5c53e0
2016-03-10 11:24:12 -08:00