Commit Graph

1606 Commits

Author SHA1 Message Date
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
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
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
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
Mark Chien
339e06ba90 Merge "Remove Preconditions usage to stop dependecy with non-updatble class" 2020-04-27 10:54:19 +00:00
markchien
2a52c09dda 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

Change-Id: Id0dcec44f362f79bc8c046d722635687a7388aa2
2020-04-24 00:47:56 +08:00
David Su
cfc068a6ee Merge "framework-wifi: remove duplicate classes" into rvc-dev am: 87ce901869 am: 44d450a87e am: 89d4147582 am: d9de904b89
Change-Id: Ib9cd735aa920117279628e7fcbfa107d04eb51a1
2020-04-22 19:26:01 +00:00
David Su
89d4147582 Merge "framework-wifi: remove duplicate classes" into rvc-dev am: 87ce901869 am: 44d450a87e
Change-Id: Ic947629dc5b10aa968dec3bd270a84ead7b36b5b
2020-04-22 19:01:30 +00:00
David Su
44d450a87e Merge "framework-wifi: remove duplicate classes" into rvc-dev am: 87ce901869
Change-Id: I29a472aa2d48f7bf1151487c2fa089bb9a2102db
2020-04-22 18:44:53 +00:00
David Su
7dbbed6b76 Merge "framework-wifi: remove duplicate classes" into rvc-dev am: 87ce901869
Change-Id: I2d09ecec5964988e0cf4f74b850c11ecc3a65432
2020-04-22 18:44:37 +00:00
David Su
57bca318f1 framework-wifi: remove duplicate classes
Preconditions & Inet4AddressUtils are statically
linked into both framework-wifi and service-wifi.
This creates duplicate classes, which should be
avoided. Instead, service-wifi should simply refer
to the copy of Preconditions/Inet4AddressUtils in
framework-wifi.

Bug: 153596226
Test: device boots up and connects to wifi
Change-Id: Ie78e5cf0f6ff7bc8a2fa8d7264b742f912601143
2020-04-22 05:40:28 +00:00
David Su
6ef1235b47 framework-wifi: remove duplicate classes
Preconditions & Inet4AddressUtils are statically
linked into both framework-wifi and service-wifi.
This creates duplicate classes, which should be
avoided. Instead, service-wifi should simply refer
to the copy of Preconditions/Inet4AddressUtils in
framework-wifi.

(dirty cherry pick from internal branch)

Bug: 153596226
Test: device boots up and connects to wifi
Change-Id: Ie78e5cf0f6ff7bc8a2fa8d7264b742f912601143
Merged-In: Ie78e5cf0f6ff7bc8a2fa8d7264b742f912601143
2020-04-21 20:14:23 -07:00
Jiyong Park
1722509345 Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: 28665792a2
Change-Id: I1693261f829fe4b40dbe2d0e11b7e88916582476
2020-04-21 10:11:46 +00:00
Amit Mahajan
7d9f1e3ea5 DO NOT MERGE Remove references of telephony-stubs.
Since it's not used for now.

Test: TH
Bug: 153304048
Merged-in: I1812818c3d49463c3840a98212bbab58a110359a
Change-Id: I1812818c3d49463c3840a98212bbab58a110359a
2020-04-20 16:48:33 +00:00
Jiyong Park
803dc1c218 Mark some aidl_interface modules as unstable
With b/152655547, all aidl_interface modules are considered as stable
unless it is explicitly with "unstable: true". This change marks the
aidl_interface that are not used across updatable module bounraries
as unstable, so that the build system does not run the API
dumping/checking on them.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 152655547
Test: m
Merged-In: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
(cherry picked from commit db589dded4)
Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
2020-04-20 07:44:52 +00:00
Jiyong Park
ad30a90552 Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: 28665792a2 am: fe22da569d am: 871c8d05ec am: 500b7d96cd
Change-Id: I74ae64ae9f7a4ff5782c208b36816fd429c79aba
2020-04-20 06:30:34 +00:00
Jiyong Park
fe22da569d Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: 28665792a2
Change-Id: I87f2b5384ad7f82374597a75de4595e380564e55
2020-04-20 05:23:12 +00:00
Jiyong Park
28665792a2 Merge "Mark some aidl_interface modules as unstable" into rvc-dev 2020-04-20 03:23:06 +00:00
Amit Mahajan
7973105d8b DO NOT MERGE Remove references of telephony-stubs.
Since it's not used for now.

Test: TH
Bug: 153304048
Merged-in: I1812818c3d49463c3840a98212bbab58a110359a
Change-Id: I1812818c3d49463c3840a98212bbab58a110359a
2020-04-15 17:55:52 -07:00
Amit Mahajan
07a1871e8c DO NOT MERGE Remove references of telephony-stubs.
Since it's not used for now.

Test: TH
Bug: 153304048
Change-Id: I1812818c3d49463c3840a98212bbab58a110359a
2020-04-15 14:38:58 -07:00
Jiyong Park
db589dded4 Mark some aidl_interface modules as unstable
With b/152655547, all aidl_interface modules are considered as stable
unless it is explicitly with "unstable: true". This change marks the
aidl_interface that are not used across updatable module bounraries
as unstable, so that the build system does not run the API
dumping/checking on them.

Bug: 152655547
Test: m
Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
2020-04-13 13:00:47 +09:00
Sungsoo Lim
00b01bbf28 Merge "Do not export private AIDL files of the media module" into rvc-dev am: 383371cdc5 am: d2f9db50f6 am: f976b18e5e am: 7509e60839
Change-Id: Id81e2911fbcce87bd56fac840a4bd0ceb38e6e3f
2020-04-10 07:48:48 +00:00
Sungsoo Lim
f976b18e5e Merge "Do not export private AIDL files of the media module" into rvc-dev am: 383371cdc5 am: d2f9db50f6
Change-Id: I3f37c2bc0f48c37394568346e40408d46b3dc892
2020-04-10 06:52:52 +00:00
Sungsoo Lim
ca2ba6c9c5 Merge "Do not export private AIDL files of the media module" into rvc-dev am: 383371cdc5
Change-Id: Ife384bb258f2d13b26f5a5986db8efebb418aee2
2020-04-10 06:33:09 +00:00
Sungsoo Lim
d2f9db50f6 Merge "Do not export private AIDL files of the media module" into rvc-dev am: 383371cdc5
Change-Id: Iff271892d0cabb03d7eaccd05bfcbab758598e4f
2020-04-10 06:32:26 +00:00
Sungsoo Lim
383371cdc5 Merge "Do not export private AIDL files of the media module" into rvc-dev 2020-04-10 05:28:21 +00:00
Hall Liu
69e3f3547e 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
Change-Id: I6682ded8aec8cb3e50521584c177df6d5dae8c49
2020-04-08 15:22:44 -07:00