Commit Graph

1629 Commits

Author SHA1 Message Date
Pablo Gamito
9b68a1d091 Merge "Add intDef annotation processor to generate mapping" 2020-07-16 12:18:55 +00:00
TreeHugger Robot
f8b7780623 Merge "Update permissions whitelist for calendar provider." 2020-07-15 06:05:49 +00:00
Pablo Gamito
c18f0a3562 Add intDef annotation processor to generate mapping
Test: Run 'mp :framework-all' and check if mapping file is properly
generated

Change-Id: I58f7ea5894e8ec994a74781663654508205c4db1
2020-07-14 13:38:57 +00:00
Varun Shah
f952e66c1d Update permissions whitelist for calendar provider.
Also allow compat changes in calendar provider to be detected.

Bug: 143231523
Test: atest CalendarProvider2Test
Change-Id: I19caac418223723bb4c7001e12e4311a231f937a
2020-06-26 11:23:05 -07:00
Remi NGUYEN VAN
c4cb0330aa Merge "Move Inet[4]AddressUtils to libs/net" into rvc-dev am: 6555756e90 am: deae676127 am: af0fe2e715 am: b232961fb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11846903

Change-Id: I9791fe78ecbe5c91f00225c13db7f9ed9f5823d4
2020-06-19 01:57:56 +00:00
Remi NGUYEN VAN
deae676127 Merge "Move Inet[4]AddressUtils to libs/net" into rvc-dev am: 6555756e90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11846903

Change-Id: Icd141a992c46290c74929785e261a1cd57bc001b
2020-06-19 01:08:48 +00:00
Remi NGUYEN VAN
6555756e90 Merge "Move Inet[4]AddressUtils to libs/net" into rvc-dev 2020-06-19 00:49:29 +00:00
Amy Zhang
a62e9af6b1 Merge "Update media resourceManagerService with the Application pid" into rvc-dev am: cea1d98cde am: d01cca87de am: 33e9dc6487 am: f7396baf02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11803042

Change-Id: If10c38e6cedabe6663ca50d8d3fae6cbcb8b5ba0
2020-06-15 21:52:59 +00:00
Amy Zhang
f7396baf02 Merge "Update media resourceManagerService with the Application pid" into rvc-dev am: cea1d98cde am: d01cca87de am: 33e9dc6487
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11803042

Change-Id: I7ec854473d4fb1a611565bfb8e3f62555538907d
2020-06-15 21:34:20 +00:00
Amy Zhang
622f9f44d4 Merge "Update media resourceManagerService with the Application pid" into rvc-dev am: cea1d98cde
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11803042

Change-Id: I63d899f77c9616c2aac9a7c8d47e253ed91cbe1d
2020-06-15 21:12:59 +00:00
Amy Zhang
d01cca87de Merge "Update media resourceManagerService with the Application pid" into rvc-dev am: cea1d98cde
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11803042

Change-Id: Ied90455799e40db892764d50ac69286223bc914d
2020-06-15 21:12:53 +00:00
Amy Zhang
ccdbc4ddd8 Update media resourceManagerService with the Application pid
This CL updates the media resourceManagerService calling pid with the
real application pid when TunerResourceManager is able to get this
information from TvInputManager. Calling
IResourceManagerService.overridePid to update.

Test: dumpsys media.resource_manager on cuttlefish
Bug: 150989423
Change-Id: Ie811ae15bbcc326ed3a09f97b6b5a57f4b48b094
2020-06-15 17:40:34 +00:00
Remi NGUYEN VAN
eee629f4c7 Move Inet[4]AddressUtils to libs/net
The classes should not be picked up from frameworks/base, as they are
part of several mainline modules.

Also refine comments in DhcpResults following feedback in previous
change.

Bug: 151052811
Test: m; manual: flashed, wifi and telephony working
Test: atest NetworkStackCoverageTests
Change-Id: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f
2020-06-12 17:04:06 +09:00
Paul Duffin
a6faea7ffa Merge "Switch to standard naming scheme" into rvc-dev am: f94d682a9b am: a0460cb747
Original change: undetermined

Change-Id: I881cccf3f96b39731208b48b6ff615c21183991b
2020-06-02 12:11:25 +00:00
Paul Duffin
42340d5a91 Merge "Switch to standard naming scheme" into rvc-dev am: f94d682a9b
Original change: undetermined

Change-Id: I57cffc68409c2e9b795b0c8732fecc9bbf33e113
2020-06-02 11:58:50 +00:00
Paul Duffin
a0460cb747 Merge "Switch to standard naming scheme" into rvc-dev am: f94d682a9b
Original change: undetermined

Change-Id: Ia56347e16ba637bbd4e23cfa664a7b78fe4aa52f
2020-06-02 11:58:45 +00:00
Paul Duffin
4e00662c2f Switch framework-graphics to use java_sdk_library
Test: m droid checkapi
Bug: 155164730
Change-Id: I4cf46f173bebf0c35a335054e8dcb96f3bd907a3
Exempt-From-Owner-Approval: Build refactoring.
2020-06-02 11:29:56 +00:00
Paul Duffin
abebc6a897 Switch to standard naming scheme
Removes use of the special framework-modules naming scheme.

Bug: 155164730
Test: m java
Exempt-From-Owner-Approval: Build cleanup.
Change-Id: I3b78fcbcacc3df787e171d6eedeef1e51b087615
Merged-In: I0c31e2183353dfb5bd49f04f3455cb7b10be6866
(cherry picked from 8b864fb45c)
2020-06-02 06:53:53 +00:00
Paul Duffin
8b864fb45c Switch to standard naming scheme
Removes use of the special framework-modules naming scheme.

Bug: 155164730
Test: m java
Exempt-From-Owner-Approval: Build cleanup.
Change-Id: I0c31e2183353dfb5bd49f04f3455cb7b10be6866
2020-05-31 14:19:32 +01:00
Hangyu Kuang
78e0c53127 Merge "Transcoding API: Hook up with media.transcoding service." 2020-05-29 03:32:31 +00:00
hkuang
6953d2bb6e Transcoding API: Hook up with media.transcoding service.
Note the test is tested with a mock transcoding service.
Another test will be added when the service's transcoding
is up and running.

Also remove the jni call and talk with service directly.

Bug: 145628554
Test: atest MediaTranscodeManagerTest
Change-Id: Ifd7babb235fcd034ba7ee1758985a9e4d031170c
2020-05-28 18:16:22 -07:00
TreeHugger Robot
d6c0f2d342 Merge "Add AndroidFrameworkClientSidePermissionCheck errorprone check" 2020-05-28 22:44:37 +00:00
Baligh Uddin
12e3b85dd0 Merge commit '864a2b0e25da01885f558bde41e9da73801c790e' into manual_merge_864a2b0e25da01885f558bde41e9da73801c790e
Change-Id: I39f86a02a4d7ccdc3674be61ad96ec9b05fed617
Merged-In: Ia2c1c6e82eef7ba25fe4c090ffa02bff5c3ddca2
Test: TH
Bug: 156287389
2020-05-28 21:11:45 +00:00
Bernardo Rufino
5a2df65f5a Add AndroidFrameworkClientSidePermissionCheck errorprone check
Often a permission check in the app's process is an indicative of a
security issue since the app could work around it. Permission checks
should be done on system_server.

This errorprone warning checks for invocations of
Context.checkPermission() in any class inside android.app package and
emits a warning if it finds one. I also added a @SuppressWarnings for
one such call that has a todo and it and seems like an already tracked
workaround. The other call found by the checker is tracked in
b/157548188.

I also found that errorprone was not running for framework-minus-apex,
so I added the plugin to the relevant build rule. Let me know if this is
not the way to go!

Test: build/soong/soong_ui.bash --make-mode framework-minus-apex
      RUN_ERROR_PRONE=true
Bug: 157626959
Change-Id: Ieb94f2f43722837c8354ac66474797f4f338ae16
2020-05-28 22:00:53 +01:00
Baligh Uddin
f1613ef178 Adjust visibility rules for IPSec
BUG: 156287389
Test: TH and Local Build
Merged-In: Ia2c1c6e82eef7ba25fe4c090ffa02bff5c3ddca2
Change-Id: I097ce1a51d2fa1abde3502f6023f4d840cee3794
2020-05-27 23:39:04 +00:00
Makoto Onuki
b14bc8c6ae Merge "Update api-lint baseline for NO_SETTINGS_PROVIDER" into rvc-dev-plus-aosp 2020-05-27 23:34:28 +00:00
Baligh Uddin
4924b024cb Merge "Adjust visibility rules for IPSec" am: 29e3c0ba36 am: f7a649984f am: 5d8d8a237e am: 5ae29e4bcd am: 23ab00eba2
Change-Id: Icf5e2f0faa2b81cc3ab4faef1b0a0b37f4484a57
2020-05-27 23:05:15 +00:00
Baligh Uddin
5d8d8a237e Merge "Adjust visibility rules for IPSec" am: 29e3c0ba36 am: f7a649984f
Change-Id: I17d15a972542971244a962b1c8401dd9b6de0c50
2020-05-27 22:11:37 +00:00
Makoto Onuki
a664a9017f Update api-lint baseline for NO_SETTINGS_PROVIDER
Bug: 151454839
Test: See the other CL in the topic

Merged-in: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
Change-Id: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
(cherry picked from commit 451da1ce77)
2020-05-27 21:49:29 +00:00
Baligh Uddin
b7ec5bbc0c Adjust visibility rules for IPSec
BUG: 156287389
Test: TH and Local Build
Change-Id: Ia2c1c6e82eef7ba25fe4c090ffa02bff5c3ddca2
2020-05-27 19:22:36 +00:00
Makoto Onuki
b55bfbda2b Merge "Update api-lint baseline for NO_SETTINGS_PROVIDER" 2020-05-27 15:03:09 +00:00
Automerger Merge Worker
38326ba6db Merge "Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d am: 1ad652187c am: d1de4941b5" into rvc-qpr-dev-plus-aosp am: 3aa26d15b9
Change-Id: Ie1e8f3240286008bf0c6db0adaae2f8dce36c6f6
2020-05-27 05:13:09 +00:00
Alex Buynytskyy
fa6c8aee66 Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d am: 1ad652187c am: d1de4941b5
Change-Id: I2f099f41419d4232470094c2f7fa29ad5cc616a9
2020-05-27 04:49:11 +00:00
Alex Buynytskyy
53ea003df2 Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d
Change-Id: If0f24b8549fbf78aecf4586551528606064ecfe7
2020-05-27 04:17:10 +00:00
Alex Buynytskyy
1ad652187c Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d
Change-Id: I3b68f9b64c91e85132dfec3f5c740d28e469697a
2020-05-27 04:17:05 +00:00
Makoto Onuki
451da1ce77 Update api-lint baseline for NO_SETTINGS_PROVIDER
Bug: 151454839
Test: See the other CL in the topic

Change-Id: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
2020-05-26 17:09:40 -07:00
Alex Buynytskyy
8ef61aebee Lifecycle: detecting blocked and unhealthy.
Part 1: interfaces and PM implementation.

Bug: 153874006
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: I312dd919d2bb552bea3d72fb49fd1579882da14b
2020-05-26 19:34:39 +00:00
Ramy Medhat
a22e56cb01 Merge "Add sources read implicitly when building android.test.mock.stubs.source.test" am: ff2641428f am: 3105aee1ee am: 5ab24e74da am: c72a7c6c50 am: bf55421506
Change-Id: I38edce8483efaba3a6a1147eeb56465fb53423c4
2020-05-25 14:22:18 +00:00
Ramy Medhat
5ab24e74da Merge "Add sources read implicitly when building android.test.mock.stubs.source.test" am: ff2641428f am: 3105aee1ee
Change-Id: I1e9641981ae1048507d81f59b84a2a19ebe89d32
2020-05-25 13:44:39 +00:00
Ramy Medhat
10146d8821 Add sources read implicitly when building android.test.mock.stubs.source.test
This CL makes explicit the source files read implicitly when building
android.test.mock.stubs.source.test. The list of source files added was
obtained by using ag/11062343 to dump all implicitly read files during
the execution of a metalava command.

Test: m
out/soong/.intermediates/frameworks/base/test-mock/android.test.mock.stubs.source.test/android_common/check_current_api.timestamp
with RBE_METALAVA=1 to make sure their are no api mismatches when using
the RBE result.

Change-Id: Ib131a13731e0e97cba0c34e19c454d3086858948
2020-05-25 07:35:06 -04:00
Dmitri Plotnikov
f800b70dc5 Move IndentingPrintWriter to android.util
The old implementation remains in its place for now.

IndentingPrintWriter is still hidden - it will be made public
separately.

Test: atest FrameworksUtilTests:android.util.IndentingPrintWriterTest
Bug: 142281756

Change-Id: Idd2bfa027733ef384b5a676866a89fb3c35b06cb
2020-05-21 10:36:53 -07:00
Dmitri Plotnikov
b3fd132670 Copy utility classes into the jobscheduler module
Test: adb shell dumpsys jobscheduler

Change-Id: Ie618cc02df7f951bca451694b42e88ee4f65798d
2020-05-12 18:24:23 +00:00
Hall Liu
92f928b250 Refactor SubscriptionManager caching code am: 29b1874ffc
Change-Id: I9b3eeade5d5b7ddc91ede9c340ab1381cb4e9278
2020-05-05 16:46:32 +00:00
Hall Liu
2ec58b1158 Refactor SubscriptionManager caching code am: 29b1874ffc
Change-Id: I8168420f37eb8324580c8ec648d091f0b5a5bb7f
2020-05-05 16:45:50 +00:00
Anton Hansson
0a3b7ad5ba Stop building against core_platform where possible
This is not a stable API surface, so modules shouldn't be building
against it. Compiling against core_platform also disables link-checking,
which can hide other problems.

Bug: 137191822
Test: m
Change-Id: I7ce7dad8c02b094c565daf8c178bc6f89bb610ef
Merged-In: I7ce7dad8c02b094c565daf8c178bc6f89bb610ef
(cherry picked from commit 791551a70f)
2020-05-05 12:18:11 +01:00
Hall Liu
29b1874ffc Refactor SubscriptionManager caching code
Create a genericized class to use for SubscriptionManager caching calls
in order to avoid duplicating logic that fetches values from ISub.

Bug: 151953109
Test: atest android.telephony.cts.SubscriptionManagerTest

Merged-In: I6682ded8aec8cb3e50521584c177df6d5dae8c49
Change-Id: I6682ded8aec8cb3e50521584c177df6d5dae8c49
2020-04-28 16:22:48 -07:00
Mark Chien
0240cac300 Merge "Remove Preconditions usage to stop dependecy with non-updatble class" into rvc-dev am: d974b33386
Change-Id: I7b13aa7a500d804d0e8ef96d9d72556f3c642124
2020-04-28 03:12:09 +00:00
Mark Chien
26631c7d8c Remove Preconditions usage to stop dependecy with non-updatble class
Stop depending on Preconditions that is not released on the same cadence
as the module, and is maintained as part of the framework.

Bug: 148636687
Test: atest TetheringTests NetworkStackNextTests

Merged-In: Id0dcec44f362f79bc8c046d722635687a7388aa2
Change-Id: Id0dcec44f362f79bc8c046d722635687a7388aa2
2020-04-27 12:38:07 +00:00
Mark Chien
78d95acde4 Merge "Remove Preconditions usage to stop dependecy with non-updatble class" am: 339e06ba90 am: aaa13c4a97 am: 3ffa2fd932 am: ead9e654f5 am: 135b184eaf
Change-Id: Ia45990f71f0f85b1d345e0e2f3ff4c2bb229434a
2020-04-27 11:43:00 +00:00
Mark Chien
3ffa2fd932 Merge "Remove Preconditions usage to stop dependecy with non-updatble class" am: 339e06ba90 am: aaa13c4a97
Change-Id: I856a936b295426bb2ba219eb4e510f6a2a3ac12b
2020-04-27 11:17:28 +00:00