Commit Graph

19952 Commits

Author SHA1 Message Date
Donald Chai
9154c8febe Merge "Fix typo in comment." am: 182e90d1ea am: 2a0adcf0c6 am: 2b6eebf16d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1569600

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7b0cbedae16e9efbc88521901cb225c1b5e64f58
2021-02-02 07:12:02 +00:00
Donald Chai
2b6eebf16d Merge "Fix typo in comment." am: 182e90d1ea am: 2a0adcf0c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1569600

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I314a3e97c4683dddb0ced5f5368e01586eea9919
2021-02-02 06:47:26 +00:00
Treehugger Robot
f602685a70 Merge "Have connectivity self-register manager classes" am: 4ad0fdc5c9 am: 98c48f7101 am: f99ed40471
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552657

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a664bb9e9f2f835f148d0102f8b53c010bb7791
2021-02-02 06:40:07 +00:00
Donald Chai
182e90d1ea Merge "Fix typo in comment." 2021-02-02 06:07:18 +00:00
Treehugger Robot
f99ed40471 Merge "Have connectivity self-register manager classes" am: 4ad0fdc5c9 am: 98c48f7101
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552657

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I512f95a45ab23d4b7e03c196850d0dab75223620
2021-02-02 06:07:13 +00:00
Donald Chai
5f3a83529c Fix typo in comment.
Change-Id: Ie35db2cfef32543e573bf701d2d523f5f1502161
Tested: N/A
2021-02-02 03:58:05 +00:00
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
Remi NGUYEN VAN
b74c92e2a8 Have connectivity self-register manager classes
As connectivity services are planned to move to a separate module, move
the manager classes registration from SystemServiceRegistry to
ConnectivityServicesRegistrar, using the registerContextAwareService
APIs.

This follows patterns and naming in WifiFrameworkInitializer.

Bug: 171540887
Test: device boots, connectivity working
Change-Id: I62ced1275750c73f209bac8ec3a3204b95695b83
2021-02-01 17:10:39 +09: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