Commit Graph

7711 Commits

Author SHA1 Message Date
Miguel Aranda
2d53d9e869 Merge "Enable StrictMode checks for explicit garbageCollection from T." am: ace6c8c76e am: 0c6f92501a am: 54bbbedfd2 am: 4856f61946 am: d1729b65c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2051241

Change-Id: I82b066a8fdf8b740854e7f88971046d0ae67bd1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 17:29:56 +00:00
Miguel Aranda
d1729b65c8 Merge "Enable StrictMode checks for explicit garbageCollection from T." am: ace6c8c76e am: 0c6f92501a am: 54bbbedfd2 am: 4856f61946
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2051241

Change-Id: I39a28d6edf551807a52ad8c593768350812b197d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 16:55:48 +00:00
Miguel Aranda
54bbbedfd2 Merge "Enable StrictMode checks for explicit garbageCollection from T." am: ace6c8c76e am: 0c6f92501a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2051241

Change-Id: Ie9b17a88e0664585fc1d2c1fce17263accb8392a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 15:49:05 +00:00
Miguel Aranda
ace6c8c76e Merge "Enable StrictMode checks for explicit garbageCollection from T." 2022-08-31 15:18:22 +00:00
Vali Calinescu
75de760cea Merge "Adjust aspect ratio override portrait fullscreen" 2022-08-31 11:20:11 +00:00
TreeHugger Robot
df029345d3 Merge "AudioDeviceVolumeManager and VolumeInfo in SystemApi" 2022-08-30 15:34:18 +00:00
Vali Calinescu
129b816937 Adjust aspect ratio override portrait fullscreen
We're defining a new compat framework change id that restricts
the other aspect ratio overrides for devices in portrait fullscreen.

Fix: 218959984
Test: As manual testing use 'adb shell am compat disable/enable OVERRIDE_MIN_ASPECT_RATIO_EXCLUDE_PORTRAIT_FULLSCREEN <package-name>'. For the unit tests run 'atest WmTests:SizeCompatTests'.
Change-Id: I84eaab4df045c93fb2c159a789852094caf9121a
2022-08-30 11:34:43 +00:00
Jean-Michel Trivi
32e4ce0826 AudioDeviceVolumeManager and VolumeInfo in SystemApi
Add the AudioDeviceVolumeManager and VolumeInfo classes to the
system API. Unhide only the method for changing the volume
of a given audio device.

Bug: 236764441
Test: atest AudioDeviceVolumeManager
Change-Id: If715a28afb79ee1a9625781d814652365e9fbfb7
2022-08-30 03:27:43 +00:00
Daniel Norman
38d6796af8 Merge "Rename ANI#makeQueryableFromAppProcess to enableQueryFromAppProcess." 2022-08-29 19:30:01 +00:00
Daniel Norman
331a12188a Rename ANI#makeQueryableFromAppProcess to enableQueryFromAppProcess.
Bug: 243584378
Test: renamed in CTS tests
Change-Id: I4c1ab6b758a5d146ae9e24a8b1276829584710fe
2022-08-29 18:53:06 +00:00
Chris Li
6757ccaaeb Merge "Make WCT#requestFocusOnTaskFragment a TestApi" into tm-qpr-dev am: 69d314f23e am: 3d65738ac7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19745196

Change-Id: Ieac08be96474c2685605f9a5667c91a4f46ff206
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-29 17:36:21 +00:00
Chris Li
3d65738ac7 Merge "Make WCT#requestFocusOnTaskFragment a TestApi" into tm-qpr-dev am: 69d314f23e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19745196

Change-Id: I435484411794ee5e530a72c2fbee42702097735e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-29 17:07:21 +00:00
Chet Haase
c373758055 Merge "Add APIs to make Android Path queryable and more useful" 2022-08-29 16:38:40 +00:00
Cynthia Wasonga
53a2440bd9 Merge changes from topic "profile-removed-intent-and-tests"
* changes:
  Send ACTION_PROFILE_REMOVED broadcast
  Add ACTION_PROFILE_ADDED and REMOVED intents
2022-08-29 12:50:54 +00:00
Chinmay Dhodapkar
8c08681d84 Merge "remove in-exact match for emergency numbers" 2022-08-26 19:46:42 +00:00
Taran Singh
5f1971ff4d Merge changes from topics "performHandwritingGesture-return", "supported-gestures"
* changes:
  Add consumer callback in performHandwritingGesture()
  Add supported gesture type to EditorInfo
2022-08-26 18:26:54 +00:00
Chet Haase
0834e9f298 Add APIs to make Android Path queryable and more useful
The underlying Skia implementation of Path has APIs for
querying the data in a path (via SkPath::Iter). It also exposes
the ability to add conic sections (conicTo()), which is useful
since a Path can contain conics (even if it was not created with
conics directly).  And it adds a method to get the generationId
from a Path, used to see whether a Path changed since the
last time that Id was retrieved. Finally, it exposes a simple
interpolate() function to allow linear interpolation between
two paths.

This CL adds PathIterator to enable querying Path data, and
adds conicTo, isInterpolatable(), and interpolate() to Path,
all of which wrap the underlying, existing Skia functionality.

Bug: 157391114
Bug: 223586753
Test: Added PathIteratorTest plus new tests on PathTest
Change-Id: Iddadfde24dd75ac04d0a2f3ebca767613af25360
2022-08-26 16:32:11 +00:00
Cynthia Wasonga
8aff7dc6bf Add ACTION_PROFILE_ADDED and REMOVED intents
Test: run build
Bug: 232589578
Bug: 233012185

Change-Id: Ibc8f845f91c2468a8b781f0f6a7a3d1264b0b995
2022-08-26 12:01:39 +00:00
Chris Li
da64f9599f Make WCT#requestFocusOnTaskFragment a TestApi
So that we can verify the API in CTS.

Bug: 232476698
Test: CtsWindowManagerDeviceTestCases:TaskFragmentOrganizerPolicyTest
Change-Id: I0e064f8cae48cc0281a0b462b8d072baceeeca9f
2022-08-26 10:19:37 +08:00
Daniel Norman
47d8fe5c9f Merge changes from topic "reland-a11y-adp"
* changes:
  Tweak behavior of isAccessibilityDataPrivate() to reduce CPU usage.
  Revert "Revert "Limit off-label accessibility access using a new..."
2022-08-25 23:25:12 +00:00
Taran Singh
4b5d696935 Add consumer callback in performHandwritingGesture()
performHandwritingGesture should take an optional IntConsumer
& executor to provide result of Gesture operation back to IME.

Bug: 210039666
Bug: 239783077
Test: atest InputConnectionEndToEndTests

Change-Id: I2ca7eaa182159b7ffef0812d970512ffcf817ce2
2022-08-25 13:58:44 -07:00
Taran Singh
f135f8952b Add supported gesture type to EditorInfo
Editors should declare which Scribe Gestures do they support
as a means of providing this info to IME.

Bug: 239783077
Test: atest CtsInputMethodTestCases

Change-Id: Ic52a48c0a04d405e65ad49e9d447d603fefb4eb0
2022-08-25 13:58:44 -07:00
Chinmay Dhodapkar
3b3fc6fafb remove in-exact match for emergency numbers
-deprecates TelephonyManager#IsPotenTialEmergencyNumber
-deprecates PhoneNumberUtils#isPotentialEmergencyNumber
-removes hidden apis from PhoneNumberUtils with no usages
https://data.corp.google.com/sites/ezo8cfiu8snw/combined_api_checker/?f=signature:in:Landroid%2Ftelephony%2FPhoneNumberUtils;-%3EisPotentialEmergencyNumber(Ljava%2Flang%2FString;)Z,Landroid%2Ftelephony%2FPhoneNumberUtils;-%3EisPotentialEmergencyNumber(Ljava%2Flang%2FString;Ljava%2Flang%2FString;)Z,Landroid%2Ftelephony%2FPhoneNumberUtils;-%3EisPotentialEmergencyNumber(ILjava%2Flang%2FString;Ljava%2Flang%2FString;)Z

-removes unnecessary internal helper functions (no functional change)
Fixes: 225397721
Test: Unit tests
Change-Id: I846805084fd0a1b29d9dd9c01f61da38ea97fd08
2022-08-25 18:14:15 +00:00
Miguel
8684d5be44 Enable StrictMode checks for explicit garbageCollection from T.
This disallows calls to runtime.gc() in the new version of Android.
Explicit GC calls are blocking and can thus cause runtime overhead.
They used to be performed as a pattern in order to avoid GC_FOR_ALLOC.
However, that was only the case for Dalvik, that is now discouraged for
ART.

Bug: 3400644
Test: m
Test: atest StrictModeTest
Change-Id: I4720f2b4c4047bb90a88b924c539690e3c202e08
2022-08-25 15:28:07 +00:00
Riley Jones
1c04b58273 Merge "Giving RatingBar a default custom StateDescription for more descriptive TTS output." 2022-08-24 20:12:36 +00:00
Felipe Leme
e6a2c970bd Merge "New @SystemApi: UserManager.getVisibleUsers()" 2022-08-24 20:06:21 +00:00
Nate Myren
fc8fc16056 Merge "Add START_TASKS_FROM_RECENTS to @SystemApi" 2022-08-24 19:58:39 +00:00
Taran Singh
ba58e63d52 Merge "Introduce Scribe Rich gestures API" 2022-08-24 06:40:48 +00:00
Daniel Norman
60bb7c9bca Revert "Revert "Limit off-label accessibility access using a new..."
Revert submission 19637776-revert-19246592-accessibility-tool-only-VJOPAMQMLT

Reason for revert: Relanding with fix
Reverted Changes:
I701b811fd:Revert "Limit off-label accessibility access using...
I85c58736b:Revert "CTS tests for the accessibilityDataPrivate...

Change-Id: Idfb12294c4ba75dfba8abd90985dea548d29042a
2022-08-23 20:40:08 +00:00
Felipe Leme
4fcb05c5eb New @SystemApi: UserManager.getVisibleUsers()
Test: atest CtsMultiUserTestCases:android.multiuser.cts.UserManagerTest
Test: m update-api

Fixes: 242801948

Change-Id: I5ca52e6705662b7e3939101890bb81345a5a831e
2022-08-23 20:29:03 +00:00
Chloris Kuo
d748cfddaf Merge "Add new intent to open NAS detail settings page in NAS app." 2022-08-23 18:35:18 +00:00
Daniel Norman
f118b24feb Merge "Allow app-process tooling to navigate the AccessibilityNodeInfo tree." 2022-08-23 16:06:41 +00:00
Taran Singh
3e3ff1a3d2 Introduce Scribe Rich gestures API
During a stylus handwriting session, user can perform a
stylus gesture operation like  Select, delete, insert on an
area of text. IME needs APIs to perform these gestures on text.
This CL introduces API signature for Select, delete, insert gestures.

Design doc: go/scribe-gestures-api

Bug: 239783077
Bug: 210039666
Test: Manually build & compile HandwritingIme

Change-Id: I53bcb62e03ac1c371feb60d1385c88c921754092
2022-08-22 14:22:47 -07:00
Jean-Michel Trivi
04c1312159 Merge "Module API for BluetoothProfileConnectionInfo for BLE with volume" am: ec3e31bc41 am: 084cf13a12 am: 9c23ef9991 am: 6919452a3b am: 7c86f338e2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2191199

Change-Id: Idfc68ba64022fe61e265f1d719143ca1150195de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 18:04:56 +00:00
Jean-Michel Trivi
7c86f338e2 Merge "Module API for BluetoothProfileConnectionInfo for BLE with volume" am: ec3e31bc41 am: 084cf13a12 am: 9c23ef9991 am: 6919452a3b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2191199

Change-Id: I68b15f8bf2e19d6266e29bb06930ed6053e3aaed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 17:47:31 +00:00
Daniel Norman
57bb237ac7 Allow app-process tooling to navigate the AccessibilityNodeInfo tree.
This change bypasses the AccessibilityService and directly
connects AccessibilityInteractionClient to ViewRootImpl's
AccessibilityInteractionController.

Bug: 238391032
Test: Use for Espresso a11y testing
Test: atest AccessibilityEndToEndTest
Change-Id: I0881067a9e5290e208cf3065c149f2a3b433b80c
2022-08-22 17:37:55 +00:00
Austin Borger
57b6c21a33 Merge "Revert "Add pids to AttributionSource."" 2022-08-22 17:22:01 +00:00
Jean-Michel Trivi
9c23ef9991 Merge "Module API for BluetoothProfileConnectionInfo for BLE with volume" am: ec3e31bc41 am: 084cf13a12
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2191199

Change-Id: I9a407e21583252687645ce9ca6c4ddc3ab31b740
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 17:11:10 +00:00
Austin Borger
7a8d805c63 Revert "Add pids to AttributionSource."
This reverts commit 20bcb3c4b8.

Reason for revert: Broken test (bug 243187237)

Change-Id: I2eb033ed06e2c0c56155e4848de1b399b69ffc6d
2022-08-22 00:56:14 +00:00
Chris Li
ba5540ee25 Merge "Apply TaskFragmentOrganizer changes in one WCT (2/2)" into tm-qpr-dev am: f215542792
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19492304

Change-Id: I629d0ed9d01c8f0c89304ea6cd5e96e0c71c6f89
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-21 02:29:36 +00:00
Chris Li
660101fdc7 Apply TaskFragmentOrganizer changes in one WCT (2/2)
Before, when receive TaskFragment transaction, we apply changes in
multiple WindowContainerTransactions. Now, update to apply all changes
in one WCT for the whole TaskFragment transaction.

Bug: 240519866
Test: pass existing
Change-Id: I943d6232ff226ed6f67367fa9b7f73e1f861de64
Merged-In: I943d6232ff226ed6f67367fa9b7f73e1f861de64
2022-08-20 20:19:57 +08:00
Chris Li
87cc485c6a Apply TaskFragmentOrganizer changes in one WCT (2/2)
Before, when receive TaskFragment transaction, we apply changes in
multiple WindowContainerTransactions. Now, update to apply all changes
in one WCT for the whole TaskFragment transaction.

Bug: 240519866
Test: pass existing
Change-Id: I943d6232ff226ed6f67367fa9b7f73e1f861de64
2022-08-20 17:38:36 +08:00
Adam Bookatz
3a39c41c8a Merge "Introduce UserProperties class" 2022-08-20 00:32:02 +00:00
Jean-Michel Trivi
4b441c8ef4 Module API for BluetoothProfileConnectionInfo for BLE with volume
Add factory method for BLE output device with volume information

Bug: 233975367
Test: atest frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/BluetoothProfileConnectionInfoTest.java
Change-Id: If9f88e2489f93f05c6c83424fc7b7a12671c1f32
2022-08-19 22:39:24 +00:00
Austin Borger
caa20c20e6 Merge "Add pids to AttributionSource." 2022-08-19 20:32:17 +00:00
John Reck
bb756097dd Merge "HardwareBuffer API cleanups" 2022-08-19 19:06:02 +00:00
Adam Bookatz
51f3320ac8 Introduce UserProperties class
Introduces a UserProperties class, which holds (potentially dynamic)
information about each user, where the (default) values depend on the
user type.
This can usually be used instead of
isManagedProfile() calls, giving fine-grained information, rather than
course-grained queries about the user type.

The system copies this object before delivering it to any callers,
filtering the properties by the permissions held by the caller.

The object can be parsed from XML, which is used for both persisting a
user's properties to disk, as well as for reading in the default
properties for each user type.

Bug: 235065648
Bug: 237399048
Bug: 170249807
Bug: 234439331

Test: atest UserManagerServiceUserPropertiesTest
Test: atest android.multiuser.cts.UserManagerTest
Test: atest com.android.server.pm.UserManagerTest
Test: atest UserManagerServiceUserTypeTest

Change-Id: If37480abafa784ce197b482103b6537a60fe2653
2022-08-19 10:59:30 -07:00
Felipe Leme
e5b4ecaf97 Merge "Improvements on "start bg user on secondary display":" 2022-08-18 22:34:26 +00:00
Chloris Kuo
b2c2d1aa17 Add new intent to open NAS detail settings page in NAS app.
Bug: 231492005
Test: manually on local device
Change-Id: I87361b640c5fc7b258e3e807e14baeab52a66953
2022-08-18 14:17:30 -07:00
Nate Myren
64faa4021c Add START_TASKS_FROM_RECENTS to @SystemApi
The permission is privileged, so it was already accessible to
non-framework apps. Some methods that require it (such as
ActivityOptions.setLaunchTaskId) are @SystemApi, and it is used in the
Permissions Mainline Module, so the permission constant needs to be
@SystemApi.

Fixes: 242905922
Test: Build
Change-Id: I6105e9b5a7913c14c8824dfda230b753c4e67bf5
2022-08-17 23:01:45 +00:00