Commit Graph

3706 Commits

Author SHA1 Message Date
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
Pedro Loureiro
2dc09c2150 Add lint baseline to address NewApi errors
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.

Bug: 150847901

Test: m lint-check
Change-Id: I994630133d86cedb7f10eb51282dad0071df0d87
Merged-In: I994630133d86cedb7f10eb51282dad0071df0d87
2021-04-14 10:30:53 +00:00
Bob Badour
f7cf305656 [LSC] Add LOCAL_LICENSE_KINDS to development
Added SPDX-license-identifier-Apache-2.0 to:
  apps/BluetoothDebug/Android.bp
  apps/BuildWidget/Android.bp
  apps/CustomLocale/Android.bp
  apps/DevelopmentSettings/Android.bp
  apps/Fallback/Android.bp
  apps/GestureBuilder/Android.bp
  apps/NinePatchLab/Android.bp
  apps/OBJViewer/Android.bp
  apps/PushApiAuthenticator/Android.bp
  apps/PushApiTestAppOne/Android.bp
  apps/PushApiTestAppTwo/Android.bp
  apps/SdkSetup/Android.bp
  apps/SettingInjectorSample/Android.bp
  apps/WidgetPreview/Android.bp
  apps/launchperf/Android.bp
  cmds/monkey/Android.mk
  gsi/gsi_util/Android.bp
  gsi/repack_super_image/Android.bp
  host/windows/Android.bp
  python-packages/Android.bp
  samples/AccelerometerPlay/Android.bp
  samples/AdaptiveIconSample/Android.bp
  samples/AliasActivity/Android.bp
  samples/AndroidBeamDemo/Android.bp
  samples/AppNavigation/Android.bp
  samples/AutofillKeyboard/Android.bp
  samples/BackupRestore/Android.bp
  samples/BasicGLSurfaceView/Android.bp
  samples/BluetoothChat/Android.bp
  samples/BrokenKeyDerivation/Android.bp
  samples/BrokenKeyDerivation/tests/Android.bp
  samples/BusinessCard/Android.bp
  samples/Compass/Android.bp
  samples/ContactManager/Android.bp
  samples/CubeLiveWallpaper/Android.bp
  samples/DataWiper/Android.bp
  samples/DeviceAdminWhitelistedAccount/Android.bp
  samples/FixedGridLayout/Android.bp
  samples/HeavyWeight/Android.bp
  samples/HelloActivity/Android.bp
  samples/HelloActivity/tests/Android.bp
  samples/HelloEffects/Android.bp
  samples/Home/Android.bp
  samples/HoneycombGallery/Android.bp
  samples/InlineFillService/Android.bp
  samples/JetBoy/Android.bp
  samples/LceDemo/Android.bp
  samples/LunarLander/Android.bp
  samples/LunarLander/tests/Android.bp
  samples/MultiResolution/Android.bp
  samples/MultiWindow/Android.bp
  samples/MySampleRss/Android.bp
  samples/NotePad/Android.bp
  samples/Obb/Android.bp
  samples/RSSReader/Android.bp
  samples/ReceiveShareDemo/Android.bp
  samples/SampleSyncAdapter/Android.bp
  samples/SimpleJNI/Android.bp
  samples/SimpleJNI/jni/Android.bp
  samples/SipDemo/Android.bp
  samples/SkeletonApp/Android.bp
  samples/SkeletonApp/tests/Android.bp
  samples/Snake/Android.bp
  samples/Snake/tests/Android.bp
  samples/SoftKeyboard/Android.bp
  samples/SpellChecker/HelloSpellChecker/Android.bp
  samples/SpellChecker/SampleSpellCheckerService/Android.bp
  samples/StackWidget/Android.bp
  samples/ThemedNavBarKeyboard/Android.bp
  samples/ToyVpn/Android.bp
  samples/TtsEngine/Android.bp
  samples/USB/AdbTest/Android.bp
  samples/USB/MissileLauncher/Android.bp
  samples/UiAutomator/Android.mk
  samples/Vault/Android.bp
  samples/Vault/tests/Android.bp
  samples/VoiceRecognitionService/Android.bp
  samples/VoicemailProviderDemo/Android.bp
  samples/WeatherListWidget/Android.bp
  samples/WiFiDirectDemo/Android.bp
  samples/WiFiDirectServiceDiscovery/Android.bp
  samples/Wiktionary/Android.bp
  samples/WiktionarySimple/Android.bp
  samples/XmlAdapters/Android.bp
  samples/apkcachetest/Android.bp
  samples/training/NsdChat/Android.bp
  scripts/Android.bp
  testrunner/Android.mk
  testrunner/tests/Android_native.mk
  tools/apkcheck/Android.bp
  tools/bugreport/Android.bp
  tools/etc1tool/Android.bp
  tools/idegen/Android.bp
  tools/mkstubs/Android.bp
  tools/rmtypedefs/Android.bp
  vndk/Android.bp
  vndk/tools/Android.bp
  vndk/tools/elfcheck/Android.bp
  vndk/tools/header-checker/Android.bp
  vndk/tools/header-checker/src/repr/protobuf/proto/Android.bp
  vndk/tools/header-checker/tests/integration/ifunc/Android.bp
  vndk/tools/header-checker/tests/integration/version_script_example/Android.bp
  vndk/tools/image-diff-tool/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-CPL-1.0 SPDX-license-identifier-MIT
    SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-W3C
    legacy_restricted legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-CPL-1.0
to:
  samples/SearchableDictionary/Android.bp

Added SPDX-license-identifier-Apache-2.0 legacy_unencumbered
to:
  tools/Android.bp

Added SPDX-license-identifier-BSD SPDX-license-identifier-CPL-1.0
    SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS
    SPDX-license-identifier-W3C
to:
  sdk/Android.bp

Added legacy_restricted
to:
  samples/KeyChainDemo/Android.bp
  tools/line_endings/Android.bp
  vndk/tools/definition-tool/datasets/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I9847e00fb4278bc083b4debbc751003c995ea45c
2021-02-12 17:13:45 -08:00
Xin Li
e3b57410da Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I37a77cdaf905fe0bf58ad8eebcdff36873aec71a
Change-Id: Idac9218a0e169df9d02d9d8d376a6816315a4b28
2020-08-27 10:16:04 -07:00
Jeff Sharkey
29bc7dcc26 Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 161896447
Change-Id: I56dd8778516103367dc17ae55bdff4457185de46
2020-07-30 20:05:08 -06:00
Linus Tufvesson
084c24eff0 Only show Presentations on suitable displays
Bug: 141745510
Test: Manually verifed, App > Activity > Presentation
Change-Id: I0ca4c18bab97f46971ae3eae29e34e74ed6a5810
2020-07-30 13:52:05 +00:00
TreeHugger Robot
e7abac1a64 Merge "Post the inline suggestion response handling to next message" into rvc-dev am: b0e8892f5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/11995060

Change-Id: Idd31522c60c15cf3918d57a8c9338ec5f9789c8f
2020-06-26 14:42:11 +00:00
Feng Cao
2b2bc37a66 Post the inline suggestion response handling to next message
* so that it can determine whether to delay the deletion or not
* also fix sample IME to clear suggestions when asked to

Test: manual
Bug: 159479887
Bug: 157515522

Change-Id: I71e6ac9f3593cdfa4e40b7664cbd2eec6343b5af
2020-06-24 20:09:04 -07:00
Svetoslav Ganov
97e4ace420 Merge "Implement chip clipping without reparenting" into rvc-dev am: bbba16a2c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/11961139

Change-Id: I6d036aefeadb4618d2ca43e7a961224c5483be32
2020-06-23 22:55:46 +00:00
Svetoslav Ganov
bbba16a2c9 Merge "Implement chip clipping without reparenting" into rvc-dev 2020-06-23 22:43:14 +00:00
Feng Cao
14ce26727a Optionally schedule a delayed deletion of suggestions in sample keyboard am: 1bbbbac30e
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/11921811

Change-Id: I35c90c828259c26fdf449078c5bbbab0ce521f9c
2020-06-23 17:51:36 +00:00
Svet Ganov
e3d07e3b04 Implement chip clipping without reparenting
Reparenting has side effects that require to be compensated
for adding complexity. It turns out there is a simpler way
to do clipping by setting the clip bonds of InlineConteintView.

bug:153825663

Test: manual

Change-Id: Iea09013d24ffc8bb683a24c76be4289833efbb75
2020-06-22 16:57:01 -07:00
Feng Cao
1bbbbac30e Optionally schedule a delayed deletion of suggestions in sample keyboard
Test: manual
Bug: 157515522
Change-Id: Ia5517e8caff538fcc21bf69f15370a3bb2aea5de
2020-06-18 17:08:42 -07:00
Antonio Kantek
aeffc14105 Disabling popped preview key since it is currently broken. am: c448acb573
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/11824890

Change-Id: I1d566b88fe19f570fe52d9d2ea7d6a9d03656e61
2020-06-11 04:33:19 +00:00
Antonio Kantek
c448acb573 Disabling popped preview key since it is currently broken.
Test script:
Step 1: Patch this CL, ag/11800786 and ag/11802630 on rvc-dev repo
Step 2: Build and flash Hawk
Step 3: Build and install a sample multi-client IME
  make -j MultiClientInputMethod
  adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
Step 4: Enable multi-client IME for the side-loaded sample multi-client IME
  adb root
  adb shell setprop persist.debug.multi_client_ime com.example.android.multiclientinputmethod/.MultiClientInputMethod
  adb reboot
Step 5: Open KitchenSync app, select carboard, enter text on Plain Text
tab (sample multi-session keyboard doesn't support numeric keyboard yet)

Bug: 158663354
Test: manual (see test script above)
Change-Id: I11cf467acb1091b1d417e5039519e09fa7be2bf8
2020-06-10 18:49:26 +00:00
Joanne Chung
74a697a777 Follow sample code package-name convention for InlineFillService. am: e48202f01c
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/11716800

Change-Id: I0e402c45559412ff9ea4bbc3a06ae56aa9b50143
2020-06-05 01:16:00 +00:00
Joanne Chung
e48202f01c Follow sample code package-name convention for InlineFillService.
Bug: 155135358
Test: Manual. Install the application and dumpsys to check package
name.

Change-Id: Ifc338e40e6a2d37b775f6a60664231c2ce248eff
2020-06-03 17:34:22 +08:00
Feng Cao
1afa3b7b41 Update the sample IME to solve some flickers am: 0500ea20fa
Original change: undetermined

Change-Id: I53076f69527507c9cf2515a01047a8b9b952c457
2020-06-02 06:27:58 +00:00
Feng Cao
0500ea20fa Update the sample IME to solve some flickers
* This, together with the change on the framework side ag/11685298,
  gets rid of the flicker on the notification pull down/up case, as
  well as switching from username to password.
* The idea is to not clear the suggestions onInputFinish. Instead,
  we schedule a delayed deletion of the suggestions on InputStart,
  which will get canceled if there is new suggestions coming to the
  IME within the timeout. This gets rid of the flicker on the two
  cases mentioned in previous bullet.

Test: manual test
Bug: 157515522

Change-Id: I60d9181de3230d468224e2df08fee59b741d6828
2020-06-01 00:39:45 -07:00
Jimmy Chen
0b3c13c170 Merge "p2p: check device capabilities before launching this app" am: f15d5b7741 am: acd0ad6ab9
Change-Id: Iac6c579cefefdd6b3d2f437a8fb281833ba32874
2020-05-28 02:41:07 +00:00
Feng Cao
4c884825e1 Use updated inline suggestion support lib API am: 3de13dad62
Change-Id: Ia1bff5ea8c73bb2de89544c660050511c39822a8
2020-05-28 01:01:59 +00:00
Feng Cao
3de13dad62 Use updated inline suggestion support lib API
Test: m -j
Test: atest android.autofillservice.cts.inline
Bug: 155172850

Change-Id: Iba6d76c38885498547b0421a0f4df54c7ed41ad3
2020-05-27 10:03:27 -07:00
Jimmy Chen
c2bb1cb556 p2p: check device capabilities before launching this app
Bug: 157446389
Test: launch this app with below condition
      * remove Wi-Fi Direct support, the sample app should be closed, but not crash.
      * wifi is off, the sample app should be closed, but not crash.
      * wifi is on, the sample app could be launced normally.
Change-Id: I056dae7d1ab069ba85612328ea4e1750332c25ff
2020-05-26 18:31:14 +08:00
Feng Cao
163ec3ea06 Update sample IME and autofill provider to use the new support lib APIs am: 0c501136ca
Change-Id: I0c63cb8c944e2b16ace4f648423fe9c7930a9d0a
2020-04-28 21:26:04 +00:00
Feng Cao
0c501136ca Update sample IME and autofill provider to use the new support lib APIs
* refactor the autofill provider code
* keyboard now uses wrap_content when inflating

Test: manual
Bug: 154178486

Change-Id: Ie540178d8f063e3a8e9afb76284b15ab40ada344
2020-04-28 00:04:20 -07:00
TreeHugger Robot
79289b6516 Merge "Fix NPE when run the testing in IntentPlayground" into rvc-dev am: 44b11dd142
Change-Id: I7a63deb14b0e9727e53c5c1a01a20c83a86d26e5
2020-04-24 02:51:27 +00:00
Jeff Chang
6275634b9e Fix NPE when run the testing in IntentPlayground
StartActivity with a null intent lead to the NPE when execute
the Intent testing.

This CL make sure the intent is good before run the testing

Bug: 154568140
Test: Manual to run the intent tesing.
Change-Id: I8d8bc8e1347ae5f095e01f4a718f2ab936574fcc
2020-04-21 10:34:53 +00:00
Orion Hodson
842130c0f0 Merge "Add explicit dependency on jni_headers" am: d7b8f6e0fb am: 34c9491836
Change-Id: I2472aedfdefa230faccf9b53dd8d8eb4f7f3eb54
2020-04-16 10:51:59 +00:00
Orion Hodson
d54dc1d789 Add explicit dependency on jni_headers
Preparation for removing implicit include paths for jni.h from soong.

Bug: 152482542
Test: m checkbuild
Change-Id: I1801621549689111b058fa611d2d3e2b08ee2a45
Exempt-From-Owner-Approval: build refactoring
2020-04-16 08:25:53 +00:00
Svet Ganov
f34c6275f1 Update the sample keyboard to showcase scroll, clip, toggle
The keyboard now showcases how one can implement a suggestion
strip with some pinned suggestions on the left and the right
of the strip and the strip suggestions are scrollable and well
as clipped to the scroll are's bounds. Also this showcases
how to toggle the layering of the suggestions to temporary
amimate on top of them. Fun, fun fun :)

bug:1234567

Change-Id: I7f2a6ea148de31be7cd0f13f56d72f6e5246a5f8
2020-04-08 03:10:53 +00:00
Adam He
d60f629802 Migrate to new APIs utilizing
android.widget.inline.InlinePreesntationSpecs.

Bug: 151262653
Test: manual verification
Change-Id: Ia03d463d6e7b18c34de95a9cde639bb307c301ef
2020-03-26 15:49:14 -07:00
Feng Cao
c7ed6af6be Sample app: Use authentication instead of inline actions
Test: manual
Bug: 150499490

Change-Id: Ifc827cd1d633bf26a3450c392cc7da1211d02cfa
2020-03-18 14:16:20 -07:00
Feng Cao
87225ce7f6 Update sample app to listen to clicks on chip
Test: manual
Bug: 151185482

Change-Id: I85c706c896dacfd499c9e0aa1782f23a3f65e569
2020-03-10 18:20:27 -07:00
Feng Cao
8f41686c0a Update sample app for the inline action API change
Test: manual verification
Test: atest android.autofillservice.cts.inline
Bug: 150499490

Change-Id: I301d2c2b8afd86362a7a1989223a2f305e4e92bd
2020-03-09 16:57:35 -07:00
Feng Cao
bbbadb5ff1 Merge "Sample app: update autofillkeyboard sample app to work with the new API" 2020-02-19 22:35:42 +00:00
Feng Cao
874ce46cd3 Sample app: update autofillkeyboard sample app to work with the new API
Test: manual verification
Bug: 146454892

Change-Id: I95eb0ec15b9cd1a73e7a0e7f35d1691744a90f72
2020-02-18 19:34:17 -08:00
TreeHugger Robot
520a1a961b Merge "Fix SampleSpellChecker not working in TextView" 2020-02-18 21:47:13 +00:00
TreeHugger Robot
f3a5787bd2 Merge "Sample app uses the inline suggestion theme from the support library" 2020-02-16 02:23:34 +00:00
Feng Cao
95202b1a6e Sample app uses the inline suggestion theme from the support library
Test: manual
Bug: 10329810

Change-Id: Ib151044a726aa0892635e28f02c6cef5829abd39
2020-02-14 23:23:22 -08:00
TreeHugger Robot
469866915d Merge "Added auth activities for inline fill service." 2020-02-15 02:41:58 +00:00
Tetsui Ohkubo
99b6f4f516 Fix SampleSpellChecker not working in TextView
This CL fixes two bugs in SampleSpellChecker that prevented the sample
spell checker from working in an actual TextView.

1. The order of constructor arguments for SentenceSuggestionsInfo() was
   wrong.
2. SuggestionsInfo always needs cookie and sequence attributes from
   TextInfo.

Test: manual(Enable the spell checker from Android settings and type
in a TextView)
Bug: None

Change-Id: Ie5c82c683b031d24bcde4a92e5e23f086d1934d6
2020-02-14 14:15:12 +09:00
Adam He
62dfb3ae4e Added auth activities for inline fill service.
This CL adds functionality to test both response and dataset
authentication using the inline fill service. Setting either
mAuthenticateResponses or mAuthenticateDatasets will test either
functionality.

Bug: 148815880
Test: manual verification
Change-Id: Ifb734c4fd8d5ef38dd4c6c9d4b493c80abbde305
2020-02-12 14:50:50 -08:00
Ahaan Ugale
4114e23598 Implement filtering in the sample Autofill Keyboard.
Inline suggestion filtering implemented in ag/10271909.

Test: manual

Change-Id: I9129de847c3e16f032d2c933c95b94997429baf2
2020-02-11 18:31:32 +01:00
TreeHugger Robot
7d20b8b239 Merge "Sample AF app: Return static icon in the InlineFillService" 2020-02-04 04:08:26 +00:00
Feng Cao
c3ff274a6a Sample AF app: Return static icon in the InlineFillService
Test: manual
Bug: 147394280

Change-Id: I311a3aac05f874c42e400eea2ee343ae0eb01da5
2020-02-03 15:08:51 -08:00
Svet Ganov
6b5b977f1e Scrollable inline suggestions
Increase the number of suggestions for scrolling in
the sample autofill service.

Add scrollable container for the suggestions in the
keyboard suggestion view.

Test: manual

Change-Id: I4f8a2fe191f4b7e5a70b5370a7bd55a2e9dddc9a
2020-01-27 19:32:01 -08:00
TreeHugger Robot
9fe6ed8204 Merge "Add inline controller UI fields to the autofill response and IME inline response" 2020-01-24 04:28:40 +00:00
Feng Cao
6ca2598e25 Add inline controller UI fields to the autofill response and IME inline response
Test: build
Bug: 147394280

Change-Id: I79e51cb5d8e68cc3e099bf218a77c07de600da91
2020-01-23 18:45:08 -08:00
Feng Cao
5687a2b635 Make sample IME support styling
Test: manual
Bug: 146454892

Change-Id: Idf173ae7fc0c3fe83736d73e7a3ab6953ae868aa
2020-01-22 15:25:29 -08:00
Adam He
1be5dade1d hardcode slice creation inline with androidx inlinepresentationbuilder.
Bug: 147116534
Test: manual verification.
Change-Id: I49d653da1e5d408c1a0219b98a755d1eab753f2d
2020-01-14 15:57:59 -08:00