Commit Graph

5211 Commits

Author SHA1 Message Date
Taesu Lee
0399854df0 Fix descriptions for default SIM in global preferences
Test: Not required.

Change-Id: I7f32eb495b53d13aba50b07d86e63f0549e9e6bb
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-09-17 13:45:54 +09:00
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:14:44 +00:00
Ian Kasprzak
1a5bb83588 [DO NOT MERGE] Cleanup TEST_MAPPING disables from ag/9285495
- Moved exclude filters to existing stanzas
- Removed new stanzas added w/ filters
- Removed un-needed filters because existing "include-filter"
  already excludes failing tests.

Disabling in preparation for merge to aosp-master (Q release).

Disabling the following tests:
FrameworksCoreTests:android.view.textclassifier.TextClassifierTest#testSuggetsConversationActions_deduplicate
CtsAppTestCases:android.app.cts.ServiceTest#testAppZygoteServices
CtsAppTestCases:android.app.cts.SystemFeaturesTest#testLocationFeatures
CtsProviderTestCases:android.provider.cts.MediaStore_Images_ThumbnailsTest

Test: Forrest
Exempt-From-Owner-Approval: Disabling known failing TEST_MAPPING tests
for AOSP push to Q.

Change-Id: I4dc2408c5bc6d421654f871c5d63d402c1d96d91
2019-08-29 10:38:56 -07:00
Raman Tenneti
f997c75d69 [DO NOT MERGE] Disabled the following tests in TEST_MAPPING:
FrameworksCoreTests:android.view.textclassifier.TextClassifierTest#testSuggetsConversationActions_deduplicate
CtsAppTestCases:android.app.cts.ServiceTest#testAppZygoteServices
CtsAppTestCases:android.app.cts.SystemFeaturesTest#testLocationFeatures
CtsProviderTestCases:android.provider.cts.MediaStore_Images_ThumbnailsTest

Disabling in preparation for merge to aosp-master (Q release).

Test: Forrest (atest)
L55600000358896983, L81400000359164936
BUG: 139704630
BUG: 139535570
BUG: 139536812
BUG: 139535125
BUG: 139305203
Change-Id: I9be2efd464fe031a0269fa5a3913ddb4959ba05d
Exempt-From-Owner-Approval: Disabling known failing TEST_MAPPING tests for AOSP push to Q.
2019-08-28 23:48:13 +00:00
Jeff Sharkey
9f6f8bedbc Wait until any background events are processed.
Some MediaProvider events (such as thumbnail invalidation) are
handled on a background thread.  To reduce flaky tests, wait until
all background events have been processed, which is more robust
than sleep.

Bug: 134879702
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ia032b19c1b0e5c0096c55bf3d46a5153525e89fa
(cherry picked from commit efad242f35)
2019-08-19 22:15:51 +00:00
Adrian Roos
bee24f79f7 Merge "WM: implicitly exclude all edges for pre-Q immersive sticky apps" into qt-dev
am: 8ef731c232

Change-Id: Ie23184e62d410cff170232d15720b22d53f7e6df
2019-07-04 08:07:23 -07:00
Adrian Roos
019a52b4ad WM: implicitly exclude all edges for pre-Q immersive sticky apps
Bug: 135522625
Test: atest DisplayContentTests
Change-Id: Ibe6c2c6d269b15c2e79ac0241b93e42c44a167c9
Exempt-From-Owner-Approval: TBR
2019-07-04 14:35:34 +00:00
Jorim Jaggi
de8014e068 Merge "GestureNav: Limit exclusion rects" into qt-dev
am: ea3216d462

Change-Id: Id52bcbd80028ce0030b7f8b38058e7a786744497
2019-06-28 07:48:06 -07:00
Adrian Roos
506267d5f4 GestureNav: Limit exclusion rects
Add limits for system gesture exclusion on the left and right edges.
This prevents non-immersive-sticky apps from totally disabling the
back gesture.

Bug: 135522625
Test: atest SystemGestureExclusionRectsTest

Merged-In: Ib26161663a6aababe803d3c70044f4017bdbe675
Change-Id: Ib26161663a6aababe803d3c70044f4017bdbe675
2019-06-28 17:59:06 +08:00
Yiwei Zhang
95cca4b36a Merge "Game Driver: Add settings global for prerelease driver opt in option" into qt-dev
am: ca354f308d

Change-Id: If7ecfd4d0f6e0c0289bb205bca7e370b57bdbcd4
2019-06-12 18:05:21 -07:00
TreeHugger Robot
ca354f308d Merge "Game Driver: Add settings global for prerelease driver opt in option" into qt-dev 2019-06-13 00:31:24 +00:00
Michael Groover
949e343a1c Merge "Remove settings to relax device ID access restrictions" into qt-dev
am: 692a68133b

Change-Id: I54d5aba18bc6925273668b3a9b940445d6a2a4ca
2019-06-12 14:16:23 -07:00
Michael Groover
692a68133b Merge "Remove settings to relax device ID access restrictions" into qt-dev 2019-06-12 20:31:16 +00:00
Patrick Baumann
5015ef4885 Merge "Adds note about _native namespaces" into qt-dev
am: 0c7bac8718

Change-Id: I305a79734aba31fac029a93b0fd73017717f9376
2019-06-11 12:44:39 -07:00
TreeHugger Robot
0c7bac8718 Merge "Adds note about _native namespaces" into qt-dev 2019-06-11 19:24:29 +00:00
Patrick Baumann
b816823ba3 Adds note about _native namespaces
This change is purely documentation and addresses the use of _native for
device config namespaces.

Bug: 129344328
Test: N/A
Change-Id: I4eea3252be39024c02e4e601b6892223b009c82f
2019-06-11 10:17:49 -07:00
Yiwei Zhang
4836fb16c9 Game Driver: Add settings global for prerelease driver opt in option
Bug: 134881329
Test: build, flash and boot
Change-Id: I8c3ba687f3c85f3fe093cdf7086adf9b8109713d
2019-06-09 15:23:17 -07:00
Svet Ganov
85c951601a Add OWNERS for DeviceConfig
Test: N/A

Bug: 134753749

Change-Id: Ia1b10287a0d056fd9d242936e90d8f91d847fe59
2019-06-07 16:43:12 +00:00
Svetoslav Ganov
413fad031f Merge "Add OWNERS for DeviceConfig" am: 83ea055e8e
am: f42291962b

Change-Id: I051adc8245e6f0740a4d232879ceec7dab7cd7f1
2019-06-05 11:13:49 -07:00
Michael Groover
44c92e0708 Remove settings to relax device ID access restrictions
Bug: 123937881
Test: atest TelephonyPermissionsTest
Change-Id: I6eb1920730a28d393cdbef06195f43da957338fd
2019-06-04 18:30:59 -07:00
Alan Stokes
2447bb6e8e Cleanup background activity starts for release.
am: 9e2457622a

Change-Id: I220c6b6f18d28ee011957da97bd5258904d09ddc
2019-06-04 07:37:59 -07:00
Alan Stokes
9e2457622a Cleanup background activity starts for release.
This removes the parts of the feature that were only needed in beta
releases:
- Toast when a start is or would be blocked.
- Configurable whitelist of exempt apps.
- Global setting to disable.

Not to be submitted until after beta 5 is cut.

Bug: 131747138
Test: atest BackgroundActivityLaunchTest
Test: atest RootWindowContainerTests
Test: atest WmTests:ActivityStarterTests
Test: atest CtsWindowManagerDeviceTestCases:ActivityStarterTests
Test: atest CtsAppTestCases:.ServiceTest

Change-Id: I3d8b9c72c8fac86b93ac57a8a1988f4133043af8
2019-06-04 14:26:00 +00:00
Svet Ganov
6f0209aaee Add OWNERS for DeviceConfig
Test: N/A

Change-Id: Ia1b10287a0d056fd9d242936e90d8f91d847fe59
2019-06-03 14:27:39 -07:00
Julia Reynolds
4710517bb1 Merge "Add snooze options setting" into qt-dev
am: f6f26e0447

Change-Id: Iae56f9774672c88719ea0a9eb0d4b0ff5bc2b954
2019-05-29 10:24:26 -07:00
Julia Reynolds
789bf3fab3 Add snooze options setting
Whether or not snooze options should be shown for notifications

Test: atest
Bug: 133494458
Change-Id: Ia3232763318effffc941f1b9ed0c6a57973ba614
2019-05-28 18:15:20 +00:00
Tyler Gunn
6573bea11e Merge "Add extended logging for blocked number contract." into qt-dev
am: a80dd06e17

Change-Id: I736f17b14fde5625bf707bd558e701b0b32e1a9b
2019-05-27 17:11:31 -07:00
Tyler Gunn
a80dd06e17 Merge "Add extended logging for blocked number contract." into qt-dev 2019-05-28 00:03:16 +00:00
Hyunyoung Song
7a46c4eb0f Merge "Add navigation mode to Settings.Secure" into qt-dev
am: eada1380b1

Change-Id: I2744f94b7a4e25bba5726e1d6b097dbc19040789
2019-05-26 00:41:25 -07:00
Hyunyoung Song
eada1380b1 Merge "Add navigation mode to Settings.Secure" into qt-dev 2019-05-26 07:30:42 +00:00
Hyunyoung Song
83972396f2 Add navigation mode to Settings.Secure
Bug: 132443163
Test: builds
Change-Id: I90c3fd843dc111ca6fcd7f618f01c321fd055f83
2019-05-25 21:22:00 -07:00
Tyler Gunn
eb31a0f569 Add extended logging for blocked number contract.
Adding some extra logging for:
1. Disable of blocking due to emergency call.
2. Enable of blocking by user.
3. Blocked number status checking.
4. Blocked number checking.

Test: Verify logging using manual tests.
Bug: 133262898
Change-Id: I8c68671616eb949de005c820e88ea3ccd968d664
2019-05-23 15:38:07 -07:00
Sudheer Shanka
cb36319306 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev
am: 4344e7c721

Change-Id: Iaf52026e9d67f97b94cc0426a460f94b5fa358ec
2019-05-22 01:58:24 -07:00
Ivan Chiang
13cacd5952 Merge "Fix thumbnail's orienation issue" into qt-dev
am: d580b03f3f

Change-Id: Id6201c1f792aca6428f91c2fcf50cd64b594ae3a
2019-05-22 01:36:21 -07:00
Sudheer Shanka
4344e7c721 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev 2019-05-22 02:20:08 +00:00
Ivan Chiang
d580b03f3f Merge "Fix thumbnail's orienation issue" into qt-dev 2019-05-22 02:10:52 +00:00
Shafik Nassar
9870dfb99a Merge "Documentation: Add trailing '/' to MediaColumns.RELATIVE_PATH" into qt-dev
am: c605c7b185

Change-Id: I46a2ed177a7562481c2d01b22d0e5ef4fe1f19c3
2019-05-21 11:50:09 -07:00
Edgar Wang
2f4cba2683 Merge "Add Aware Lock Settings" into qt-dev
am: a491cc4cd0

Change-Id: I7dd3de25fe1f1bd681cdfefd33bc9b134937827d
2019-05-21 10:42:14 -07:00
Sudheer Shanka
1b817f65db Don't use linked mediastore uris in DownloadProvider operations.
When MediaProvider db gets recreated, all the media content ids
get renumbered. It's possible that when DownloadProvider is
trying to delete an entry, it is holding onto a invalid mediastore
uri. So, don't use linked mediastore uris in DownloadProvider
operations. Also, revoke any prior uri grants of media content from
DownloadStorageProvider.

Bug: 132087334
Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/AppSecurityTests.java
Change-Id: I4885f5a0ae0b3ab660426605a8a43b8c1d66a4c7
2019-05-21 10:21:43 -07:00
Shafik Nassar
c605c7b185 Merge "Documentation: Add trailing '/' to MediaColumns.RELATIVE_PATH" into qt-dev 2019-05-21 15:27:37 +00:00
TreeHugger Robot
a491cc4cd0 Merge "Add Aware Lock Settings" into qt-dev 2019-05-21 09:03:15 +00:00
shafik
a9a63575db Documentation: Add trailing '/' to MediaColumns.RELATIVE_PATH
Fix javadoc for MediaStore.MediaColumns.RELATIVE_PATH

Test: atest MediaProviderTest
Fixes: 132631113
Change-Id: I6f379b2d304a43198513341adcc3bafa2f00b0c1
2019-05-20 14:26:37 +00:00
Ivan Chiang
8214d58d2c Fix thumbnail's orienation issue
- If we do full file decoding, we should not handle orientation by
  ourselves.
- If we decode the thumbnail from ExifInterface.getThumbnailBytes()
  or MediaMetadataRetriever, we should handle the orientation.

Change-Id: I632b0b0ed41710401192dfb12f407eaf74c480ba
Fix: 130446058
Test: manual
2019-05-20 19:38:42 +08:00
Jeff Sharkey
b270eabe36 Merge "Aggresive performance optimizations." into qt-dev
am: 433b7fc88b

Change-Id: Iae7e2135360590f7246aea640fadd95ff0cad4c4
2019-05-17 23:12:40 -07:00
Jeff Sharkey
b66f4f4bad Aggresive performance optimizations.
Now that we have LocalCallingIdentity, we can start caching it in
very narrow cases.  We must be careful to not cache too long, since
any changes to granted permissions for the UID mean we need to
re-evaluate any cached answers.

The best middle-ground for this in the Q release is to use an active
camera session as a proxy for when we should create a cache object
and then later invalidate it.  (It's very unlikely that a user
changes permissions while actively using the camera, and this is
a strong signal that the caller is sensitive to performance.)

Many other sprinkled optimizations to avoid extra binder calls into
the OS, such as aggressively caching VolumeInfo related details.

Track IDs that are owned by each LocalCallingIdentity, to speed up
all future security checks.

Dispatch all change notifications asynchronously, and delay them by
several seconds while the camera is being actively used, to give
more important foreground work a fighting chance.  Invalidate
thumbnails asynchronously.

Optimizations to ModernMediaScanner where it's safe to skip the
"reconcile" and "clean" steps when we're focused on a single file
that we successfully scanned.

Local tests show this CL improves performance of a test app that
takes 100 rapid shots by 45%.  (All the collective optimizations
done so far this week add up to a 70% improvement.)

Bug: 130758409
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: trivial manifest change
Change-Id: I38cc826af47d41219ef44eae6fbd293caa0c01d5
2019-05-18 05:48:21 +00:00
Sudheer Shanka
d90bb5b00f Merge "Revoke prior uri grants when MediaProvider db gets recreated." into qt-dev
am: 75fb684e00

Change-Id: I9ccd145410af8db409fb87e931772b5bae3ad660
2019-05-15 23:30:37 -07:00
Sudheer Shanka
75fb684e00 Merge "Revoke prior uri grants when MediaProvider db gets recreated." into qt-dev 2019-05-16 01:27:38 +00:00
Sudheer Shanka
7a66be2a13 Revoke prior uri grants when MediaProvider db gets recreated.
Bug: 132084545
Test: manual
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibf2f2357d712a212f25b3bd005572ac74fe524fd
2019-05-15 16:37:06 -07:00
Edgar Wang
4870e4b034 Add Aware Lock Settings
Bug: 132106801
Test: rebuild & manual
Change-Id: I9c0efdd195b367b0744685e5d001ff4e23b55408
2019-05-15 19:14:43 +08:00
Jeff Sharkey
61aa9eceb8 Merge "Legacy insertImage() should use IS_PENDING." into qt-dev
am: 505c7de397

Change-Id: Iefdd21f43c2b9094d8242d3725b44229c5595c8c
2019-05-12 07:38:04 -07:00
Jeff Sharkey
a356f1989c Legacy insertImage() should use IS_PENDING.
Also stream known file directly into place instead of doing a lossy
and expensive transcode.

Bug: 131710636
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Icbfe4f79725c705a1197296f1fd4518c0179a9c1
2019-05-11 21:07:50 -06:00