Commit Graph

21 Commits

Author SHA1 Message Date
Colin Cross
e915cf2a80 Update lint baseline for AutofillKeyboard
The new lint version finds more NewApi errors.

Test: m lint-check
Change-Id: I190bbf97000312dc4911552594374d36d8782d7b
2021-09-20 11:56:38 -07:00
Colin Cross
86786ee8ae Update lint baseline for AutofillKeyboard
An androidx update triggered some NewApi errors.

Bug: 189179560
Test: m out/soong/.intermediates/development/samples/AutofillKeyboard/AutofillKeyboard/android_common/lint/lint-report.html
Change-Id: I219130d6f8ee791566ddeb4542a52225f124500d
2021-05-25 08:11: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
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
bbba16a2c9 Merge "Implement chip clipping without reparenting" into rvc-dev 2020-06-23 22:43:14 +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
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
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
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
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
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
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
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
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
Feng Cao
5687a2b635 Make sample IME support styling
Test: manual
Bug: 146454892

Change-Id: Idf173ae7fc0c3fe83736d73e7a3ab6953ae868aa
2020-01-22 15:25:29 -08:00
Feng Cao
b451b6f723 Fix sample ime app for inline suggestion
Test: manual
Bug: 137800469

Change-Id: I48bb917b9dc1aacfc5261d502ddcf9e7f33f4462
2020-01-06 15:20:19 -08:00
Feng Cao
77ddcd1689 Update sample IME code to support showing autofill inline suggestion
Test: manual
Bug: 146587788

Change-Id: I0e5fa3d811b8951fe471f76ce14a5bdbddd81581
2019-12-19 16:26:18 -08:00
Feng Cao
6d191940c2 Add initial sample IME code for autofill keyboard.
* This is just a skeleton IME with a very simple UI, no actual autofill related code is added yet.

Test: manual - build using m -j AutofillKeyboard, and install with adb sync

Change-Id: I8b22532646fc61af9e9c944f8db11ca1702b008f
2019-11-21 23:09:16 -08:00