Commit Graph

378573 Commits

Author SHA1 Message Date
David Brazdil
de441278e7 Merge "Annotate two non-SDK methods known to be used by apps" 2018-12-20 13:36:34 +00:00
David Brazdil
ad857d637a Annotate two non-SDK methods known to be used by apps
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 121237128
Bug: 120783643
Test: m appcompat
Change-Id: Ib7a8bdf3151290aa8a5ca85dc8650612432f0d59
2018-12-20 13:36:21 +00:00
vichang
995c3f5247 Merge "Use ICU in libandroidicu" 2018-12-20 11:37:55 +00:00
Jiyong Park
02f874d564 Merge "Show version for APEXes" 2018-12-20 09:40:29 +00:00
David Brazdil
2c0278d35f Merge "Revert "[framework] Compile secondary dex files in isolation"" 2018-12-20 08:25:22 +00:00
David Brazdil
22217f6a51 Revert "[framework] Compile secondary dex files in isolation"
This reverts commit 8a5a708df1.
ART does not compile secondary dex files in the user process
any more. The original issue of a large overhead of providing
a class loader context is therefore not relevant any more and
we can start passing the context to installd.

Note that this also partially reverts commit
6dba50d633 which restricted
visibility of methods in PackageDexUsage. The commit also
removed data collection for unsupported class loaders. The
logic in PackageDexOptimizer was adjusted accordingly.

Bug: 64530081
Bug: 111174995
Test: manual
Change-Id: Id78b5a6d8841b199c12a63a8d45d12efbcc32275
2018-12-20 08:24:56 +00:00
Mathew Inwood
989e767e84 Merge "Include annotation property values in output." 2018-12-20 07:48:25 +00:00
Mathew Inwood
cfc7952cc8 Include annotation property values in output.
When editing annotations, we want the ability *not* to overwrite any
existing annotation properties already in place. Include any properties
set on the annotation in the output, so that the edit_annotations script
can know that they're there.

The annotation properties are encoded like URL query parameters for
convenience; it makes them easy to encode here & subsequently decode on
the other side (in Python).

Test: m framework-annotation-proc & inspect output.

(cherry picked from commit bd7077065c)

Merged-In: I71fb1215ad2790751be336b4955c163bb323a4a6
Change-Id: I0b33e2b379076346ce258d93a9225a9143b7d91a
2018-12-20 07:47:29 +00:00
Chen Xu
9371864133 Merge "refactor dataFailCause" 2018-12-20 07:06:58 +00:00
chen xu
5e499effba refactor dataFailCause
1. add comments for each data fail cause.
2. refactor dataFailCause from enum to int

Bug: 119891533
Test: Build & unit test
Change-Id: Ic453f80a3d0ccd22c6c4c1f4b2c90e2bf40cfbe1
(cherry picked from commit 3016167192)
Merged-in: Ic453f80a3d0ccd22c6c4c1f4b2c90e2bf40cfbe1
2018-12-19 21:59:50 -08:00
Hall Liu
db5b77c275 Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2"
* changes:
  Enable CTS testing for phone account suggestions
  Add the PhoneAccountSuggestionService
2018-12-19 21:36:54 +00:00
Nathan Harold
795641f25e Merge "Annotate getMobileNetworkOperator() as Nullable" 2018-12-19 18:49:56 +00:00
Nathan Harold
ff9932a7aa Merge "Annotate CallbackExecutor in requestCellInfoUpdate" 2018-12-19 18:26:37 +00:00
Chen Xu
dcab1747cf Merge "add carrierid in subscriptionInfo" 2018-12-19 18:12:27 +00:00
Treehugger Robot
0e6e776270 Merge "Fixed toString() printing error" 2018-12-19 17:39:58 +00:00
nchalko
8e217ba958 Merge "Convert to ISO 639-2/B for menu language" 2018-12-19 15:51:30 +00:00
Luke Huang
a89f04a742 Merge "Following commit for asynchronous DNS query API" 2018-12-19 09:07:46 +00:00
Nicolas Geoffray
7baf5a8d73 Merge "Use the boot class loader as parent of system server loader." 2018-12-19 08:35:24 +00:00
chen xu
64e81db02f add carrierid in subscriptionInfo
add carrierid in subscritionInfo so that apps can get
subId, carrierid and other sim related info from a single call

Bug: 119676543
Test: gts SubscriptionInfoTest
Change-Id: Ia2d01ad6bd59565adbf989b4d95e7f64f3ee6d45
(cherry picked from commit 0034bb393c)
Merged-in: Ia2d01ad6bd59565adbf989b4d95e7f64f3ee6d45
2018-12-18 23:21:57 -08:00
Treehugger Robot
6227b441a0 Merge "BluetoothManagerService: catch NoSuchElementException for unlinkToDeath" 2018-12-19 02:41:52 +00:00
Josh Hou
843e387bb6 Merge "Print carrier Id information in toString()" 2018-12-19 01:22:25 +00:00
Treehugger Robot
bce4bd1745 Merge "[view-compiler] DexBuilder: Add check-cast instruction" 2018-12-18 23:27:46 +00:00
Nathan Harold
6655dddcd5 Annotate CallbackExecutor in requestCellInfoUpdate
Add a missing annotation for CallbackExecutor in
requestCellInfoUpdate().

Bug: 120489428
Test: compilation (no functional change)
Change-Id: I33bba9eb59f81aaefa0194b58936d4f809a8d51f
2018-12-18 15:09:28 -08:00
Nathan Harold
13d6b11987 Annotate getMobileNetworkOperator() as Nullable
Add Nullable annotations for the classes that support
getMobileNetworkOperator().

Bug: 118675404
Test: compilation (no functional change)
Change-Id: I914ec8242aff2f578dfe1f97f2e7cfe2d109c7dc
2018-12-18 13:41:25 -08:00
Victor Chang
18576e5ab1 Use ICU in libandroidicu
libicuuc and libicui18n are moved into APEX, but
they have no stable ABI due to the version suffix.

Use libandroidicu which provides stable symbol.
See http://go/apex-stable-icu4c-interface for the design.
See http://aosp/801855 for libandroidicu implementation.

Bug: 117094880
Test: m checkbuild
Change-Id: I1a8e5d7ddb0beed61257706003d93ac4d5f9566f
2018-12-18 20:30:46 +00:00
Treehugger Robot
760e074e50 Merge "NativeHandle.java: dup() with O_CLOEXEC" 2018-12-18 18:36:35 +00:00
Eric Holk
44d8cdfb06 [view-compiler] DexBuilder: Add check-cast instruction
Bug: 111895153
Test: atest

Change-Id: I767e56713fab6beaa6970e58c4fc4d3560cc1304
2018-12-18 16:47:05 +00:00
Paul Duffin
92871b78fa Merge "Add InetAddresses class to API" 2018-12-18 14:11:04 +00:00
Ken Chen
3176e8be7a Merge "Remove 'hasDns' parameter" 2018-12-18 11:17:27 +00:00
Remi NGUYEN VAN
9d5e00321f Merge "Replace InterfaceParams with ifName in DhcpServer" 2018-12-18 03:38:24 +00:00
Nucca Chen
ed30ec8dd1 Merge "Add new netd event callback for changes to NAT64 prefix" 2018-12-18 03:19:45 +00:00
Chienyuan
177156b57f BluetoothManagerService: catch NoSuchElementException for unlinkToDeath
linkToDeath fail will cause NoSuchElementException when following
unlinkToDeath, add try catch to handle it.

Bug: 121104808
Test: build pass
Change-Id: Idc4959331841946e2fc099bdc0fab7c753caf369
2018-12-18 10:40:25 +08:00
Hall Liu
7ddcfd698e Enable CTS testing for phone account suggestions
Add TestApi annotation on PhoneAccountSuggestionService and add sensible
equals and hashCode methods to PhoneAccountSuggestions

Bug: 111455117
Test: CTS
Change-Id: I112e350cc637cb086252c53be5e08596e743537d
2018-12-17 15:27:48 -08:00
Hall Liu
c47570d5d0 Add the PhoneAccountSuggestionService
Add a service base class for phone acct suggestion. Also add associated
aidl plumbing and a new permission for the service to require.

Test: CTS to come
Bug: 111455117
Change-Id: I30d7d004bdddbab3dfbb5408c07775ea56d490fe
2018-12-17 15:27:32 -08:00
Nick Kralevich
1de009645c NativeHandle.java: dup() with O_CLOEXEC
Don't use Os.dup(), as it creates file handles which leak across exec()
boundaries. Instead, use fcntl(F_DUPFD_CLOEXEC);

O_CLOEXEC is essential for ensuring that file descriptors do not leak
across an exec() boundary. Setting O_CLOEXEC ensures that file
descriptors can't linger around unnecessarily in an exec()ed process
which doesn't use them, making more efficient use of resources.
Additionally, O_CLOEXEC is important in ensuring that untrusted
exec()ed code cannot take advantage of leaked file descriptors.

Test: Android compiles and boots
Bug: 120983106
Change-Id: I99a66834cc6b9bb25e1b4daf75384ec6a91ae9e2
2018-12-17 14:48:35 -08:00
Treehugger Robot
bc29242288 Merge "Fix performance-for-range-copy warnings" 2018-12-17 21:54:31 +00:00
Treehugger Robot
ceea877ddd Merge "[view-compiler] Add layout validation" 2018-12-17 21:28:37 +00:00
Chen Xu
18b925a7af Merge "expose Carrier Id related APIs" 2018-12-17 20:56:54 +00:00
Chih-Hung Hsieh
a1b644e88c Fix performance-for-range-copy warnings
Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: Ie481e88025a7a1f3abde8ff63420d5ccd8577e52
2018-12-17 20:00:55 +00:00
Pengquan Meng
d0c404cb21 Merge "Add FrequencyRange comparator to ServiceState" 2018-12-17 19:07:27 +00:00
Chen Xu
610673690c Merge "public API for VideoProfile.CameraCapability with zoom" 2018-12-17 18:24:15 +00:00
Treehugger Robot
88f0e734b7 Merge "[view-compiler] DexBuilder: Add more instructions" 2018-12-17 18:15:11 +00:00
Treehugger Robot
1c3592a865 Merge "Remove uses of libcore.io DropBox and EventLogger" 2018-12-17 15:17:37 +00:00
Paul Duffin
bf76cf7c82 Remove uses of libcore.io DropBox and EventLogger
DropBox and EventLogger provide hooks for use by framework to intercept
messages sent by libcore. However, neither of these mechanisms are
actually used by libcore so there is no point in framework code using
it.

(cherry picked from commit ecb6124d54)

Bug: 119748341
Test: make checkbuild, flash
Merged-In: I9dbd1b6dea92f7441efb6d0a579efd13bc0e5139
Change-Id: I65425e49ab9ad9752b65772d27f788d1a674eeff
2018-12-17 12:10:11 +00:00
Paul Duffin
a2b34f8829 Add InetAddresses class to API
Adds methods needed by app developers to avoid them having to call
non-SDK APIs.

Test: tests added to cts
Bug: 78686891
Change-Id: Ic0eadfdab2b111d5ca4becb753f4fe3557806433
2018-12-17 11:53:33 +00:00
Luke Huang
d0c47e6e1b Following commit for asynchronous DNS query API
Test: built, flashed, booted
      atest CtsNativeNetDnsTestCases

Change-Id: Ia0f54ff684d2ad37ca82d94bad4e4dd582783d85
2018-12-17 16:47:20 +08:00
Treehugger Robot
a4d036e98b Merge "fd_utils: carry over O_CLOEXEC on duplicated FDs" 2018-12-17 07:43:34 +00:00
Josh Hou
619ac4fbab Print carrier Id information in toString()
Bug: 115709816
Test: Build pass
Change-Id: Idd3336c472860ad21121029abecb91aa9b8325ec
Merged-In: Idd3336c472860ad21121029abecb91aa9b8325ec
2018-12-17 07:14:26 +00:00
Remi NGUYEN VAN
155da48519 Replace InterfaceParams with ifName in DhcpServer
The current code only uses InterfaceParams#name, and InterfaceParams is
defined in services/net which DhcpServer cannot depend on once moved to
a separate app.

Test: atest FrameworksNetTests
Bug: b/112869080
Change-Id: I94c7dce33200c111666a9dddde82ac2e66a6794f
2018-12-17 15:15:16 +09:00
Jiyong Park
f50a293bed Show version for APEXes
--show-versioncode now works for APEXes as well.

Bug: 117589375
Test: $ cmd package list packages --apex-only --show-versioncode
package:com.android.conscrypt versionCode:1
package:com.android.resolv versionCode:1
package:com.android.runtime versionCode:1
package:com.android.tzdata versionCode:31000010

Change-Id: I3f29bb560cdbd54d7e8377d09ec261a569f35901
2018-12-17 13:56:40 +09:00