Commit Graph

19945 Commits

Author SHA1 Message Date
TreeHugger Robot
772cd3678c Merge "Adding APIs to get manifest entries for Launcher activities and widgets and getting resources for a particular config" into sc-dev 2021-02-01 19:37:15 +00:00
Chris Li
0838b40ec8 Merge "Allow non-resizable apps in split-screen (6/n)" into sc-dev 2021-02-01 17:49:52 +00:00
Sunny Goyal
7152080c07 Adding APIs to get manifest entries for Launcher activities and widgets
and getting resources for a particular config

This would allow fetching display infos for the activity in a particular
config independent of system config.

Bug: 156154533
Test: Included CTS
Change-Id: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599
Merged-In: Ie245d685fb21444c10a88b4ca86dc7ff08e2b599
2021-02-01 17:35:23 +00:00
Chris Li
acbe872a5f Allow non-resizable apps in split-screen (6/n)
Trigger TaskInfoChanged when the direct top Activity of the organized
Task enters or exits size compat mode.

This is the prerequisite to move SizeCompatModeActivityController from
system ui to shell. After that, we can render the size compat restart
button on Task Surface similar to split screen divider.

Bug: 176061101
Bug: 178327644
Test: atest WmTests:SizeCompatTests
Test: atest WmTests:WindowOrganizerTests
Change-Id: I0e328796095bc17d40a5ef2f354f291c12ffa04a
2021-01-31 17:58:59 -08:00
Jin Seok Park
2102bd8448 Merge "Expose PendingIntent APIs for exposing component/type for CTS" into sc-dev 2021-01-30 17:01:40 +00:00
Peiyong Lin
72036e758c Merge "Add GameManager service." into sc-dev 2021-01-29 23:47:19 +00:00
Treehugger Robot
4269d500bc Merge "add ownership" am: c63817d8f0 am: b327283c1d am: c352f6cded
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1563872

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3aab719f7d71fb4a16400f4b89cbd0a705ac31c8
2021-01-29 23:38:32 +00:00
Treehugger Robot
c352f6cded Merge "add ownership" am: c63817d8f0 am: b327283c1d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1563872

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I843daa05b152bc2fdd2b51f6e7038df98a54e3d6
2021-01-29 23:22:13 +00:00
Anna Zappone
1389c8ce62 Merge "Expose new PeopleService API for People Tiles" into sc-dev 2021-01-29 18:03:55 +00:00
Peiyong Lin
32f6ff7e15 Add GameManager service.
GameManager service is a service to manage game related features. This
patch creates the initial service to manage the game mode and persist
the data across reboot.

Bug: b/174956354
Test: atest GameManagerTests
Test: atest GameManagerServiceTests
Test: atest GameManagerServiceSettingsTests
Change-Id: Iee2ab47c79d29f48847bc6d4b3eb781a5af18ff4
2021-01-29 09:18:34 -08:00
Anna Zappone
30ebaa214a Expose new PeopleService API for People Tiles
Avoid over-querying data by returning a single ConversationChannel when
requested by shortcut ID.

Test: DataManagerTest
Bug: 178792356
Change-Id: I181682b70022d1ce0b055ce1e7c97f5b84c6f1f0
(cherry picked from commit d546f62063)
2021-01-29 14:49:55 +00:00
Jin Seok Park
ecbb7319f8 Expose PendingIntent APIs for exposing component/type for CTS
Bug: 177701160
Test: atest CtsAppTestCases:android.app.cts.PendingIntentTest
      #testGetIntentComponentAndType
Change-Id: I7d57f44cf5d79debb776fa93e9e97b919eb5252e
2021-01-29 06:43:43 +00:00
Jeff DeCew
604fa4df22 Fix notification time text color
Fixes: 178725891
Test: manual
Change-Id: I2485bf1995945038ae076abe372b2e8da1921023
2021-01-28 16:55:46 -05:00
Todd Kennedy
c57585bd25 add ownership
Change-Id: I1399a560422d2138c1480d02e099b387a74c6800
2021-01-28 16:58:08 +00:00
Riddle Hsu
f74209c9b5 Merge "Restore activityPaused to a sync binder call" into sc-dev 2021-01-28 12:16:30 +00:00
TreeHugger Robot
0290ef235c Merge "Add traces for activity create/resume/pause/stop/destroy" into sc-dev 2021-01-28 10:20:28 +00:00
Riddle Hsu
3586e9212f Restore activityPaused to a sync binder call
The intention of previous one-way change is to reduce blocking
call on client side. But in most of cases the blocking of
activityPaused is no harm for the app. Because either the app
is going to background or it launches another activity in the
same process. If the case is the latter, the creation of next
activity is still scheduled after activityPaused is done.

Some apps may even use Idler to start some post initialization.
They assume the timing of idle will happen after the whole
consecutive launch in the same process. Then the non-blocking
call may break their assumption that the idle event is triggered
earlier.

Bug: 161781274
Bug: 178005687
Test: CtsWindowManagerDeviceTestCases
Test: In the onCreate of first activity, start the second activity
      and set an Idler on UI thread. The Idler should be called
      after the second activity is launched.

Change-Id: Ib256d0a534fedb0b39f2825f4deb2f8c81e857be
2021-01-28 16:10:21 +08:00
TreeHugger Robot
e95f58c7bd Merge "Implement the behavior after receiving auto translation request." into sc-dev 2021-01-28 06:28:49 +00:00
TreeHugger Robot
0269ea9f8c Merge "Move activity related operations to ActivityClientController" into sc-dev 2021-01-28 06:08:11 +00:00
Joanne Chung
7f9a46a3d3 Implement the behavior after receiving auto translation request.
Send the TranslationRequest which collected from the UI toolkit to
the TranslationService. And apply the result to the UI toolkit to
show the translated text.

Bug: 172969740
Bug: 177887860
Test: Verified by using a sample app and made sure the full flow work
and the text was replaced with translated text.

Change-Id: I1db4d1eabe5bc65d8785f13f760af54f74e46c97
2021-01-27 15:36:40 +00:00
Treehugger Robot
1df1f3f180 Merge "Set OWNERS for core/java/android/app/VoiceInteractor" am: ad1dde5594 am: c0f1148dc6 am: f33a10bffd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1557029

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7305b329380ef4b2a5e9406302fc40f000062a7f
2021-01-27 07:56:10 +00:00
Riddle Hsu
15283df519 Move activity related operations to ActivityClientController
Including dismissKeyguard, restartActivityProcessIfVisible and
invalidateHomeTaskSnapshot.

Bug: 174041144
Test: ActivityTaskManagerServiceTests

Change-Id: I29b4f626baa2f3d6436e84e5364284fe42e5e7d1
(cherry picked from commit 5408d9af70)
2021-01-27 05:29:24 +00:00
Riddle Hsu
f7c9bd991a Add traces for activity create/resume/pause/stop/destroy
With component name, it is clearer to know which activities
are executed. And the traces are closer to the implementation
of app, so the relative time between app and framework can be
shown by overlapping with the traces of transaction items.

Bug: 175028240
Test: build
Change-Id: I76faf6265f38c211ffd69a36b6e3ad882465251e
(cherry picked from commit d7af5e3888)
2021-01-27 05:09:15 +00:00
Treehugger Robot
f33a10bffd Merge "Set OWNERS for core/java/android/app/VoiceInteractor" am: ad1dde5594 am: c0f1148dc6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1557029

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibb57b407a859b33399d3624ad2ab1bb80f40e30c
2021-01-26 23:10:25 +00:00
Ahaan Ugale
5c538f8163 Merge "VoiceInteraction: Add TEST_MAPPINGs." 2021-01-26 21:03:00 +00:00
Treehugger Robot
ad1dde5594 Merge "Set OWNERS for core/java/android/app/VoiceInteractor" 2021-01-26 20:24:04 +00:00
Shubang Lu
4adf45f942 Merge "Add Context constant for Playback Metrics Service" 2021-01-26 20:02:36 +00:00
Hall Liu
0926f1987b Merge "Add missing null check in HomeVisibilityListener" 2021-01-26 19:20:09 +00:00
Jeff DeCew
a56851a0bf Merge "Remove a vestige of the reply action." 2021-01-26 14:19:10 +00:00
Anna Zappone
56fbe0eb9c Merge "Update PeopleTile & ConversationChannel" 2021-01-26 13:46:36 +00:00
Hui Yu
3f4545f062 Merge "Temp allowlist FGS start 10 seconds for broadcast ACTION_MY_PACKAGE_REPLACED." 2021-01-26 05:32:49 +00:00
shubang
15c1dd0e51 Add Context constant for Playback Metrics Service
Bug: 159337195
Test: mmm
Change-Id: I771a5edd1ce022d196eb4b612f382f52f7701b4b
2021-01-25 17:28:10 -08:00
Evan Rosky
27923b5a68 Merge "Add support/adapter for recents animation via shell transition" 2021-01-26 00:29:40 +00:00
Hui Yu
f005b619c9 Temp allowlist FGS start 10 seconds for broadcast ACTION_MY_PACKAGE_REPLACED.
Bug: 171305836
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/pm/PackageManagerServiceTest.java
Test: From app store, update an app and observe
ACTION_MY_PACKAGE_REPLACED is sent with the temp allowlist broadcast option.

Change-Id: If0cbef46894de164e498207aea77fb5a9fcfa535
2021-01-25 14:24:31 -08:00
Yi Jiang
0127af73ed Introduces RotationResolverService to the system
Rotation Resolver Service provides the suggested screen rotation
to the system server.

Bug: 162359770
Bug: 172370409
Test: atest RotationResolverManagerPerUserServiceTest
Change-Id: Ia43dfdba8502e04768933ef46a4ac8a687d4936c
2021-01-25 20:58:14 +00:00
Seigo Nonaka
791ecf44a8 Merge "Add FontManager API and font manager shell commands" 2021-01-25 19:46:19 +00:00
Anna Zappone
e5e3e0ba88 Update PeopleTile & ConversationChannel
Test: PeopleSpaceTileTest
Bug: 177255255
Change-Id: Idbeed20599f19d922a78a622f85a60c59e33bf59
2021-01-25 19:26:01 +00:00
Jeff DeCew
ee877e5c67 Remove a vestige of the reply action.
Followup to I28992441300ffdecc58900730ff9d858d6c0a009

Bug: 163626038
Test: n/a
Change-Id: I94ad332df5a095b7db9eb08797992a2e39a70c00
2021-01-25 13:44:52 -05:00
Makoto Onuki
0ba71bf30e Merge "Let modules obtain target component of PendingIntent" 2021-01-25 17:01:35 +00:00
Seigo Nonaka
46d6a3f9ce Add FontManager API and font manager shell commands
FontManager is an interface of communicating with FontManaserService.
With this CL, system apps can know the primitive information about
what font files are installed and how it is configured.

This CL also adds shell command of dumping font configuration.
Example usages are:

  # dump primitive font configuration.
  adb shell dumpsys font

  # dump fallback font list
  adb shell cmd font dump serif

Bug: 173619554
Test: atest FontManagerTest
Test: Manually confirmed above commands works.
Change-Id: I5cb855308e199ac38bd7b56b60821346247bdce3
2021-01-25 08:51:41 -08:00
Mustafa Emre Acer
8de82ccc63 Merge "Add a path for 'external' time suggestions" 2021-01-25 15:40:17 +00:00
Hai Zhang
490f3915b0 Merge changes from topic "role-mainline"
* changes:
  Deprecate RoleControllerService related system APIs.
  Move role into module.
2021-01-25 07:06:09 +00:00
Remi NGUYEN VAN
b7c06c17ca Merge "Remove hidden API usage of Proxy.validate" am: a4a9e9bbc8 am: 1065160b6c am: be34fb2ce6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552497

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0581e1039bdfb55d9b12944a0f8e13b5ccce507e
2021-01-25 05:07:54 +00:00
Remi NGUYEN VAN
be34fb2ce6 Merge "Remove hidden API usage of Proxy.validate" am: a4a9e9bbc8 am: 1065160b6c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552497

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id19b29b7140eeaa4d51821045f1b4549719b482c
2021-01-25 04:41:24 +00:00
Remi NGUYEN VAN
a4a9e9bbc8 Merge "Remove hidden API usage of Proxy.validate" 2021-01-25 04:04:40 +00:00
Remi NGUYEN VAN
46c67f78b4 Merge "Add test for proxy spec building" am: 68dcdfa29b am: e723d84c16
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554103

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1f570a5527c14d8b031537270108b0db8e2eebbc
2021-01-25 02:59:09 +00:00
Joanne Chung
d9e22f9ac9 Merge "Find the activity to notify Ui translation state" 2021-01-25 02:50:32 +00:00
Remi NGUYEN VAN
68dcdfa29b Merge "Add test for proxy spec building" 2021-01-25 02:06:18 +00:00
Sean Keys
9cf1f631ac Add a path for 'external' time suggestions
Add a path for 'external' time suggestions to get to the time detector.

Enables form factor specific time sources. Example, Android Auto OS
can use 'external' time to interface with the vehicle HAL.

Bug: 177079827
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Test: atest android.app.timedetector
Change-Id: I4f05dc9de6a9327ef7cf9200e4986164221d2fe8
2021-01-24 17:19:41 -08:00
Hai Zhang
0b4f1718f8 Move role into module.
These changes have to be in this CL together because:

- Code in service-permission depends on IRoleManager in
framework-permission, so the APIs in framework-permission and the code
in service-permission need to be moved together.

- The changes to service-permission build rules doesn't make sense
without the code moved in, so they have to be together as well.

Other details:

- framework-annotations: Several annotations are added into
framework-annoatations. Since the discussion with API council seems to
allow user IDs in system server in-process APIs, @UserIdInt and
@AppIdInt is added. @MainThread and @AnyThread is added since
@WorkerThread is already added. @CallSuper is added since @CheckResult
is also already added and they are similar in terms of category of
functionality.

- framework-permission-s-shared-srcs: 3 classes (and 2 AIDL files)
from framework is copied as shared source files and jarjared for
framework-permission, and an additional 3 is added for
service-permission as service-permission-shared-srcs. Similar to
framework-wifi and service-wifi, the 3 classes in framework-permission
is also available to service-permission by the stub library
framework-permission-pre-jarjar, and the other 3 classes used only for
service-permission is included separately to minimize our impact on
classes loaded into boot classpath. framework-permission and
service-permission shares the same jarjar rules to make sure the
classes remain available, and for the same reason framework-permission
cannot be shrank during any optimization.

- framework-permission-s-shared: A java_library target for
framework-permission-shared-srcs is created to make sure that the
public classes won't be counted as APIs, as it would be if directly
included as srcs for framework-permission
java_sdk_library. service-permission-shared is the same thing for
service-permission.

- framework-permission-s: A new java_sdk_library target created to be
loaded into bootclasspath by Android S+.

- Dumpsys Protobuf: The dumpsys protobuf
file (rolemanagerservice.proto) is moved into the module, and both the
platform (incident.proto) and the module uses protoc-gen-javastream to
generate the Java classes from it. This should be fine since it's a
"source level inclusion", and we jarjar the generated classes in our
module to avoid conflict with platform copies.

Bug: 158736025
Test: manual
Test: device boots, default apps can be changed successfully.
Change-Id: I1914774f631e51d0c587a7e527a1c9bc05ee1595
2021-01-24 12:55:16 -08:00