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
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
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
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
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
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
Setup presubmit for textclassifier by using TEST_MAPPING.
We will get a dashboard for the test result as well.
Also fixed a few broken tests found by this CL.
BUG: 124041915
Test: atest --test-mapping frameworks/base/core/java/android/service/textclassifier/TEST_MAPPING
Change-Id: I0c516ea8699d7e94cfabd2ea98ebad58505c7e90
The model now generates add_contact action as well.
Test: Send myself a message with phone number. Observe add contact action.
Change-Id: Id5e02334f46f92ddac2834b9f508fc15ab6e29da
This reverts commit 02301df216
and 65d2171d00.
Dropped addition of new API because androidx's FragmentManagerImpl now
employs a workaround that removes the necessity to reflect into
mListener and doesn't need add/removeAnimationListener either.
Bug: 117519981
Test: atest AnimationTest
Change-Id: I7250570190f40f6c5da8ef65ed81b2d4bb815cf5
Fixes: 123769585
Test: compiled framework
mFactorySet is being modified by app developers to reset the factory
on an existing LayoutInflater. Instead, a developer should use
LayoutInflater#cloneInContext() to create a new LayoutInflater
and set the factory on it instead.
This is often desired at the Activity level, so that any part of
the application getting a LayoutInflater using the Activity as
a Context will get the LayoutInflater with a custom factory. To
do this, the Activity has to replace the returned LayoutInflater.
Something like this should work:
private LayoutInflater mLayoutInflater;
@Override
public Object getSystemService(String name) {
if (Context.LAYOUT_INFLATER_SERVICE.equals(name)) {
if (mLayoutInflater == null) {
mLayoutInflater =
((LayoutInflater)super.getSystemService(name)).cloneInContext(this);
mLayoutInflater.setFactory(new CustomLayoutFactory());
}
return mLayoutInflater;
}
return super.getSystemService(name);
}
Change-Id: I155ea9538c5783b32301252fb3fb9baa1cc92036
Developers can already use the public setPadding(...)
and setPaddingRelative(...) methods.
Bug: 123768420
Test: None.
Change-Id: I3c7bd84699730cb11c2d801aff6340c3ac9c36d3