Commit Graph

1828 Commits

Author SHA1 Message Date
TreeHugger Robot
140c26f84b Merge "Update Ethiopic fonts to a variable format" 2020-09-25 21:04:16 +00:00
Collin Fijalkovich
177fb5371a Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" am: 7ffd615b4c am: c1795594fc am: 007c395a60 am: 2b7e712e28 am: c9f2bbea61
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1415308

Change-Id: I6f080e17b63a28d914f9b224cc712cd9018e1700
2020-09-25 05:51:45 +00:00
Sarah Chin
859dd69f6f Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-qpr-dev am: 93e0bd19fc am: a608315e39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672465

Change-Id: I60efe2858961dfbecc7eacd7dc3eeefaf92493ff
2020-09-25 05:48:33 +00:00
Collin Fijalkovich
c9f2bbea61 Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" am: 7ffd615b4c am: c1795594fc am: 007c395a60 am: 2b7e712e28
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1415308

Change-Id: Icf6dcb3545876cc1f1fa55648d4af4912e8e18ac
2020-09-25 05:35:02 +00:00
Sarah Chin
a608315e39 Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-qpr-dev am: 93e0bd19fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672465

Change-Id: I45e6d253a09a7d82b454d869895b54d8631cc24b
2020-09-25 05:26:40 +00:00
Collin Fijalkovich
2b7e712e28 Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" am: 7ffd615b4c am: c1795594fc am: 007c395a60
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1415308

Change-Id: I848a84ba27f4577b2744703943eb09d49b9922fa
2020-09-25 05:26:15 +00:00
Marek Z Jeziorek
344c88e99d Update Ethiopic fonts to a variable format
Bug: 169374341

Test: All tests below are manual.
Test: 0. Open a reference device with an existing set of fonts
Test: 1. Upload new fonts.xml and the new fonts to a test device
Test: 2. Change language to Ethiopic on both devices
Test: 3. Open settings on both devices and visually compare them (they
should be the same)
Test: 4. Open the following pages on the test device (and on a reference
device):
Test:  https://en.wikipedia.org/wiki/Ethiopic_(Unicode_block)
Test:  https://unicode.org/udhr/d/udhr_amh.html
Test:  https://www.wordproject.org/bibles/verses/amharic/26_peace.htm
Test:  ... and visually compare them (they should be the same)

Change-Id: I12488fb505ae7b3c506383c7cec7cdebe133994d
2020-09-25 01:52:49 +00:00
Collin Fijalkovich
7ffd615b4c Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" 2020-09-24 21:08:09 +00:00
Roderick Sheeter
7cdbbc1dec Merge "Update to Roboto VF" 2020-09-24 19:47:47 +00:00
Rod S
49f452c6f4 Update to Roboto VF
Bug: 158836182
Test: atest hwui_unit_tests
Test: Local test device
Change-Id: I36be78d3fdca047cbc8eebb15785086faa424093
2020-09-24 19:47:16 +00:00
Collin Fijalkovich
36d59fba49 Allow privapp Traceur access to STATUS_BAR and DUMP
Modifies the privapp allowlist to allow Traceur to grant Traceur the
STATUS_BAR permission, which is needed for quick settings tile functionality, and dump which is needed for the BUGREPORT_STARTED intent.

Bug: 166768816
Test: Built user and userdebug, exercised regular and long trace
functionality

Change-Id: I180527a9a1a30ef6a214b628f37affc69f9ae2f0
2020-09-24 17:45:53 +00:00
Sarah Chin
8517e8d998 Add read/write logic for SubscriptionPlan network types field
Add permissions for Phone process to access SubscriptionPlans for
meteredness

Test: manual verification
Bug: 169187737
Change-Id: Ib821590a573db87b22619cfe7ebe64c0230c5031
2020-09-23 23:59:02 -07:00
Ulyana Trafimovich
4719733d49 Merge "Drop dependency of android.test.mock -> android.test.base." am: f08e8871d4 am: 72003fb685 am: 10e02f55c0 am: 2dc7803823 am: 51f2298687
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1434135

Change-Id: I3a9f55e09d4dd452445bee3b834f23ce2e98fbbd
2020-09-23 17:08:34 +00:00
Ulyana Trafimovich
51f2298687 Merge "Drop dependency of android.test.mock -> android.test.base." am: f08e8871d4 am: 72003fb685 am: 10e02f55c0 am: 2dc7803823
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1434135

Change-Id: Ided901188cdaee6a0bc7cafe751e9344bcba8d9b
2020-09-23 17:07:11 +00:00
Ulyana Trafimovich
2dc7803823 Merge "Drop dependency of android.test.mock -> android.test.base." am: f08e8871d4 am: 72003fb685 am: 10e02f55c0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1434135

Change-Id: I2739873d55b2cff1f5ecc722e1877603ba6e22c6
2020-09-23 16:30:27 +00:00
Ulyana Trafimovich
f08e8871d4 Merge "Drop dependency of android.test.mock -> android.test.base." 2020-09-23 14:54:16 +00:00
Paul Hu
9830fe8a19 Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to DownloadProvider" am: 41344e427c am: a5bd8f91f5 am: 451ab5646b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1431470

Change-Id: I44f2db6b3563cf002372a2e97cb6849275d139fd
2020-09-23 11:31:46 +00:00
Ulya Trafimovich
c578ab0ada Drop dependency of android.test.mock -> android.test.base.
There should be no such dependency.

Test: lunch aosp_cf_x86_phone-userdebug && m
Bug: 169137403
Bug: 132357300
Change-Id: Iaa7414be66581c01c6acbf367dc165cd8af78615
2020-09-23 11:08:01 +01:00
Evan Rosky
f4f842b65f Merge "Added some protologs to BLASTSyncEngine" 2020-09-23 00:52:54 +00:00
Philip P. Moltmann
faeec12c7d Merge changes from topic "revert-12439864-PermAppOpsCrossUserCheck-Fixed-DGFFMARPXU"
* changes:
  Revert "Give all non-package services the power to interact accr..."
  Revert "Check cross-user interactions for permissions and app-op..."
  Revert "Invalidate package/permission cache if cross-profile app..."
2020-09-22 15:20:22 +00:00
Chris Li
f747948b6d Merge "Only allow TaskDisplayArea to specify orientation if it is focused" 2020-09-21 23:35:35 +00:00
Philip P. Moltmann
aba996799d Revert "Give all non-package services the power to interact accr..."
Revert "Add dedicated host side tests for permissions and appops"

Revert submission 12439864-PermAppOpsCrossUserCheck-Fixed

Reason for revert: Bug 169044600
Reverted Changes:
I95d015e01:Invalidate package/permission cache if cross-profi...
I2a8a84f57:Check cross-user interactions for permissions and ...
Ie8f0db231:Give all non-package services the power to interac...
I11af434a8:Test package/permission cache invalidation when IN...
Ib6d609a4d:Add dedicated host side tests for permissions and ...

Change-Id: I47d371832c119fe4ce4890e10c1ac87aba92acbc
2020-09-21 22:26:51 +00:00
Chris Li
bbe25f59ba Only allow TaskDisplayArea to specify orientation if it is focused
(1/n Orientation on DisplayAreaGroup)

Record the last focused TDA and only allow it to specify orientation
if it is the last focused one on the logical display, so that when
there are multiple TDAs, we only respect the TDA with focus.

Bug: 155431879
Test: manual: test with fixed-orientation app
Test: atest WmTests:TaskRecordTests
Test: atest WmTests:TaskDisplayAreaTests
Change-Id: Ia574550368ce45a6e2c2f81b543adcfa4cf01ba1
2020-09-21 13:37:40 -07:00
Philip P. Moltmann
fa24a327ab Merge changes from topic "PermAppOpsCrossUserCheck-Fixed"
* changes:
  Invalidate package/permission cache if cross-profile app is is changed
  Check cross-user interactions for permissions and app-ops operations
  Give all non-package services the power to interact accross users
2020-09-20 03:22:25 +00:00
TreeHugger Robot
722add884a Merge "Update Armenian fonts to a variable format" 2020-09-19 01:32:05 +00:00
Evan Rosky
4e8518a43b Added some protologs to BLASTSyncEngine
To enable easier debugging of sync-related issues

Bug: None
Test: adb shell wm logging enable-text WM_DEBUG_SYNC_ENGINE
Change-Id: Id5b6e47de6958a5b81ac3bf5617038831282165e
2020-09-18 13:43:16 -07:00
Chris Ye
2004bc75ee Add support for Gamevice GV186 gamepad.
Add support for Gamevice GV186 gamepad, for joystick axes and
buttons mapping.

Test: atest GameviceGv186Test
Bug: 142591969
Change-Id: Id025f5fcd3d831ecd8a2842d5c5d7e05eb5b00c9
2020-09-18 17:08:29 +00:00
paulhu
2cbae66fcb Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to DownloadProvider
- DownloadManager will use the requestor app's default network to
open a connection. When the VPN app lists the DownloadProvider as
a disallowed application, this will fail with EPERM.
- This is because in R, the DownloadProvider lost its privileges
due to the removal of the CONNECTIVITY_INTERNAL permission. It's
removed without considering the corner case where the
DownloadProvider is excluded from using the VPN. It's the only
case where this makes a difference.
- Adding CONNECTIVITY_USE_RESTRICTED_NETWORKS will give
DownloadProvider the ability to use the VPN again in this case,
fixing the issue.

Bug: 165774987
Test: Build, flash rom and boot to home. Manully test that
      DownloadProvider can download file via VPN.
Change-Id: If8fa785568ace1f15f53daec67c06e1207d5dc9c
Merged-In: If8fa785568ace1f15f53daec67c06e1207d5dc9c
2020-09-18 08:24:12 +00:00
Paul Hu
9dab7e953e Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to DownloadProvider" into rvc-qpr-dev am: 8b9d40586b am: aed20efa42
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12533920

Change-Id: Iff7cbae55a18e8e1c8072f2aa6c3c6b4db943d57
2020-09-18 04:06:20 +00:00
Paul Hu
aed20efa42 Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to DownloadProvider" into rvc-qpr-dev am: 8b9d40586b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12533920

Change-Id: I1d881a0c74870c700597e3ef3280ba349640591e
2020-09-17 16:26:52 +00:00
Julia Kawano
f342e054af Merge "Grant launcher control incall permission" 2020-09-16 17:34:57 +00:00
Vishnu Nair
02a5b03909 Merge "Add focus support for SurfaceControlViewHost" 2020-09-16 15:26:26 +00:00
Marek Z Jeziorek
f12499bb33 Update Armenian fonts to a variable format
Bug: 168657713

Test: All tests below are manual.
Test: 0. Open a reference device with an existing set of fonts
Test: 1. Upload new fonts.xml and the new fonts to a test device
Test: 2. Change language to Armenian on both devices (look for Հայերեն
or similar)
Test: 3. Open settings on both devices and visually compare them (they
should be the same)
Test: 4. Open the following pages on the test device (and on a reference
device):
Test:  https://en.wikipedia.org/wiki/Armenian_(Unicode_block)
Test:  https://unicode.org/udhr/d/udhr_hye.html
Test:
https://hy.wikipedia.org/wiki/%D5%80%D5%A1%D5%B5%D5%A5%D6%80%D5%A5%D5%B6
Test:  ... and visually compare them (they should be the same)

Change-Id: I440fd11bd219672b67e6aee37f9f192eeb722099
2020-09-16 00:02:14 +00:00
Vishnu Nair
204c023ae2 Add focus support for SurfaceControlViewHost
This change introduces a new call for clients to request focus on their
embedded views. In order to accomplish this, the owner of the
SurfacePackage sends an input token that can identify the input channel
of the embedded window. This token is forwarded as part of the focus
request.

WindowManager will authenticate the calling window and the relationship
between the host and the embedded window. Once authenticated, the
request will be forwarded to InputDispatcher. InputDispatcher will grant
the focus to the SurfaceControlViewHost if the host window is currently
focused or transfer focus back to the host window if the
SurfaceControlViewHost is focused. Otherwise the request is dropped.

In addition, SurfaceView, the host in this scenario, now overrides the
onFocused function to transfer focus to and from the embedded view.

Test: atest SurfaceControlViewHostTests
Bug: 151179149

Change-Id: Ia95545a60d73db4c03679bce9747d2e275806838
2020-09-15 14:48:13 -07:00
Philip Junker
c14b6b52ff Merge "Support for notification panel key on ATV" 2020-09-15 07:19:05 +00:00
Philip Junker
df3d59bfab Support for notification panel key on ATV
Add activity intents to open and toggle notification panel (requires
STATUS_BAR_SERVICE permission).
Add protected broadcast intent to close notification panel.
Make long-press-on-home configurable to open notification panel.
Create TvNotificationPanel class which forwards notification panel
requests to the configured handler.

Bug: 158661029
Test: manually tested on ATV device with adapted launcher
Change-Id: I555bb3801ac949c8985692b41b02323c56332ccd
2020-09-14 11:59:44 +02:00
Philip P. Moltmann
5f9b30a11a Give all non-package services the power to interact accross users
Test: ManagedProfileTest#testCameraPolicy
Bug: 153996875
Change-Id: Ie8f0db231a29abc8f478cd519fc661c8fccaa1b7
2020-09-11 19:21:47 -07:00
Alex Stetson
5785f0cfbd Merge "Add CATEGORY_CAR notification restrictions" 2020-09-09 21:44:36 +00:00
paulhu
41c59babd5 Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to DownloadProvider
- DownloadManager will use the requestor app's default network to
open a connection. When the VPN app lists the DownloadProvider as
a disallowed application, this will fail with EPERM.
- This is because in R, the DownloadProvider lost its privileges
due to the removal of the CONNECTIVITY_INTERNAL permission. It's
removed without considering the corner case where the
DownloadProvider is excluded from using the VPN. It's the only
case where this makes a difference.
- Adding CONNECTIVITY_USE_RESTRICTED_NETWORKS will give
DownloadProvider the ability to use the VPN again in this case,
fixing the issue.

Bug: 165774987
Test: Build, flash rom and boot to home. Manully test that
      DownloadProvider can download file via VPN.
Change-Id: If8fa785568ace1f15f53daec67c06e1207d5dc9c
2020-09-08 11:19:01 +08:00
Vishnu Nair
3e5d102ef6 Request focus using setFocusedWindow
This change introduces two new SurfaceControl apis, one to request focus
to a particular window and the other to transfer focus to an embedded
window if the host window is currently focused.

WindowHandleInfo is updated to specify focusability instead of the
currently focused window. This will provide more information to
InputDipatcher on what all the focusable windows are on screen and
in the future allow it to determine a new focus target.

Lastly, after updating all the WindowHandles in InputMonitor, we switch
over to calling setFocusedWindow to specify the desired focused window.
There should be no functional changes with this cl.

Test: atest inputflinger_tests
Test: atest CtsWindowManagerDeviceTestCases
Test: atest FlickerTests

Bug: 151179149
Change-Id: Iefda51ce73247b208115e64f9f8159a182d93ded
2020-09-02 16:13:13 -07:00
Julia Kawano
64e53fe435 Grant launcher control incall permission
Launcher V2 adds a dialer widget, which requires the system permission
CONTROL_INCALL_EXPERIENCE. Permission is needed for the InCallController to bind to the launcher's InCallService, which allows the launcher to be notified about call activity.

Bug: 162955474
Test: manual - built on flame_car
Change-Id: I6426b044df90928e981941c8703ddd975dfa6f99
2020-09-01 18:27:32 +00:00
arthurhung
d14c02df91 Add Caps-Shift to lowercase letter mapping
Return lowercase letter if both caps/shift are on.

Bug: 79958081
Test: manual with physical keyboard
Change-Id: I91066c3403b3c61008747adac644b4ef2ce4aa93
2020-09-01 17:55:44 +08:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
Vishnu Nair
904ea67724 Misc clean up before requesting focus via setFocusedWindow api
Replace focus changed callback to use the callback from InputDispatcher.
Currently the system posts a message and informs accessibility services,
window focus observers and window change listeners. With the exception
of accessibility service (which requires to be notified before the
client gets notified), the other callbacks should be synchronized with
the callback from InputDispatcher.

This change also cleans up null checks for ActivityRecord#appToken
since it cannot be null.

Test: presubmit
Bug: 151179149
Change-Id: Id79553835048c090505589d62dee9cb8f38f23ff
2020-08-26 10:30:39 -07:00
Winson Chung
b754f5281b Add some protologs for window organizers & shell
- Refactor out base protolog impl so that shell can have it's own
  implementation which takes a different viewer config (from the resources
  directly instead of a separate file in /system/etc)
- Setup the protolog transform for shell classes
- Add some basic protologs for displayarea/task organizer controller
  & shell task org (for now only text logging)

Bug: 161980327
Test: adb shell wm logging enable-text WM_DEBUG_WINDOW_ORGANIZER
Test: adb shell dumpsys activity service SystemUIService WMShell enable-text-logging WM_SHELL_TASK_ORG
Test: atest ProtoLogImplTest \
            ProtoLogViewerConfigReaderTest \
            WmTests:ProtoLogIntegrationTest \
            LogDataTypeTest \
            protologtool-tests
Change-Id: I4c3fd6aaea04987c26ac56e9baf9fc8ab75a3f34
Signed-off-by: Winson Chung <winsonc@google.com>
2020-08-25 10:07:55 -07:00
Alex Stetson
4a13e88b83 Add CATEGORY_CAR notification restrictions
Add permission for restricting the use of CATEGORY_CAR notifications
rather than restricting to system calls.

Bug: 159459663
Test: manual, atest
NotificationManagerServiceTest#testEnqueuedRestrictedNotifications*

Change-Id: I6e8a32fec1469f5e0cbc8aa0cb765e5c04069546
2020-08-24 14:28:18 -07:00
Diego Vela
f58acf9e39 Convert logs to use protologs.
Migrate add remove debug log from debug config to protolog.
Migrate configuration debug log from debug config to protolog.
Update protolog file

Bug: 153162675
Test: manual
Change-Id: Ie97f77ce3fe165a9be2ff970da7e777962b0db31
2020-08-21 18:51:32 +00:00
Yan Zhu
bcae40d94b Move floatingcardslauncher code out of AOSP
Bug: 165034482
Test: build and flash
Change-Id: I7f5445f56deb432a41b497180f1a5285c0633ad7
2020-08-17 18:30:44 -07:00
Yan Zhu
abc6944b9a Merge "Update language to comply with Android's inclusive language guidance." 2020-08-17 20:39:52 +00:00
Fabian Kozynski
5d434a4a05 Merge "Add MODIFY_AUDIO_ROUTING permission to systemui" into rvc-qpr-dev am: d951edaa48 am: a7149e7a53
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12378082

Change-Id: Id9c81ccd72c10fa12b3972f466c6684fcf13c9ec
2020-08-17 19:13:17 +00:00