This spits out the last 20 motion events that the FalsingManager
uses into bug reports. It only records the data in eng/userdebug
builds.
This has been cleared with PWG over VC.
A tool to visualize this data in in progress.
Bug: 148084465
Test: manual
Change-Id: I3edf5dc8693a202ff0e31e737e912500a3e4363d
DataStallReport is updated to include the NetworkCapabilities and Link
Properties for the Network being reported on. This provides a more
complete picture of the Network conditions when the suspected data stall
was detected.
Bug: 148966398
Test: atest FrameworksNetTests
Change-Id: I913cf18c348b9f688f9d2a3d25a71bc94eb8f000
Set the properties in a loop to attempt and prevent flakiness if
properties aren't set by the time the tests starts.
Bug: 148649139
Test: atest BootImageProfileTest
Change-Id: I9a51770d687c93e0eb8829c277e1ec0a33d7c481
From SettingsProvider point of view, the calling package is "android".
However, the callingUID is the client that calls into TCMS.
The solution is to clear the calling identity when accessing
DeviceConfig in a binder call.
The problem is intermittent is because TCMS also accesses
DeviceConfig in its constructor. It is not in a binder call, and thus
it works. DeviceConfig caches the value, and so subsequent DeviceConfig
calls won't actually call into SettingsProvider, not until the cache
is invalidated somehow.
I can reproduce the issue all the time by commenting the line that
accesses DeviceConfig in the constructor.
BUG: 149219961
Test: Comment the line that accesses DeviceConfig in the constructor.
And try out smart selection and smart reply.
Change-Id: I6d27bf9b5ec0d4337c2623a83d326adc688269af
For the CtsAngleDeveloperOptionHostTest tests we are seeing a flaky
failure in CTS and MTS testing. We tracked it down to a timing issue
with how/when the Activity Manager's cached settings values are updated.
Basically, we will set the settings to activate a particular code path
in GraphicsEnvironment and then run a test to check that behavior.
Sometimes, the test would fail. Logging showed that the test set the
values but the GraphicsEnvironment code path did not see the changes
because the Activity Manager's ContentObserver hadn't had time to
process the settings change. We can't read from the settings provider
directly because that has a huge performance impact and this is code
run during application startup.
Solution here is to add a command to ActivityManager to update it's
settings cache.
The test application then does:
Set setting.
Send AM refresh-settings-cache command.
At this time we know the cache is up-to-date and the test can run.
Test: atest android.angle.cts.CtsAngleDeveloperOptionHostTest
Bug: 148545737
Bug: 148546966
Change-Id: I7a12ce098315bb98eaafad122c770bfbfe67b988
MediaScannerConnection#onScanCompleted callback runs on background
thread. Exception on the callback kills the process. To avoid this,
ignore exceptions from callback for apps targeting Q or lower.
This change fixes change in behavior from refactoring
Ie959daa7576214024150faf84b44cdba00119257 where errors on the callback
was handled on a binder thread that doesn't cause process crash.
Test: atest frameworks/base/media/ directory
Test: "in.mohalla.sharechat" app doesn't crash while sharing video.
Test: "com.vkontakte.android" app doesn't crash while sending a photo.
Bug: 147998630
Bug: 148925602
Change-Id: I5bd5f9fc22ac274da4d09c55dd639a6cca08be9b
This is required for the provisioning cross-profile consent screen which
is used to take some apps off INTERACT_ACROSS_USERS.
Hidden API CrossProfileApps#setInteractAcrossProfilesAppOp is changed
from requiring the broad app-op permissions to requiring
CONFIGURE_INTERACT_ACROSS_PROFILES. It then clears identity before
calling into AppOpsManager. For convenience, we also allow apps (such as
Settings) with the broader app-op permissions to continue to call this
method; in that case, we simply don't clear the identity and let
AppOpsManager check the permissions (so we allow AppOpsManager to set
the requirements if you don't have the new
CONFIGURE_INTERACT_ACROSS_PROFILES).
The CL also adds 'withCleanCallingIdentity' support to
CrossProfileAppsServiceImpl and moves over existing calls.
Bug: 136249261
Bug: 140728653
Test: atest --verbose com.android.managedprovisioning.provisioning.crossprofile.CrossProfileConsentActivityRoboTest
Change-Id: Ibd304563dd1ef5f16784e3502be5ef1ec4675b63
The Japanese government sat the new rule for a business document
from B5 to A4 from Aprial/1993. Currently, A4 is a common print paper
size in Japan.
However, the current *Android* default media size in Japan is JIS_B5.
Maybe this default media size is based on the old Japanese standard
information.
MHLW formally adopted it in 1993(but in Japanese)
https://www.mhlw.go.jp/web/t_doc?dataId=00ta0034&dataType=1&pageNo=1
Test: Change Languages to Japanese(Nippon), Tap "Print" in Gmail or Chrome and check Paper size(before test this, remove all favorite printers).
Change-Id: I2748bc76d5b7143b99d21e07e8c5c44f87246c84
Signed-off-by: Yoshiro MIHIRA <sanpei@sanpei.org>
Add config flag to choose between PacService implementations.
Added flag (config_useWebViewPacProcessor) is disabled
by default for now.
Bug: 148516710
Test: atest DeviceOwnerTest#testProxyPacProxyTest
Change-Id: I5d376a2a37f1bfb7ba5268c0088bf4417434b8f5
Storage tests are separated out from RestrictedPermissionsTest in
ag/10260977. This CL adds the new test file to CtsPermission2TestCases
presubmit tests.
Change-Id: Id785f019e55e655703f823a857da44de0a2ef58d
Fix: 147034231
Bug: 144914977
Bug: 131432978
Test: atest CtsPermission2TestCases
Originally it uses the text height from the font metrics which is wrong
when the spanned text is smaller than the font metrics.
Test: locally verified.
Bug: 149287208
Change-Id: I91a87200e477faece543a8890aeccd5b7eed9f0b
On devices without sdcardfs, these classes of apps get the right storage
access by being a part of the correct group.
Bug: 146419093
Test: manually verify apps get the correct GID
Change-Id: I7021cbf8a2e84bda7a49519da36e84fcf3f479a8
We added logic to the function, and this CL detects if the logic is
broken.
Bug; 149121559
Test: atest InsetsSourceProviderTest
Change-Id: I5eadae67aa0c2555441b16d8ae0146fe18ad0632
Scale bitmap to fit display size leads to memory regression, this cl
removes the sacling logic and also disable wallpaper transitions when
the bitmap size is smaller than display size to avoid broken visual.
Bug: 147379974
Bug: 145897588
Bug: 124838911
Test: Manually
Test: atest com.android.systemui.ImageWallpaperTest
--rerun-until-failure 20
Test: atest com.android.systemui
Change-Id: I243274af54538fc89268c448aa2c5a95f63c7ae3
fef9247572
Test: End to end test: run "atest GnssAntennaInfoRegistrationTest" on cuttlefish and watch "adb logcat | grep -i GnssAntennaInfo". Other tests: atest GnssAntennaInfoTest, atest GnssAntennaInfoProviderTest, atest GnssManagerServiceTest, atest VtsHalGnssV2_1TargetTest, atest LocationManagerFineTest.
Bug: 124556515
Change-Id: Ie1a8a60b9d7b9b95335bc84118639e33e0784ca1
Add session volume or group volume info into RoutingSessionInfo.
Group volume can be controlled by MediaRouter2 or MediaRouter2Manager.
This CL includes minor clean up for CTS and MediaRouter2Manager.
Bug: 148994658
Bug: 149200358
Test: atest android.media.cts.MediaRoute2InfoTest
&& atest android.media.cts.MediaRouter2Test
&& atest android.media.cts.RouteDiscoveryPreferenceTest
&& atest android.media.cts.RoutingSessionInfoTest
&& atest android.media.cts.MediaRoute2ProviderServiceTest
&& atest mediaroutertest
Change-Id: If1d3aaae604a3c23d504e620ddb2bd2ffb260602
It returns null as API description for null message or null destination
instead of NPE.
Bug: 111731144
Test: atest SmsMessageTest
Change-Id: I1dc8537b6d07a43345c266122a1c77e73e58e7e8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
am skip reason: Change-Id I89bf1c188d6ba094106e059f1590c9eaf3703bb8 with SHA-1 0e72713fdf is in history
Change-Id: I2d2873c4db0a23b5b80a1cc51f2287a052dc7c21
am skip reason: Change-Id I621cfbe165996c67b201ca2dd2f95a5ab9af10ee with SHA-1 d969656f45 is in history
Change-Id: I0fe69f7c3e729f4317b7bbead5d4dc575fa83ba6