Commit Graph

3676 Commits

Author SHA1 Message Date
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
TreeHugger Robot
d92c9bd661 Merge "Fixed inline fill service crashing calling dataset api with null inline presentation." 2020-01-13 22:20:33 +00: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
Adam He
7c0a14d303 Fixed inline fill service crashing calling dataset api with null inline
presentation.

Bug: 146453536
Test: manual verification
Change-Id: Ic565115b067ae05e980393c49963b3bd0362f5cc
2020-01-06 15:03:59 -08:00
Adam He
b60f71e9c7 Refactored Inline Fill Service to provide Slice in Datasets
Bug: 146453536
Test: manual verification
Change-Id: I833786992ecd183cdc20bc1f193f8726e01dedc8
2020-01-06 10:22:23 -08:00
TreeHugger Robot
be9d6a408c Merge "Inline Fill Service for demo." 2020-01-04 01:18:46 +00:00
Adam He
87a8075963 Inline Fill Service for demo.
Bug: 137800469
Test: manual verification
Change-Id: I44464649dc64f26823461b2bc54dd64440471d61
2020-01-02 08:32:29 -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
lumark
eac77301f8 Remove StartInputFlags.FIRST_WINDOW_FOCUS_GAIN
Since this flag does not do any check during start input,
CL[1] removes this flag and the related parameter for IMM#onPostWindowFocus
to keep the logic simpler (included removing
ViewRootImpl#mHasHadWindowFocus).

Also remove this flag's debug string for For MultiClientInputMethod.

This is refector CL and does not impact any behavior change.

CL[1]: I9119f4846cbbd2b15246dea9a3b1fc5845dce951

Bug: 141738570
Test: Refector CL, make sure all existing test passed.
Change-Id: I9c8c9ac0ce5d0e4a803842d4cefb9119ec51024d
2019-10-29 23:59:42 +08:00
Jimmy Chen
d36a59147a Merge "WiFiDirectDemo: update permission requirement" am: ef35801792 am: eb22de04c3 am: 056b32b98e
am: 36c69d3251

Change-Id: I0e2efba079ad72257b3c0b17d40b04852025d09f
2019-10-03 20:18:06 -07:00
Jimmy Chen
eb22de04c3 Merge "WiFiDirectDemo: update permission requirement"
am: ef35801792

Change-Id: I1d5e6eeee42366fe83f7e2631bc08f4ce80376ac
2019-10-03 20:00:33 -07:00
Treehugger Robot
ef35801792 Merge "WiFiDirectDemo: update permission requirement" 2019-10-04 02:43:26 +00:00
TreeHugger Robot
ae9378c4dc Merge "Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master" into stage-aosp-master 2019-09-11 20:31:36 +00:00
Treehugger Robot
849ba2a546 Merge "Create display context when switching IME to new display" 2019-09-11 02:05:14 +00:00
lumark
13a549168e Create display context when switching IME to new display
To address IME service context's Resources / DisplayMetrics update
when switching IME window to another display after onConfigurationChange.

We use Context#createDisplayContext to create display specific context when
display changed, to ensure soft keyboard can re-layout with correct resources.

Bug: 126930163
Test: manual with SoftKeyboard as below steps:
     1) Settings > Developer options > enable "Simulated Display" & "Force desktop mode".
     2) Reboot device
     3) Launch app (i.e. Contacts) with bluetooth or usb mouse in Simulated display.
     4) Tap EditText on app to see see if IME window layout correctly on simulated display.
     5) Launch app (i.e Files) on primary display.
     6) Tap EditText on app to see if IME window layout correctly on primary display.

Change-Id: Ic592a1d2fb2da149220c8b503b522b3e864bcc77
Merged-In: Ic592a1d2fb2da149220c8b503b522b3e864bcc77
2019-09-11 02:04:44 +00:00
Tarandeep Singh
ea0fe35391 Fix MSIME client's active state
Introduce per-display active client. Also, deactivate previous client
when window loses focus so that connection can be restarted on next
focus gain.

Test: Manually using the steps in bug.
Bug: 131619304
Change-Id: Iefad3f018ef0cc1b3729af4a140afa1b52139ce0
Merged-In: Iefad3f018ef0cc1b3729af4a140afa1b52139ce0
2019-09-10 04:16:10 +00:00
Xin Li
4874aace15 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: I1bc7fef3b1bb1cb53cb724dd1d206ab9dbdece73
Merged-In: I8a07a2e852b9003de35997cd5d3a7bb340a079db
2019-09-08 13:06:31 -07:00
Yuncheol Heo
43d7e7a577 Merge "Supports VirtualDisplay for the input window mappings." 2019-09-04 15:52:40 +00:00
Michael Rosenfeld
9f2b58544f Merge "Add a lower SDK version of the business card app." am: 86fd70bbec am: 107beb9730 am: 627597655e am: be50ce4f69
am: bc96aa8ce7

Change-Id: Iada81be351d87c87aff7e75aa383c6e9e2fa3117
2019-08-28 21:05:00 -07:00
Michael Rosenfeld
627597655e Merge "Add a lower SDK version of the business card app." am: 86fd70bbec
am: 107beb9730

Change-Id: Id1067551478d166c74bd289fd97dfc458b1d4100
2019-08-28 19:50:48 -07:00
Michael Rosenfeld
107beb9730 Merge "Add a lower SDK version of the business card app."
am: 86fd70bbec

Change-Id: Ic9623074945aa856ff4c228af7344580727b7cb9
2019-08-28 19:44:46 -07:00
Michael Rosenfeld
0dc513c093 Add a lower SDK version of the business card app.
Bug: 137401958
Test: manual install
Change-Id: Ic9f7c974dd293f035cb9566d7c28358a63ec8fa6
2019-08-28 16:16:42 -07:00
Yuncheol Heo
52b912ddd6 Supports VirtualDisplay for the input window mappings.
- Uses the regular expression to match the display unique id.
- Changes the config separator from comma to slash, since comma is used in
  virtual display unique id.
- Adds the example config for ActivityView.

Bug: 136039906
Test: manually with the example configs.
Change-Id: I51917d39c5cb11666dcb4fea69545f3075a024a7
2019-08-26 18:24:49 -07:00
Jimmy Chen
2e1f06e591 WiFiDirectDemo: update permission requirement
After Q-release, WiFi Direct requires FINE location permission.

Bug: 139787683
Test: build and launch
Change-Id: I4599ab24498f07fe0dd9873a356d8f8b34502fff
2019-08-22 13:11:27 +08:00
Nick Cook
b912459624 docs: Fix outdated sample code in Context#getExternalFilesDir. Test: make ds-docs am: f767eb4aa9 am: cc4b685d3e am: 458535f402
am: e96e1fd5c3

Change-Id: Ia4143a6d15583b9890024685944facafc677c6e4
2019-08-19 18:35:42 -07:00
Nick Cook
e96e1fd5c3 docs: Fix outdated sample code in Context#getExternalFilesDir. Test: make ds-docs am: f767eb4aa9 am: cc4b685d3e
am: 458535f402

Change-Id: I598109be9bb03349f93e9266e18372aa5e9f199e
2019-08-19 18:25:38 -07:00
Nick Cook
7a58326f08 docs: Fix outdated sample code in Context#getExternalFilesDir. Test: make ds-docs
am: f767eb4aa9

Change-Id: I0a5d7d6f6fa9b28f650891d4a70b7efbcc053f45
2019-08-19 18:04:42 -07:00
Nick Cook
f767eb4aa9 docs: Fix outdated sample code in Context#getExternalFilesDir.
Test: make ds-docs

Bug: 129290716
Change-Id: I0b1c1d9222c96c6bb2777f58d273546c81d77eb2
2019-08-20 00:45:50 +00:00
Jeff Vander Stoep
9d532d5695 Renderscript: rename .rs extension to .rscript
Reserve .rs extension for Rust.

Bug: 137365032
Test: make checkbuild
Test: cd frameworks/compile/slang/tests
    ./slang_tests.py
Test: atest CtsRenderscriptTestCases
Test: CtsRsCppTestCases

Exempt-From-Owner-Approval: Clean CP
Change-Id: Iab077f256ff3776495302606572f384d82ab171f
Merged-In: Iab077f256ff3776495302606572f384d82ab171f
(cherry picked from commit 4a8876ec9e)
(cherry picked from commit e3ceaed976)
2019-07-18 04:00:17 +00:00
Jeffrey Vander Stoep
a8cd634bf0 Merge "Renderscript: rename .rs extension to .rscript" 2019-07-18 02:02:00 +00:00