OSDN Git Service

android-x86/frameworks-base.git
5 years agoDO NOT MERGE: Fixed broken aapt2 tests
Ryan Mitchell [Mon, 6 May 2019 20:02:38 +0000 (13:02 -0700)]
DO NOT MERGE: Fixed broken aapt2 tests

Some tests starting failing when
b435101ec8aa827375e837c4843f6444145e1f4c was merged. It seems on qt-dev
aapt2_host_unit_tests does not run while it does on master.

Bug: 131762014
Bug: 129146717
Test: aapt2_tests
Change-Id: I701b275989c908acb78190be0930785712cb5686

5 years agoMerge "Fix unknown resource type error message" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 14:48:53 +0000 (14:48 +0000)]
Merge "Fix unknown resource type error message" into qt-dev

5 years agoMerge "Block write access to media for non-owners." into qt-dev
Jeff Sharkey [Mon, 29 Apr 2019 13:49:27 +0000 (13:49 +0000)]
Merge "Block write access to media for non-owners." into qt-dev

5 years agoMerge "Use ParceledListSlice in MediaSessionManager#getSession2Tokens" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 10:03:22 +0000 (10:03 +0000)]
Merge "Use ParceledListSlice in MediaSessionManager#getSession2Tokens" into qt-dev

5 years agoMerge "Restore can begin while clearing app data is in progress" into qt-dev
Ruslan Tkhakokhov [Mon, 29 Apr 2019 09:29:09 +0000 (09:29 +0000)]
Merge "Restore can begin while clearing app data is in progress" into qt-dev

5 years agoUse ParceledListSlice in MediaSessionManager#getSession2Tokens
Hyundo Moon [Mon, 29 Apr 2019 07:04:34 +0000 (16:04 +0900)]
Use ParceledListSlice in MediaSessionManager#getSession2Tokens

Bug: 126474946
Test: atest CtsMediaTestCases:android.media.cts.MediaSession2Test;
      atest CtsMediaTestCases:android.media.cts.MediaController2Test;
      atest CtsMediaTestCases:android.media.cts.MediaSession2ServiceTest;
      atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest;
Change-Id: Ia364853d6cf638ab7128c64693b6a8cc6063036a

5 years agoMerge "Revert "Make the network stack a persistent process."" into qt-dev
Lorenzo Colitti [Mon, 29 Apr 2019 07:08:32 +0000 (07:08 +0000)]
Merge "Revert "Make the network stack a persistent process."" into qt-dev

5 years agoMerge changes I35b8c943,I5e9fee54,I8c5a7dc8 into qt-dev
Lorenzo Colitti [Mon, 29 Apr 2019 06:50:31 +0000 (06:50 +0000)]
Merge changes I35b8c943,I5e9fee54,I8c5a7dc8 into qt-dev

* changes:
  Fix some checkstyle nits in DhcpPacketTest.
  Additional code for server name in DHCP packets.
  Parse the server host name field of the dhcp package

5 years agoMerge "Avoid resolving secondary home activity if no need" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 03:45:10 +0000 (03:45 +0000)]
Merge "Avoid resolving secondary home activity if no need" into qt-dev

5 years agoMerge "Adjust event location when two-finger dragging in TouchExplorer" into qt-dev
Minche Li [Mon, 29 Apr 2019 02:09:17 +0000 (02:09 +0000)]
Merge "Adjust event location when two-finger dragging in TouchExplorer" into qt-dev

5 years agoRevert "Make the network stack a persistent process."
Lorenzo Colitti [Mon, 29 Apr 2019 01:50:00 +0000 (18:50 -0700)]
Revert "Make the network stack a persistent process."

This reverts commit 796afddd6c7012dc7f10bc2557eb06767c5d873a.

Reason for revert: breaks updatability because persistent processes are not updatable.

Bug: 131046856
Change-Id: I35ded113b31e742f13ad8523a10af3a83a111374
Merged-In: I35ded113b31e742f13ad8523a10af3a83a111374
(cherry picked from commit b2a5d855224afbffdf8a7545de2d703d9696344c)

5 years agoFix some checkstyle nits in DhcpPacketTest.
Lorenzo Colitti [Sat, 27 Apr 2019 07:36:39 +0000 (16:36 +0900)]
Fix some checkstyle nits in DhcpPacketTest.

Use the Generated code suppression comment filter instead of the
IndentationCheck suppression comment filter because the latter
complains that '+' should be on a new line.

Bug: 120584519
Bug: 127423755
Test: atest NetworkStackTests
Test: atest FrameworksNetTests
Change-Id: I35b8c943b95a4301c25b7f6cfb02f03a8c1bc34e
Merged-In: I60071bc029d25485bf204cfd3a8cebd538ca12b6
(cherry picked from commit 65f6ae271b77541ac5dfc1bdd06c64afa748bcba)

5 years agoAdditional code for server name in DHCP packets.
Lorenzo Colitti [Fri, 26 Apr 2019 10:10:20 +0000 (19:10 +0900)]
Additional code for server name in DHCP packets.

- Add the hostname to DhcpResultsParcelable.
- Don't store the server hostname if option overload is in use,
  as this is not valid.
- Add unit tests.

Bug: 120584519
Bug: 127423755
Test: atest NetworkStackTests
Test: atest FrameworksNetTests
Change-Id: I5e9fee5471740f5d7c001e9e98017f32be452344
Merged-In: I60071bc029d25485bf204cfd3a8cebd538ca12b6
(cherry picked from commit 681f33cc6a74f5c68e426e1fae6baeaccaf7267f)

5 years agoParse the server host name field of the dhcp package
yuanyunli [Wed, 9 Jan 2019 08:59:37 +0000 (16:59 +0800)]
Parse the server host name field of the dhcp package

Some hotspot devices will fill in the server host name field of the DHCP
package, such as iphone. Parsing the server host name of the DHCP
package can help identify ios hotspots.

Bug: 120584519
Test: 127423755
Test: builds, boots, wifi works
Change-Id: I8c5a7dc8ab117f062f9401f58832edada321436b
Merged-In: I60071bc029d25485bf204cfd3a8cebd538ca12b6
(cherry picked from commit 43f1bc9d5399e1d659bb5e7ac08dc31d36345d5f)

5 years agoMerge "Move more network unit tests to common tests" into qt-dev
Paul Hu [Mon, 29 Apr 2019 01:36:42 +0000 (01:36 +0000)]
Merge "Move more network unit tests to common tests" into qt-dev

5 years agoMerge "Deprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi...
Sudheer Shanka [Sun, 28 Apr 2019 22:59:45 +0000 (22:59 +0000)]
Merge "Deprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi" into qt-dev

5 years agoMerge "Remove custom theme added for tooltip in captions toggle first run show. windo...
TreeHugger Robot [Sun, 28 Apr 2019 20:10:49 +0000 (20:10 +0000)]
Merge "Remove custom theme added for tooltip in captions toggle first run show. windowIsFloating is necessary to stop drawing system bar backgrounds on certain devices." into qt-dev

5 years agoBlock write access to media for non-owners.
Jeff Sharkey [Sun, 28 Apr 2019 18:52:37 +0000 (12:52 -0600)]
Block write access to media for non-owners.

The new security model in Q requires that apps can't directly write
to media they don't own.  They can still gain write access using
RecoverableSecurityException.

Bug: 130367350
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I1fea108aeee63caa2579187be73ba2f27f2bb932

5 years agoMerge "Make it clear that legacy storage is deprecated." into qt-dev
Jeff Sharkey [Sun, 28 Apr 2019 18:02:55 +0000 (18:02 +0000)]
Merge "Make it clear that legacy storage is deprecated." into qt-dev

5 years agoDeprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi
Sudheer Shanka [Sun, 28 Apr 2019 16:00:53 +0000 (16:00 +0000)]
Deprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi

Bug: 131483165
Test: n/a
Change-Id: I8e7f9c29d9bb323a7c0849e9ae4a87d0e74b16ab

5 years agoMerge "Avoid triggering StrictMode for storage notifs." into qt-dev
Jeff Sharkey [Sun, 28 Apr 2019 17:04:03 +0000 (17:04 +0000)]
Merge "Avoid triggering StrictMode for storage notifs." into qt-dev

5 years agoAvoid triggering StrictMode for storage notifs.
Jeff Sharkey [Sat, 27 Apr 2019 23:13:57 +0000 (17:13 -0600)]
Avoid triggering StrictMode for storage notifs.

Bug: 130129028
Test: none
Exempt-From-Owner-Approval: trivial bugfix
Change-Id: Ia9d9da589ee1f4d95a27bf327235f950f65c69a0

5 years agoMerge "Deprecate DownloadManager.addCompletedDownload." into qt-dev
Jeff Sharkey [Sun, 28 Apr 2019 17:03:27 +0000 (17:03 +0000)]
Merge "Deprecate DownloadManager.addCompletedDownload." into qt-dev

5 years agoMerge "Add FLAG_PERMISSION_GRANTED_BY_ROLE." into qt-dev
Hai Zhang [Sun, 28 Apr 2019 14:41:09 +0000 (14:41 +0000)]
Merge "Add FLAG_PERMISSION_GRANTED_BY_ROLE." into qt-dev

5 years agoMake it clear that legacy storage is deprecated.
Jeff Sharkey [Sat, 27 Apr 2019 23:03:54 +0000 (17:03 -0600)]
Make it clear that legacy storage is deprecated.

Bug: 131469880
Test: none
Change-Id: I52e009c1ebfc59958d04e5b33a6f4228cdecfcf4

5 years agoMerge "Increased the edge sensitivity for back to 24dp" into qt-dev
TreeHugger Robot [Sun, 28 Apr 2019 06:51:22 +0000 (06:51 +0000)]
Merge "Increased the edge sensitivity for back to 24dp" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 28 Apr 2019 05:23:18 +0000 (05:23 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 28 Apr 2019 05:12:16 +0000 (05:12 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoDeprecate DownloadManager.addCompletedDownload.
Sudheer Shanka [Sun, 28 Apr 2019 02:13:33 +0000 (19:13 -0700)]
Deprecate DownloadManager.addCompletedDownload.

Bug: 131483165
Test: n/a
Change-Id: Ie7df900e4cd79dcb4578f1f86fc44ca69356fd7b

5 years agoMerge "Update indication whenever locked state changes" into qt-dev
Lucas Dupin [Sun, 28 Apr 2019 02:37:43 +0000 (02:37 +0000)]
Merge "Update indication whenever locked state changes" into qt-dev

5 years agoMerge "Don't assume all downloaded files are under top-level Download dir." into...
TreeHugger Robot [Sun, 28 Apr 2019 00:38:34 +0000 (00:38 +0000)]
Merge "Don't assume all downloaded files are under top-level Download dir." into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 27 Apr 2019 22:19:39 +0000 (15:19 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I39fc1b48e95a84e1b226cf38e6c00f75d4ebc071

5 years agoMerge "Extend MediaCodecInfo to support AV1 decoder" into qt-dev
Ray Essick [Sat, 27 Apr 2019 19:15:27 +0000 (19:15 +0000)]
Merge "Extend MediaCodecInfo to support AV1 decoder" into qt-dev

5 years agoDon't assume all downloaded files are under top-level Download dir.
Sudheer Shanka [Fri, 26 Apr 2019 00:52:10 +0000 (17:52 -0700)]
Don't assume all downloaded files are under top-level Download dir.

Apps could have downloaded files into their own package-owned paths
and those targeting P or lower, anywhere.

Fixes: 128320098
Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Change-Id: I28d9f9b8017b66095fb1abeb9a389a18770989a4

5 years agoMerge "Fix clearing password with DPM.resetPasswordWithToken()" into qt-dev
Rubin Xu [Sat, 27 Apr 2019 16:58:33 +0000 (16:58 +0000)]
Merge "Fix clearing password with DPM.resetPasswordWithToken()" into qt-dev

5 years agoMerge "Read newImplicit perms before modifying perm state" into qt-dev
Philip P. Moltmann [Sat, 27 Apr 2019 15:59:31 +0000 (15:59 +0000)]
Merge "Read newImplicit perms before modifying perm state" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 27 Apr 2019 13:29:04 +0000 (06:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5b667773dd67656637053ed1124fcbe5065c46ff

5 years agoMerge "Disable OomAdjProfiler for Q." into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 11:22:24 +0000 (11:22 +0000)]
Merge "Disable OomAdjProfiler for Q." into qt-dev

5 years agoMerge "Add RoleRequestResultReported atom." into qt-dev
Hai Zhang [Sat, 27 Apr 2019 08:26:05 +0000 (08:26 +0000)]
Merge "Add RoleRequestResultReported atom." into qt-dev

5 years agoMerge "Let IC#requestCursorUpdates() fail for cross-display connections" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:46:55 +0000 (06:46 +0000)]
Merge "Let IC#requestCursorUpdates() fail for cross-display connections" into qt-dev

5 years agoMerge "Provide "Disconnected" in summary for detail page" into qt-dev
Clown SHEN [Sat, 27 Apr 2019 06:42:45 +0000 (06:42 +0000)]
Merge "Provide "Disconnected" in summary for detail page" into qt-dev

5 years agoMerge "Fix ValueMetric unit test." into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:41:24 +0000 (06:41 +0000)]
Merge "Fix ValueMetric unit test." into qt-dev

5 years agoAdd RoleRequestResultReported atom.
Hai Zhang [Sat, 13 Apr 2019 13:25:06 +0000 (21:25 +0800)]
Add RoleRequestResultReported atom.

Bug: 130456955
Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissoncontroller 188
Change-Id: I427ff9b9ea0066b714191b3f6e3a1ac10ba32016

5 years agoMerge "Show opportunistic provider name conditionally" into qt-dev
Sooraj Sasindran [Sat, 27 Apr 2019 06:08:59 +0000 (06:08 +0000)]
Merge "Show opportunistic provider name conditionally" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:06:25 +0000 (06:06 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Skip data pulling when metric is not active" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 03:18:08 +0000 (03:18 +0000)]
Merge "Skip data pulling when metric is not active" into qt-dev

5 years agoMerge "Update standby bucket for uninteracted foreground services." into qt-dev
Varun Shah [Sat, 27 Apr 2019 02:52:45 +0000 (02:52 +0000)]
Merge "Update standby bucket for uninteracted foreground services." into qt-dev

5 years agoMerge "Make DNS cache lifecycle management explicit" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 02:19:58 +0000 (02:19 +0000)]
Merge "Make DNS cache lifecycle management explicit" into qt-dev

5 years agoMerge changes from topic "aapt2-attr" into qt-dev
Ryan Mitchell [Sat, 27 Apr 2019 01:54:11 +0000 (01:54 +0000)]
Merge changes from topic "aapt2-attr" into qt-dev

* changes:
  Add formats for declare-styleable attributes
  No new attributes in declare-styleables when format is not provided

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 27 Apr 2019 01:52:59 +0000 (18:52 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia30447a9057e608b24737182dc46d8fa6be3123f

5 years agoMerge "Single tap on the glass pane in notification shade should close the shade...
TreeHugger Robot [Sat, 27 Apr 2019 01:41:48 +0000 (01:41 +0000)]
Merge "Single tap on the glass pane in notification shade should close the shade." into qt-dev

5 years agoMerge "Scheduling start alarm when job starts off out of quota." into qt-dev
Kweku Adams [Sat, 27 Apr 2019 01:39:34 +0000 (01:39 +0000)]
Merge "Scheduling start alarm when job starts off out of quota." into qt-dev

5 years agoDisable OomAdjProfiler for Q.
Kweku Adams [Sat, 27 Apr 2019 00:19:19 +0000 (17:19 -0700)]
Disable OomAdjProfiler for Q.

DO NOT MERGE

Bug: 130635979
Test: Confirm 'adb shell dumpsys activity' doesn't include OomAdjProfiler output
Change-Id: I1a88f8fc9f2a566db88ff76d659c52f13a8457f7

5 years agoMerge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev
Kweku Adams [Sat, 27 Apr 2019 01:17:00 +0000 (01:17 +0000)]
Merge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev

5 years agoMerge "Log time ticks" into qt-dev
Lucas Dupin [Sat, 27 Apr 2019 00:56:16 +0000 (00:56 +0000)]
Merge "Log time ticks" into qt-dev

5 years agoMerge "BiometricPrompt negative button should show "cancel" after onAuthenticated...
Kevin Chyn [Sat, 27 Apr 2019 00:41:45 +0000 (00:41 +0000)]
Merge "BiometricPrompt negative button should show "cancel" after onAuthenticated" into qt-dev

5 years agoMerge "Init confirm button in disabled state instead of gone state" into qt-dev
Kevin Chyn [Sat, 27 Apr 2019 00:41:18 +0000 (00:41 +0000)]
Merge "Init confirm button in disabled state instead of gone state" into qt-dev

5 years agoMerge "Fix createConfirmDeviceCredentialIntent documentation" into qt-dev
Kevin Chyn [Sat, 27 Apr 2019 00:40:32 +0000 (00:40 +0000)]
Merge "Fix createConfirmDeviceCredentialIntent documentation" into qt-dev

5 years agoSingle tap on the glass pane in notification shade should close the shade.
Priyank Singh [Fri, 26 Apr 2019 01:17:02 +0000 (18:17 -0700)]
Single tap on the glass pane in notification shade should close the shade.

Bug: 130168660
Test: Manual
Change-Id: I7724ba08557db0f19dcbd0056bf248acab80368b
(cherry picked from commit 9dd6c788b02bf3f9dd79682aad6d783af1c2b298)

5 years agoMerge "Add privapp permissions to network modules." into qt-dev
Lorenzo Colitti [Sat, 27 Apr 2019 00:13:31 +0000 (00:13 +0000)]
Merge "Add privapp permissions to network modules." into qt-dev

5 years agoMerge "Always instantiate DisplayAddress.Physical" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 00:01:01 +0000 (00:01 +0000)]
Merge "Always instantiate DisplayAddress.Physical" into qt-dev

5 years agoMerge "MediaCodec: Fix documentation on float raw audio buffers" into qt-dev
Andy Hung [Fri, 26 Apr 2019 23:50:32 +0000 (23:50 +0000)]
Merge "MediaCodec: Fix documentation on float raw audio buffers" into qt-dev

5 years agoUpdate indication whenever locked state changes
Lucas Dupin [Thu, 25 Apr 2019 23:40:54 +0000 (16:40 -0700)]
Update indication whenever locked state changes

Otherwise the state of TrustAgents would be out of sync.

Test: manual with trusted bt headphones
Test: atest KeyguardIndicationControllerTest
Fixes: 131048776
Change-Id: I796ecd3bff3eaca52b46354c30a839eef8097338

5 years agoMerge "Bubbles shouldn't be available on low ram device" into qt-dev
Mady Mellor [Fri, 26 Apr 2019 22:57:19 +0000 (22:57 +0000)]
Merge "Bubbles shouldn't be available on low ram device" into qt-dev

5 years agoMediaCodec: Fix documentation on float raw audio buffers
Andy Hung [Thu, 10 Jan 2019 02:42:41 +0000 (18:42 -0800)]
MediaCodec: Fix documentation on float raw audio buffers

Test: make docs, check html
Bug: 131423214
Change-Id: If2d6f78cc5f77a5c7b5b8b936ae9f3216387561e

5 years agoMerge "Top apps may start fg services even when under bg restriction" into qt-dev
Chris Tate [Fri, 26 Apr 2019 22:27:24 +0000 (22:27 +0000)]
Merge "Top apps may start fg services even when under bg restriction" into qt-dev

5 years agoIncreased the edge sensitivity for back to 24dp
Selim Cinek [Fri, 26 Apr 2019 22:25:49 +0000 (15:25 -0700)]
Increased the edge sensitivity for back to 24dp

Test: swipe from side, observe slightly increased back
Bug: 130682266
Change-Id: Ib479f272a309cf4dc008453343e1bb21352a5806

5 years agoMerge changes from topic "back_redesign" into qt-dev
Selim Cinek [Fri, 26 Apr 2019 22:03:00 +0000 (22:03 +0000)]
Merge changes from topic "back_redesign" into qt-dev

* changes:
  Rewrote the back arrow animation
  Made back button sample the color and background protect it that way
  Minor adjustments to the edge back gesture

5 years agoPropagate to apps capture opt-in
Kevin Rocard [Tue, 9 Apr 2019 23:26:06 +0000 (16:26 -0700)]
Propagate to apps capture opt-in

Allows public apps to detect if playback have opted-out of being
capture.

Bug: 129948989
Test: atest AudioPlaybackConfigurationTest
Change-Id: Id2c2ad195e5fdeba89926dcdbbe9fa22c2d25891
Signed-off-by: Kevin Rocard <krocard@google.com>
5 years agoMerge "Fixed SIM pin pad overlap" into qt-dev
Lucas Dupin [Fri, 26 Apr 2019 21:51:43 +0000 (21:51 +0000)]
Merge "Fixed SIM pin pad overlap" into qt-dev

5 years agoShow opportunistic provider name conditionally
Sooraj Sasindran [Thu, 25 Apr 2019 22:12:21 +0000 (15:12 -0700)]
Show opportunistic provider name conditionally

For testing purpose, we want system UI to show grouped CBRS carrier name
as in the upper left corner in system UI. But we want to make this a
conditoinal behavior.

Bug: 129865342
Test: manual
Change-Id: I38a49447ca07615b5e14a92412b68a2a44b2726c

5 years agoMerge "Make package installer tests post submit" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 21:19:08 +0000 (21:19 +0000)]
Merge "Make package installer tests post submit" into qt-dev

5 years agoMerge "Restrict bindIsolatedService instanceName to just letters, digits, '_', and...
TreeHugger Robot [Fri, 26 Apr 2019 21:14:19 +0000 (21:14 +0000)]
Merge "Restrict bindIsolatedService instanceName to just letters, digits, '_', and '.'" into qt-dev

5 years agoMerge "Use ActivityThread.currentApplication() for application context." into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 21:06:21 +0000 (21:06 +0000)]
Merge "Use ActivityThread.currentApplication() for application context." into qt-dev

5 years agoExtend MediaCodecInfo to support AV1 decoder
Rakesh Kumar [Tue, 26 Mar 2019 18:43:48 +0000 (00:13 +0530)]
Extend MediaCodecInfo to support AV1 decoder

Test: cts-tradefed run commandAndExit cts-dev -m CtsMediaTestCases \
 -t android.media.cts.DecoderTest#testAV1HdrStaticMetadata
Bug: 123756486

Change-Id: I1f4e1d30aab764dabc5d33339a7e862e8017e5ed

5 years agoTop apps may start fg services even when under bg restriction
Christopher Tate [Tue, 23 Apr 2019 18:13:35 +0000 (11:13 -0700)]
Top apps may start fg services even when under bg restriction

We now apply bg restriction policy (appop) on being able to enter a
foreground service lifecycle only when the app is not in a "top" i.e.
directly user-facing state.  This avoids breaking existing supported
lifecycle guarantees involving the order of calls to startService(),
startForeground(), and startForegroundService().  Briefly:  there is a
designed behavior in the following sequence:

  1. startService(intent);
  2. startForeground() on that service; then
  3. startForegroundService(intent)

The intentional behavior is that after step 3, the app is not required
to call startForeground() *again,* redundantly; because that service is
already in a fg lifecycle.

However, new-in-Q code broke this pattern in the case where the user had
imposed bg service restrictions on the app.  For this and for
semantic/model reasons, we now do not apply fg service start
restrictions to the user-facing app, even if the at app is under bg
execution restrictions.  The app is not background at that time, so
should not be expected to face a different execution environment.

Bug: 130048629
Test: Foreground use of GPM under bg restrictions
Change-Id: I0e8c308ac26211082a90c165a64d66b31ab804df

5 years agoMerge "[wm] Adjust freeform header not to be overlapped with stable insets" into...
Vishnu Nair [Fri, 26 Apr 2019 20:39:20 +0000 (20:39 +0000)]
Merge "[wm] Adjust freeform header not to be overlapped with stable insets" into qt-dev

5 years agoMerge "Support OnPropertiesChangedListener in TestableDeviceConfig." into qt-dev
Matt Pape [Fri, 26 Apr 2019 20:35:43 +0000 (20:35 +0000)]
Merge "Support OnPropertiesChangedListener in TestableDeviceConfig." into qt-dev

5 years agoFix createConfirmDeviceCredentialIntent documentation
Kevin Chyn [Fri, 26 Apr 2019 18:28:21 +0000 (11:28 -0700)]
Fix createConfirmDeviceCredentialIntent documentation

Test: make -j56 docs
Test: checked out/target/common/docs/offline-sdk/reference/android/app/KeyguardManager.html

Fixes: 131419117
Change-Id: I8c9254a591677ccf2453bff7d517a641da2b0f32

5 years agoMerge "Don't use Context#getApplicationContext" into qt-dev
Philip P. Moltmann [Fri, 26 Apr 2019 20:30:18 +0000 (20:30 +0000)]
Merge "Don't use Context#getApplicationContext" into qt-dev

5 years agoBiometricPrompt negative button should show "cancel" after onAuthenticated
Kevin Chyn [Fri, 26 Apr 2019 18:14:20 +0000 (11:14 -0700)]
BiometricPrompt negative button should show "cancel" after onAuthenticated

When the biometric is authenticated, the negative button should show
"cancel" instead. It should also invoke onUserCanceled instead of
onNegativePressed.

Fixes: 131274300
Test: manual

Change-Id: I104857e5e448bcd11c59311776c28e280566c2e0

5 years agoInit confirm button in disabled state instead of gone state
Kevin Chyn [Fri, 26 Apr 2019 18:02:13 +0000 (11:02 -0700)]
Init confirm button in disabled state instead of gone state

For modalities that can require confirmation, show the "confirm" button
grayed out while the user is authenticating.

Bug: 131274300
Test: manual

Change-Id: I4e1c5e9df67c40f327480d066bc5a62f7e37e710

5 years agoRead newImplicit perms before modifying perm state
Philip P. Moltmann [Thu, 18 Apr 2019 15:45:55 +0000 (08:45 -0700)]
Read newImplicit perms before modifying perm state

For shared uids the original and new state are the same object. Hence we
loose knowledge of the old state when we modify it. Hence check if the
perm is new & implicit before modifying the state.

Bug: 129796592
Fixes: 130707789
Test: atest CtsPermissionTestCases:android.permission.cts.SplitPermissionTest
      (added new test case for shared uids)
Change-Id: I647bb28e667c3b8a93e11bd1771ad472c1a132c1

5 years agoGating OutOfBoundsException on targetSdkVersion.
Kweku Adams [Thu, 25 Apr 2019 23:16:34 +0000 (16:16 -0700)]
Gating OutOfBoundsException on targetSdkVersion.

Apps targeting Pie or older will get the old undefined behavior. Apps
targeting Q or newer will get the OutOfBoundsException.

Bug: 118339123
Test: atest CtsUtilTestCases
Change-Id: Ibf5467aadec4a2f76ee180e963afeaf5a8a013a2

5 years agoUpdate standby bucket for uninteracted foreground services.
Varun Shah [Fri, 12 Apr 2019 17:54:36 +0000 (10:54 -0700)]
Update standby bucket for uninteracted foreground services.

This fixes a bug where foreground services that were started, but
never interacted with, were not transitioning to the Active bucket
after 30mins - a defined interval.

Also created unit tests for #maybeUpdateUsageStats().

Test steps: (adb shell commands are generic)
1) Install a test app which has a foreground service
   * can install test app provided in bug via adb install
2) Set the bucket of the test app to Rare:
   $ adb shell am set-stanby-bucket com.packagename rare
3) Launch the foreground service
   $ adb shell am broadcast -a com.packagename.intentfilter -n com.packagename/.MyReceiver
4) Wait for approximately 30mins
5) Observe the app bucket - should be Active (10)
   $ adb shell am get-standby-bucket com.packagename

Bug: 116189835
Test: atest OomAdjusterTests
Test: manual (steps listed above)
Change-Id: I6949466297cccdc349428c5f6172d65bd9d77a53

5 years agoLog time ticks
Lucas Dupin [Fri, 26 Apr 2019 18:05:23 +0000 (11:05 -0700)]
Log time ticks

AP is waking up but seems like clock is not being updated.
Added some logs to debug it.

Test: look at logs
Fixes: 130888082
Change-Id: I14e31a748573e26f161f837044ef61b57367bfe0

5 years agoMerge "Set the default value for Secure Settings: AWARE_ENABLED" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 17:12:28 +0000 (17:12 +0000)]
Merge "Set the default value for Secure Settings: AWARE_ENABLED" into qt-dev

5 years agoMerge "Fix tests/runtests.sh" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 17:01:26 +0000 (17:01 +0000)]
Merge "Fix tests/runtests.sh" into qt-dev

5 years agoFix tests/runtests.sh
Otto Seiskari [Fri, 12 Apr 2019 10:16:14 +0000 (13:16 +0300)]
Fix tests/runtests.sh

The location of FrameworksWifiTests.apk installed by the script
with adb seems to have changed. The path of the APK contains the
TARGET_ARCH environment variable, which is now fetched
with a similar method as in system/netd/tests/runtests.sh.

Noticed the issue with "lunch aosp_x86_64-eng". Before this fix,
the test script produced an error:

    adb: failed to stat [...]/FrameworksWifiApiTests.apk:
    No such file or directory

Bug: 128603658
Test: ./frameworks/base/wifi/tests/runtests.sh

Change-Id: Id4a33ca89fa21a9a4ef791c5c1c5760e0e2badaf
Signed-off-by: Otto Seiskari <otto.seiskari@indooratlas.com>
5 years agoMerge "Fix message not showing when face auth is enabled" into qt-dev
Lucas Dupin [Fri, 26 Apr 2019 16:31:27 +0000 (16:31 +0000)]
Merge "Fix message not showing when face auth is enabled" into qt-dev

5 years agoMerge "Ensure we get the right nav bar mode for the current user in the system" into...
Winson Chung [Fri, 26 Apr 2019 16:24:24 +0000 (16:24 +0000)]
Merge "Ensure we get the right nav bar mode for the current user in the system" into qt-dev

5 years agoAdd FLAG_PERMISSION_GRANTED_BY_ROLE.
Hai Zhang [Fri, 26 Apr 2019 10:49:54 +0000 (18:49 +0800)]
Add FLAG_PERMISSION_GRANTED_BY_ROLE.

We need a flag to track permissions granted by role, otherwise upon
revocation we might revoke permission that was already granted before
the role is granted.

Bug: 124452117
Bug: 130231314
Bug: 131252995
Test: presubmit
Change-Id: I0abd89756e8dc943c19d18315a8dcc6890f6fd2d

5 years agoMerge "Use default refresh rate from config" into qt-dev
Adrian Salido [Fri, 26 Apr 2019 15:55:33 +0000 (15:55 +0000)]
Merge "Use default refresh rate from config" into qt-dev

5 years agoSupport OnPropertiesChangedListener in TestableDeviceConfig.
Matt Pape [Tue, 23 Apr 2019 23:06:55 +0000 (16:06 -0700)]
Support OnPropertiesChangedListener in TestableDeviceConfig.

Handle add and remove listener methods, as well as making callbacks when
setProperty is called.

Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksMockingServicesTests:TestableDeviceConfigTest
      atest FrameworksMockingServicesTests:AppCompactorTest
Bug: 128902955

Change-Id: Ie797d40604ab7fc860691ef07461aea42480cbfe

5 years agoAdd validation type definition to support multiple probe result
Lorenzo Colitti [Fri, 26 Apr 2019 11:00:48 +0000 (04:00 -0700)]
Add validation type definition to support multiple probe result

In order to allow NetworkMonitor to tell ConnectivityService
if the network is either parital, validated or both.
NetworkMonitor could update the probe result by passing the
bitmask to ConnectivityService.

Bug: 130078798
Bug: 130683832
Test: build
Change-Id: I429ccbd9b9afae3eafaf73b3c9eb835213c1f64d
Merged-In: I429ccbd9b9afae3eafaf73b3c9eb835213c1f64d
(cherry picked from commit 4932896e244be2edb028552e02374b41e3f7d365)

5 years agoMerge "Fix default app notification locking on new devices" into qt-dev
Julia Reynolds [Fri, 26 Apr 2019 13:41:08 +0000 (13:41 +0000)]
Merge "Fix default app notification locking on new devices" into qt-dev

5 years agoMerge changes I1fc3b301,Ib42ab29e into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 13:28:17 +0000 (13:28 +0000)]
Merge changes I1fc3b301,Ib42ab29e into qt-dev

* changes:
  Update boot image and system server profiles
  Update boot image and system server profiles

5 years agoMerge "ScoClient only increases count when requestScoState succeed." into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 13:27:47 +0000 (13:27 +0000)]
Merge "ScoClient only increases count when requestScoState succeed." into qt-dev

5 years agoRestore can begin while clearing app data is in progress
Ruslan Tkhakokhov [Thu, 25 Apr 2019 15:06:59 +0000 (16:06 +0100)]
Restore can begin while clearing app data is in progress

Increasing timeout should help as in the only recent instance where we
saw this bug, it just exceeded the timeout by a second. Mostly the clear
operation happens very fast. Plus no obvious other solution to this
without major changes to BMS.

Fixes: 130347754
Test: 1) atest CtsBackupTestCases
      2) atest CtsBackupHostTestCases
      3) atest GtsBackupTestCases
      4) atest GtsBackupHostTestCases

Change-Id: I462724f2ea9a9bddd3a876e7f69302c35d69a0cb

5 years agoMerge "Reset DWB color temperature when DWBC is disabled" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 10:37:51 +0000 (10:37 +0000)]
Merge "Reset DWB color temperature when DWBC is disabled" into qt-dev