Commit Graph

12460 Commits

Author SHA1 Message Date
TreeHugger Robot
b21765f2f3 Merge "WindowInsets: Add system gesture insets" 2019-03-05 15:27:34 +00:00
TreeHugger Robot
5c73d2a82d Merge "Refactoring and some fixes around TextClassifierService" 2019-03-05 12:20:38 +00:00
TreeHugger Robot
f57f492b2c Merge "Add some test mappings" 2019-03-05 02:04:37 +00:00
Adam He
8059ab819c Merge "Minor changes on LocusId APIs." 2019-03-05 01:30:07 +00:00
John Reck
70ddefc673 Add some test mappings
Test: none
Change-Id: If8b5b51f28669416bcd15ee9df851a263f838802
2019-03-04 15:55:22 -08:00
Felipe Leme
7e7357515f Minor changes on LocusId APIs.
- Uses a String instead of URI for the main id.
- Uses FLAG_IS_PREFIX instead of isRecursive for UserDataRemovalRequest.

Test: m update-api
Test: atest CtsContentCaptureServiceTestCases CtsContentTestCases:LocusIdTest \
            FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest
Bug: 126945732

Change-Id: I34ae42678aa4021ea53ed66279cad4049ac2dcb3
2019-03-04 14:02:37 -08:00
TreeHugger Robot
b5766bd50a Merge "Support for @InspectableProperty on public fields" 2019-03-04 18:49:35 +00:00
Adrian Roos
dd49eb7349 WindowInsets: Add system gesture insets
Bug: 126511573
Test: atest android.view.cts.WindowInsetsTest
Change-Id: I085a20cb49f37d272b882535a97aacd40168281f
2019-03-04 16:01:35 +00:00
lumark
ec75b42179 Add the check for UID presence to Display#hasAccess()
It would be nice if there is a common & reliable method for both outer
& internal modules to check the UID presense of the display.

Add more check in Display#hasAccess() to ask system if calling UID can
precense on the specific display, to consolidate only few special UIDs
& display flag checking.

Bug: 117347985
Test: atest ActivityManagerMultiDisplayTests
Change-Id: I2f8989598c99c0962e925c5aa65500972b4fc62b
2019-03-04 14:59:41 +08:00
Ashley Rose
89d6bce3af Support for @InspectableProperty on public fields
+ Add a field target to @InspectableProperty
+ Refactor PlatformInspectableProcessor to process annotated fields and
  generate InspectionCompanions that read fields.
+ Require that all inspectable getters and fields be public.
+ Make some hidden getters added to View for inspection public.

Test: atest --host view-inspector-annotation-processor-tests
Bug: 126913705
Change-Id: I0c012f42794885f17a397a2e3dd541b3aa4c2634
2019-03-01 19:31:01 -05:00
John Reck
1e2455e13f Merge "More targetted drawFinished fix" 2019-03-01 22:54:25 +00:00
Andrii Kulian
ddecd74c63 Merge changes from topic "wm_decor_status"
* changes:
  Notify the WMS when the display content is ready.
  Read system decor support status from WM
2019-03-01 22:50:28 +00:00
Qasid Sadiq
77f18a962e Merge "Make mIdsToViews thread safe." 2019-03-01 21:52:03 +00:00
John Reck
8cc1f69193 More targetted drawFinished fix
Prior to fe5dfca the frameCompleteCallback
was posted to the native Looper, which is
effectively a postAtFrontOfQueue. Since it
was switched to the Java-side looper, do
an explicit postAtFrontOfQueue

Fixes: 124801988
Test: speculative
Change-Id: I287c9f3917983503402dcfe3ee7d494eefae8d1f
2019-03-01 09:09:34 -08:00
Jeff Sharkey
a09312df67 Merge "All Parcelable CREATOR fields are @NonNull." 2019-03-01 14:58:28 +00:00
Issei Suzuki
ea5e754c37 Merge "Add comment to clarify use case of the new constructors." 2019-03-01 11:02:05 +00:00
TreeHugger Robot
023183101c Merge "Add null checks for attribute getters in View." 2019-03-01 06:35:17 +00:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Qasid Sadiq
3d8f117bfc Merge "Revert "Revert "Fix a11y cache correctness bug""" 2019-03-01 02:25:26 +00:00
Felipe Leme
50a8c75b49 Merge "Autofill, Content Capture, and Augmented Autofill API fixes:" 2019-03-01 02:04:30 +00:00
Aurimas Liutikas
1196c0d376 Add null checks for attribute getters in View.
If the getter calls are made View#saveAttributeDataForStyleable
this might lead to null pointer exception. Add checks to prevent
that.

Test: None
Bug: 126780975
Change-Id: I3e27d6073b65367010bc9d5b002cf9791d434a72
2019-02-28 17:22:36 -08:00
Qasid Ahmad Sadiq
b2499c55a9 Revert "Revert "Fix a11y cache correctness bug""
This reverts commit 4d70022b88.
This is so certain tests start passing again. The revert was a low risk
measure for the security update.
We still need to address the crash that this introduces

Test: It builds
2019-02-28 14:35:45 -08:00
Adam Powell
b10113347d Merge "System gesture exclusion rects for Views" 2019-02-28 21:11:59 +00:00
Lucas Dupin
f2b2f3fc9d Merge "Add rounded corners attribute to window animations" 2019-02-28 20:46:06 +00:00
Aurimas Liutikas
21e8a2ff6a Merge "Remove unused method and constant in View" 2019-02-28 20:41:07 +00:00
Felipe Leme
ce6877b0e4 Autofill, Content Capture, and Augmented Autofill API fixes:
- Added @Nullable / @NonNull on some returned values.
- Removed APIs that won't be implemented for Q.
- Made Builders final.

Test: m update-api

Bug: 123100695
Fixes: 126702168
Fixes: 126701052
Fixes: 126702191
Fixes: 126700602
Fixes: 126700135
Fixes: 126700413
Fixes: 126698817
Fixes: 126698792

Change-Id: I20710537c02051361da18370bc5cc642cc3c26e1
2019-02-28 09:25:12 -08:00
Andrei-Valentin Onea
37b7e5846f Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 13:07:02 +00:00
Lucas Dupin
3e1dc20ff9 Add rounded corners attribute to window animations
Windows now can have rounded corners that match the display shape,
this CL introduces a new xml attribute called hasRoundedCorners that
enables this feature when declared on an animation xml.

Bug: 111514493
Test: winscope
Test: atest WindowAnimationSpecTest
Change-Id: Ie7651bab00c6e9e0ab7ab50cdb14142c8b2b954b
2019-02-27 19:02:26 -08:00
Qasid Ahmad Sadiq
1aa9da4250 Make mIdsToViews thread safe.
View calls like "attachedToWindow" and "detachedToWindow" can be called
off of the main thread, on "android.anim" this happens in the system
process for application splash screens.
Let's wrap it with a synchronized block.

Fix: 124110476
Test: The crash is a race condition, so the best I can do is make sure
it generally doesn't crash anything by trying out both normal and
virtual hierarchies in Talkback.

Change-Id: I19f972a97b5ac80917f8dd77ac79bf7e3d5e826c
2019-02-27 18:26:34 -08:00
Andrii Kulian
dd98961be6 Read system decor support status from WM
There is no way to add FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS to
hardware or simulated displays, so wallpaper, IME and nav bar were
not showing up even when desktop mode developer option was enabled.

Bug: 123199549
Bug: 125007644
Bug: 124073468
Bug: 124073384
Test: Enable force desktop mode, reboot, create simulated display
Change-Id: Id6f2f3746407467f20c1f26e735b84653e34625d
2019-02-27 17:58:58 -08:00
Aurimas Liutikas
67a8daf09f Remove unused method and constant in View
Turns out when you have IJ set up a lot of things become
more easy to spot.

sLayoutParamsAlwaysChanged was added in ag/818432, but then
not removed in ag/825933 when the feature was pulled.

transformRect was added in ag/173465 but never actually used.

Test: make -j
Change-Id: I69996a3b5e7526941a0e14158e892267075c29f3
2019-02-27 17:26:53 -08:00
Ady Abraham
42f9a2fbbd SurfaceControl: add getAllowedDisplayConfigs
expose ISurfaceComposer::getAllowedDisplayConfigs to SurfaceControl.

Test: manual test to call getAllowedDisplayConfigs() from SurfaceControl
observe config change.
Bug: 122905403

Change-Id: I0587ac5ed2eb29788c2ce941d9c54ebfd215ddf9
2019-02-27 21:49:24 +00:00
Andrei Onea
f4fb6fb754 Add @UnsupportedAppUsage annotations
For packages:
  android.speech
  android.telephony.mbms.vendor
  android.view
  android.webkit

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Iefe25091fa0fcc0adfe4ff85fe5e3ab3ac9c5f10
2019-02-27 15:42:25 +00:00
Jorim Jaggi
8a4532cf8a Merge "Implement proper lifecycle for WindowInsetsAnimationController" 2019-02-27 13:02:35 +00:00
TreeHugger Robot
2d16430de5 Merge "WindowInsets: Add missing annotations and make Builder final" 2019-02-27 12:46:40 +00:00
Issei Suzuki
8b0e61710d Add comment to clarify use case of the new constructors.
Change-Id: Ide57dc749628c4ebaaf436171a3470c723958b64
Test: N/A (changed comment only)
Bug: 118675827
2019-02-27 13:34:56 +01:00
TreeHugger Robot
1f4f9f6e4b Merge "getScaledMinScalingSpan -> getScaledMinimum..." 2019-02-27 10:44:12 +00:00
TreeHugger Robot
1f24ccf2f6 Merge changes from topic "display_policy"
* changes:
  DisplayEventDispatcher: add DISPLAY_EVENT_CONFIG_CHANGED
  SurfaceControl: add setAllowedDisplayConfigs
2019-02-27 00:01:45 +00:00
Adam Powell
769b8638f9 System gesture exclusion rects for Views
Allow views to register a list of rects where the device's system UI
should not intercept complex (read: down+move+up) gestures on specific
sub-regions of the view. This should not be used for large-scale,
full-view gesture recognition such as scrolling, but rather for specific
areas such as SeekBar's scroll thumb or DrawerLayout's edge strip for
swiping open a navigation drawer.

Add ability for ViewTreeObserver to observe transformed exclusion rects

Bug: 126360272
Test: atest android.view.cts.SystemGestureExclusionRectsTest
Change-Id: If89b6f66637e40efa12955d6408f6e37b25cb46f
2019-02-26 15:37:25 -08:00
shepshapard
192c635632 getScaledMinScalingSpan -> getScaledMinimum...
Fixes: 126376129
Test: android.view.cts.ViewConfigurationTest

Change-Id: Ie5ac265bb8a390d9b82a61cac32ac1dc02556eb7
2019-02-26 15:19:15 -08:00
Adrian Roos
9e860359ed WindowInsets: Add missing annotations and make Builder final
Test: make checkapi
Fixes: 124766590
Change-Id: Ia16c7018f37cc6fbea105522816dab4cb7487f5d
2019-02-26 18:28:56 +01:00
Felipe Leme
f6b8a28426 Merge "Added ContentCaptureEvents for session resumed and paused." 2019-02-26 16:28:49 +00:00
TreeHugger Robot
7a13eb215c Merge "Support title_with_entity and title_without_entity" 2019-02-26 14:25:26 +00:00
Tony Mak
ac9b4d8d2e Support title_with_entity and title_without_entity
1. Pull out TextClassifierImpl.LabeledIntent to LabeledIntent.
2. LabeledIntent.resolves takes a TitleChooser object, which
   allow custom logic like "if the resolved app is a browser, use
   title_with_entity. Otherwise, use title_without_entity".
   If TitleChooser is not set, the default behavior is to use
   title_with_entity if provided, use title_without_entity otherwise.
3. For classifyText, we use a TitleChooser that always return
   title_without_entity. So no behavior change in classifyText.
4. If custom titleChooser returns null, fallback to use the default
   titleChooser.

BUG: 124428508
BUG: 123946471

Test: atest framework/base/core/tests/coretests/src/android/view/textclassifier/

Change-Id: I7299c40ffc57deb9484d493f8c62b220a5a1e7d8
2019-02-26 12:00:04 +00:00
Nathaniel R. Lewis
9aff88bdfd Merge "Fixes for touchpad capture" am: c5ea003bbb am: 6f72ed8b27
am: 01aa9e8157

Change-Id: I2bc16fb5a8fb0eaf5865a5f675d7d4ce978c09f2
2019-02-25 21:23:52 -08:00
Nathaniel R. Lewis
01aa9e8157 Merge "Fixes for touchpad capture" am: c5ea003bbb
am: 6f72ed8b27

Change-Id: I07e2ce2f93a8ed920879759873af4f0f40191b87
2019-02-25 20:27:54 -08:00
Felipe Leme
a820910468 Added DeviceConfig properties for Augmented Autofill service timeouts.
Test: manual verification
Bug: 123100811

Change-Id: I82749b4cea5fe90998efa0798fb6b032a8470086
2019-02-25 16:20:18 -08:00
Rob Carr
dbd04bb64b Merge "Exclude secure layers from most screenshots taken by the system server." 2019-02-25 23:57:26 +00:00
TreeHugger Robot
5daa6d5c67 Merge "Added a DeviceConfig property for Content Capture idle timeout to unbind from system server." 2019-02-25 21:10:50 +00:00
TreeHugger Robot
3d66fc9d6b Merge "Trigger augmented autofill when the app is not important for autofill." 2019-02-25 20:34:44 +00:00