OSDN Git Service

android-x86/frameworks-base.git
5 years agoAdd APIs to remove sub from a group and get subs in the same gorup.
Malcolm Chen [Fri, 21 Dec 2018 00:29:58 +0000 (16:29 -0800)]
Add APIs to remove sub from a group and get subs in the same gorup.
am: be9240bcf0

Change-Id: If82ec04193b9288ff56ac1850899beadaf392d48

5 years agoMerge "Changed uid output parameter from an int array to a list of strings."
Rob Barnes [Thu, 20 Dec 2018 23:53:10 +0000 (15:53 -0800)]
Merge "Changed uid output parameter from an int array to a list of strings."
am: 7eae0132c1

Change-Id: I4786ab7df710d7bc43ae8153b8c0479a1dbabc7d

5 years agoMerge "Changed uid output parameter from an int array to a list of strings."
Rob Barnes [Thu, 20 Dec 2018 23:33:25 +0000 (23:33 +0000)]
Merge "Changed uid output parameter from an int array to a list of strings."

5 years agoMerge changes from topic "fw_container"
yu.chen [Thu, 20 Dec 2018 23:09:31 +0000 (15:09 -0800)]
Merge changes from topic "fw_container"
am: 321b208f0f

Change-Id: I75201a9a25bc6a3445329a3b43bdf68da623b3e6

5 years ago[automerger skipped] DO NOT MERGE Set ContainerLayer for buffer-less surface
yu.chen [Thu, 20 Dec 2018 23:00:45 +0000 (15:00 -0800)]
[automerger skipped] DO NOT MERGE Set ContainerLayer for buffer-less surface
am: ff674ee468  -s ours

Change-Id: Ic161409d5b07942a05595f45c0b511ac5d14e5db

5 years agoImplement construction of container layers
Robert Carr [Thu, 20 Dec 2018 22:59:10 +0000 (14:59 -0800)]
Implement construction of container layers
am: c1ea10447f

Change-Id: I5a8f0080051d2ae66a4a2f99c4a88ef452f0a467

5 years agoMerge changes from topic "fw_container"
Treehugger Robot [Thu, 20 Dec 2018 22:45:18 +0000 (22:45 +0000)]
Merge changes from topic "fw_container"

* changes:
  DO NOT MERGE Set ContainerLayer for buffer-less surface
  DO NOT MERGE: WM: Restrict SC Builder to set a single surface type
  Implement construction of container layers

5 years agoMerge "Statsd: Enable host_supported for libstatslog"
Jack He [Thu, 20 Dec 2018 22:22:31 +0000 (14:22 -0800)]
Merge "Statsd: Enable host_supported for libstatslog"
am: 0d7970f4e9

Change-Id: Idd736a2db55777be3b217a85e7876bc54a42a332

5 years agoMerge "Statsd: Enable host_supported for libstatslog"
Treehugger Robot [Thu, 20 Dec 2018 22:05:58 +0000 (22:05 +0000)]
Merge "Statsd: Enable host_supported for libstatslog"

5 years agoMerge "Adds vishnun to owners files for wm/am"
Vishnu Nair [Thu, 20 Dec 2018 18:53:45 +0000 (10:53 -0800)]
Merge "Adds vishnun to owners files for wm/am"
am: bcf293c674

Change-Id: Ia756229dc6ec818c8ffbd9f703127da1e833798a

5 years agoMerge "Adds vishnun to owners files for wm/am"
Treehugger Robot [Thu, 20 Dec 2018 18:32:42 +0000 (18:32 +0000)]
Merge "Adds vishnun to owners files for wm/am"

5 years agoMerge "Annotate two non-SDK methods known to be used by apps"
David Brazdil [Thu, 20 Dec 2018 13:50:00 +0000 (05:50 -0800)]
Merge "Annotate two non-SDK methods known to be used by apps"
am: de441278e7

Change-Id: I66ec979de4ce5731b144cf5173a0a715d1e8f231

5 years agoMerge "Annotate two non-SDK methods known to be used by apps"
David Brazdil [Thu, 20 Dec 2018 13:36:34 +0000 (13:36 +0000)]
Merge "Annotate two non-SDK methods known to be used by apps"

5 years agoAnnotate two non-SDK methods known to be used by apps
David Brazdil [Thu, 20 Dec 2018 09:32:11 +0000 (09:32 +0000)]
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

5 years agoMerge "Use ICU in libandroidicu"
vichang [Thu, 20 Dec 2018 11:50:45 +0000 (03:50 -0800)]
Merge "Use ICU in libandroidicu"
am: 995c3f5247

Change-Id: I22832314959e41f9ea949c2815edeb07f9130ef8

5 years agoMerge "Use ICU in libandroidicu"
vichang [Thu, 20 Dec 2018 11:37:55 +0000 (11:37 +0000)]
Merge "Use ICU in libandroidicu"

5 years agoMerge "Show version for APEXes"
Jiyong Park [Thu, 20 Dec 2018 09:49:29 +0000 (01:49 -0800)]
Merge "Show version for APEXes"
am: 02f874d564

Change-Id: I5aff77a40b30d2d0acd5361c07c54ecdefa47f3f

5 years agoMerge "Show version for APEXes"
Jiyong Park [Thu, 20 Dec 2018 09:40:29 +0000 (09:40 +0000)]
Merge "Show version for APEXes"

5 years agoStatsd: Enable host_supported for libstatslog
Jack He [Thu, 20 Dec 2018 08:42:31 +0000 (00:42 -0800)]
Statsd: Enable host_supported for libstatslog

* libutils must be used as a static library when compiled on host
* Host does not have Android system properties and hence we cannot
  use <cutils/properties.h>. In fact, properties.cpp is not even
  compiled on host for libcutils. Therefore, this CL adds a check
  for __ANDROID__ macro before including <sys/propoerties.h> and
  before calling properties_get_bool()
* On host, statsd logging will be disabled since host does not
  use statsd for anything

Fixes: 121294178
Test: test drive statsd
Change-Id: I838ff02468c650c5f7d85e68fa5008b98f08ce8c

5 years agoMerge "Revert "[framework] Compile secondary dex files in isolation""
David Brazdil [Thu, 20 Dec 2018 08:38:29 +0000 (00:38 -0800)]
Merge "Revert "[framework] Compile secondary dex files in isolation""
am: 2c0278d35f

Change-Id: I038f2b273aa5767e22995782ff939fe89f91e89d

5 years agoMerge "Revert "[framework] Compile secondary dex files in isolation""
David Brazdil [Thu, 20 Dec 2018 08:25:22 +0000 (08:25 +0000)]
Merge "Revert "[framework] Compile secondary dex files in isolation""

5 years agoRevert "[framework] Compile secondary dex files in isolation"
David Brazdil [Tue, 18 Dec 2018 13:43:55 +0000 (13:43 +0000)]
Revert "[framework] Compile secondary dex files in isolation"

This reverts commit 8a5a708df18c2377c7ec3cb03d406bdc9cb99bd6.
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
6dba50d63375b6738c6e1ad8a8758f181d295d8b 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

5 years agoMerge "Include annotation property values in output."
Mathew Inwood [Thu, 20 Dec 2018 07:56:05 +0000 (23:56 -0800)]
Merge "Include annotation property values in output."
am: 989e767e84

Change-Id: I9bf520dd5e95438f308bdae9e0ff0e2006410741

5 years agoMerge "Include annotation property values in output."
Mathew Inwood [Thu, 20 Dec 2018 07:48:25 +0000 (07:48 +0000)]
Merge "Include annotation property values in output."

5 years agoInclude annotation property values in output.
Mathew Inwood [Fri, 23 Nov 2018 14:57:28 +0000 (14:57 +0000)]
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 bd7077065c211f49b090aa4250b53b58461adfd9)

Merged-In: I71fb1215ad2790751be336b4955c163bb323a4a6
Change-Id: I0b33e2b379076346ce258d93a9225a9143b7d91a

5 years agoMerge "refactor dataFailCause"
Chen Xu [Thu, 20 Dec 2018 07:17:46 +0000 (23:17 -0800)]
Merge "refactor dataFailCause"
am: 9371864133

Change-Id: I95b86281f9e23874a819646f2c90b1609c720e00

5 years agoMerge "refactor dataFailCause"
Chen Xu [Thu, 20 Dec 2018 07:06:58 +0000 (07:06 +0000)]
Merge "refactor dataFailCause"

5 years agorefactor dataFailCause
chen xu [Tue, 18 Dec 2018 02:43:29 +0000 (18:43 -0800)]
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 3016167192d301380120b4eb47cd051200c8b5b8)
Merged-in: Ic453f80a3d0ccd22c6c4c1f4b2c90e2bf40cfbe1

5 years agoAdd APIs to remove sub from a group and get subs in the same gorup.
Malcolm Chen [Tue, 4 Dec 2018 04:29:33 +0000 (20:29 -0800)]
Add APIs to remove sub from a group and get subs in the same gorup.

Add APIs in SubscriptionController so that caller with permissions
can remove subscriptions from a group or get all subscriptions with
the same group.

Bug: 118349116
Test: unittest
Change-Id: Iba4d31b437b372b3f41a6ed23f03b96a685a324c
Merged-In: Iba4d31b437b372b3f41a6ed23f03b96a685a324c

5 years agoAdds vishnun to owners files for wm/am
Vishnu Nair [Thu, 20 Dec 2018 01:13:09 +0000 (17:13 -0800)]
Adds vishnun to owners files for wm/am

Test: n/a
Bug: n/a
Change-Id: Ie17a280d8f4435490b039a8c95f65cd78a8d6cd1

5 years agoMerge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2"
Hall Liu [Wed, 19 Dec 2018 22:04:38 +0000 (14:04 -0800)]
Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2"
am: db5b77c275

Change-Id: Idb4c45a15b082e72a161f2a70e8c1b75c1b369bd

5 years agoAdd the PhoneAccountSuggestionService
Hall Liu [Wed, 19 Dec 2018 21:57:48 +0000 (13:57 -0800)]
Add the PhoneAccountSuggestionService
am: c47570d5d0

Change-Id: Ia7823ff16f1684db71845cb9d92434c448290c9a

5 years agoMerge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2"
Hall Liu [Wed, 19 Dec 2018 21:36:54 +0000 (21:36 +0000)]
Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2"

* changes:
  Enable CTS testing for phone account suggestions
  Add the PhoneAccountSuggestionService

5 years agoMerge "Annotate getMobileNetworkOperator() as Nullable"
Nathan Harold [Wed, 19 Dec 2018 19:12:24 +0000 (11:12 -0800)]
Merge "Annotate getMobileNetworkOperator() as Nullable"
am: 795641f25e

Change-Id: I19c339ed0844766dcb89244cd3e60d68a75d800e

5 years agoMerge "Annotate getMobileNetworkOperator() as Nullable"
Nathan Harold [Wed, 19 Dec 2018 18:49:56 +0000 (18:49 +0000)]
Merge "Annotate getMobileNetworkOperator() as Nullable"

5 years agoMerge "Annotate CallbackExecutor in requestCellInfoUpdate"
Nathan Harold [Wed, 19 Dec 2018 18:36:58 +0000 (10:36 -0800)]
Merge "Annotate CallbackExecutor in requestCellInfoUpdate"
am: ff9932a7aa

Change-Id: I3523ef0d8b4c8b4a3bfedc6c220acae0599a62f0

5 years agoMerge "Annotate CallbackExecutor in requestCellInfoUpdate"
Nathan Harold [Wed, 19 Dec 2018 18:26:37 +0000 (18:26 +0000)]
Merge "Annotate CallbackExecutor in requestCellInfoUpdate"

5 years agoMerge "add carrierid in subscriptionInfo"
Chen Xu [Wed, 19 Dec 2018 18:20:06 +0000 (10:20 -0800)]
Merge "add carrierid in subscriptionInfo"
am: dcab1747cf

Change-Id: I629fb5e0cced6759778435f03a10c3a5cef385b1

5 years agoMerge "add carrierid in subscriptionInfo"
Chen Xu [Wed, 19 Dec 2018 18:12:27 +0000 (18:12 +0000)]
Merge "add carrierid in subscriptionInfo"

5 years agoMerge "Fixed toString() printing error"
jiayanhong [Wed, 19 Dec 2018 17:54:46 +0000 (09:54 -0800)]
Merge "Fixed toString() printing error"
am: 0e6e776270

Change-Id: Id0f5d70a4549480fbb192628ce41796e4da04ad7

5 years agoMerge "Fixed toString() printing error"
Treehugger Robot [Wed, 19 Dec 2018 17:39:58 +0000 (17:39 +0000)]
Merge "Fixed toString() printing error"

5 years agoMerge "Convert to ISO 639-2/B for menu language"
nchalko [Wed, 19 Dec 2018 16:08:51 +0000 (08:08 -0800)]
Merge "Convert to ISO 639-2/B for menu language"
am: 8e217ba958

Change-Id: Iaea64c7fed62cfae3c5359ea062d6498c8b9dc14

5 years agoMerge "Convert to ISO 639-2/B for menu language"
nchalko [Wed, 19 Dec 2018 15:51:30 +0000 (15:51 +0000)]
Merge "Convert to ISO 639-2/B for menu language"

5 years agoMerge "Following commit for asynchronous DNS query API"
Luke Huang [Wed, 19 Dec 2018 09:17:05 +0000 (01:17 -0800)]
Merge "Following commit for asynchronous DNS query API"
am: a89f04a742

Change-Id: Ie45d4c6337178d8912d2f41dc9023d71c004b100

5 years agoMerge "Following commit for asynchronous DNS query API"
Luke Huang [Wed, 19 Dec 2018 09:07:46 +0000 (09:07 +0000)]
Merge "Following commit for asynchronous DNS query API"

5 years agoMerge "Use the boot class loader as parent of system server loader."
Nicolas Geoffray [Wed, 19 Dec 2018 08:55:33 +0000 (00:55 -0800)]
Merge "Use the boot class loader as parent of system server loader."
am: 7baf5a8d73

Change-Id: Id67c494c59bc9e61f81406ac36d9c664adbf97b2

5 years agoMerge "Use the boot class loader as parent of system server loader."
Nicolas Geoffray [Wed, 19 Dec 2018 08:35:24 +0000 (08:35 +0000)]
Merge "Use the boot class loader as parent of system server loader."

5 years agoadd carrierid in subscriptionInfo
chen xu [Fri, 14 Dec 2018 08:14:06 +0000 (00:14 -0800)]
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 0034bb393ca7054bfebb606cedb823e8a49a1920)
Merged-in: Ia2d01ad6bd59565adbf989b4d95e7f64f3ee6d45

5 years agoMerge "BluetoothManagerService: catch NoSuchElementException for unlinkToDeath"
Chienyuan [Wed, 19 Dec 2018 03:02:34 +0000 (19:02 -0800)]
Merge "BluetoothManagerService: catch NoSuchElementException for unlinkToDeath"
am: 6227b441a0

Change-Id: Ibc7628614537aea1dc8996200f6eb272f758f8a7

5 years agoMerge "BluetoothManagerService: catch NoSuchElementException for unlinkToDeath"
Treehugger Robot [Wed, 19 Dec 2018 02:41:52 +0000 (02:41 +0000)]
Merge "BluetoothManagerService: catch NoSuchElementException for unlinkToDeath"

5 years agoMerge "Print carrier Id information in toString()"
Josh Hou [Wed, 19 Dec 2018 01:40:46 +0000 (17:40 -0800)]
Merge "Print carrier Id information in toString()"
am: 843e387bb6

Change-Id: Iee39cd88b060a5bd2dcbfa4bc6c3b6e6dba8c62a

5 years agoMerge "Print carrier Id information in toString()"
Josh Hou [Wed, 19 Dec 2018 01:22:25 +0000 (01:22 +0000)]
Merge "Print carrier Id information in toString()"

5 years agoMerge "[view-compiler] DexBuilder: Add check-cast instruction"
Eric Holk [Tue, 18 Dec 2018 23:46:05 +0000 (15:46 -0800)]
Merge "[view-compiler] DexBuilder: Add check-cast instruction"
am: bce4bd1745

Change-Id: If8acd8f77f4eb54b0efacabaff8a09bee9ce3bb9

5 years agoMerge "[view-compiler] DexBuilder: Add check-cast instruction"
Treehugger Robot [Tue, 18 Dec 2018 23:27:46 +0000 (23:27 +0000)]
Merge "[view-compiler] DexBuilder: Add check-cast instruction"

5 years agoAnnotate CallbackExecutor in requestCellInfoUpdate
Nathan Harold [Tue, 18 Dec 2018 22:58:27 +0000 (14:58 -0800)]
Annotate CallbackExecutor in requestCellInfoUpdate

Add a missing annotation for CallbackExecutor in
requestCellInfoUpdate().

Bug: 120489428
Test: compilation (no functional change)
Change-Id: I33bba9eb59f81aaefa0194b58936d4f809a8d51f

5 years agoAnnotate getMobileNetworkOperator() as Nullable
Nathan Harold [Tue, 18 Dec 2018 21:40:08 +0000 (13:40 -0800)]
Annotate getMobileNetworkOperator() as Nullable

Add Nullable annotations for the classes that support
getMobileNetworkOperator().

Bug: 118675404
Test: compilation (no functional change)
Change-Id: I914ec8242aff2f578dfe1f97f2e7cfe2d109c7dc

5 years agoUse ICU in libandroidicu
Victor Chang [Tue, 20 Nov 2018 18:44:46 +0000 (18:44 +0000)]
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

5 years agoMerge "NativeHandle.java: dup() with O_CLOEXEC"
Nick Kralevich [Tue, 18 Dec 2018 19:06:36 +0000 (11:06 -0800)]
Merge "NativeHandle.java: dup() with O_CLOEXEC"
am: 760e074e50

Change-Id: Ic65f0a1fa80b1b45300cb909f3f2a7786debc2bf

5 years agoMerge "Add InetAddresses class to API"
Paul Duffin [Tue, 18 Dec 2018 18:44:07 +0000 (10:44 -0800)]
Merge "Add InetAddresses class to API"
am: 92871b78fa

Change-Id: If821b32c686fd603035050c09598384796f72fb2

5 years agoMerge "Remove 'hasDns' parameter"
Ken Chen [Tue, 18 Dec 2018 18:38:59 +0000 (10:38 -0800)]
Merge "Remove 'hasDns' parameter"
am: 3176e8be7a

Change-Id: I7efc2ff04cf65420b02ddf2cf7a13b640e37ef77

5 years agoMerge "NativeHandle.java: dup() with O_CLOEXEC"
Treehugger Robot [Tue, 18 Dec 2018 18:36:35 +0000 (18:36 +0000)]
Merge "NativeHandle.java: dup() with O_CLOEXEC"

5 years ago[view-compiler] DexBuilder: Add check-cast instruction
Eric Holk [Mon, 17 Dec 2018 21:35:34 +0000 (13:35 -0800)]
[view-compiler] DexBuilder: Add check-cast instruction

Bug: 111895153
Test: atest

Change-Id: I767e56713fab6beaa6970e58c4fc4d3560cc1304

5 years agoMerge "Add InetAddresses class to API"
Paul Duffin [Tue, 18 Dec 2018 14:11:04 +0000 (14:11 +0000)]
Merge "Add InetAddresses class to API"

5 years agoMerge "Remove 'hasDns' parameter"
Ken Chen [Tue, 18 Dec 2018 11:17:27 +0000 (11:17 +0000)]
Merge "Remove 'hasDns' parameter"

5 years agoMerge "Replace InterfaceParams with ifName in DhcpServer"
Remi NGUYEN VAN [Tue, 18 Dec 2018 03:51:25 +0000 (19:51 -0800)]
Merge "Replace InterfaceParams with ifName in DhcpServer"
am: 9d5e00321f

Change-Id: Id2863d3c148b109c74ed37a0c2be7a4ddfd4f923

5 years agoMerge "Replace InterfaceParams with ifName in DhcpServer"
Remi NGUYEN VAN [Tue, 18 Dec 2018 03:38:24 +0000 (03:38 +0000)]
Merge "Replace InterfaceParams with ifName in DhcpServer"

5 years agoMerge "Add new netd event callback for changes to NAT64 prefix"
Nucca Chen [Tue, 18 Dec 2018 03:38:20 +0000 (19:38 -0800)]
Merge "Add new netd event callback for changes to NAT64 prefix"
am: ed30ec8dd1

Change-Id: I5220971458e1491ccde1d8eeef0f91a9534aec75

5 years agoMerge "Add new netd event callback for changes to NAT64 prefix"
Nucca Chen [Tue, 18 Dec 2018 03:19:45 +0000 (03:19 +0000)]
Merge "Add new netd event callback for changes to NAT64 prefix"

5 years agoBluetoothManagerService: catch NoSuchElementException for unlinkToDeath
Chienyuan [Tue, 18 Dec 2018 02:40:25 +0000 (10:40 +0800)]
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

5 years agoEnable CTS testing for phone account suggestions
Hall Liu [Tue, 11 Dec 2018 02:38:11 +0000 (18:38 -0800)]
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

5 years agoAdd the PhoneAccountSuggestionService
Hall Liu [Fri, 7 Dec 2018 01:53:25 +0000 (17:53 -0800)]
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

5 years agoNativeHandle.java: dup() with O_CLOEXEC
Nick Kralevich [Mon, 17 Dec 2018 22:41:59 +0000 (14:41 -0800)]
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

5 years agoMerge "Fix performance-for-range-copy warnings"
Chih-Hung Hsieh [Mon, 17 Dec 2018 22:08:29 +0000 (14:08 -0800)]
Merge "Fix performance-for-range-copy warnings"
am: bc29242288

Change-Id: I96e7ca53f2878fd9f75ac14999a02a96a96bb93e

5 years agoMerge "Fix performance-for-range-copy warnings"
Treehugger Robot [Mon, 17 Dec 2018 21:54:31 +0000 (21:54 +0000)]
Merge "Fix performance-for-range-copy warnings"

5 years agoMerge "[view-compiler] Add layout validation"
Eric Holk [Mon, 17 Dec 2018 21:38:46 +0000 (13:38 -0800)]
Merge "[view-compiler] Add layout validation"
am: ceea877ddd

Change-Id: Ia95ec8ccc77c4be60f018d99391067f3b8b02fd2

5 years agoMerge "[view-compiler] Add layout validation"
Treehugger Robot [Mon, 17 Dec 2018 21:28:37 +0000 (21:28 +0000)]
Merge "[view-compiler] Add layout validation"

5 years agoMerge "expose Carrier Id related APIs"
Chen Xu [Mon, 17 Dec 2018 21:20:03 +0000 (13:20 -0800)]
Merge "expose Carrier Id related APIs"
am: 18b925a7af

Change-Id: I517cd9638544ced0117a7222b21c92940b52885e

5 years agoMerge "expose Carrier Id related APIs"
Chen Xu [Mon, 17 Dec 2018 20:56:54 +0000 (20:56 +0000)]
Merge "expose Carrier Id related APIs"

5 years agoFix performance-for-range-copy warnings
Chih-Hung Hsieh [Tue, 11 Dec 2018 19:09:20 +0000 (11:09 -0800)]
Fix performance-for-range-copy warnings

Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: Ie481e88025a7a1f3abde8ff63420d5ccd8577e52

5 years agoMerge "Add FrequencyRange comparator to ServiceState"
Pengquan Meng [Mon, 17 Dec 2018 19:16:56 +0000 (11:16 -0800)]
Merge "Add FrequencyRange comparator to ServiceState"
am: d0c404cb21

Change-Id: I4b20c8a2d38a6f64530a281a3db9df18a593e845

5 years agoMerge "Add FrequencyRange comparator to ServiceState"
Pengquan Meng [Mon, 17 Dec 2018 19:07:27 +0000 (19:07 +0000)]
Merge "Add FrequencyRange comparator to ServiceState"

5 years agoMerge "public API for VideoProfile.CameraCapability with zoom"
Chen Xu [Mon, 17 Dec 2018 18:38:40 +0000 (10:38 -0800)]
Merge "public API for VideoProfile.CameraCapability with zoom"
am: 610673690c

Change-Id: Iead5b876acbc2591f3074c0d0829ca13cf44d6e3

5 years agoMerge "[view-compiler] DexBuilder: Add more instructions"
Eric Holk [Mon, 17 Dec 2018 18:30:34 +0000 (10:30 -0800)]
Merge "[view-compiler] DexBuilder: Add more instructions"
am: 88f0e734b7

Change-Id: Ic6a082d4dad97670e5105503272f13dec14b3cfb

5 years agoMerge "public API for VideoProfile.CameraCapability with zoom"
Chen Xu [Mon, 17 Dec 2018 18:24:15 +0000 (18:24 +0000)]
Merge "public API for VideoProfile.CameraCapability with zoom"

5 years agoMerge "[view-compiler] DexBuilder: Add more instructions"
Treehugger Robot [Mon, 17 Dec 2018 18:15:11 +0000 (18:15 +0000)]
Merge "[view-compiler] DexBuilder: Add more instructions"

5 years agoMerge "Remove uses of libcore.io DropBox and EventLogger"
Paul Duffin [Mon, 17 Dec 2018 15:30:16 +0000 (07:30 -0800)]
Merge "Remove uses of libcore.io DropBox and EventLogger"
am: 1c3592a865

Change-Id: Ia0899f71a2207bd9b498883222588cc245c697da

5 years agoMerge "Remove uses of libcore.io DropBox and EventLogger"
Treehugger Robot [Mon, 17 Dec 2018 15:17:37 +0000 (15:17 +0000)]
Merge "Remove uses of libcore.io DropBox and EventLogger"

5 years agoRemove uses of libcore.io DropBox and EventLogger
Paul Duffin [Thu, 13 Dec 2018 12:19:52 +0000 (12:19 +0000)]
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 ecb6124d540975d8f2466bc9d9bf4b79bc6ff972)

Bug: 119748341
Test: make checkbuild, flash
Merged-In: I9dbd1b6dea92f7441efb6d0a579efd13bc0e5139
Change-Id: I65425e49ab9ad9752b65772d27f788d1a674eeff

5 years agoAdd InetAddresses class to API
Paul Duffin [Thu, 11 Oct 2018 14:21:46 +0000 (15:21 +0100)]
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

5 years agoFollowing commit for asynchronous DNS query API
Luke Huang [Mon, 17 Dec 2018 07:54:18 +0000 (15:54 +0800)]
Following commit for asynchronous DNS query API

Test: built, flashed, booted
      atest CtsNativeNetDnsTestCases

Change-Id: Ia0f54ff684d2ad37ca82d94bad4e4dd582783d85

5 years agoMerge "fd_utils: carry over O_CLOEXEC on duplicated FDs"
Nick Kralevich [Mon, 17 Dec 2018 08:12:09 +0000 (00:12 -0800)]
Merge "fd_utils: carry over O_CLOEXEC on duplicated FDs"
am: a4d036e98b

Change-Id: I4731e4838e1306baff0cf03852edacffdcb1c223

5 years agoMerge "fd_utils: carry over O_CLOEXEC on duplicated FDs"
Treehugger Robot [Mon, 17 Dec 2018 07:43:34 +0000 (07:43 +0000)]
Merge "fd_utils: carry over O_CLOEXEC on duplicated FDs"

5 years agoPrint carrier Id information in toString()
Josh Hou [Sun, 9 Dec 2018 02:58:06 +0000 (10:58 +0800)]
Print carrier Id information in toString()

Bug: 115709816
Test: Build pass
Change-Id: Idd3336c472860ad21121029abecb91aa9b8325ec
Merged-In: Idd3336c472860ad21121029abecb91aa9b8325ec

5 years agoReplace InterfaceParams with ifName in DhcpServer
Remi NGUYEN VAN [Wed, 5 Dec 2018 06:09:08 +0000 (15:09 +0900)]
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

5 years agoShow version for APEXes
Jiyong Park [Mon, 17 Dec 2018 04:54:40 +0000 (13:54 +0900)]
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

5 years agoMerge changes from topic "statsd-allow-bytes-type"
Yao Chen [Mon, 17 Dec 2018 02:49:45 +0000 (18:49 -0800)]
Merge changes from topic "statsd-allow-bytes-type"
am: 783ec04909

Change-Id: Ic27a992cdacda04a5b62d01de44cf1b92164e58e

5 years agoMerge changes from topic "statsd-allow-bytes-type"
Treehugger Robot [Mon, 17 Dec 2018 02:33:20 +0000 (02:33 +0000)]
Merge changes from topic "statsd-allow-bytes-type"

* changes:
  Add byte size of the bytes fields to statslog c++ APIs.
  Skip writing message field in an atom if it's empty
  Adding tests and move launcher.proto
  Add launcher.proto to atoms.proto
  Allow atoms to log fields in bytes format.

5 years agoAdd byte size of the bytes fields to statslog c++ APIs.
Yao Chen [Thu, 6 Dec 2018 18:34:25 +0000 (10:34 -0800)]
Add byte size of the bytes fields to statslog c++ APIs.

The proto binary data can contain '\0's and in the native layer,
the current liblog api would convert that into string and thus
the data is truncated.

This CL adds a "size_t bytes_field_len" after the bytes fields so that
we can correctly pass the data from JAVA to native.

Java StatsLog.write() APIs remain the same

Bug: 120635548
Test: test_drive with atom 103
Change-Id: I34f1c4ddd6a4ec5f3604b0c67a47a5399e3c6ddd
Merged-In: I34f1c4ddd6a4ec5f3604b0c67a47a5399e3c6ddd
(cherry picked from commit 1fe9f594984b47144b958f0ac423eeffc56b62ea)

5 years agoSkip writing message field in an atom if it's empty
Yao Chen [Thu, 29 Nov 2018 17:39:45 +0000 (09:39 -0800)]
Skip writing message field in an atom if it's empty

Test: unit test added
Bug: 120635548
Change-Id: I825b1ce526944a20fe65705508ad180ece37492c
Merged-In: I825b1ce526944a20fe65705508ad180ece37492c
(cherry picked from commit 8e6f9983009eadf32d05ad65e38906d3985bc9ba)

5 years agoAdding tests and move launcher.proto
Yao Chen [Wed, 24 Oct 2018 21:09:20 +0000 (14:09 -0700)]
Adding tests and move launcher.proto

Test: statsd_test
Bug: 120635548
Change-Id: I0655f70098d78f8f6dc9381921c4a687d2195bd4
Merged-In: I0655f70098d78f8f6dc9381921c4a687d2195bd4
(cherry picked from commit 8c4338614513f59e53c2d7a164a05d309a470e81)