Commit Graph

12337 Commits

Author SHA1 Message Date
John Reck
989bb3714f Merge "Make HardwareRenderer public API" 2019-02-14 20:40:13 +00:00
TreeHugger Robot
1df6e435b0 Merge "Removed unused APIs." 2019-02-14 16:51:29 +00:00
Felipe Leme
0552f41c4e Merge "Add new ContentCapture APIs to let apps change the ContentCaptureContext." 2019-02-14 15:26:27 +00:00
TreeHugger Robot
e3e53162cb Merge "Fix Autofill PartitionedActivityTest fail." 2019-02-14 02:38:39 +00:00
Felipe Leme
3f1e2318e6 Removed unused APIs.
Plus fixed a few minor TODOs.

Test: atest AugmentedLoginActivityTest
Test: m update-api

Bug: 122654591
Fixes: 123233342

Change-Id: Ie5040077255ffab8fee019ca6a0a122fe9f2e03d
2019-02-13 13:21:27 -08:00
TreeHugger Robot
b1a0da1098 Merge "Update View#getAttributeResolutionStack to take @AttrRes" 2019-02-13 18:36:24 +00:00
Nader Jawad
9b31762790 Merge "Added public API alternatives to reflective calls on ScrollBarDrawable" 2019-02-13 17:55:48 +00:00
TreeHugger Robot
5978e065ab Merge "Add android.view.DisplayAddress" 2019-02-13 17:23:58 +00:00
Cătălin Tudor
b7c074fbce Merge "Fix hidden usage sConstructorMap" 2019-02-13 10:44:36 +00:00
Andrey Kulikov
81aac219c9 Merge "Restrict platform's GhostView and unhide a method needed for a backport" 2019-02-13 10:44:03 +00:00
Rhed Jao
4b87f31952 Fix Autofill PartitionedActivityTest fail.
Bug: 124235900
Test: atest PartitionedActivityTest
Change-Id: Ie058ff4d3162e969a727b3fa72bca12475076ae9
2019-02-13 17:50:38 +08:00
TreeHugger Robot
96e278d6c4 Merge "Restrict usage of AccessibilityManager::mIsEnabled after P" 2019-02-12 22:53:12 +00:00
Nader Jawad
93aeba8c52 Added public API alternatives to reflective calls on ScrollBarDrawable
Added public setter/getter APIs on View to set/get the track/thumb
Drawables for the vertical and horizontal scroll bars to support
configuring scrollbars programmatically in addition to xml
attributes

Change-Id: Ic0b42742e8a795fe616887369dd0e592cde5c2fa
Fixes: 123769505
Test: Added View.java test cases to verify new setter/getters
2019-02-12 14:31:49 -08:00
Aurimas Liutikas
e2112310c6 Update View#getAttributeResolutionStack to take @AttrRes
getAttributeResolutionStack was not enough for cases where View
subclasses called obtainstyledattributes with different defStyle values.

Bug: 111439551
Test: updated CTS tests
Change-Id: I81403bdfd5e6f6b34ce34824689d0cef9c32ae44
2019-02-12 13:40:02 -08:00
Felipe Leme
4eecbe6e3c Add new ContentCapture APIs to let apps change the ContentCaptureContext.
Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.LoginActivityTest#testSimpleLifecycle_changeContextOnCreate \
   CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.LoginActivityTest#testSimpleLifecycle_changeContextAfterCreate
Test: atest FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest

Bug: 124266664

Change-Id: I0348e81e1b2bac01363cf615d2ab32e5bab8aee1
2019-02-12 11:31:06 -08:00
Dan Shi
18a52fb0c7 Remove CtsViewTestCases in TEST_MAPPING file
The test config has an option to use package filter, which does not
work with another TEST_MAPPING which has the same test but use a
class filter.
startop/view_compiler/TEST_MAPPING

Bug: 124248633
Test: none
Change-Id: Id989d9df8983e7a08be38616e92e10f70fe4846a
2019-02-12 09:33:07 -08:00
Matvei Malkov
6689e620a6 Restrict usage of AccessibilityManager::mIsEnabled after P
Setting this field with reflection leaves AccessibilityManager in
improper state. Restrict access to this field in future apis

Bug: b/124052733
Test: accessibility tests passed
Change-Id: I776e1092ab33cf9660f593a22585695c17852e1e
2019-02-12 15:41:54 +00:00
Andrey Kulikov
7c4e693104 Restrict platform's GhostView and unhide a method needed for a backport
Bug: 117521193
Bug: 123768642
Test: added a cts test for the new method
Change-Id: If933dbe16e756bf4e32d1cf43d9d3ecc67e37174
2019-02-12 15:29:14 +00:00
Mathieu Chartier
bd3810b28f Merge "Revert "Revert "Add view inflation device config property""" 2019-02-12 11:11:33 +00:00
Cătălin Tudor
e61fc256d3 Fix hidden usage sConstructorMap
In LayoutInflater, sConstructorMap was marked with @UnsupportedAppUsage.

After doing some research, the main reason for accessing this appears to
be related to classloaders (fixed in CL=839342, method=verifyClassLoader).
As this is fixed and creating a public API for a cache doesn't seem
apropriate, dark grey listing it seems the best solution.

Bug: 123769490
Test: android.view.cts.LayoutInflaterTest
Change-Id: I104ce17bb4083f7049bbb512090b31f8360cb23b
2019-02-12 10:28:47 +00:00
Yohei Yukawa
1466e4a4e7 Hide InputMethodManger.showSoftInputUnchecked() from Q+ apps
This is a follow up CL to my previous CL [1], which declared that
InputMethodManger.showSoftInputUnchecked() was deprecated and should
have never be used any more.

At that time, however, we could not simply remove that hidden API
because android.support.v7.widget.SearchView had been used it via
reflection and the reflection code was already statically linked into
many apps in the ecosystem.  What we could do at that time was getting
rid of this hidden API dependency from support lib v26 [2] and making
sure that a clear warning was shown in logcat if apps were still using
older support lib [3].

Almost two years later now, it's probably time to step forward towards
true deprecation of this hidden API.  With this CL, apps that target
Q+ can no longer call this method.

 [1]: I20983e4ce1d625e098a8c2335ce75994cfa43235
      5cfc1b4c10
 [2]: Iaac4673a85c141c787b96fb39806346ccfb85fb3
      fd44fffced7cce36c1ce0d62dfe2542aa6a7c6e9
 [3]: If01316a0c2a210f9ea03b53700d0ef651955ba9c
      101ae464fc

Bug: 36015425
Fix: 123768499
Test: make -j checkbuild
Change-Id: Ie7362f62f1e947ee5a21b90f5150c69f2970d73d
2019-02-12 01:42:56 -08:00
Phil Weaver
f1c246619f Merge "Add owners for accessibility" am: bbbeba3c02 am: a525ea4436
am: c36e36b87e

Change-Id: Iaa5653b02e99a149186a99f3fda28111263aa2ad
2019-02-11 17:12:54 -08:00
Phil Weaver
c36e36b87e Merge "Add owners for accessibility" am: bbbeba3c02
am: a525ea4436

Change-Id: Ia828c34be1f1dac6ea58ce0e68cf032f058dbb0b
2019-02-11 16:53:13 -08:00
TreeHugger Robot
2e71c58863 Merge "Exposed even moar DeviceConfig APIs for testing." 2019-02-12 00:47:56 +00:00
Phil Weaver
a525ea4436 Merge "Add owners for accessibility"
am: bbbeba3c02

Change-Id: I099187d207d5610bc79d630f105bff2de41481c3
2019-02-11 16:34:27 -08:00
Aurimas Liutikas
ec0cfcbafb Merge "Update core widgets to save attribute source info." 2019-02-11 22:08:28 +00:00
Felipe Leme
5d56e66495 Merge "Use DeviceConfig to configure Augmented Autofill Modes." 2019-02-11 22:06:36 +00:00
Adam Powell
4ee8043e8b Merge "Restrict View#mAttachInfo" 2019-02-11 21:06:49 +00:00
Tony Mak
84c8c2a2aa Merge "Add TEST_MAPPING to textclassifier" 2019-02-11 20:47:46 +00:00
TreeHugger Robot
62d07a6c46 Merge "Remove access to private field mFactorySet." 2019-02-11 20:37:32 +00:00
Felipe Leme
cc5102705a Exposed even moar DeviceConfig APIs for testing.
Test: atest AugmentedLoginActivityTest
Test: m update-api
Bug: 124006095

Change-Id: I6e2e1f24ba5cc442d533f7d67cea40a670be3937
2019-02-11 10:03:26 -08:00
Felipe Leme
7841d02e36 Use DeviceConfig to configure Augmented Autofill Modes.
Test: atest AugmentedLoginActivityTest
Bug: 121037717

Change-Id: I269946b3055bce82872976d88fa315c7d8c01b99
2019-02-11 10:03:10 -08:00
Mathieu Chartier
743b363226 Revert "Revert "Add view inflation device config property""
Bug: 111895153
Bug: 123524494
Test: unlock lockscreen
Test: cts-tradefed run cts --enable-parameterized-modules --module-parameter instant_app -m CtsAccelerationTestCases
Test: 6/6 pass as expected (TOT)

This reverts commit 2a3b4394384217ae65b430339270c8914639a9e3.

Change-Id: Ib2267a10ef44b01bc077893172ad39b43ead7841
2019-02-11 16:47:56 +00:00
Sergey Vasilinets
0f5d4fe906 Merge "Make InputDevice.isExternal() public" 2019-02-11 15:53:30 +00:00
TreeHugger Robot
71d9277b21 Merge "Revert addition of add/removeAnimationListener" 2019-02-11 14:20:29 +00:00
TreeHugger Robot
7bd4ed2703 Merge "Close access to WindowGlobalManager.trimMemory starting with Q" 2019-02-11 00:49:11 +00:00
Sergey Vasilinets
f5c83bba8d Merge "Disallow reflection on Display.getDisplayInfo and Display.displayCutout" 2019-02-11 00:41:39 +00:00
TreeHugger Robot
e921cb7a9b Merge "Suggest ADD_CONTACT action by default" 2019-02-09 14:45:24 +00:00
TreeHugger Robot
45d5afbf30 Merge "Added maxTargetSdk and tracking bug to USE_VSYNC flag in choreographer" 2019-02-09 04:22:21 +00:00
Shep Shapard
cdc95009df Merge "Prevent reflection - ScaleGestureDetector#mMinSpan" 2019-02-09 03:28:27 +00:00
Felipe Leme
aa4eecad07 Merge changes from topics "kill_switch", "disabled_by_device_config"
* changes:
  Reverted ContentCapture kill-switch mechanism.
  Disable ContentCapture at runtime when it's disabled by DeviceConfig.
2019-02-09 01:45:06 +00:00
shepshapard
ba6dbff3f5 Prevent reflection - ScaleGestureDetector#mMinSpan
Also makes "minScalingSpan" accessible to developers
via ViewConfiguration in case developers were accessing
mMinSpan in order to simply read the value of the field,
since that was previously the only way to read the value.

Fixes: 123768938
Test: android.view.cts.ViewConfigurationTest

Change-Id: Ib179aa153f00a55b6913c7497a1e43bd101f41d3
2019-02-08 16:48:52 -08:00
Nader Jawad
21a4f7c88c Added maxTargetSdk and tracking bug to USE_VSYNC flag in choreographer
It is not clear what an application would do differently with this flag
considering that VSYNC has been enabled by default on Android for a
number of years.

Change-Id: Id307bce0beebaad63a693222dffe940d640f89cd
Fixes: 123769497
Test: N/A
2019-02-09 00:38:05 +00:00
TreeHugger Robot
6686d19fc7 Merge "Prevent access to MotionEvent#mNativePtr" 2019-02-09 00:10:50 +00:00
Felipe Leme
6c7c87bb4e Merge "Fixed sendEvent() so it can merge TYPE_VIEW_DISAPPEARED with multiple ids." 2019-02-08 22:31:25 +00:00
Abodunrinwa Toki
aa0fc10c7a Merge "TextClassifier: normalize uri for browser intent." 2019-02-08 21:39:09 +00:00
John Reck
fe5dfcacfc Make HardwareRenderer public API
Bug: 123661129
Test: HardwareRenderer CTS tests
Change-Id: Ic7ff69c9489d00e3f525eec761a84d06cf81be7a
2019-02-08 10:50:14 -08:00
Felipe Leme
14ef461fc2 Reverted ContentCapture kill-switch mechanism.
Fixes: 121153631
Fixes: 121144410

Test: atest CtsContentCaptureServiceTestCases

Change-Id: Ic0e3fe6e93a8c2aff12eebcf9872f0082a361589
2019-02-08 10:45:50 -08:00
George Mount
bbc84a8b26 Prevent access to MotionEvent#mNativePtr
Fixes: 124051968
Test: compiled framework

Removes reflection access to MotionEvent#mNativePtr. All
necessary access to mNativePtr is available through the public
methods on MotionEvent, so access to mNativePtr is unnecessary.

Change-Id: I448eddfc4a5bc64deff44db2e69b5481477cdf91
2019-02-08 09:58:45 -08:00
Felipe Leme
c8875e7073 Fixed sendEvent() so it can merge TYPE_VIEW_DISAPPEARED with multiple ids.
Test: atest CtsContentCaptureServiceTestCases # nothing broke

Bug: 124107816
Fixes: 124060720

Change-Id: I632d4f600eabccf7e991450ff0291c6f5721cc28
2019-02-08 09:52:57 -08:00