Commit Graph

19214 Commits

Author SHA1 Message Date
TreeHugger Robot
5e42bc3505 Merge "PendingIntent for permission slice should be immutable." 2020-10-20 19:42:43 +00:00
Pinyao Ting
606e6c440d PendingIntent for permission slice should be immutable.
Bug: 170769497
Test: manual
Change-Id: I9cfea119ae77327d56fda5513fc30d994ea1e11e
2020-10-20 10:37:53 -07:00
Anton Hansson
586a3cf229 Remove @TestApi from @SystemApi symbols
I ran these commands:
    cd frameworks/base
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs'
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs'

Bug: 171179806
Test: m checkapi
Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-20 09:04:03 +01:00
Jeff DeCew
e12ff8a21c Remove the old seamless chip
Test: manual - play audio, use the real seamless chip
Change-Id: I0cc93c222dd6ae7bc3a823f27967d98fb39e8cd9
2020-10-16 15:15:34 -04:00
Jing Ji
1bc7222b15 Merge "Fix the value of RSS total in meminfo dump" 2020-10-16 17:12:55 +00:00
John Reck
44ca28c5c9 Remove some dead code
Simplify state by deleting unused & always true stuff

Test: builds
Change-Id: Idf679aff5e809e567dac21a127cb9d6ace894f0e
2020-10-16 13:53:05 +00:00
Jing Ji
a122ed8145 Fix the value of RSS total in meminfo dump
Bug: 171015766
Test: Manual - adb shell dumpsys meminfo com.android.systemui,
      verify the correctness of the RSS total
Change-Id: I21c7198cdad773adfced4b66257b9e01f1cffad2
2020-10-15 23:06:21 -07:00
Roman Kalukiewicz
34573d564a Merge "Add @Nullable annotation to the parameter of Object.equals() methods." 2020-10-16 01:25:15 +00:00
Wale Ogunwale
870354d967 Merge "Add launch cookie support to activities/tasks" 2020-10-15 22:47:12 +00:00
Wale Ogunwale
0227500a45 Add launch cookie support to activities/tasks
Allow callers to associate callbacks from WM containing TaskInfo with
activity launches they requested.

Bug: 129067201
Test: Bubbles works.
Change-Id: If43170d64d8aea0796d55fb480f5ee9c0465a696
2020-10-15 12:54:12 -07:00
TreeHugger Robot
47ca2ea1b0 Merge "Made CacheQuotaHint testable." 2020-10-15 18:44:02 +00:00
Roman Kalukiewicz
24403f7ef2 Add @Nullable annotation to the parameter of Object.equals() methods.
Those annotations could be inferred by some tools (like Kotlin), but the
https://checkerframework.org/ doesn't check inherited annotations
complaining about all equals() invocations that get nullable argument.

The change was generated by running

find . -name \*.java | xargs sed -i 's/public boolean equals(Object /public boolean equals(@Nullable Object /'

in the frameworks/base directory and by automatically adding and
formatting required imports if needed. No manual edits.

Bug: 170883422
Test: Annotation change only. Should have not impact.
Exempt-From-Owner-Approval: Mechanical change not specific to any component.
Change-Id: I5eedb571c9d78862115dfdc5dae1cf2a35343580
2020-10-15 10:48:01 -07:00
Lee Shombert
626323eb27 Merge "Enable in-process permission caches for system_server" 2020-10-15 15:37:03 +00:00
TreeHugger Robot
ab52125cc6 Merge "Migrate Presentation to WindowContext" 2020-10-15 05:57:03 +00:00
TreeHugger Robot
dd99181279 Merge "Suppress one off errorprone warnings for AndroidFrameworkPendingIntentMutability" 2020-10-15 01:14:33 +00:00
Ashwini Oruganti
ecd15ed9a9 Suppress one off errorprone warnings for AndroidFrameworkPendingIntentMutability
These are essentially false positives that are just taking the flags in
as an argument and passing that over to PendingIntent methods. This
change should clear up the noise.

Bug: 160794467
Test: Errorprone builds should no longer show these as violations
Exempt-From-Owner-Approval: Trivial warning suppression
Change-Id: I8ae309fd53140718d41f4d3b94f92e111cdd8955
2020-10-14 21:35:06 +00:00
Eugene Susla
4587809e21 Merge "Expose get/set notification listeners as a @SystemAPI" 2020-10-14 21:10:06 +00:00
Hall Liu
9f1a46639b Merge changes from topic "home-vis-listener"
* changes:
  Adapt to the new test-current.txt generator
  Expose the HomeVisibilityListener API
2020-10-14 16:59:47 +00:00
Winson Chung
13d990e697 Merge "Return the existing tasks when registering an organizer" 2020-10-14 15:45:19 +00:00
Rob Carr
6958abb97b Merge changes from topic "scaling-mode-cleanup"
* changes:
  SurfaceControl: Remove setOverrideScalingMode
  ScreenRotationAnimation: Use Surface#setScalingMode
  WindowManager: Remove windowsAreScaleable
2020-10-14 06:10:46 +00:00
Winson Chung
3f4c002e1f Return the existing tasks when registering an organizer
- Existing tasks for supported windowing modes are returned when
  registering the organizer and the organizer will not receive
  onTaskAppeared() for these tasks.  For now, the shell task
  organizer will keep these tasks for reporting task appeared when
  individual components add listeners for their windowing modes.
- Fixed some tests now that we organize fullscreen tasks

Bug: 162028888
Test: atest WindowOrganizerTests
Test: atest ShellTaskOrganizerTests
Change-Id: Iedc5f58fbfa819e753a5dcea7a8eb9dee8b6843b
2020-10-13 20:58:25 -07:00
Darryl Johnson
829b71b0f1 Merge "Add binder interface to DeviceStateManagerService." 2020-10-14 02:59:36 +00:00
Treehugger Robot
633529ac46 Merge "Do not send WTF when ETHERNET_SERVICE" am: f03005d5e0 am: e7e458954c am: 9ab252e8ed am: 85fd427b99
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1458804

Change-Id: Ied86b97532d214a7fac4de0393a9a18b07007c19
2020-10-14 02:24:47 +00:00
Joanne Chung
11f3fdf4e2 Made CacheQuotaHint testable.
Bug: 158762190
Test: atest android.app.usage.cts.CacheQuotaHintTest
Change-Id: I2b0a49e5199354972231c44c6956073bf714e2e4
2020-10-14 09:56:43 +08:00
Robert Carr
f09bdfc4f7 WindowManager: Remove windowsAreScaleable
This code was added for an earlier implementation of the PIP animation.
In this earlier implementation PIP was animated by directly scaling the
WSA level surface. This means that if we were in SCALING_MODE_FREEZE the
requested v active geometry logic in SF could freeze our
matrix/position/crop updates. Now that we manipulate the PIP surface
via higher levels of the hierarchy this wont be a problem and we don't
need to change the scaling mode.

Bug: 161937501
Test: Existing tests pass
Change-Id: Iaf10ee4fae9a56a79c1432d9ffd4c8227b832b01
2020-10-13 18:44:07 -07:00
Treehugger Robot
85fd427b99 Merge "Do not send WTF when ETHERNET_SERVICE" am: f03005d5e0 am: e7e458954c am: 9ab252e8ed
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1458804

Change-Id: Id4d0e3cea02a912d637cce2f3ee298ce9fd4acbf
2020-10-14 01:42:13 +00:00
Treehugger Robot
9ab252e8ed Merge "Do not send WTF when ETHERNET_SERVICE" am: f03005d5e0 am: e7e458954c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1458804

Change-Id: I7e06f19d39feb659a7345160db443059e4a69912
2020-10-14 01:24:26 +00:00
Hall Liu
ed473f4574 Expose the HomeVisibilityListener API
Rename HomeVisibilityObserver to HomeVisibilityListener and expose it as
module-only API. This listener is used by the SIM toolkit to detect when
the home screen is visible.

Also fix some bugs in the original implementation that were uncovered
during CTS writing.

Fixes: 170226810
Test: atest ActivityManagerTest#testHomeVisibilityListener
Exempt-From-Owner-Approval: Previously approved in ag/12775889
Change-Id: Ia44462e55ad71119cf356485c60c121d331c50d4
2020-10-14 00:28:59 +00:00
Makoto Onuki
c48de401c5 Merge "Revert "Expose the HomeVisibilityListener API"" 2020-10-13 23:39:56 +00:00
Makoto Onuki
377a388d1f Revert "Expose the HomeVisibilityListener API"
Revert "Add CTS for HomeVisibilityListener"

Revert submission 12775890-home-vis-listener

Reason for revert: broke build, b/170776449
Reverted Changes:
I8e6de3267:Add CTS for HomeVisibilityListener
I33d943603:Follow rename of HomeVisibilityObserver
I5d99f2bad:Expose the HomeVisibilityListener API

Change-Id: I9483fac8cf40ecfa6f80f6f66068978ebe493258
2020-10-13 23:32:18 +00:00
Hall Liu
07568f01de Merge "Expose the HomeVisibilityListener API" 2020-10-13 22:03:40 +00:00
Darryl L Johnson
76b1f31b9a Add binder interface to DeviceStateManagerService.
Test: None
Bug: 159401801

Change-Id: Ia37bb555d2baf43de8d1415731eb0ce5064da907
2020-10-13 14:43:04 -07:00
TreeHugger Robot
4ad0cf2db1 Merge "Update javadoc for startProxyOp" 2020-10-13 20:49:05 +00:00
Eugene Susla
0642113b7c Expose get/set notification listeners as a @SystemAPI
We need to grant/revoke notification listener privileges from
PermissionController maniline module.
This exposes a @SystemApi API to do so

Bug: 165951651
Test: atest NotificationManagerTest
Change-Id: I81502756e9c7f11ce0347f5f3c006a1539f91b37
2020-10-13 13:26:47 -07:00
Makoto Onuki
b547383444 Do not send WTF when ETHERNET_SERVICE
Not all devices have the ETHERNET_SERVICE service, which is expected,
so do not send WTF even when it's not available.

Fix: 169024836
Test: Build

Change-Id: Ia1fa2d1753aa40e1d09996be11082d65afc5458f
2020-10-13 13:17:31 -07:00
Nate Myren
067730b3c2 Update javadoc for startProxyOp
Fixes: 170705158
Test: build
Change-Id: I5317a7bc15915ea7fd92b55b070fc41faa319312
2020-10-13 11:23:16 -07:00
Lee Shombert
642aab2c50 Enable in-process permission caches for system_server
Bug: 170472470

Do not disable the permission caches inside the system server.  This
is beneficial because permission checks require many binder calls, and
the cache, even though it is in-process, eliminates those calls.
1. Make the PermissionManager cache more effective by increasing the
   maximum size to 2048.  Experiments show that the high-water mark is
   about 600.
2. Suppress cache content in the 'dumpsys cacheinfo' output.  dumpsys
   fails if the output is too large in a single process, and the new
   caches push the system server cacheinfo over the limit.  The
   content can be added to the output by setting the new DETAILED
   boolean in PropertyInvalidatedCache to true, but this flag should
   never be committed with a value of true.

Test: two atest runs
 * atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testGetPermissionGrantState
 * atest FrameworksServicesTests:NetworkPolicyManagerServiceTest

Change-Id: I7d3c1f34b44216bb510319ca5b6aced1cc53e05d
2020-10-12 19:26:49 +00:00
TreeHugger Robot
c7229847fb Merge changes from topic "jr-ranking-convo"
* changes:
  Add flag for pendingintent
  Allow NLSes to see conversation information
2020-10-12 19:21:44 +00:00
Charles Chen
f3aefb2802 Migrate Presentation to WindowContext
After [1], display context had not been regarded as an UI context
even if it is derived from an UI context. Thus, we need to migrate
Presentation to use WindowContext to obtain UI components accesses
and also receive configuration changes from the server side.
Also remove isConfigurationStillValid() related logic since now
the configuration gets updated if the property of the display changes.

[1]: 3c0078e80f

Test: atest PresentationTest VirtualDisplayTest KeyguardPresentationTest
Bug: 167462327

Change-Id: Ib5c4a33eeba0e0a6213960300dd4c0a18047686b
2020-10-12 19:10:07 +08:00
Linus Tufvesson
6a29fdbd56 Update javadoc for setLaunchDisplayId am: 334190f26e am: c37e102250 am: 2e33ba4687
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12794770

Change-Id: I720f9774c23bc9da40005160f879791b0b816075
2020-10-09 22:02:00 +00:00
Linus Tufvesson
b57b92454f Update javadoc for setLaunchDisplayId am: 334190f26e am: 9b95f61aeb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12794770

Change-Id: I22c51c6e4d6b748fbbe450f0e88e6eb93b88a656
2020-10-09 21:42:18 +00:00
Linus Tufvesson
2e33ba4687 Update javadoc for setLaunchDisplayId am: 334190f26e am: c37e102250
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12794770

Change-Id: I3d140d6f77e5600179f20fd84031e0a2c389b3ed
2020-10-09 21:42:02 +00:00
Linus Tufvesson
9b95f61aeb Update javadoc for setLaunchDisplayId am: 334190f26e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12794770

Change-Id: If6e12055adfbe330ef00f36d661aaccd64bfded4
2020-10-09 21:15:15 +00:00
Julia Reynolds
e57d36d4fd Add flag for pendingintent
Test: make
Fixes: 170422191
Change-Id: I9e803606034c04cad5a0e0db1d9c6d115fab2210
2020-10-09 16:05:26 -04:00
Treehugger Robot
dc19333bf5 Merge "Fix non-inclusive terms in framework device policy logic" am: 64add27a7c am: 3d3e16e2a6 am: a95dc0e13f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454737

Change-Id: Ic966bd42326f6cd9909bb69853710a7385ffe643
2020-10-09 17:40:22 +00:00
Treehugger Robot
a95dc0e13f Merge "Fix non-inclusive terms in framework device policy logic" am: 64add27a7c am: 3d3e16e2a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454737

Change-Id: I4a64cac98249a47797d2b3c4f937559f4f681261
2020-10-09 17:19:43 +00:00
Rubin Xu
42a8617913 Merge "Fix non-inclusive terms in framework device policy logic" 2020-10-09 15:41:08 +00:00
Linus Tufvesson
334190f26e Update javadoc for setLaunchDisplayId
.. to match behavior post I1f9662c2bd14b34e00fbc8ebb926538f0329c37a

Bug: 167593637
Test: Javadoc change only.
Change-Id: I4cb9fe4a5ae74b1474f9da39b6aeb3a374f8cf12
2020-10-09 09:54:40 +00:00
Nick Moukhine
4c3ecce019 Merge "Add system service for music recognition." 2020-10-09 07:35:34 +00:00
TreeHugger Robot
23606d44e8 Merge "Improve the documentation of the paramters passed to noteOp" 2020-10-09 03:12:56 +00:00