Commit Graph

13889 Commits

Author SHA1 Message Date
Jeff Sharkey
d7d4ecc8ed Annotate methods with SET_TIME and SET_TIME_ZONE.
Bug: 79583362
Test: manual
Change-Id: Ic38cf49e9428917b7879d486f4a919970a2259cd
2018-06-11 14:04:24 -06: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
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
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
Jason Monk
3a3c2157da Merge "Final cleanups to permission slices" into pi-dev am: 64a33d695d
am: 3f3f1ebc17

Change-Id: I075703514267496004435b984733133c3a8887bf
2018-05-25 15:34:58 -07:00
Jason Monk
3f3f1ebc17 Merge "Final cleanups to permission slices" into pi-dev
am: 64a33d695d

Change-Id: I3256c8ca665ede11bab55072cddb8598c1d3b51b
2018-05-25 15:26:03 -07:00
TreeHugger Robot
64a33d695d Merge "Final cleanups to permission slices" into pi-dev 2018-05-25 22:10:20 +00:00
Selim Cinek
e59e48e9c1 Merge "Fixed the behavior of group conversations when targeting P" into pi-dev am: c4e19963f4
am: 7712d46760

Change-Id: Ib07dc6354fb3a5fa5ff6171d1c656634465b29fa
2018-05-25 13:30:42 -07:00
Selim Cinek
7712d46760 Merge "Fixed the behavior of group conversations when targeting P" into pi-dev
am: c4e19963f4

Change-Id: I7e5feadc253816852528e06719e136a7cba51c49
2018-05-25 13:21:38 -07:00
Selim Cinek
c4e19963f4 Merge "Fixed the behavior of group conversations when targeting P" into pi-dev 2018-05-25 20:06:52 +00:00
Jason Monk
b14dde0793 Final cleanups to permission slices
- Add icons to the right and shortcut modes
 - Add color
 - Make sure dialogs are secure

Test: manual
Bug: 79960669
Change-Id: I6d251b0ea5bd3c1b3eed32b184e4aae22c52ffb5
2018-05-25 15:42:16 -04:00
Selim Cinek
ce8794fbbc Fixed the behavior of group conversations when targeting P
Fixes an issue where the group conversation heuristic was still
applied even when the app is targeting P. We're now following
the isGroupConversation completely and only do the migration
for apps targeting < P.

Change-Id: I471d58e8a8f5e6270f0dcce8691d08a2bdd1c582
Fixes: 78450835
Test: add messaging notification, observe correct display
2018-05-25 09:16:38 -07:00
Makoto Onuki
da4db58021 Merge "Tweak exemption for sync requests made by FG apps" into pi-dev am: 621fd20f55
am: d8cf91c5f8

Change-Id: Icac177c8d404ce20d5e894d85df2b72a001d6d9a
2018-05-24 22:14:27 -07:00
Michael Wachenschwanz
38c22431be Merge "Revert "Revert "Write UsageEvents Parcel data as a Blob""" into pi-dev am: 14c61286c4
am: 3ba689851c

Change-Id: Id5fa43e2706fc76436d9d2b7cea3d18e73181248
2018-05-24 18:28:37 -07:00
Lucas Dupin
1033fb3405 Merge "Revert "WallpaperColors hint computation"" into pi-dev am: cf2c35dca6
am: 30f0867ee0

Change-Id: Iae41244b5541945304d8965c22602efbd4b32988
2018-05-24 18:00:11 -07:00
Makoto Onuki
d8cf91c5f8 Merge "Tweak exemption for sync requests made by FG apps" into pi-dev
am: 621fd20f55

Change-Id: I31ae3e9e11b9defb7e6352830439484d7ec7ac01
2018-05-24 17:54:37 -07:00
Michael Wachenschwanz
6e781d9914 Merge "Revert "Write UsageEvents Parcel data as a Blob"" into pi-dev am: d55c618340
am: 2c2424a091

Change-Id: I707afa9244687be4356b5f7109b320433737239a
2018-05-24 17:35:33 -07:00
Makoto Onuki
621fd20f55 Merge "Tweak exemption for sync requests made by FG apps" into pi-dev 2018-05-24 23:22:09 +00:00
Michael Wachenschwanz
3ba689851c Merge "Revert "Revert "Write UsageEvents Parcel data as a Blob""" into pi-dev
am: 14c61286c4

Change-Id: If4e6d7fbf0d6799ce88ec33b37fb8cef7e290f1e
2018-05-24 14:26:40 -07:00
Lucas Dupin
30f0867ee0 Merge "Revert "WallpaperColors hint computation"" into pi-dev
am: cf2c35dca6

Change-Id: Ibc3760ce650c8d48f261e6486edb51582391b710
2018-05-24 14:03:24 -07:00
Michael Wachenschwanz
14c61286c4 Merge "Revert "Revert "Write UsageEvents Parcel data as a Blob""" into pi-dev 2018-05-24 20:45:34 +00:00
TreeHugger Robot
cf2c35dca6 Merge "Revert "WallpaperColors hint computation"" into pi-dev 2018-05-24 20:00:27 +00:00