2873 Commits

Author SHA1 Message Date
Baligh Uddin
8a55a7b439 Prepare to extract apex/media to packages/modules/Media
- Use Android-Apache-2.0 as default license.

- Adding visibility to non-existing path is there for post-migration
  path [ which currently does not exist ] -- it is not a build error
  to add non-existent paths to visibility.

BUG: 171106157
Test: Local build and TH
Change-Id: I4adea9da4df8f6ae51b9849dfd6a30bf22e28637
2022-02-16 01:43:07 +00:00
satayev
a4f2700eba Don't suggest top-level owners for changes in apex/.
Individual folders have their own specific OWNERS already.

Bug: N/A
Test: presubmit
Change-Id: I23d77901245c187c9f6a8642755b6137a6051389
2022-02-10 15:56:01 +00:00
Anton Hansson
95e89a8cb9 Auto-generate list of module impl jars
Eliminate another duplicated list of all modules. This one has a couple
of workarounds due to different naming of impl libs, and bluetooth not
being ready.

Bug: 169103987
Test: m framework-all and diff intermediates (no diffs)
Merged-In: Ia8627c6e3977cd271e389ec482388ff73661881d
Change-Id: Ia8627c6e3977cd271e389ec482388ff73661881d
2022-02-04 16:36:21 +00:00
Etienne Ruffieux
77b596f2bf Merge "Added SystemApi annotation to REASON_BLUETOOTH_BROADCAST" 2022-01-14 08:43:13 +00:00
Etienne Ruffieux
7363fc0a38 Added SystemApi annotation to REASON_BLUETOOTH_BROADCAST
As Android Bluetooth becomes a mainline module, we need to
remove all hidden API usages. BluetoothManagerService is
using REASON_BLUETOOTH_BROADCAST so we have to make it
accessible to the Bluetooth module.

Tag: #feature
Bug: 211851706
Test: make
Change-Id: I99ade4673836c068b2e643ce5e56d9ad0454233f
2022-01-13 18:43:50 +00:00
Ray Essick
1feb6240ca Pruning departed users from OWNERS
Bug: 206221953
Test: n
Change-Id: I48f21abae63d418e27224db2ecf0cbc177ff4f17
2022-01-11 20:33:22 -08:00
Jacinta Hu
35ecc5886c Fix typo in Javadoc.
A missing end brace was causing Javadoc to fail to parse one of the links.
Change-Id: I8e4ca3721d7d08b7094d142fef394f06a223428e
2021-12-31 00:15:50 +00:00
Treehugger Robot
d1d210762b Merge "Change the wakeup alarms for "light-doze-maintenance step" to non-wakeup alarms" 2021-12-15 23:51:19 +00:00
Raj M
b9d7d27ede Change the wakeup alarms for "light-doze-maintenance step" to non-wakeup alarms
The wakeup alarms for doze-light-maintenance steps are causing battery drain in idle state. In terms of idle state battery optimization, Doze light maintenance step alarms can be changed to non-wakeup alarms as verified it is not critical as well as there is no user impact during our tests over a 50 days of Samsung's internal testing including User Trial.

Once it's changed to a non-wakeup alarm, the time gap between maintenance can be increased. But from our real test data, the gap has not increased as much as we worried, so doze-maintenance is working well.

Merged-In: Ib9bf9e120c806e61eced99fbfb84cdb19d844e69

Bug: b/197216833, b/185466339
Change-Id: Ida62842bdf8019563466fbf79326bc4d52ff3a99
Test: run `atest FrameworksMockingServicesTests:DeviceIdleControllerTest`
2021-12-06 21:02:24 +00:00
Treehugger Robot
1796c893e7 Merge "Set default video parameters in Tx VideoFormatResolver" am: 014af4028e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1887497

Change-Id: I7e9dc5a852901befaa4afe647f142c5359e80cea
2021-11-29 22:33:38 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Giridhar Tippabathuni
6c2516781d Set default video parameters in Tx VideoFormatResolver
Set default value for getting width, height and
framerate video parameters in transcoding
VideoFormatResolver.

Bug: 198164635

Test: cts-tradefed run singleCommand cts
-m CtsMediaTranscodingTestCases
-t android.media.mediatranscoding.cts.
MediaTranscodingManagerTest#testVideoFormatResolver

Change-Id: I00258bc158b932a831df644e641ff226af1d02c7
2021-11-12 17:03:29 -08:00
Sudheer Shanka
055cbb2089 Add documentation for BlobStore service.
Bug: 191168800
Test: n/a
Change-Id: Id55d593856d6194cd620211cc3bca981e572d15a
Merged-In: Id55d593856d6194cd620211cc3bca981e572d15a
2021-11-03 23:05:18 +00:00
Kweku Adams
14841f18ff Partial revert "Wait for unlock to start jobs."
This reverts commit e61cf5125e83b119701228e742f7b2cb3a433cb6
but changes onUserUnlocking to onUserUnlocked.

Reason for revert: Direct-boot-aware jobs should be allowed to run when the user is locked

Bug: 200174299
Bug: 201307089
Test: N/A
Change-Id: Ic5a67a42590e171f0bfed8da0c138096031469d5
(cherry picked from commit 171bf04113154a7e3668e07677701869dfae9eda)
2021-10-12 13:07:14 -07:00
Jiakai Zhang
2af8741f14 Add the systemserver_fragment to media SDK.
Note: This needs to be exported from the APEX (ag/15937385) when a new
prebuilt is dropped.

The systemserver_fragment is needed for dexpreopting when the media APEX
is built from a prebuilt.

Bug: 194150908
Test: m nothing
Merged-In: I2cca8b206451858e636c6bd04617cf3933f702c6
Change-Id: I2cca8b206451858e636c6bd04617cf3933f702c6
(cherry picked from commit 381fb640c6e25dbd211d12c791a473c4611e70a7)
2021-10-11 04:47:38 +00:00
Xin Li
c03b0fa033 Merge "Merge Android 12" 2021-10-07 23:50:15 +00:00
Ray Essick
a9774a4c9f Merge "Update media's mainline OWNERS" am: 6297dd2771 am: a5145aaf30 am: f2bef0817d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1844556

Change-Id: I76a2a421cf08b0f4d928661c32ce16a230c608f1
2021-10-07 17:24:51 +00:00
Ray Essick
f2bef0817d Merge "Update media's mainline OWNERS" am: 6297dd2771 am: a5145aaf30
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1844556

Change-Id: I93e5fa2cbb3a781f03b42d904147cac067ece138
2021-10-07 17:21:09 +00:00
Ray Essick
a5145aaf30 Merge "Update media's mainline OWNERS" am: 6297dd2771
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1844556

Change-Id: I94482bb3dae50577a301833a722e34995f609d59
2021-10-07 17:06:19 +00:00
Ray Essick
55fbfbc887 Update media's mainline OWNERS
Bug: 201770269
Test: repo upload
Change-Id: I3b6cb7da5fe68c7f7cf9756c7df94e1a9a9f8295
2021-10-04 18:54:12 +00:00
TreeHugger Robot
8d0620b80f Merge "Remove frameworks/base/apex/appsearch and associated tests" into stage-aosp-master am: 8efe26afd6 am: f26b06a489
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15941404

Change-Id: I0bedde68a50948dc07e76c3de8ab115bd1e06561
2021-09-30 04:49:29 +00:00
TreeHugger Robot
f26b06a489 Merge "Remove frameworks/base/apex/appsearch and associated tests" into stage-aosp-master am: 8efe26afd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15941404

Change-Id: I58bd9a43eee9e18586c753d560f599f9a8e6c93a
2021-09-30 04:45:52 +00:00
Baligh Uddin
d4f12c6ea6 Remove frameworks/base/apex/appsearch and associated tests
BUG: 192108282
Test: TH
Merged-In: I38469ad5df100e90aba81bbdc82078b568301f09
Change-Id: Ib7e97c6ee7dff1c5d0aad2c21635e74510d523a6
2021-09-29 23:40:11 +00:00
Xin Li
8891d70334 Merge SP1A.210812.016
Merged-In: I8b62b9b9d7ae271bc623764d545db1320b4dc64f
Change-Id: I458ed7f2eb8603f5e89c1d73bc0f0d52b826973e
2021-09-28 19:26:36 +00:00
Kweku Adams
7caaf68063 Partial revert "Wait for unlock to start jobs."
This reverts commit e61cf5125e83b119701228e742f7b2cb3a433cb6
but changes onUserUnlocking to onUserUnlocked.

Reason for revert: Direct-boot-aware jobs should be allowed to run when the user is locked

Bug: 201307089
Change-Id: Ic5a67a42590e171f0bfed8da0c138096031469d5
(cherry picked from commit 171bf04113154a7e3668e07677701869dfae9eda)
2021-09-27 21:34:54 +00:00
Hui Yu
0ebc9cd55b tempAllowList duration can be updated if an UID is already temp
allowlisted.

Previously when PowerExemptionManager.addToTemporaryAllowList() is
called for a second time before the first time call's duration expires, the
second call does not update ActivityManagerService's
FgsTempAllowList for the new duration. This CL fixes this problem.

Bug: 199801023
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: Ibb8c6f41740a9b7468b50a4cdabe526ae58550ec
2021-09-20 21:14:23 +00:00
Santiago Seifert
fefe435dd4 Clean up ownership in frameworks/base/
This is a cherrypick of aosp/1804116.

Bug: 197217250
Change-Id: I04bee764bf50734523ff2210d30ed052dcb036bd
Merged-In: I04bee764bf50734523ff2210d30ed052dcb036bd
Test: No code changes done.
2021-09-07 18:38:10 +01:00
Santiago Seifert
8b0842cbbb Merge "Clean up ownership in frameworks/base/" am: c875fc5613 am: afc4d064cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1804116

Change-Id: I5efb2a3ab963f7d8f2b9a485290508dc918f769c
2021-08-20 17:05:59 +00:00
Santiago Seifert
afc4d064cc Merge "Clean up ownership in frameworks/base/" am: c875fc5613
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1804116

Change-Id: I14566099250b2630a4146abd47862585e5e52fa1
2021-08-20 16:44:26 +00:00
Santiago Seifert
432e98eb50 Clean up ownership in frameworks/base/
Bug: 197217250
Change-Id: I04bee764bf50734523ff2210d30ed052dcb036bd
Test: No code changes done.
2021-08-20 13:59:15 +00:00
Kweku Adams
596af18f0f Merge "Use an exact alarm for location timeout." into sc-dev 2021-08-20 01:28:28 +00:00
Ray Essick
4cfe431f14 Rename android.media.MediaTranscodeManager -> MediaTranscodingManager
renamed to avoid conflict with existing copy in the R framework.jar.
The framework.jar copy was removed during S development

Bug: 195608856
Test: build
Test: cts-tradefed run cts -m CtsMediaTranscodingTestCases
Change-Id: I40ab066cd61be8d278f21cc788016f2edd6bb86e
(cherry picked from commit 1168d9d014cfc0e007c311db92ff2d69cc30df18)
2021-08-17 01:09:58 +00:00
Kweku Adams
a7cb583f3a Use an exact alarm for location timeout.
Use an exact alarm for the location timeout to avoid keeping the GPS
active for too long.

Bug: 194385761
Test: atest DeviceIdleTest
Test: atest FrameworksMockingServicesTests:DeviceIdleControllerTest
Change-Id: I52b7ec6d993705ee605e3780a29a484c0d48e633
2021-08-16 08:49:37 -07:00
Ray Essick
1168d9d014 Rename android.media.MediaTranscodeManager -> MediaTranscodingManager
renamed to avoid conflict with existing copy in the R framework.jar.
The framework.jar copy was removed during S development

Bug: 195608856
Test: build
Test: cts-tradefed run cts -m CtsMediaTranscodingTestCases
Change-Id: I40ab066cd61be8d278f21cc788016f2edd6bb86e
2021-08-12 07:42:56 +00:00
Chris Tate
e833132601 Merge "Consistent reporting of failure conditions" into sc-dev 2021-07-28 21:19:45 +00:00
Kweku Adams
0687577f87 Address sorting edge case.
There are times when the enqueue time of two different jobs are exactly
the same. In those cases, if an EJ skipped over one regular job with an
enqueue time X, then it should skip all other regular jobs with enqueue
time X.

Bug: 194324016
Test: atest FrameworksMockingServicesTests:JobSchedulerServiceTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I77e106676238dd3ae198fab619af430e48d433a2
2021-07-27 10:38:28 -07:00
TreeHugger Robot
776fea73bb Merge "Don't crash apps due to race condition." into sc-dev 2021-07-23 04:04:35 +00:00
TreeHugger Robot
fd94d33a17 Merge "Logging the caller uid state with AlarmScheduled atom" into sc-dev 2021-07-23 01:11:41 +00:00
Kweku Adams
ec7103c614 Don't crash apps due to race condition.
When apps are stopped unnaturally (ie. because something stopped the job
and the job itself didn't call jobFinished or dequeueWork with no
remaining work) then we have the chance of small race conditions where
the job may try to complete its work. Since the race condition isn't
really the app's fault, we shouldn't punish the app for it.

Bug: 194358301
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: I3b0edd4f2241172fe97875eb8070cb5188027afb
2021-07-22 14:41:36 -07:00
Terry Wang
f4b8e82790 Merge "Fix validation crash for nextPageToken." into sc-dev 2021-07-22 19:32:18 +00:00
Xiaoyu Jin
f5bfc7527c Merge "Log stats for Optimize" into sc-dev 2021-07-22 19:16:15 +00:00
TreeHugger Robot
c630f87976 Merge "Remove deprecated, hidden versions of changed public APIs." into sc-dev 2021-07-22 07:44:54 +00:00
Terry Wang
d0ffb446cf Fix validation crash for nextPageToken.
We are caching nextPageToken in query(), and validate it in
getNextPage(). But when it reach to the end, the token will be changed
to 0. And it will crash if user is trying to fetch next page since 0
is not cached and won't passed the validation.

This change fix the issue. Without it, users maybe crashed if they
are trying to retrieve all documents in all result pages.

Bug: 187972715
Test: AppSearchSessionUnitTest
Change-Id: Ia95feb52f2a37348e11afdf0b320c61bfce22d40
2021-07-21 03:50:54 -07:00
Suprabh Shukla
ef2636a43a Logging the caller uid state with AlarmScheduled atom
Test: statsd_testdrive 368
Test: atest FrameworksMockingServicesTests:AlarmManagerServiceTest
Test: atest CtsAlarmManagerTestCases
Test: atest CtsStatsdAtomHostTestCases:AlarmStatsTests

Bug: 194249875
Change-Id: Ia55306b3a4839aadc4bc2fdd873878b1a4e591fb
2021-07-20 23:05:22 -07:00
TreeHugger Robot
2873eb7d83 Merge "Allow GenericDocument accept a String property longer than 20_000." into sc-dev 2021-07-21 03:26:06 +00:00
Cassie Wang
34a952cf94 Merge "Ensure calling user is the same as requested user." into sc-dev 2021-07-21 01:03:03 +00:00
TreeHugger Robot
5b6a2aff21 Merge "Stop removing all APP_STANDBY_BUCKET_CHANGED messages." into sc-dev 2021-07-20 23:34:59 +00:00
Kweku Adams
c2f4752a71 Merge "Fix parameter order." into sc-dev 2021-07-20 11:37:09 +00:00
Kweku Adams
63f5d4b699 Stop removing all APP_STANDBY_BUCKET_CHANGED messages.
APP_STANDBY_BUCKET_CHANGED messages are for single apps, so it doesn't
make sense to remove all messages whenever any app's standby bucket
changes.

Bug: 193918191
Test: N/A
Change-Id: I981cd3be3cd381c6d00f06e3da9f8e67f157a26b
Merged-In: I981cd3be3cd381c6d00f06e3da9f8e67f157a26b
2021-07-20 00:14:27 +00:00
Kweku Adams
dbf042c666 Fix parameter order.
AlarmManager.setWindow's parameter order is type -> window start ->
window length. Actually put the values in the correct order.

Bug: 193866265
Test: atest DeviceIdleTest
Test: atest FrameworksMockingServicesTests:DeviceIdleControllerTest
Change-Id: I5c87dad3015859d68aacb6781166432b615327b9
2021-07-19 16:26:54 -07:00