Commit Graph

11158 Commits

Author SHA1 Message Date
George Hodulik
6cbd68532a Merge "Sharesheet - run APS sortTargets in newSingleThreadExecutor" into qt-dev
am: d9a22cb829

Change-Id: Ie7f3df640221180ff5cef2ede13958ae58f4957b
2019-05-03 07:01:42 -07:00
George Hodulik
5b367424ef Merge "Enable using prediction manager for sharesheet." into qt-dev
am: ba3a49b0b6

Change-Id: Id3cea25bdc02504faff1f05760c79cf65b9d20b1
2019-05-03 06:54:29 -07:00
Matt Pietal
3aa7875e7a Merge "Sharesheet - Add logic to when 4->8 expansion occurs" into qt-dev
am: a9146a8c8d

Change-Id: Ib62aea4f6163cd15c08c6f6a1bee1a4081b10236
2019-05-03 06:49:26 -07:00
Matt Pietal
8e6c24d918 Merge "Sharesheet - Make ripples consistent" into qt-dev
am: ff7fc1de48

Change-Id: Id375bd4b1bb02c53f81167a59f3bbd2a96838471
2019-05-03 03:45:51 -07:00
TreeHugger Robot
d9a22cb829 Merge "Sharesheet - run APS sortTargets in newSingleThreadExecutor" into qt-dev 2019-05-02 21:29:24 +00:00
TreeHugger Robot
ba3a49b0b6 Merge "Enable using prediction manager for sharesheet." into qt-dev 2019-05-02 21:29:24 +00:00
George Hodulik
830e3b2c54 Merge "Default to RankerResolver if AppPredictor is disabled" into qt-dev
am: 2f8f43514f

Change-Id: Ic934eef2b873b1d317ee1c42e1948093d0523342
2019-05-02 13:44:24 -07:00
Mehdi Alizadeh
29955b5cfc Merge "Cleanup messages in onDestory in ChooserActivity" into qt-dev
am: 545021d0c9

Change-Id: If1aa39fc0734a298defaed92d5eb3ff1dbc9ea4b
2019-05-02 12:59:18 -07:00
George Hodulik
ccb0cbccfd Sharesheet - run APS sortTargets in newSingleThreadExecutor
Also add some debugging logs.

Bug:129014961
Test:Manually tested.
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Change-Id: Id05cecf31f3c0afe5fd45911e78203e4ce4bd999
2019-05-02 12:23:44 -07:00
Matt Pietal
e54dcc2eea Sharesheet - Add logic to when 4->8 expansion occurs
Should help reduce the amount of reshuffling due to older
pull-style direct share targets.

Bug: 129980100
Test: Visual inspection
Change-Id: I6bd2dd3da2b4c39ee79edaf92da89f1f79b12f75
2019-05-02 14:24:25 -04:00
Andrei-Valentin Onea
7739542d2d Merge "DO NOT MERGE Fix setting hidden api usage log sample rate" into qt-dev 2019-05-02 15:59:13 +00:00
TreeHugger Robot
ff7fc1de48 Merge "Sharesheet - Make ripples consistent" into qt-dev 2019-05-02 15:13:26 +00:00
Matt Pietal
84a55bd5eb Sharesheet - Make ripples consistent
There were differences in ripple behavior depending on the list row
background. Modify this so the ripples propogate against the same
parent background. Make copy button style match the work profile style.

Bug: 129979196
Test: Visual inspection
Change-Id: I51f1b7503c2169bd03f04edecf98927850e6582b
2019-05-02 07:37:39 -04:00
George Hodulik
1428bebe69 Enable using prediction manager for sharesheet.
Sharesheet in AiAi is currently disabled, so sharesheet will
default to ranker. This will allow remote enabling for experimentation.

Bug:129014961
Test:Manually tested.
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Change-Id: I0c21c29356120a873940bcaa8a659ea02046be71
2019-05-01 17:04:23 -07:00
George Hodulik
2f8f43514f Merge "Default to RankerResolver if AppPredictor is disabled" into qt-dev 2019-05-02 00:00:35 +00:00
TreeHugger Robot
545021d0c9 Merge "Cleanup messages in onDestory in ChooserActivity" into qt-dev 2019-05-01 22:37:36 +00:00
George Hodulik
3f399f2b16 Default to RankerResolver if AppPredictor is disabled
The AppPredictionServiceResolverComparator will use the ResolverRankerService
if APS appears to be disabled for share activities (returning empty despite
being given a non-empty target list).

For Direct share targets, if the share target list returned is empty, we fall
back on calling the ShortcutManager directly and relying on ChooserTargetService
to rank.

Bug:129014961
Test:Manually tested.
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Change-Id: I9891a3a4d879e247b84a651408058153ea57c766
2019-05-01 22:01:16 +00:00
Tarandeep Singh
bed3be618f Merge "Propagate light nav bar info" into qt-dev
am: fabb5ebb59

Change-Id: I2bcd764e10e1919e03440ba29cb7709a3620adb2
2019-05-01 14:11:18 -07:00
TreeHugger Robot
fabb5ebb59 Merge "Propagate light nav bar info" into qt-dev 2019-05-01 18:44:39 +00:00
Mehdi Alizadeh
f472313347 Cleanup messages in onDestory in ChooserActivity
Bug: 129679731
Test: Builds and ShareSheet works
Change-Id: I78afd4546e139698213e952495d46fc401fba540
2019-05-01 18:40:36 +00:00
Anton Hansson
82fd8fd804 Merge "Optimize FileSystemProvider.includeFile" into qt-dev
am: 0397997310

Change-Id: I9678dc395458238446d8dd1c032697fdd8d9183d
2019-05-01 11:18:49 -07:00
Matt Pietal
4dcabdc5dd Merge "Sharesheet - Talkback fixes" into qt-dev
am: df7e984cc3

Change-Id: I25c34f26aadf7b9e454a925a1af47a0e2835c830
2019-05-01 11:08:51 -07:00
Andrei Onea
b019c7eea3 DO NOT MERGE Fix setting hidden api usage log sample rate
This fix addresses two related issues: one with the
DeviceConfig.onPropertiesChangedListener, and another with
HiddenApiUsageLogger.setHiddenApiAccessLogSampleRates.
In both cases, setting one of the sample rates
(hidden_api_access_log_sampling_rate or
hidden_api_access_statslog_sampling_rate) unsets the other. This is due
to them being sent sequentially instead of simultaneously.
Additionally, out of an abundance of caution, mirror the behaviour in
attemptConnectionToPrimaryZygote and attemptConnectionToSecondaryZygote
for the statslog sample rate. This was overlooked in a previous change.

Bug: 119217680
Test: m
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t \
            android.cts.statsd.atom.UidAtomTests#testHiddenApiUsed

Change-Id: I8a5534403269a2339fcabc8f847199ab837ae71b
2019-05-01 19:04:00 +01:00
Mike Digman
34da9dc443 Merge changes I2b059826,I64bee605 into qt-dev
am: 565e2634e6

Change-Id: I4d81f2b478fe44473c94b7a89ff7782ecb6d0635
2019-05-01 08:17:10 -07:00
George Hodulik
c316192dbd Merge "Move timeout from RankerResolverServiceComparator to abstract class." into qt-dev
am: b6b549baf6

Change-Id: I8af075472196af416f8859a639961acde4dc7dbe
2019-05-01 08:00:20 -07:00
Matt Pietal
b9ecb1d84e Merge "Sharesheet - Bump up limit for shortcuts" into qt-dev
am: ccd72e78ab

Change-Id: Ifde0d90a932e41a3b4eb080ad7c67f91dafd04e1
2019-05-01 07:24:36 -07:00
Anton Hansson
0397997310 Merge "Optimize FileSystemProvider.includeFile" into qt-dev 2019-05-01 13:51:31 +00:00
TreeHugger Robot
df7e984cc3 Merge "Sharesheet - Talkback fixes" into qt-dev 2019-05-01 13:00:30 +00:00
TreeHugger Robot
565e2634e6 Merge changes I2b059826,I64bee605 into qt-dev
* changes:
  Sharesheet - make az list label disappear with use
  Sharesheet - add a-z list label
2019-05-01 00:14:53 +00:00
TreeHugger Robot
b6b549baf6 Merge "Move timeout from RankerResolverServiceComparator to abstract class." into qt-dev 2019-05-01 00:00:33 +00:00
Chris Wailes
ac8a4a093f Cleanup of ZygoteServer.java
This patch cleans up ZygoteServer.java:
* Remove unnecessary initialization
* Replaces a lambda with a method references
* Makes several values final
* Removes unnecessary type specifications

Test: m & flash & boot
Change-Id: I26cc7e7ad54dc510ef0abc51a73190cf8e5096d1
Merged-In: I26cc7e7ad54dc510ef0abc51a73190cf8e5096d1
(cherry picked from commit b2b9ce54c3)
2019-04-30 22:00:48 +00:00
Tarandeep Singh
e439dec155 Propagate light nav bar info
When SystemUI (notification UI) is pulled down, the windows behind are
dimmed, including navigation bar. At this point of time, navigationbar
color could be controlled by IME and system overrides it.
With this fix, we check if IME is already controlling navbar color.

Change-Id: I9f25860a5b7858f1d17d2921816910a938c656bb
Fix: 122439339
Test: Manually verified using steps in bug.
2019-04-30 14:41:23 -07:00
Matt Pietal
791b1c3741 Sharesheet - Bump up limit for shortcuts
Allow apps to provide more targets via shortcut API, and allow AIAI
or default ranker to order them appropriately.

Bug: 130812721
Test: Visual inspection using Messages which has Shortcuts!
Change-Id: I4b16f3317056a2c5daad9b0576c22faa7ad3ca7b
2019-04-30 17:35:02 -04:00
Ying Zheng
427347cc23 Merge "Rename headless system user flag to under 32 chars." into qt-dev
am: 7f39f77d6c

Change-Id: I9bcb0559d2d2ae65b303d81de14886190ea93229
2019-04-30 14:31:38 -07:00
George Hodulik
1f5d9bfa84 Move timeout from RankerResolverServiceComparator to abstract class.
BUG:129014961
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Change-Id: Ia34e938e4e641a134cbc8bff3419d25f09f0370d
2019-04-30 20:37:53 +00:00
Android Build Merger (Role)
fc4b6581ed Merge "Merge "Address API council feedback" into qt-dev am: 1a5d1728af" into qt-dev-plus-aosp 2019-04-30 18:56:28 +00:00
Svetoslav Ganov
c260897739 Merge "Address API council feedback" into qt-dev
am: 1a5d1728af

Change-Id: Ife0cafa6a2e6eff902ce4b1439c9d002eb4ed643
2019-04-30 11:55:25 -07:00
Christian Wailes
b98e968b73 Merge "Change USAP name to application name as soon as possible." into qt-dev-plus-aosp 2019-04-30 18:23:07 +00:00
Chris Wailes
49b79e5539 Code cleanup in ZygoteConection.java
Generic code cleanup and modernization for ZygoteConnection.

Test: m & flash & boot device
Change-Id: I56bff2aaae4ff98c687cb2c2998f857cfdc86295
Merged-In: I56bff2aaae4ff98c687cb2c2998f857cfdc86295
(cherry picked from commit 1f26331df0)
2019-04-30 17:51:26 +00:00
Chris Wailes
c170754bee Change USAP name to application name as soon as possible.
This patch changes the location where the process's name is changed to
that of the application being launched.  It also attempts to use the
package name if the "nice name" is missing.

Test: m & flash & boot
Change-Id: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
Merged-In: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
(cherry picked from commit 6d00c1ab57)
2019-04-30 17:51:04 +00:00
Anton Hansson
788ec75be5 Optimize FileSystemProvider.includeFile
When traversing a file tree using SAF, this method is called for
every file in the tree, so wasted cycles add up to quite a lot
of total time for large trees.

Optimizations:
- don't look up info not necessary by the cursor, by inspecting
  the projection columns
- remove a few redundant double-lookups, of e.g. the File path
- mark variables final where possible

On my device/file tree, this reduces the total time spent in includeFile
from ~33 seconds to ~22 seconds. This is where the majority of cycles
are spent when traversing a dir with SAF.

Bug: 130276310
Test: SAF test app
Change-Id: Ibdfc335253a90eb87795a7a4eecb8b7b89601f09
2019-04-30 15:49:33 +01:00
Matt Pietal
8a8cfc46ca Sharesheet - Talkback fixes
Disable the content preview area so it is not clickable. Do not make
the drag handle clickable.

Bug: 131121700
Test: Use Talkback on Sharesheet
Change-Id: Iad60eae8f2b69a7680914cff88a6902a1246364f
2019-04-30 07:59:14 -04:00
sanryhuang
d656550278 Merge "Fix app crash while running in second display" into qt-dev
am: 0fcd8ceef8

Change-Id: I65a04a80d5fe47f7ed41c06569387a2ea3ec45a1
2019-04-29 19:13:58 -07:00
Yiwei Zhang
73bbed320a Merge "Zygote: add a way to preload Vulkan driver" into qt-dev
am: 862a21c977

Change-Id: I302b417b5a72fc2ab7f7920e65c1b7772cddbbba
2019-04-29 19:08:29 -07:00
Matt Pietal
2cb316b116 Merge "Sharesheet - Modify header scrolling behavior" into qt-dev
am: 2f956b53df

Change-Id: Id0c8c8c58e58c614e1cb354964209c36388c8599
2019-04-29 18:01:03 -07:00
Ying Zheng
7f39f77d6c Merge "Rename headless system user flag to under 32 chars." into qt-dev 2019-04-29 21:07:56 +00:00
Mike Digman
849a9d13f0 Sharesheet - make az list label disappear with use
Following example set by launcher, eventually make a-z list
label disappear after n expansions. Done with the Sharedpref
associated with ChooserActivity.

Test: manual
Fixes: 130349817
Change-Id: I2b05982654265804bbc1b3e4821f05ced1e011cd
2019-04-29 12:30:03 -07:00
Chris Wailes
72c3b229b2 Removes a vestigial code path.
This patch removes the getAncillaryFileDescriptors() call from the
ZygoteConnection class because the function setFileDescriptorsForSend(),
which sets the values retrieved by getAncillaryFileDescriptors(), is
never called on the socket.

Test: m & flash & boot & launch applications
Change-Id: I994379b2c2da7d0d1fb47907f00229bfc92328c3
Merged-In: I994379b2c2da7d0d1fb47907f00229bfc92328c3
(cherry picked from commit ca848c473c)
2019-04-29 18:13:25 +00:00
Ying Zheng
a71afb26d3 Rename headless system user flag to under 32 chars.
Test: build
Bug: 131601785
Change-Id: I7199b444e90063fe6c29c7c7be42197e820c59da
2019-04-29 10:11:16 -07:00
Svet Ganov
3b6be08c3d Address API council feedback
Make the get actions API async. Also fix a potenrial
memory leak when exchaning callbacks.

Test: atest CtsVoiceInteractionTestCases

bug:129705716

Change-Id: I91f1beb3dc7a395c6c6307ca4601fe7b7097f6e3
2019-04-28 23:01:30 -07:00