Commit Graph

94151 Commits

Author SHA1 Message Date
Automerger Merge Worker
eb179fa342 Merge "docs: Delete duplicate word." into qt-dev am: 54a4bdccc4 am: 9480139340
Change-Id: I1027bb9b9a2dd830cbdf99f03369e08a464a3279
2019-12-02 23:13:37 +00:00
Automerger Merge Worker
9480139340 Merge "docs: Delete duplicate word." into qt-dev am: 54a4bdccc4
Change-Id: I8a2aa5bc892412471324f3ec5edfa2aa6d39d62c
2019-12-02 23:03:04 +00:00
Nick Cook
4ca501a6bf docs: Delete duplicate word.
Change-Id: I09fcceda7a7b0fd291c57a3005d4e027ecb99bcc
bug: 145259639
2019-11-27 22:03:43 +00:00
TreeHugger Robot
c53b736775 Merge "DO NOT MERGE: Freeup lock when IME is set inactive and unbound" into qt-qpr1-dev 2019-11-26 19:42:45 +00:00
TreeHugger Robot
a79e16c82c Merge "DO NOT MERGE: Move startInput for WINDOW_FOCUS_GAIN to background thread" into qt-qpr1-dev 2019-11-26 19:42:45 +00:00
Daniel Sandler
3b179167af Merge "Action chips in share sheet. (DO NOT MERGE)" into qt-qpr1-dev 2019-11-25 13:22:19 +00:00
Dan Sandler
0d3e358628 Action chips in share sheet. (DO NOT MERGE)
Move the Copy button to a new row of chips below the
(now larger) preview. Optionally, if a proximity-sharing
service is installed, show that chip as well.

Bug: 143229724
Fixes: 144290152
Test: atest SystemUITests frameworks/base/core/tests/coretests
Change-Id: I0d6457df85bc937f72ca97da6b4b84b634a90daf
2019-11-24 23:39:49 +00:00
Tarandeep Singh
ad0a4a229a DO NOT MERGE: Freeup lock when IME is set inactive and unbound
Any pending windowGainedFocus future should be cancelled when IME is
switched/unbound.
Additinally, startInputInner() inside synchronized block blocked
WINDOW_FOCUS_GAIN from executing. Its fine to remove synchronization
here since startInputInner() already has relevant synchronized blocks.

Change-Id: I98cb044d8cbfb80480312a3923f168aefa9b7e7d
Fix: 144103599
Bug: 139806621
Test: Manually using the steps in bug.
(cherry picked from commit 322ee9bf9e)
2019-11-23 04:14:49 +00:00
Tarandeep Singh
4b6acb4f39 DO NOT MERGE: Move startInput for WINDOW_FOCUS_GAIN to background thread
For a typical window with Editor, IMM#startInputOrWindowGainedFocus
is called twice: first for WINDOW_FOCUS_GAIN (dummyInput), then
CHECK_FOCUS when actual editor receives focus and startsInput.
The first once can be moved to background thread and second startInput
will wait till its finished.

Bug: 139806621
Test: Manually launch activities with editors and confirm no change in
behavior.

Change-Id: I6aa4a664cfd0c86f75cee2457715317194bbe5e2
(cherry picked from commit e0172102b9)
2019-11-23 04:13:28 +00:00
TreeHugger Robot
659f477f65 Merge "Fixes usage of WallpaperManager to make it optional." into qt-qpr1-dev 2019-11-23 00:05:20 +00:00
David Castro
56be7c0b58 Merge "Removes reference to deprecated code sample, https://github.com/googlesamples/android-CustomChoiceList." into qt-dev am: 3b74a86752
am: 3a6d5555cd

Change-Id: I7684da1e104dac4f62ed3a7ef3f928c1598509aa
2019-11-22 09:02:02 -08:00
David Castro
3a6d5555cd Merge "Removes reference to deprecated code sample, https://github.com/googlesamples/android-CustomChoiceList." into qt-dev
am: 3b74a86752

Change-Id: I2b5e70ef834a0d0f4ccc3689d036321094a24170
2019-11-22 08:55:24 -08:00
TreeHugger Robot
3b74a86752 Merge "Removes reference to deprecated code sample, https://github.com/googlesamples/android-CustomChoiceList." into qt-dev 2019-11-22 16:48:36 +00:00
TreeHugger Robot
d6dfaf4c9d Merge "Update equals and hashCode methods of NoMan.Policy" into qt-qpr1-dev 2019-11-22 00:51:41 +00:00
Jay Aliomer
381e3300e8 Dark theme twilight mode backend and tile
When the user has Dark theme scheduling turned on (b/141567787), the quick settings tile subtext should reflect the following:
If Dark theme is on: "Until sunrise"
If Dark theme is off: "On at sunset"
If the user does not have Dark theme scheduled, the text should not appear.
This matches the appearance of the Night Light QS tile.
All starting windows snapshots will be deleted and splash screens
will be used instead.

Test: atest UiModeManagerServiceTest
Fix: 143874807
Merged-In: Ie2ce64b5c5544fffe76be7ec3f971eb7461f8c4d

Change-Id: Ie2ce64b5c5544fffe76be7ec3f971eb7461f8c4d
(cherry picked from commit 8b2671b029)
2019-11-21 18:05:22 +00:00
David Castro
e93ab1d3ee Merge "Removed the confusing note as per guidance from mylesgw@ in BUG:117309989." into qt-dev am: 8bd0310456
am: 6d62047661

Change-Id: I5c57f96546f33a7746013fc1ae23332d8e5014b7
2019-11-21 04:52:27 -08:00
David Castro
6d62047661 Merge "Removed the confusing note as per guidance from mylesgw@ in BUG:117309989." into qt-dev
am: 8bd0310456

Change-Id: Ib5d2d07b77e57d65bb5b028773ed063606247a16
2019-11-21 04:45:04 -08:00
TreeHugger Robot
69b6876c58 Merge "Don't hold sProxyLock while retrieving interface descriptors." into qt-qpr1-dev 2019-11-21 12:42:42 +00:00
TreeHugger Robot
8bd0310456 Merge "Removed the confusing note as per guidance from mylesgw@ in BUG:117309989." into qt-dev 2019-11-21 12:37:08 +00:00
David Castro
7904f376bb Removed the confusing note as per guidance from mylesgw@ in
BUG:117309989.

Change-Id: I07680c04798642d21420bbea5c6b592c1c741f43
2019-11-21 03:44:32 +00:00
David Castro
2ec0df7dfc Removes reference to deprecated code sample, https://github.com/googlesamples/android-CustomChoiceList.
BUG:140947822

Change-Id: I77b9e3a5b466afea51467418f25ffe7f1b921c7d
2019-11-20 23:06:01 +00:00
Satakshi
b846e83ff5 Assert only one bitmap is provided to ContentSuggestionsService.
Test: Took a screenshot and verified that AiAi gets invoked and the screenshot notification
shows smart actions.
Long press in Overview shows smart actions.
Bug: 141634285

Change-Id: I1e82f8bb837b8b032e6d25032642e47f492eb495
2019-11-19 10:27:11 -08:00
Satakshi Rana
73b4e1923a Merge "Screenshot Notification Smart Action: AiAi and - Sys UI integration" into qt-qpr1-dev 2019-11-19 17:14:49 +00:00
Felipe Leme
8d4c825ce3 Fixes usage of WallpaperManager to make it optional.
As the main javadoc states:
"An app can check whether wallpapers are supported for the current user,
by calling {@link #isWallpaperSupported()}, and whether setting of
wallpapers is allowed, by calling {@link #isSetWallpaperAllowed()}."

Test: manual verification on automotive
Test: atest CtsAppTestCases:android.app.cts.WallpaperManagerTest # on automotive

Bug: 138939803
Bug: 132111956

Change-Id: I88946f92ff54e556d289c41c28e22da3a4b8c8b8
Merged-In: I88946f92ff54e556d289c41c28e22da3a4b8c8b8
(cherry picked from commit 34a861add1)
2019-11-19 01:24:52 +00:00
Satakshi
ce35ce9f08 Screenshot Notification Smart Action: AiAi and - Sys UI integration
Create a constant in ContentSuggestionsManager, which will
be used to pass a hardware bitmap to ContentSuggestionsService.
In the presence of this key in the request extras, we skip taking a
snapshot in ContentSuggestionsPerUserService.
Bitmap is extracted from reading this value from extras in
ContentSuggestionsService.

Create ScreenshotNotificationSmartActionsProvider, which is overridden
in GoogleSystemUI.
Calling AiAi is guarded by a device config flag created in cl/277143225.

(cherry picked from commit d2010f2628 and c45d86fc15)

Test: Manually tested the code in this CL and corresponding change in SystemUIGoogle.
Took a screenshot and verified that AiAi gets invoked and the screenshot notification
shows smart actions.
Ran new tests added in this CL
'atest ScreenshotNotificationSmartActionsTest'
'atest ContentSuggestionsPerUserServiceTest'
Bug: 141634285
Change-Id: I439a4be9aac53fb02b566ae4d438afe3edf2b37a
Merged-In: I439a4be9aac53fb02b566ae4d438afe3edf2b37a
2019-11-18 16:06:08 -08:00
Kevin Hufnagle
0f18e3444e Merge "docs: Updated desc. of lockNow() method and its overload" into qt-dev am: 1ec7235ebe
am: c54b10fa62

Change-Id: I60ce7afd84eae7b1c297e6cc0f246680d84f5cc0
2019-11-18 14:10:11 -08:00
Kevin Hufnagle
c54b10fa62 Merge "docs: Updated desc. of lockNow() method and its overload" into qt-dev
am: 1ec7235ebe

Change-Id: Iec60117a620bf655859555e8d5e3bc028e73b8a0
2019-11-18 14:06:10 -08:00
Kevin Hufnagle
1ec7235ebe Merge "docs: Updated desc. of lockNow() method and its overload" into qt-dev 2019-11-18 21:47:10 +00:00
Kevin Hufnagle
496c0bae14 docs: Updated desc. of lockNow() method and its overload
Explains in more complete detail who should call lockNow(), when to call the method,
and what happens when there's no lock set on a device.

Test: make ds-docs -j32

Bug: 28831838
Change-Id: I5acc0cbfa63dffe8676e8b60476b584fd43b5bde
2019-11-15 19:44:11 +00:00
Suprabh Shukla
c8e1162852 Remove cancel listeners from pending intent alarms
The cancel listeners are created per PendingIntent instance and were
spamming the callback list stored inside PendingIntentRecord. In cases
where there is even a single live PendingIntent backed by this
PendingIntentRecord, all PendingIntent instances backed by this
PendingIntentRecord for which a callback was ever registered will leak.

Test: atest FrameworksMockingServicesTests:\
com.android.server.am.PendingIntentControllerTest
atest FrameworksMockingServicesTests:\
com.android.server.AlarmManagerServiceTest

Bug: 143091024
Change-Id: I65df12da0c437064e6e3719911926738c677c4eb
Merged-In: I65df12da0c437064e6e3719911926738c677c4eb
(cherry picked from commit 0d51a8bcc0)
2019-11-14 00:02:06 +00:00
TreeHugger Robot
2dbc1c0d82 Merge "Add helpers to check whether the BluetoothCodecConfig instance is selectable" into qt-qpr1-dev 2019-11-13 02:48:43 +00:00
Joshua Baxter
ce02f1c4ac Merge "docs: fix code example" into qt-dev am: 330701c156
am: e53e500eac

Change-Id: Ib02af685daa0668187661f9fffbedc4f248b8136
2019-11-12 18:13:03 -08:00
Joshua Baxter
e53e500eac Merge "docs: fix code example" into qt-dev
am: 330701c156

Change-Id: I4f2ea4c128b2019d48b129f20bf8a800fc6b6fce
2019-11-12 18:04:50 -08:00
TreeHugger Robot
330701c156 Merge "docs: fix code example" into qt-dev 2019-11-13 01:26:15 +00:00
Joshua Baxter
2612ee2d6d Merge "docs: fix typos" into qt-dev am: 748dd651f4
am: fcf4eace37

Change-Id: I7644a7262bf0ac26870c5c106d94832015f3bff2
2019-11-12 15:33:33 -08:00
Joshua Baxter
fcf4eace37 Merge "docs: fix typos" into qt-dev
am: 748dd651f4

Change-Id: I795c039941adfb8d6743d7af3224231f864efd57
2019-11-12 15:29:04 -08:00
TreeHugger Robot
748dd651f4 Merge "docs: fix typos" into qt-dev 2019-11-12 23:10:51 +00:00
Joshua Baxter
8c5d022296 Merge "docs: fix typo" into qt-dev am: aee0f9c343
am: bdaa73c0f9

Change-Id: Icf6cfce76db7d99310c97353fad531a1982717dc
2019-11-11 17:27:04 -08:00
Joshua Baxter
bdaa73c0f9 Merge "docs: fix typo" into qt-dev
am: aee0f9c343

Change-Id: Iba7623797bfd340fce0b24f6bbf669898feb8e26
2019-11-11 17:22:35 -08:00
Joshua Baxter
aee0f9c343 Merge "docs: fix typo" into qt-dev 2019-11-12 01:00:44 +00:00
Jovana Knezevic
8de98aef28 Merge "DO NOT MERGE: Fix several issues with precreated users." into qt-qpr1-dev 2019-11-11 23:13:57 +00:00
Joshua Baxter
5f005c9eb7 docs: fix typos
bug: 119075364

Change-Id: I452fc3bb80ffc7466d096b7eaf5becd18bc1fb45
test: make ds-docs
2019-11-11 21:56:38 +00:00
Joshua Baxter
6b5e85dcb3 docs: fix code example
bug: 135556269

Change-Id: I9ba7a0f7de0322ba5e82413c0a95dffbef5a6236
test: make ds-docs
2019-11-11 21:55:05 +00:00
Beverly
6bc5d3679e Update equals and hashCode methods of NoMan.Policy
Test: atest AudioManagerTest#testPriorityOnlyChannelsCanBypassDnd
Fixes: 142643922
Change-Id: I15835f784ba73b40eccf92a0a430905d28647669
Merged-In: I15835f784ba73b40eccf92a0a430905d28647669
(cherry picked from commit 4f8b0224e1)
2019-11-11 21:32:07 +00:00
Joshua Baxter
e86377665e Merge "docs: fix typos" into qt-dev am: bab7d8512b
am: 983cf20e77

Change-Id: Ic2dc6a44ef4b7c6042ecade84cace268ee477903
2019-11-08 18:49:36 -08:00
Joshua Baxter
983cf20e77 Merge "docs: fix typos" into qt-dev
am: bab7d8512b

Change-Id: Ia6e23981e604c2906a59b9a14d50c06ae2b92912
2019-11-08 18:44:23 -08:00
TreeHugger Robot
bab7d8512b Merge "docs: fix typos" into qt-dev 2019-11-09 02:27:54 +00:00
Joshua Baxter
311218304a Merge "docs: remove incorrect (default) identifiers" into qt-dev am: 2c7d94c7ed
am: b2a8b29d10

Change-Id: Ie1d730b2777f85cd2a2d601576aeedd5e3728620
2019-11-08 15:26:57 -08:00
Joshua Baxter
b2a8b29d10 Merge "docs: remove incorrect (default) identifiers" into qt-dev
am: 2c7d94c7ed

Change-Id: I3b86d60b47443b7b3d50deccc81048b78c0e1dc7
2019-11-08 15:18:53 -08:00
Joshua Baxter
9c69b40e2e docs: fix typo
bug: 119479852

Change-Id: I5c2c31432446ef6fccf3ac80e44a1660654375c0
Test: make ds-docs
2019-11-08 22:57:39 +00:00