Commit Graph

13912 Commits

Author SHA1 Message Date
Chalard Jean
70b447a378 Merge "Opportunistic typo fix" am: 6b03498a54 am: 99cf81acac
am: 5d2bab8f63

Change-Id: Ic890e82fec41fed6dadb88c84b6aa7677a2e003b
2018-06-08 06:20:22 -07:00
Chalard Jean
5d2bab8f63 Merge "Opportunistic typo fix" am: 6b03498a54
am: 99cf81acac

Change-Id: Ie1909cb93fa6ed28e8d43a6a3849f5b4d8eec861
2018-06-08 06:08:56 -07:00
Chalard Jean
99cf81acac Merge "Opportunistic typo fix"
am: 6b03498a54

Change-Id: Id6dc12172a9fb1980a598ba070af1b10b1738849
2018-06-08 06:01:27 -07:00
Adam Powell
fee50a6c02 Merge "Merge "Revert "Let sendShowMessage called from hide to show"" into pi-dev am: eaf3590eda" into pi-dev-plus-aosp
am: 6947fbbdd0

Change-Id: I791021aa5de1c3bf1e256c0d26c442e21c13c5ed
2018-06-07 22:46:47 -07:00
TreeHugger Robot
7231e7b6ce Merge "More conservative dark text calculation" 2018-06-08 04:33:50 +00:00
Adam Powell
f8677d0b41 Merge "Revert "Let sendShowMessage called from hide to show"" into pi-dev
am: eaf3590eda

Change-Id: I569a2caf105c4b6cf60b81026567ef4af7ca31c9
2018-06-07 21:18:10 -07:00
TreeHugger Robot
eaf3590eda Merge "Revert "Let sendShowMessage called from hide to show"" into pi-dev 2018-06-08 03:48:21 +00:00
Lucas Dupin
a291d19e47 More conservative dark text calculation
Refactored WallpaperColors to use constrast ratio instead of luminance
for detecting dark pixels. Also using a contrast more conservative than
what GAR requires while decreasing the dark area threshold.

Change-Id: I67b799be4b7ccd50bb3e63c6179d513b9b76446b
Fixes: 76435920
Test: manually set various wallpapers
Test: use new debug flag to verify which pixel is actually dark
2018-06-07 16:33:09 -07:00
Benjamin Miller
44fb336dd6 Merge "docs: Backup requestRestore() doesn't kill app during restore." into pi-dev am: d97f38f69c
am: 84184d72d2

Change-Id: I9640ba2eb60ac8bee7c0a377e14f1718151b5e59
2018-06-07 14:39:01 -07:00
Winson Chung
377ca939f5 Merge "Consider window background opacity when determining snapshot translucency" into pi-dev am: c6e4acc222
am: d827b1452d

Change-Id: Ic95477266bba58b1f96ccf76fbeb52442387afb9
2018-06-07 13:41:30 -07:00
Benjamin Miller
84184d72d2 Merge "docs: Backup requestRestore() doesn't kill app during restore." into pi-dev
am: d97f38f69c

Change-Id: Icb22a68fe4402434a4dfae1856fade5219f461fc
2018-06-07 13:25:16 -07:00
Benjamin Miller
d97f38f69c Merge "docs: Backup requestRestore() doesn't kill app during restore." into pi-dev 2018-06-07 20:12:43 +00:00
Winson Chung
d827b1452d Merge "Consider window background opacity when determining snapshot translucency" into pi-dev
am: c6e4acc222

Change-Id: I53f7b22ab35979d7bf0933e59985b35e0127c717
2018-06-07 12:42:09 -07:00
Chalard Jean
042be01f9e Opportunistic typo fix
Test: unneeded
Change-Id: I2f5636f3d7ea4b6e9d3e6feddfd0cb586d658813
2018-06-07 14:55:31 +09:00
Winson Chung
02378b4307 Consider window background opacity when determining snapshot translucency
Bug: 80536978
Test: Open WhatsApp conversation with IME open, hit home, go to Overview
Change-Id: I14cb15a15c2dc43229c927eda4bad3d61e568622
2018-06-06 19:40:27 -07:00
TreeHugger Robot
56436cfc58 Merge "Allow cross user usage event queries" 2018-06-06 19:55:20 +00:00
Julia Reynolds
1b61d018ec Allow cross user usage event queries
For multipackage requests, caller must be system uid or hold
interact_across_users if not requesting fate for the same user.

For single package requests, caller must be system uid or the
same package and hold interact_across_users if not requesting data
for the current user.

In both cases the caller must have the usagestats permission.

Test: couldn't find automated tests for this file; manual
Bug: 79142791
Change-Id: I8d650f8e875e0e4578cb48c9ba42e821342852a0
2018-06-06 14:26:49 -04:00
Julia Reynolds
19b51f4fe3 Merge "Further interruptiveness changes" into pi-dev am: fe1d9dc1af
am: bbaf6a4a6f

Change-Id: Ic6ac2a1ad921250fc751a643cd1b5ad58f8166e0
2018-06-06 07:07:19 -07:00
Julia Reynolds
bbaf6a4a6f Merge "Further interruptiveness changes" into pi-dev
am: fe1d9dc1af

Change-Id: Ic258eaf306dc05850015808c9b67b07398575770
2018-06-06 06:58:54 -07:00
TreeHugger Robot
fe1d9dc1af Merge "Further interruptiveness changes" into pi-dev 2018-06-06 13:46:42 +00:00
Benjamin Miller
9c593f27ad docs: Backup requestRestore() doesn't kill app during restore.
Doc-only change to note that requestRestore() doesn't behave as expected
and kill the app as part of the restore operation.
Fixed formatting of first paragraph running into deprecation notice.
Also removed dupe versioning info from deprecation notice--see staged version.
Staged at:
  http://go/dac-stage/reference/android/app/backup/BackupManager#requestrestore

Bug: 29255593
Test: make ds-docs and staged output. Visual inspection and manual link test.
Change-Id: I8baae2216f23bd63510f8b445fcdd8090354b0df
2018-06-06 09:08:11 +00:00
Bernardo Rufino
52642716a3 Remove adb shell bmgr restore <package>
Also put comment on RestoreSession saying that it doesn't kill the app
in the end.

Bug: 29255593
Test: Builds
      adb shell bmgr help, verify usage
      adb shell bmgr restore android, verify no-op

Change-Id: I89304149ea6c03a80937e321cf3a46fd173308e2
2018-06-06 08:25:26 +00:00
Jiyong Park
22fbbd1f33 Merge "Fix: vendor public libraries are accessible via System.loadLibrary" into pi-dev am: c4b6bd34e1
am: 0221eaa392

Change-Id: I20f644dbafb96955e96f22ecef61292ffeae9e7f
2018-06-05 10:58:57 -07:00
Neil Fuller
df3cf2b39d Merge "Minimum viable TimeDetectorService" 2018-06-05 17:52:58 +00:00
Jiyong Park
0221eaa392 Merge "Fix: vendor public libraries are accessible via System.loadLibrary" into pi-dev
am: c4b6bd34e1

Change-Id: I585a02298349846c2bedc5617cb342edaadcb9bb
2018-06-05 10:51:37 -07:00
Jiyong Park
c4b6bd34e1 Merge "Fix: vendor public libraries are accessible via System.loadLibrary" into pi-dev 2018-06-05 17:37:24 +00:00
Julia Reynolds
a4fb9da879 Further interruptiveness changes
- Compare strings instead of CharSequences in actions
- Ignore changes to remote input choices
- Ignore updates to summaries

Test: runtest systemui-notification
Change-Id: I33a29ee85d93658b2c7217a4ef3b300c9bd2850c
Fixes: 78643290
2018-06-05 09:01:32 -04:00
Makoto Onuki
ca37890347 Merge "Allow except-idle whitelisted apps to start BG services in EBS" into pi-dev am: 205a5581ae
am: 5c6e5f189a

Change-Id: I3dc258afd597e892d50438f475878c971b1f3d55
2018-06-04 19:21:01 -07:00
Makoto Onuki
5c6e5f189a Merge "Allow except-idle whitelisted apps to start BG services in EBS" into pi-dev
am: 205a5581ae

Change-Id: Ie5d327d5efa90946d92fe3a7063fec988fe56fcd
2018-06-04 18:47:48 -07:00
Makoto Onuki
af8ff4f2af Allow except-idle whitelisted apps to start BG services in EBS
Change-Id: I8dd42f48cf13c97b4e428afbf29838f442d8731b
Fixes: 80420676
Test: dumpsys activity processes| grep mDeviceIdle
  mDeviceIdleWhitelist=[1000, 1001, 2000, 10028, 10035, 10036, 10042, 10053, 10137, 10138, 10139, 10142]
  mDeviceIdleExceptIdleWhitelist=[1000, 1001, 2000, 10006, 10008, 10014, 10016, 10028, 10035, 10036, 10042, 10047, 10053, 10058, 10060, 10070, 10111, 10137, 10138, 10139, 10142]
Test: Manual test with "DEBUG_BACKGROUND_CHECK = true" and
am startservice 'com.android.vending/com.google.android.finsky.hygiene.DailyHygiene\$DailyHygieneService'
then check the whitelist log.
2018-06-04 15:31:42 -07:00
Adam Powell
fdaf523f04 Revert "Let sendShowMessage called from hide to show"
This reverts commit 690b36903c.

Original patch created an inconsistency in show/dismiss
dialog callbacks.

Bug: 80268176
2018-06-04 14:28:00 -07:00
Aurimas Liutikas
e701dc1799 Fix broken links in @see tags in framework docs.
doclava was accidentally suppressing all these broken links
in @see tags. This CL fixes issues so we can start enfocing
checks for broken @see links.

Test: make docs
Change-Id: If7830ece85f8d1f27c991eae282230814726e115
Exempt-From-Owner-Approval: Fixing @see javadoc link issues that are currently completely broken
2018-06-04 10:15:22 -07:00
Jiyong Park
cfe38cdb1c Fix: vendor public libraries are accessible via System.loadLibrary
This CL fixes the problem that vendor public libraries (libs that are
listed in /vendor/etc/public.libraries.txt) are not loadable via
System.loadLibrary(). (Note that the libs were accessible via dlopen()
though.)

The problem was happening because when System.loadLibary() is called,
the classloader first checks whether the lib is found and accessible in
its own native lib search paths. The native lib search paths basically
come from the java.library.path property, which in turn is from
namespace.default.search.path in /system/etc/ld.config.txt. When VNDK is
enforced starting from P, namespace.default.search.path does not have
paths other than /system/lib because otherwise system process can have
unlimited access to libs in vendor partition. The linker namespace is
dynamically configured by the libnativeloader so that only the public
vendor libs are accessible. However, as a side effect of removing
/vendor/lib from namespace.default.search.path, the classloader always
fails to find any lib under /vendor/lib even if the lib is a public one.

In order to solve the problem, while keeping rest of the non-public
vendor libs from apps, /vendor/lib (and /odm/lib and /product/lib as
well) is added to the classloader AFTER native loader is created for the
classloader.

Bug: 93333337
Test: m -j
Test: System.loadLibrary("adsprpc") is successful in Pixel (because
libadsprpc.so is in Pixel's vendor public lib list)
Test: atest cts/tests/tests/jni
Change-Id: Iac12384548cbdd51234568082d02eeba466c160c
2018-06-04 15:31:47 +00:00
Aurimas Liutikas
62786b4431 Merge "Fix broken links in @see tags in framework docs." 2018-06-01 17:16:09 +00:00
Aurimas Liutikas
7f6953369a Fix broken links in @see tags in framework docs.
doclava was accidentally suppressing all these broken links
in @see tags. This CL fixes issues so we can start enfocing
checks for broken @see links.

Test: make docs
Exempt-From-Owner-Approval: Fixing @see javadoc link issues that are currently completely broken
Change-Id: I767e9fb9842494e5eccef2a7bdeee3877c488b5d
2018-06-01 17:15:55 +00:00
Makoto Onuki
55740b7b1c Merge "Serialize AM.getContentProvider() calls in client side" into pi-dev am: 079f6d7fa6
am: 137f9f65a9

Change-Id: I58fa7dc25171e959d2467578bdc2bf428fab6187
2018-06-01 06:25:46 -07:00
Makoto Onuki
137f9f65a9 Merge "Serialize AM.getContentProvider() calls in client side" into pi-dev
am: 079f6d7fa6

Change-Id: I299267e20b78810002bab56488b9436456936d11
2018-06-01 04:46:08 -07:00
Makoto Onuki
079f6d7fa6 Merge "Serialize AM.getContentProvider() calls in client side" into pi-dev 2018-06-01 05:35:02 +00:00
Jason Monk
aa8802a9d9 Merge "Don't use stable providers for slices" into pi-dev am: de8e3c227c
am: b9e5da09b5

Change-Id: Ia10ee4f9ca75d4bba58aa33e386fb929e987a68a
2018-05-31 16:40:50 -07:00
TreeHugger Robot
374fc1a24f Merge "Pass correct preserve window value to performStop." 2018-05-31 22:06:36 +00:00
Makoto Onuki
b6c79ea065 Serialize AM.getContentProvider() calls in client side
Th wait() call in AMS.getContentProviderImpl() can cause a deadlock when it
starts a new process for a target provider and all system server binder threads
are reaching out to the same provider at the same time, because AMS won't be
able to receive a callback from the provider process.

Let's serialize access to AM.getContentProvider() to avoid this scenario.

Longer team, we should stop waiting in the system server and instead do so in
the client side.

Bug: 74523247
Test: Boot, add a google account, and let syncs run and finish.
Test: Watch free video on Coursera

Change-Id: If5be2dc4b6f22f72d1bb3aa1b5b4d49f20c8d94d
2018-05-31 14:52:51 -07:00
Jason Monk
b9e5da09b5 Merge "Don't use stable providers for slices" into pi-dev
am: de8e3c227c

Change-Id: I40b6eef84e5d44b1c185f9818953a6dba8dc9adc
2018-05-31 14:46:38 -07:00
Jason Monk
ce1beadc09 Don't use stable providers for slices
Because they aren't what we want.

Test: manual + existing tests
Bug: 80532760
Change-Id: Ib69799a2ef9440d0d67cea02e6b3c61844535755
2018-05-31 14:12:52 -04:00
Neil Fuller
feeee682a2 Minimum viable TimeDetectorService
This is a do-nothing DeviceContextualizerService that can be
populated in following commits. A temporary method has been
added so the service has one method.

Unit tests can be run with:

atest FrameworksServicesTests:TimeDetectorServiceTest

Test: build / boot
Test: See above
Change-Id: I9e4eac70b944441f34491315cd1ce7fa2b9ae150
2018-05-31 09:44:21 +01:00
Amith Yamasani
be421890b6 Merge "Fix for missing location icon" into pi-dev am: 8c4c359b25
am: 2b04227379

Change-Id: Ib61d6ed9db7082f5255c7b9eba61cc4616e7019e
2018-05-29 13:33:44 -07:00
Amith Yamasani
2b04227379 Merge "Fix for missing location icon" into pi-dev
am: 8c4c359b25

Change-Id: I1e108f56230915e0950712a0fa2cc363e3ffbc9e
2018-05-29 13:22:35 -07:00
Garfield Tan
c1681e6b1d Pass correct preserve window value to performStop.
W/o passing correct preserve window value, performStop will mark the
window stopped as well, which consequently destroys all hardware
resources (display list etc.) associated with it. This causes flickering
when user drag resizes a task over a configuration change boundary that
needs to relaunch that activity, because the display list that draws the
content is cleared and not drawn.

Bug: 80320060
Test: Drag resizing doesn't cause flickering anymore.
Change-Id: I43fe5bf958ceb76817f6e8b9d1896d274eb40be1
2018-05-29 11:31:54 -07:00
TreeHugger Robot
cefa90e4da Merge "Revert "Update BM.requestRestore() docs format"" 2018-05-29 13:52:30 +00:00
Bernardo Rufino
641043fe9b Revert "Update BM.requestRestore() docs format"
This reverts commit 5d049e5471.

Reason for revert: Prevent conflicts w/ auto-merging ag/4205743 

Change-Id: Idba725e67cb9bf87640f97d627d5571b3ad8b95e
2018-05-29 11:58:00 +00:00
Amith Yamasani
a1ce963743 Fix for missing location icon
OpEntry.duration was being used to indicate that the
operation was still running if -1 is returned. A recent
change caused a regression.

Adding a new mRunning field in OpEntry to explicitly
hold the running state, even when partial duration is
updated.

Change-Id: Ib29f4c903f990aaa202e84f964959aedfc24abdb
Fixes: 80242152
Test: atest FrameworksServicesTests:AppOpsActiveWatcherTest
Test: Launch maps and verify the location icon is visible
      in the status bar
2018-05-28 21:20:56 -07:00