Commit Graph

3809 Commits

Author SHA1 Message Date
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
Liam Clark
c5cb70b283 Merge "Make tree fragment's expandable current view expand by default" 2018-12-21 18:35:05 +00:00
TreeHugger Robot
51363702de Merge "Update IntentFlags to include MATCH_EXTERNAL" 2018-12-21 03:10:36 +00:00
TreeHugger Robot
862dc05676 Merge "Test StorageVolume#createOpenDocumentTreeIntent" 2018-12-20 15:49:11 +00:00
Amin Shaikh
8109cdef05 Test StorageVolume#createOpenDocumentTreeIntent
Also fix bug where persistent uri access was not taken for
OPEN_DOCUMENT_TREE intents.

Change-Id: Iccc3e2434e08e42fa84dc3ceb3fbfe1db1320180
Fixes: 119519300
Test: manually using ApiDemos Content > Storage > Documents
2018-12-18 15:06:58 -05:00
Jimmy Chen
9698e38ec3 WiFiDirectDemo: fix no peer in list after m-release
After m-release, location permission is necessary for getting wifi scan
results, including p2p scan results.

Bug: 113998459
Test: manual test with two devices
Change-Id: I0f7e3578108c690bea382c41abd28b98fd1d5d31
2018-12-07 19:00:06 +08:00
Chilun
65f0ccfed7 Support secondary displays
Add category SECONDARY_HOME.

Bug: 118206886
Bug: 111363427
Test: Manual
Change-Id: I6c8fb0f1bdd905fafab357eb3b444e8db34f2bae
2018-12-06 21:22:02 +08:00
TreeHugger Robot
5dee3e168e Merge "Allow to launch activity without specifying display id" 2018-12-04 02:55:07 +00:00
Liam Clark
1ca6b6ec7d Put the launch form behind a FAB
This greatly reduces the amount of scrolling needed to switch between
the overview-view and the launch-view. When launching the next activity
the launch view is dismissed and the user return to the overview-view
if they press back.

Test: Manual
Change-Id: I051ba98b29d666cf56753feebfaa87d2e181a3ab
2018-12-03 13:41:53 -08:00
Liam Clark
a2f0b5d456 Move launch default activity prompt to the menu
Instead of asking at startup, the prompt now launches from a menu item.
This also get's rid of the snackbar because it was causing bugs with
rotation.

Furthermore now the android.permission.SYSTEM_ALERT_WINDOW permission is
no longer needed.

Test: Manual
Change-Id: I566e58d4844aecf127b5198c050ff115de7e4919
2018-12-03 13:41:48 -08:00
Liam Clark
a0365534d3 Replace current activity fragment with highlight
Test: Manual
Change-Id: Id85a26f56ea4a721791d481ca9a1ff130f090df7
2018-12-03 11:56:05 -08:00
Liam Clark
f63bc32ae7 Make tree fragment's expandable current view expand by default
This gives the user a clearer overview of the current state of the
application, without having to expand all the tasks.

Padding has been reduced to better utilize available screen space.

The bring to front and remove buttons are currently always hidden.

Test: Manual
Change-Id: Ifcda0ff31fd5adb89a12ff6a024842c0e7a7ab29
2018-12-03 11:48:48 -08:00
Riddle Hsu
ff3874d082 Allow to launch activity without specifying display id
- Add a dropdown item to not set launch display id.
- Default don't set launch display id.

In general use cases, activity should be launched on the
display where the caller resides.

Bug: 112451761
Test: Create a virtual display with system decoration support,
      launch an activity from shortcut and check if the activity
      runs on the same display.

Change-Id: Iab2fd21402c7aa0e245ebfeb3698aaa22cb30e18
2018-11-28 10:27:05 +08:00
Liam Clark
612e3d549a Update IntentFlags to include MATCH_EXTERNAL
MATCH_EXTERNAL was introduced in api level 28, which was after the
initial version of this application.

This caused a bug for suggestions which assumed the enumeration was
total. This also includes a defensive check + log warning for unkown
flags.

Test: Build and Run
Change-Id: I153985b5fd576baf80545b4737648745b421f11e
2018-11-27 14:09:35 -08:00
Andrii Kulian
08bd8089cc Merge "Move from support appcompat to androidx appcompat" 2018-11-27 21:20:26 +00:00
Andrii Kulian
fbf1f2234c Merge "Intent Playground sample application" 2018-11-27 21:19:03 +00:00
Liam Clark
53ee6bc2bf Move from support appcompat to androidx appcompat
Test: Manual
Change-Id: Id9af2504b557d3dd6a2d84786316497cff53d9a3
2018-11-27 09:16:50 -08:00
Liam Clark
bd43fbe931 Intent Playground sample application
The app allows a user to explore the behaviour of different
launch modes, task affinities and intent flags.

It displays the current state of all tasks in the application
and their corresponding flags.

It allows the user to launch a set amount of activities on launch.
This bring the user directly into a state where many options for
exploration are available, rather than having to go through a
complicated setup first.

Access the activity field of RecentTaskInfo using reflection and mirror
the ActivityInstanceInfo into our own value object. This breaks
the compile time dependency on the ActivityInstanceInfo api and turns
it into a runtime dependency.

If the api is missing on the device we can still show the task structure
and log an error with the missing activity instance info.

Known bug: The enable suggestion button crashes the application.
Test: Build and Run

Change-Id: Id0274bae159c16aee6dccd805deb53851ffcf21d
2018-11-26 11:37:35 -08:00
Louis Pullen-Freilich
f6e0496669 Merge "Removes framework Preference demos" 2018-11-21 14:42:43 +00:00