Commit Graph

12656 Commits

Author SHA1 Message Date
Chavi Weingarten
ace4f6a018 Merge "Remove closeTransactionSync since it's no longer used." 2019-04-02 17:12:07 +00:00
John Reck
bcc0b914e3 Fix performance regression in textclassifier
DeviceConfig is far too slow to be used here, so
disable it.

Test: trace calculator launch
Change-Id: I6b7ab56e4015448ee068deb49e7f6fa133fea53c
2019-04-01 16:00:24 -07:00
John Reck
a3151aa9eb Merge "Disable checkThread temporarily" 2019-04-01 20:11:16 +00:00
Jorim Jaggi
671aa4d618 Merge "Immediately start drawing when becoming visible" 2019-04-01 19:21:34 +00:00
John Reck
52efe835f1 Disable checkThread temporarily
Bug: 129679214
Test: none
Change-Id: I58aa7110ee2ed18e7258e4c044ebe2a6e670aa8c
2019-04-01 11:54:01 -07:00
TreeHugger Robot
d4bc280d16 Merge "Gesture Exclusion: Fix crash when exclusion updates after detaching window" 2019-04-01 18:04:52 +00:00
Philip Quinn
5be044f37d Write touch classification metrics.
Bug: 111480215
Bug: 123663806
Test: statsd_testdrive 177

Change-Id: I44f0a1877acc38b3199dcc6a3b6d4bf00ac8d817
2019-04-01 17:01:02 +00:00
TreeHugger Robot
90cd3d6d48 Merge "Restrict access to private flags." 2019-04-01 16:28:54 +00:00
Jorim Jaggi
4840240055 Immediately start drawing when becoming visible
There was some old outdated logic about aborting draw if we have a
new surface. This isn't needed anymore and actually can cause up
to 5-10ms first draw delay for apps.

Test: AM/WM Presubmit CTS tests
Bug: 126612374
Bug: 123643797
Change-Id: I73d354efaee099e6a1ca1557e79440dc16e4976f
2019-04-01 16:26:30 +02:00
Adrian Roos
11dfd279a3 WindowInsets: populate system gesture and tappable element insets
Also fixes an infinite recursion when invoking
TestableContext.(un)registerComponentCallbacks().

Test: atest WindowInsetsPolicyTest
Bug: 126511573
Change-Id: I5c9f40054493a83746bce6124d72412e8eb8a0d1
2019-04-01 15:46:13 +02:00
TreeHugger Robot
cbc7969813 Merge "Add attr documentation for a couple accessibility attributes" 2019-03-29 22:59:34 +00:00
TreeHugger Robot
dd39518c07 Merge "Stop window redraws for invisible parent children" 2019-03-29 22:04:43 +00:00
Jorim Jaggi
338efa6092 Merge changes I95328c6b,I109cead7,I82b5a778,I352a3213
* changes:
  More random optimzations to make things go faster
  Don't compare configs during layout
  Get rid of some ancient logic around layouting invisible windows
  Window Manager spring cleaning
2019-03-29 22:01:13 +00:00
John Reck
368b384c88 Merge "Add missing checkThread" am: fdb8dfdadf am: 67793b0eec
am: 9117b1371f

Change-Id: I1a6cc8d995dad4e2ac06f046a693bdace767d79b
2019-03-29 14:59:45 -07:00
John Reck
9117b1371f Merge "Add missing checkThread" am: fdb8dfdadf
am: 67793b0eec

Change-Id: Ia8f3182a1d765937a5901cf6f9063ba8c84eb258
2019-03-29 14:48:24 -07:00
Treehugger Robot
fdb8dfdadf Merge "Add missing checkThread" 2019-03-29 21:18:10 +00:00
John Reck
78704efc3a Add missing checkThread
Fixes: 129362490
Test: none
Change-Id: I9429b48291908db7021ad10a18ef3180c7e83bf9
2019-03-29 10:26:01 -07:00
Jorim Jaggi
4981f15bd4 Window Manager spring cleaning
Our performance for wmLayout + prepareSurfaces regressed over
time, because we added a lot of functionality, but didn't have
fine grained perf tests enough to catch it.

This CL tries to attempt to undo that damage by optimizing various
things that regressed or didn't regress, but could still be
optimized.

Test: Presubmit tests + capture trace during wmRelayout
Bug: 129389526
Change-Id: I352a3213f074377bd10721d16535c1e27fb2e746
2019-03-29 16:00:13 +01:00
Felipe Leme
5a5b6c38f5 Merge "Checks package name belongs to called UID on some content capture methods." 2019-03-29 14:52:02 +00:00
Mihai Popa
4add16c4b8 Stop window redraws for invisible parent children
Bug: 69046604
Test: atest CtsViewTestCases:android.view.cts.ViewTest
Change-Id: If9f2d4212d613cb7122806adb31ad7ad875c8e45
2019-03-29 12:51:00 +00:00
Tiger Huang
c2bd56a30a Merge "Reduce the window tap exclude region for child above it" 2019-03-29 09:53:06 +00:00
Qasid Ahmad Sadiq
c26b110d95 Add attr documentation for a couple accessibility attributes
Test: It builds
Change-Id: I885c129513adf6683206b5b0db57884dd392e6b3
Fix: 77865204
2019-03-28 20:55:12 -07:00
Felipe Leme
afbba9fb36 Checks package name belongs to called UID on some content capture methods.
Also refactored how the SecurityException is thrown back to the caller app.

Bug: 122959591
Test: manual verification
Test: atest CtsContentCaptureServiceTestCases # sanity check (minus usual flakiness)

Change-Id: I4d2a68e61dc1c801d80734a30f4bbe6fdae8555d
2019-03-28 19:31:52 -07:00
Felipe Leme
a8d33c24f8 Implemented ContentCaptureConditions APIs.
Test: atest ContentCaptureConditionTest \
       CustomViewActivityTest#testContentCaptureConditions \
       CustomViewActivityTest#testContentCaptureConditions_otherPackage
Test: atest CtsContentCaptureServiceTestCases # sanity check (minus usual flakiness)

Fixes: 129266058

Change-Id: I199c3ae99fa6b407da64562a71d8d7581ebf80e6
2019-03-28 18:48:31 -07:00
Felipe Leme
ae9f6953ad Merge "Refactored ContentCapture sessions to use an int id." 2019-03-29 00:55:13 +00:00
TreeHugger Robot
e2dc2d0bd0 Merge "Improved Content Capture and LocusId javadocs." 2019-03-28 21:24:08 +00:00
Felipe Leme
080542019a Refactored ContentCapture sessions to use an int id.
This is an internal change that will save memory:
- ids themselves are smaller (one int vs ~20 chars string)
- can be mapped with SparseArrays
- parcel objects will be smaller

Test: atest CtsContentCaptureServiceTestCases \
  FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest \
  FrameworksCoreTests:android.view.contentcapture.ContentCaptureSessionTest

Fixes: 121197119

Change-Id: I4b4367bd7238400ade385c2bcc4b0595ed0b1c7b
2019-03-28 13:50:06 -07:00
Qasid Sadiq
46b5d13a54 Merge "Deprecate boundsInParent in favor of boundInScreen." 2019-03-28 19:55:43 +00:00
Tiger Huang
2b210c234c Reduce the window tap exclude region for child above it
For letting touches directly go to the embedded display, we've opened a
tap exclude region for the ActivityView. However, if there is a view on
top of the region, the view cannot be touched within the region.

In this CL, we reduce the tap exclude region if there is a can-receive-
pointer-event view on top of the region.

Bug: 128517544
Test: atest CtsActivityManagerDeviceTestCases:ActivityViewTest
Test: atest FrameworksCoreTests:ViewGroupTest
Test: Menual test with ActivityViewTest and Bubbles
Change-Id: I68e2a9fe9d0891801b533ab8d25074f64bef5a79
2019-03-28 16:53:20 +08:00
Qasid Ahmad Sadiq
31d0cedcc4 Deprecate boundsInParent in favor of boundInScreen.
If the service has boundsInScreen the boundsinparent can be computed.
Also for its whole existence, boundsInParent is the bounds within the
ViewParent's coordinates. But the ViewParent is quite often not the
AccessibilityParent (if it isn't important for accessibility), so the
service can't really do anything with that information because the
service doesn't have access to the ViewParent, only the
AccessibilityParent.

Test: It builds.
Bug: 1084662
Change-Id: If88dcaac6dcb824d72d7f483c05cbb544314423c
2019-03-27 23:52:05 +00:00
Felipe Leme
f0d44c6aa8 Improved Content Capture and LocusId javadocs.
Test: mmm frameworks/base/:doc-comment-check-docs # and checked resulting HTML

Fixes: 123577059
Fixes: 128427733
Fixes: 123954513

Change-Id: I955e99efa099cbb68477b394450fa468c85f352c
2019-03-27 13:42:24 -07:00
Felipe Leme
159cb007d4 Improved autofill logging on savable ids.
Bug: 127700872
Test: manual verification

Change-Id: Ia14152c53c3542f0e9ba9b701bb5281c3e403faf
2019-03-27 11:08:37 -07:00
Nader Jawad
40a43424ee Merge "Added framework APIs to leverage new BlendMode API" 2019-03-27 16:39:03 +00:00
Nader Jawad
dadf251a0d Added framework APIs to leverage new BlendMode API
Updated various framework APIs to leverage the new BlendMode API
that parallels the corresponding porterduff mode equivalent.

Added new Drawable#onApplyBlendMode API that provides a backward
compatible solution for Drawable implementations that leverage
the new BlendMode API as well as fall back on the traditional
setTintMode(PorterDuff.Mode) API for instances where it is not
implemented

Bug:126726419
Test: Re-ran CTS graphics test cases
Change-Id: I119a7f57dce0a095c0a73cf83dc50b82beff5e32
2019-03-26 16:44:10 -07:00
Felipe Leme
df1aa85444 Merge "Defined new APIs to whitelist content capture for specific URLs." 2019-03-26 16:01:10 +00:00
Leon Scroggins
75ca391bbe Merge "Clean up references to @ColorLong" 2019-03-26 12:45:45 +00:00
Jackal Guo
5e94ae17ae Merge "Stop recycling in AccessibilityCache" 2019-03-26 08:30:33 +00:00
Jackal Guo
a27e4b7b07 Stop recycling in AccessibilityCache
Explicitly allocate windows and nodes instead of obtain/recycle in
AccessibilityCache.

Bug: 117999988
Test: build and boot
Test: a11y CTS & unit tests
Change-Id: I269c6b9d8bc67568fd90f8690a7bfb7a782e7fe7
2019-03-26 09:14:59 +08:00
Felipe Leme
790be0463b Defined new APIs to whitelist content capture for specific URLs.
Test: m update-api # not implemented yet
Fixes: 129267994

Change-Id: Ibd83368ce79e8dfe901164f921304091c41428fc
2019-03-25 15:35:57 -07:00
Adrian Roos
021d871e57 Gesture Exclusion: Fix crash when exclusion updates after detaching window
Fixes: 129268298
Test: atest android.view.cts.SystemGestureExclusionRectsTest
Change-Id: I9dd72f7905ca859974e3b36150cd6fe38f771918
2019-03-25 18:04:08 +01:00
Jackal Guo
a4d92da88d Merge "Refine adjustIsVisibleToUser" 2019-03-25 01:11:36 +00:00
TreeHugger Robot
1987dfa035 Merge "Added a "lite" flag on ContentCaptureOptions." 2019-03-23 04:33:21 +00:00
TreeHugger Robot
dd72d2f8cd Merge "Restrict access to FLAG_USE_CHILD_DRAWING_ORDER." 2019-03-23 00:26:47 +00:00
TreeHugger Robot
23537e3995 Merge "Conversation Actions: support multiple models." 2019-03-22 23:36:21 +00:00
TreeHugger Robot
4f3f18dec3 Merge "Fixed Content Capture workflow when service package is updated." 2019-03-22 23:00:01 +00:00
Peiyong Lin
260b714200 Merge "Revert "Revert "Allow screenshot to carry more information.""" 2019-03-22 22:24:51 +00:00
Winson Chung
dece92b287 Merge "Add overlays for nav bar interaction mode." 2019-03-22 21:02:07 +00:00
TreeHugger Robot
4e59b8d992 Merge "Restrict access to mGroupFlags." 2019-03-22 20:22:16 +00:00
TreeHugger Robot
6f59ef8a37 Merge "Restrict FLAG_SUPPORT_STATIC_TRANSFORMATIONS usage" 2019-03-22 20:06:36 +00:00
Filip Pavlis
638d2aa892 Restrict access to private flags.
Specifially restrict access to mPrivateFlags and mPrivateFlags2. We
were not able to find a legitimate use-case. Several flags have
corresponding public APIs. We are deliberately breaking the usage
of any flags that don't have alternative API already as it breaks
encapsulation of the View class that is supposed to manage these
flags on its own.

Some examples of existing public APIs for important flags:
PFLAG_FOCUSED
- hasFocus

PFLAG_SELECTED
- isSelected
- setSelected

PFLAG_HOVERED
- isHovered
- setHovered

PFLAG2_ACCESSIBILITY_FOCUSED
- isAccessibilityFocused
- requestAccessibilityFocus

Bug: b/123769414
Bug: b/123768943
Bug: b/129147060
Test: N/A
Change-Id: If8acd7e8b516e4ce6808dcd57485659b616e24ee
2019-03-22 19:26:35 +00:00