Commit Graph

3627 Commits

Author SHA1 Message Date
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
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
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
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
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
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
TreeHugger Robot
0caa955119 Merge "Disable navbar contrast for ThemedNavBarKeyboard" into qt-dev 2019-04-25 17:52:42 +00:00
Tarandeep Singh
dbeac65afa Disable navbar contrast for ThemedNavBarKeyboard
With Ib8f4045b9e8e7bf65c13437133f114d91d0cb050 navbar always has
contrast thereby creating a solid navbar. However, for IMEs that wish to
draw a gradient, will need to have this disabled.
This change disables contrast for extended navbar gradient.

Fix: 130809016
Test: Manually verified:
    1. m -j ThemedNavBarKeyboard
    2. Install and enable
    3. Click "Extended dark nav bar" and verify gradient is visible.

Change-Id: I511bdcde0ef57c1484faace484db262b49fdfe16
2019-04-22 11:48:40 -07:00
wilsonshih
a46f0248c4 Provide a sample of multi-display wallpaper.
Some key events to build a wallpaper which can support
multiple display.
- The rendering or event handler of each engine must be
independent.
- Set supportsMultipleDisplays attribute to true.
- Use Engine#getDisplayContext to load resource if
needed.

Bug: 129696884
Test: launch wallpaper and check on multi display.
Change-Id: I3c60caba921e0af3d5f681ed318a543328e3375a
2019-04-18 18:22:05 +08:00
Tarandeep Singh
f4de813fcf MSIME sample: Make lastClientId non-static
This is a followup for comment in I77bf8c844838f32888004611975cfa316255961b
lastClientId doesn't need to be static as MultiClientInputMethod is single instance.

Bug: 128751901
Test: Manually verified using steps in bug.

Change-Id: I049a5e9966408b1d304e23713fae2c3597d89a5c
2019-04-16 15:05:10 -07:00
Tarandeep Singh
0994cdf0dc Modify MSIME sample to use setActive()
MSIME sample can now set connection active/inactive.

Bug: 128751901
Test: Manually verified using steps in bug.
Change-Id: I77bf8c844838f32888004611975cfa316255961b
2019-04-11 15:57:42 -07:00
wilsonshih
1f1a32f57e Fix MDLauncher crash when started.
MDLauncher crash after change material source.
Change theme parent to fix it.

Bug: 130151609
Test: Manual
Change-Id: Iccc68c71953e042a4b5462ab7f900e99e94cf3e7
2019-04-09 20:42:34 +08:00
Chilun
38f18b8837 Hide keyboard while the home button get pressed
For multi-client IME, launcher need to call hideSoftInputFromWindow() by
using the InputMethodManager instance that mapped the presented display
while its home button get pressed.

Bug: 120114697
Test: Manual verified that multi-client IME can be closed correctly.
Change-Id: I2edaa12d2e9c68d0e6dae5ca45f23abd9ab47acd
2019-03-19 18:26:50 +08:00
Aurimas Liutikas
a955aae5ab Migrate away from temporary androidx.design_design target.
androidx.design_design was a target created temporarily while
the com.google.android.material_material was being added.
This migrated to the final material design class packages.

Test: make -j IntentPlayground MultiDisplay
Change-Id: I0e9dabb222e19530c3a558cf4fce4d54e81f8e47
2019-01-30 22:40:04 -08:00
Irina Dumitrescu
08b20b87cf Merge "Showcase HTTP proxy usage in ToyVPN." am: 0278c48f47 am: 4674a9c434
am: aa4b67c871

Change-Id: Ie77a0b1c41049c0f7d3ee0997fe271c738505eba
2019-01-25 05:58:57 -08:00
Irina Dumitrescu
55af6b593b Showcase HTTP proxy usage in ToyVPN.
Test: manual.
Bug: 76001058
Change-Id: I08efa2ba8379114b88aa4e10c6fa733670df6995
2019-01-25 12:07:34 +00:00
TreeHugger Robot
f306ff38b0 Merge "Fix radio buttons in IntentBuilderView" 2019-01-18 03:39:35 +00:00
Liam Clark
bdcb5373e4 Merge changes I73e0f172,I3004e6dd,Id0ed0fcc,Idb834cbd,Ia83cd907, ...
* changes:
  Dead code removal
  IntentPlayground start activities for result
  Order the radio buttons in the launch fragment
  Replace ActivityInstanceInfo api with in app lifecycle event tracking
  Rebind task navigation buttons
  Move the launch activity button to the toolbar
2019-01-18 01:30:59 +00:00
Liam Clark
50ddeac96f Fix radio buttons in IntentBuilderView
Intent builderview currently had a hierarchy consiting of:
RadioGroup -> LinearLayout -> RadioButton. However if the RadioButton is
not directly inside the RadioGroup, the RadioGroup has no effect on the
button.

Instead keep a list of all the RadioButtons we have and deselect all
others when a new button gets clicked.

Test: Manual
Change-Id: I65b9e1165ae3abc23b10f7eb8770a60f144aac82
2019-01-17 15:38:11 -08:00
Liam Clark
b6daa9e91a Dead code removal
Code to access the ActivityInstanceInfo api through reflection is no
longer needed, because we have the lifecycle tracking.

There were some resources for the snackbar that used to be shown during
the launching of the preset activities however that has been removed.

Finally there was a bunch of code in TestBase, that was trying to
predict the outcome of intent flags that never did anything.

Test: Build module
Change-Id: I73e0f172b605cff2433c8c386ef9b1672130f349
2019-01-17 15:38:11 -08:00
Liam Clark
ba9b6ca212 IntentPlayground start activities for result
Test: Manual
Change-Id: I3004e6dd76c026e41d2c9a28f4dd59664f99cd09
2019-01-17 15:38:11 -08:00
Liam Clark
5e9e4f94aa Order the radio buttons in the launch fragment
The radio buttons were added to thew view depending on the iteration
order of a hashmap. This the iteration order is not fixed causing the
radio buttons to be in different places all the time.

Test: Manual
Change-Id: Id0ed0fcc97d7f79474f266d5ea3a8a1df1ed15bb
2019-01-17 15:38:11 -08:00
Liam Clark
e9b4b84dae Replace ActivityInstanceInfo api with in app lifecycle event tracking
Since adding a public api for the playground app was problematic,
we now keep track of onResume and onDestroy calls globally inside the
app. This fixes a few bugs in cases where tasks would be hidden from the
ActivityManger#.getAppTasks() method and allows us to listen for changes
allowing us to do without a periodic refresh of the UI.

Test: Manual

Change-Id: Idb834cbdc7aad6442dd962c95b5321e1d75695fe
2019-01-17 15:38:10 -08:00
Liam Clark
fb526d038f Rebind task navigation buttons
Test: Manual
Change-Id: Ia83cd9074152be8f5a1e2f6e00cac30c5109ada6
2019-01-16 13:16:21 -08:00
Liam Clark
64a9fe4304 Move the launch activity button to the toolbar
Test: Manual
Change-Id: I81155492b39d6c72b0976a738a90ed00226bc1e8
2019-01-16 13:12:10 -08:00
Jack He
5f39fa4424 Merge "Remove BluetoothHDP sample" am: 90e8332205 am: bca73d528a
am: 708e2f5294

Change-Id: I0322713b0ebd1c9a8edd47e12c7f82464444a1b9
2019-01-09 21:12:20 -08:00
Jack He
b08bc0c4d2 Remove BluetoothHDP sample
* Remove code samples that uses Bluetooth Health Device Profile
* Health Device Profile (HDP) and MCAP protocol has been largely
  replaced by BLE. New applications should use Bluetooth Low Energy
  instead of legacy Bluetooth Health Device Profile

Bug: 111562841
Test: make, unit test, use Bluetooth
Change-Id: I8a7228ab54a669febdbd32cb85a0f744113087e9
2019-01-08 14:39:10 -08:00
Ivan Chiang
2388037eac Add the sample of adding query content in intent
Add the query content in intent

Bug: 119866469
Test: manually using ApiDemos Content > Storage > Documents
Change-Id: I97ccd1ca6d3e1ecbddefe353b625c145d4c0ecd0
2018-12-27 21:35:15 +08:00
Jimmy Chen
340afce069 Merge changes I0f7e3578,Ie50dd642 am: 066974d7d2 am: a37e4bcb33
am: 6311e6fe0b

Change-Id: Ie0ae14d6f04f4c9355b71c9c831a2414b5c6f5e9
2018-12-26 22:06:22 -08:00
Jimmy Chen
bf7f1c906c Merge "WiFiDirectServiceDiscovery: Create a thread for sending message" am: 1906d9c9e3 am: 9f120478bf
am: c2b17b167c

Change-Id: I19b86cd6fbf0db3bc2f379c18186a6cf6179725b
2018-12-26 18:53:22 -08:00
Liam Clark
81f3de5425 Merge "Put the launch form behind a FAB" 2018-12-21 18:35:47 +00:00
Liam Clark
3766f855f5 Merge "Move launch default activity prompt to the menu" 2018-12-21 18:35:33 +00:00
Liam Clark
bb3a76821a Merge "Replace current activity fragment with highlight" 2018-12-21 18:35:20 +00:00