Commit Graph

381450 Commits

Author SHA1 Message Date
Adrian Roos
deb0ff2bf4 Apilint: Enforce final builders
Test: run apilint
Bug: 124883027
Change-Id: I7f2866e46bc40be60487846b2af9f8fd7edb7623
2019-02-28 09:54:08 +00:00
Jordan Liu
eee18bd546 Merge "Implement isRemovable" 2019-02-27 20:40:31 +00:00
Treehugger Robot
3d8cef1fa8 Merge "Add OBSERVE_ROLE_HOLDERS permission to shell." 2019-02-27 20:15:59 +00:00
Amruth Ramachandran
d5386dfe1f Merge "Expose DataSpecificRegistrationState as System API" 2019-02-27 19:00:44 +00:00
Nathan Harold
fd8cb59cc1 Merge "Add Documentation for ACTION_DEBUG_EVENT" 2019-02-27 18:39:59 +00:00
Nicolas Geoffray
a838467fb4 Merge "No need to pass shared library infos explicitly in performDexOpt." 2019-02-27 16:42:39 +00:00
Nicolas Geoffray
a7f44ba867 No need to pass shared library infos explicitly in performDexOpt.
The method can just infer it from the passed package.

(cherry picked from commit 1158b87c6e)

Test: m
Change-Id: I676ee7d49600a36a8bd54893679d7dc900da2012
Merged-In: I676ee7d49600a36a8bd54893679d7dc900da2012
Exempt-From-Owner-Approval: approved in internal.
2019-02-27 16:42:28 +00:00
Adrian Roos
57b5479a6b Merge "apilint: Correctly parse packages with annotations" 2019-02-27 15:50:21 +00:00
Treehugger Robot
1b9adbfdd1 Merge "Use public APIs instead of Conscrypt ones" 2019-02-27 09:01:03 +00:00
Treehugger Robot
909baeddfa Merge "Add @NonNull annotation to set proxy on VPN parameter." 2019-02-27 05:56:28 +00:00
Tor Norbye
e701106d6e Merge "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"" 2019-02-27 02:33:15 +00:00
Irina Dumitrescu
5155a2d7e4 Add @NonNull annotation to set proxy on VPN parameter.
Test: manual
Bug: 124883120
Change-Id: Ifb4bd98a69a006220b1a824033395fc6f12ea6ce
2019-02-27 01:06:00 +00:00
Hai Zhang
f7e8368d31 Add OBSERVE_ROLE_HOLDERS permission to shell.
This allows testing relevant APIs in CTS tests. The listener itself
only gives the changed role name and user affected.

Bug: 125404675
Test: build
Merged-In: I5c979a26dae103ea1b633c2119c59363d8953aa2
Change-Id: I29ca1827e597d318cbd74ba3e70796c5853a9dc4
2019-02-26 16:55:35 -08:00
Nathan Harold
b609e1cc83 Add Documentation for ACTION_DEBUG_EVENT
The debug event action lost out on the documentation
for DebugEventReporter when it migrated to TM. This
change adds documentation for ACTION_DEBUG_EVENT
EXTRA_DEBUG_EVENT_ID, and EXTRA_DEBUG_EVENT_DESCRIPTION

Bug: 126178766
Test: make offline-sdk-docs (docstring-only change)
Change-Id: I6073d8b181c1258dbd7b47e8d5a45732d619396a
2019-02-26 16:42:54 -08:00
Tor Norbye
2c76358add Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"
This reverts commit ddc496d622.

Reason for revert: b/126374865

Change-Id: I53f87d15712a0f2acc5787efcf68c72021e9b831
2019-02-27 00:21:39 +00:00
Treehugger Robot
820cfa422c Merge "Log the pid of the forked zygote child." 2019-02-26 23:22:52 +00:00
Amruth Ramachandran
e4cbd119d4 Expose DataSpecificRegistrationState as System API
LteVopsSupportInfo is currently not accessible for telephony
  APK since DataSpecificRegistrationState is @hide api. This info is
  required to determine if current LTE network support IMS. This
  change exposes DataSpecificRegistrationState and LteVops info
  as System API.

Bug: 112194535
Test: atest

Change-Id: Iec5c42ccef88b66c3f8ef05f8f96b2a4133ca63f
2019-02-26 14:16:40 -08:00
Hall Liu
3d7b3fb737 Merge "Rename the RTT audio flag in ImsStreamMediaProfile" 2019-02-26 21:54:40 +00:00
Jordan Liu
0fe6845f7d Implement isRemovable
Add resource non_removable_euicc_slots which lists the slot indexes
which refer to non-removable eUICCs chips.

Test: EuiccCardTest
Bug: 122738148
Change-Id: I8836e25acf37527bbb067538902de056e1465b31
Merged-In: I8836e25acf37527bbb067538902de056e1465b31
2019-02-26 13:30:15 -08:00
Josh Gao
021a9a4a4c Merge "Switch LocalSocket to android::base::{Send,Receive}FileDescriptorVector." 2019-02-26 21:29:42 +00:00
Martin Stjernholm
a9bd8c3e56 Log the pid of the forked zygote child.
Useful to link together the pids of the zygote and its children in logcat
output.

Test: Flash and boot, run "adb logcat"
Change-Id: I524b70aed7d1ce7a378df0e2b2063e23f1f9a454
2019-02-26 20:05:41 +00:00
Treehugger Robot
0b2044a91c Merge "Fix the build failure with enabling DEBUG_PSS" 2019-02-26 19:49:03 +00:00
Treehugger Robot
548170a66a Merge "Remove unused tests/utils/SleepUtils" 2019-02-26 18:15:51 +00:00
Sasha Smundak
aef4b82881 Remove unused tests/utils/SleepUtils
The presense of these files hinders the conversion of the makefiles
to the blueprints (causes failure in the internal builds due to lacking
files).

Bug: 122332340
Test: treehugger
Change-Id: I2a3c38cbba7c14ae1b2880c73c7f6514816f0e68
2019-02-26 17:43:22 +00:00
Paul Duffin
e051b0c95e Merge "Revert "Revert "Remove legacy-test and legacy-android-test targets""" 2019-02-26 10:59:54 +00:00
Adrian Roos
b1faa0bf5b apilint: Correctly parse packages with annotations
Test: python apilint_test.py
Change-Id: Ifce9fe3836b2bb46b0d0a255b912fd8bf0195621
2019-02-26 11:54:40 +01:00
Adam Vartanian
19254043ae Use public APIs instead of Conscrypt ones
Use the equivalent public APIs on SSLContext instead of reaching into
OpenSSLContextImpl, except for the one place where a
Conscrypt-specific API is needed.

Bug: 123738844
Bug: 119752589
Test: cts -m CtsLibcoreTestCases
Test: atest android.net.SSLCertificateSocketFactoryTest
Change-Id: I61aebac4ad713b8ce53a47e72def0c537b4ab1c9
2019-02-26 09:28:35 +00:00
Xiong Li
ad5037b91b Fix the build failure with enabling DEBUG_PSS
frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java:2688:
error: variable pid might not have been initialized
    if (DEBUG_PSS) Slog.d(TAG_PSS, "Skipped pss collection of " + pid +

Bug: None
Test: make -j12
Change-Id: Ib668ba2606348f92239355b04039b45cae025cf3
2019-02-26 17:23:23 +08:00
Nicolas Geoffray
ed74814369 Merge "Query the enable_apex_image flag from native experiment." 2019-02-26 08:10:12 +00:00
Nicolas Geoffray
77ad6aee15 Merge "Replace generic GC type flag with a specific Generational CC flag." 2019-02-26 08:09:17 +00:00
Nicolas Geoffray
6631e7c3a7 Merge "Add a unit test for Android Runtime (Boot) device configuration flags." 2019-02-26 08:08:24 +00:00
Nicolas Geoffray
14a5cedfb5 Merge "Read "gctype" flag from namespace "runtime_native_boot"." 2019-02-26 08:07:54 +00:00
Josh Gao
79e3be8a84 Switch LocalSocket to android::base::{Send,Receive}FileDescriptorVector.
The previous implementation allocated an array of size
CMSG_SPACE(count) to store CMSG_LEN(count * sizeof(int)) elements, which
leads to bad things happening for values of count greater than 1 on
32-bit, and 2 on 64-bit.

Test: atest android.net.LocalSocketTest
Test: atest android.net.cts.LocalSocketTest
Change-Id: I0a9502c3358d8fa92d2d20e344c6270d6baedc07
2019-02-25 23:21:23 -08:00
Treehugger Robot
5f912ecd06 Merge "Convert FrameworksCoreTests to Android.bp" 2019-02-26 06:58:52 +00:00
Treehugger Robot
a0e4349794 Merge "Add more test case and some clean up" 2019-02-26 06:20:24 +00:00
Colin Cross
468abc954a Convert FrameworksCoreTests to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: atest FrameworksCoreTests fails in all the same ways
Change-Id: I2f83f381f914afeff7cdbbb9d8faa67551ed0c61
Merged-In: I2f83f381f914afeff7cdbbb9d8faa67551ed0c61
(cherry picked from commit 85e2be0e90)
2019-02-25 21:10:52 -08:00
Chiachang Wang
95489ca49e Add more test case and some clean up
Bug: 120452078
Test: atest NetworkStackTests
Change-Id: Ifb981ccdaa7818bf2bebec98e91979007222910b
2019-02-26 11:32:18 +08:00
Nathan Harold
383624ffbf Merge "Fix Order of Operations for Converting RSSI to ASU" 2019-02-26 01:55:49 +00:00
Nathan Harold
11cbc3b9f2 Fix Order of Operations for Converting RSSI to ASU
Due to the wrong order of operations, the conversion
from RSSI to ASU was returning bad results. Fix the
equation so that the ASU is correctly calculated.

Bug: 126199198
Test: (force device to GSM) - atest CellInfoTest
      verified on aosp_taimen

Change-Id: Iaeb9a2a6d8efb5b39fc1f81e8d2969694cc06422
2019-02-26 01:55:40 +00:00
Chen Xu
7db49c554a Merge "getSimLocale should return locale rather than string tag" 2019-02-25 22:26:05 +00:00
Jordan Liu
0a04598a39 Merge "CallAttributes uses the call network type" 2019-02-25 21:49:11 +00:00
Paul Duffin
79d7ba2773 Revert "Revert "Remove legacy-test and legacy-android-test targets""
Fixes up the android.test.legacy target to stop using sources directly
now that the issue with android.test.runner-minus-junit not being able
to be built against the SDK has been resolved.

Also, fixes a couple of comments.

This reverts commit 7d7af10dc9.

Reason for revert: When this was originally applied it broke the
pi-dev-plus-aosp branch as it contained references to these targets.
Those references have now been removed.

Bug: 63127064
Change-Id: I619e92faf4cc38f8fd4f053bde832e9a76a2a2bf
Test: make checkbuild
2019-02-25 19:20:10 +00:00
chen xu
f98efc3961 getSimLocale should return locale rather than string tag
Bug: 124767220
Test: Build
Change-Id: Ib4938652f2e6541b44894ae1a2b0cb2ea4c899be
Merged-in: I850108ce0905d16e538e46ccd4bbf92a2bcfba42
2019-02-25 18:33:08 +00:00
Nicolas Geoffray
e24b30b7d4 Merge "Add gctype device config property for GC experiments" 2019-02-25 17:52:25 +00:00
Treehugger Robot
cc9f4923d2 Merge "Check recycled when createBitmap" 2019-02-25 16:10:52 +00:00
Nicolas Geoffray
7a6a0dab57 Query the enable_apex_image flag from native experiment.
Bug: 119800099
Test: m
Change-Id: I730ffaae640ad6c427b3fbc898d838af0962fe5f
2019-02-25 14:25:26 +00:00
Roland Levillain
72a1815e6f Replace generic GC type flag with a specific Generational CC flag.
The "gctype" device configuration flag (from the "runtime_native_boot"
namespace) was a string passed verbatim as an argument to the runtime
option "-Xgc". It was too generic, conveyed no typing information, and
was error-prone (there was no control over what was passed from the
server to the zygote, and then to the runtime).

This change replaces "gctype" with a specific, Boolean
"enable_generational_cc" flag. This new flag better reflects the
nature of the experiment to be conducted (either enable or disable
generational garbage collection in ART's concurrent copying
collector).

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 72446017
Bug: 120794191
Bug: 123754583

(cherry picked from commit 72b16f0ad0)

Change-Id: I5f30f38914bb44d6ce9dc6870ee2c566ce66278a
Merged-In: I30a73171c0dc3c7bc891c4f164eed0ba42b0f420
2019-02-25 14:25:12 +00:00
Roland Levillain
ddcbe90fb7 Add a unit test for Android Runtime (Boot) device configuration flags.
These flags live in device configuration namespace
`runtime_native_boot`. Exercise them by checking that they are passed
to the zygote process(es) as a runtime option after a reboot.

At the moment this test only checks flag `gctype`, which is the only
flag currently implemented in namespace `runtime_native_boot`.

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 72446017
Bug: 120794191
Bug: 123524494
Bug: 123754583

(cherry picked from commit 0645bcb843)

Change-Id: I015fe475818162f5bbc7f18a64764cb14ab0a768
Merged-In: I6cf43c3ee0d405fb1b69a450587dd712f911358d
2019-02-25 14:25:00 +00:00
Roland Levillain
688ed594ba Read "gctype" flag from namespace "runtime_native_boot".
ART does not support changing the garbage collector type/configuration
dynamically at the moment, so we can only change it when the runtime
starts, i.e. at boot time.

Also materialize "gctype" and "runtime_native_boot" as named constants.

Bug: 120794191
Bug: 72446017
Test: adb shell device_config put runtime_native_boot gctype nogenerational_cc && adb reboot
Test: adb shell device_config put runtime_native_boot gctype generational_cc && adb reboot

(cherry picked from commit 7b098c8487)

Change-Id: Ied0eacf46ab92ba128d0a538a314f42c18c5b8f5
Merged-In: Ibf765a5f442136d6327be99786ea9ae4b4537d59
2019-02-25 14:24:45 +00:00
Mathieu Chartier
28cfcec6f6 Add gctype device config property for GC experiments
Added to the runtime_native namespace.

The new property overrides dalvik.vm.gctype if it's set.

Bug: 120794191
Test: adb shell device_config put runtime_native gctype CC,preverify
Test: adb reboot

(cherry picked from commit d2a975adb5)

Change-Id: I9ca29e9a5a0c94234fb14a725334dae82171679b
Merged-In: I30a2a3bcfb83f502f168c0d8588d80982a5f7d76
2019-02-25 14:17:57 +00:00