Commit Graph

3654 Commits

Author SHA1 Message Date
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
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
Jeff Vander Stoep
e3ceaed976 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)
2019-07-17 21:47:43 +00:00
Jeff Vander Stoep
426027aac2 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

Change-Id: Iab077f256ff3776495302606572f384d82ab171f
Merged-In: Iab077f256ff3776495302606572f384d82ab171f
2019-07-17 21:34:36 +00:00
TreeHugger Robot
cfab78e5b3 Merge "Renderscript: rename .rs extension to .rscript" 2019-07-17 18:04:17 +00:00
TreeHugger Robot
42c9a1f523 Merge "Add target_sdk_version for SoftKeyboard" 2019-07-16 15:31:09 +00:00
lumark
b7b7b5d8ab Add target_sdk_version for SoftKeyboard
CL [1] instroduced min_sdk_version due to createDisplayContext
needed sdk version 19+.

If we are using pre-release SDK version but the device didn't match
this platform and won't set target_sdk_version, it will result in
INSTALL_FAILED_OLDER_SDK error during install apk.

To make apk installable in older sdk devices & without hitting
pre-release SDK version case, specify target_sdk_version value to keep
its comparability.

[1]: Ic592a1d2fb2da149220c8b503b522b3e864bcc77

Fix: 137200759
Bug: 126930163
Test: manual as below test steps:
     1. Check out the latest master.
     2. source build/envsetup.sh
     3. lunch aosp_walleye-userdebug
     4. make -j SoftKeyboard (or tapas SoftKeyboard)
     5. Using "adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk"
        to install app in older platform rom build (i.e. android P or N)
     6. Make sure .apk file can installed without INSTALL_FAILED_OLDER_SDK error.

Change-Id: I5da196b5a1b257ec6d5b9e6f447a4734928f4580
2019-07-16 18:00:54 +08:00
Jeff Vander Stoep
4a8876ec9e 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

Change-Id: Iab077f256ff3776495302606572f384d82ab171f
2019-07-15 09:17:58 -07:00
Yuncheol Heo
073cb3db84 Supports the separate display for the input window.
Bug: 136039906
Test: Test manually with the uncommented example config in hawk_md.
Change-Id: I404cc2ce137563ced8e2180dd0539bd98524ff57
2019-07-12 14:51:52 -07:00
lumark
d5ca5a1f8d 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
2019-07-09 22:33:58 +08:00
Bob Badour
47c4a81ffa Merge "Clarify license terms for Romain Guy's artwork." am: a37de64bd6 am: fb5f7546b0 am: 801760580f
am: 78ef94715c

Change-Id: Ic6d304bab837f858f662bbb2542421caa7f2ca60
2019-06-27 21:09:53 -07:00
Bob Badour
801760580f Merge "Clarify license terms for Romain Guy's artwork." am: a37de64bd6
am: fb5f7546b0

Change-Id: I964e6ca1dcc1bf15925d79a80e9707d8e691c4d8
2019-06-27 20:31:48 -07:00
Bob Badour
e72c60e885 Clarify license terms for Romain Guy's artwork.
As discussed with Romain Guy in the email thread, the Apache 2.0
license applies to the affected .jpg files now and retroactively from
the time of import.

Usage terms updated using exiftool:

$ exiftool -UsageTerms='Apache License Version 2.0' \
    development/samples/ApiDemos/res/drawable-nodpi/frantic.jpg
Warning: [minor] Fixed incorrect list type for XMP-xmpRights:UsageTerms - development/samples/ApiDemos/res/drawable-nodpi/frantic.jpg
    1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
    development/samples/ApiDemos/res/drawable-nodpi/frantic.jpg
Usage Terms                     : Apache License Version 2.0
Rights                          : Romain Guy
Creator                         : Romain Guy
$ exiftool -UsageTerms='Apache License Version 2.0' \
    development/samples/devbytes/animation/PictureViewer/res/drawable-nodpi/p3.jpg
    1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
    development/samples/devbytes/animation/PictureViewer/res/drawable-nodpi/p3.jpg
Usage Terms                     : Apache License Version 2.0
Rights                          : Romain Guy
Creator                         : Romain Guy
$ exiftool -UsageTerms='Apache License Version 2.0' \
    development/samples/devbytes/animation/PictureViewer/res/drawable-nodpi/p2.jpg
    1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
    development/samples/devbytes/animation/PictureViewer/res/drawable-nodpi/p2.jpg
Usage Terms                     : Apache License Version 2.0
Rights                          : Romain Guy
Creator                         : Romain Guy
$ exiftool -UsageTerms='Apache License Version 2.0' \
    development/samples/devbytes/animation/ActivityAnimations/res/drawable-nodpi/p3.jpg
    1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
    development/samples/devbytes/animation/ActivityAnimations/res/drawable-nodpi/p3.jpg
Usage Terms                     : Apache License Version 2.0
Rights                          : Romain Guy
Creator                         : Romain Guy
$ exiftool -UsageTerms='Apache License Version 2.0' \
    development/samples/devbytes/animation/ActivityAnimations/res/drawable-nodpi/p2.jpg
    1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
    development/samples/devbytes/animation/ActivityAnimations/res/drawable-nodpi/p2.jpg
Usage Terms                     : Apache License Version 2.0
Rights                          : Romain Guy
Creator                         : Romain Guy

Test: doesn't realy apply to images

Change-Id: If060c6ba0f0279e3a7e6446061d50cd8e4cdec3c
2019-06-27 14:58:10 -07:00
Alexander Smundak
34f6e1352e Merge "Convert Android.mk files to Android.bp" am: 1ccb28f28a am: aabc1be2ea am: dc5a7ea905
am: f29f5cb2c5

Change-Id: I2709ce74f52290b452cee8ab5492903dcdf10a92
2019-06-27 11:36:13 -07:00
Alexander Smundak
dc5a7ea905 Merge "Convert Android.mk files to Android.bp" am: 1ccb28f28a
am: aabc1be2ea

Change-Id: Ic2e36324d145bc7ff064647b8304f548235382aa
2019-06-27 09:34:48 -07:00
Sasha Smundak
bef01b9173 Convert Android.mk files to Android.bp
See build/soong/README.md for more information.

Bug: 122332515
Test: treehugger
Change-Id: I0f6ae8d880114d1bc83f7aac2b96eafef76dc046
2019-06-25 14:18:16 -07:00
Tarandeep Singh
3cb92473f1 Merge "Fix MSIME client's active state" 2019-06-13 21:18:56 +00:00
Tarandeep Singh
0f7a3f791d 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
2019-06-13 11:39:38 -07:00
Bob Badour
fe5ea80069 Merge "Clarify license terms for Romain Guy's artwork." am: d7645b2b82
am: 3842f20b1c

Change-Id: I0ea0efa3a110440b00390d1a308312a2ed104593
2019-06-05 21:23:19 -07:00
Bob Badour
9a78b7eea4 Clarify license terms for Romain Guy's artwork.
As discussed with Romain Guy in the email thread, the Apache 2.0
license applies to the affected .jpg files now and retroactively from
the time of import.

Each of the images was altered using the exiftool:

exiftool -URL=http://www.apache.org/licenses/LICENSE-2.0 \
    -WebStatement=http://www.apache.org/licenses/LICENSE-2.0 \
    -UsageTerms='Apache License Version 2.0'

Change-Id: I9843a8f9b285799cc28e824167cbe0f14e4e651e
2019-06-05 22:19:33 +00:00
Bob Badour
3bdea97ab6 Merge "Clarify license terms for Romain Guy's artwork." am: 0e3bcf70c5
am: bcd745dddc

Change-Id: I330e55df545251008c1940ec9b22732799de7fc5
2019-06-05 14:59:37 -07:00
Bob Badour
d41e5f7851 Clarify license terms for Romain Guy's artwork.
As discussed with Romain Guy in the email thread, the Apache 2.0
license applies to the affected .jpg files now and retroactively from
the time of import.

Each of the images was altered using the exiftool:

exiftool -WebStatement=http://www.apache.org/licenses/LICENSE-2.0

Change-Id: I557d0129617164209a3eec7ec2d228f266643ca0
2019-06-05 20:08:08 +00:00
Yuncheol Heo
9d4c7d79dc Handle a shift key.
- Add a symbol shift keylayout.
- Apply a shifted state (upper case) on the next key input.

Bug: 132636760
Test: test manually.
Change-Id: I7447b9df47a953dad7216977e0b75ab801d863e4
2019-05-16 22:51:38 +00:00
Yuncheol Heo
94376a0ffe Add a symbol keyboard.
- Add a symbol layout.
- Let it change the layout between qwerty and symbol on KEYCODE_MODE_CHANGE.
- Adjust key-sizes of the last row in the qwerty keyboard to make it 100%

Bug: 132636760
Test: test manually
Change-Id: I33bd70dc47498ad3f6d255641c9edf48113c053d
2019-05-16 14:04:34 -07:00