OSDN Git Service

android-x86/frameworks-base.git
5 years agoUpdate API file for libcore additions
Adam Vartanian [Mon, 5 Nov 2018 15:57:52 +0000 (15:57 +0000)]
Update API file for libcore additions

Bug: 110403421
Test: cts -m CtsLibcoreTestCases
Change-Id: I67937aba279a99963e4290ff1d11154040ba0f94

5 years agoMerge "Remove sun.... libcore classes from light grey/vendor lists"
Treehugger Robot [Mon, 5 Nov 2018 13:46:02 +0000 (13:46 +0000)]
Merge "Remove sun.... libcore classes from light grey/vendor lists"

5 years agoMerge "[Call Screening]Programmatically changing the default call screening app."
Tony Zhu [Mon, 5 Nov 2018 10:35:27 +0000 (10:35 +0000)]
Merge "[Call Screening]Programmatically changing the default call screening app."

5 years agoMerge "Extend onDnsEvent callback to report more fields."
Junyu Lai [Mon, 5 Nov 2018 04:29:47 +0000 (04:29 +0000)]
Merge "Extend onDnsEvent callback to report more fields."

5 years agoMerge changes from topic "protobuf3.5.2"
Colin Cross [Mon, 5 Nov 2018 01:13:15 +0000 (01:13 +0000)]
Merge changes from topic "protobuf3.5.2"

* changes:
  Adapt to google::protobuf::uint64 type change
  Convert statsd_test and statsd_benchmark to proto lite

5 years agoMerge "Add key for sample rate and bits per sample"
Marco Nelissen [Sun, 4 Nov 2018 00:44:58 +0000 (00:44 +0000)]
Merge "Add key for sample rate and bits per sample"

5 years agoMerge "Changed the onQualifiedNetworkTypesChanged API"
Jack Yu [Sat, 3 Nov 2018 15:32:55 +0000 (15:32 +0000)]
Merge "Changed the onQualifiedNetworkTypesChanged API"

5 years agoMerge "Track google-benchmark API changes."
Treehugger Robot [Sat, 3 Nov 2018 05:11:09 +0000 (05:11 +0000)]
Merge "Track google-benchmark API changes."

5 years agoMerge "Replace use of deprecated androidx-test build rule."
Treehugger Robot [Sat, 3 Nov 2018 04:50:12 +0000 (04:50 +0000)]
Merge "Replace use of deprecated androidx-test build rule."

5 years agoMerge "ResetListener in StorageManagerService"
Treehugger Robot [Sat, 3 Nov 2018 02:34:10 +0000 (02:34 +0000)]
Merge "ResetListener in StorageManagerService"

5 years agoResetListener in StorageManagerService
Risan [Wed, 31 Oct 2018 01:10:12 +0000 (10:10 +0900)]
ResetListener in StorageManagerService

Bug: 110380403
Test: Manual test in ARC++, prototyped a way that reset reaches ARC++
service.
Change-Id: Icc7dcc8b5c726ed9f61226569227c4d47f44b386
Merged-In: Icc7dcc8b5c726ed9f61226569227c4d47f44b386

5 years agoMerge "Close statsd log socket before zygote fork()."
Christian Wailes [Fri, 2 Nov 2018 21:07:02 +0000 (21:07 +0000)]
Merge "Close statsd log socket before zygote fork()."

5 years agoReplace use of deprecated androidx-test build rule.
Brett Chabot [Thu, 1 Nov 2018 23:56:30 +0000 (16:56 -0700)]
Replace use of deprecated androidx-test build rule.

Test: m -j checkbuild

Change-Id: I47e4761f054087694ac1126e7b9a19d57f880479
Merged-In: I6482ff8afbae39ffd0296aeac7b29ba019daf3a6

5 years agoAdapt to google::protobuf::uint64 type change
Colin Cross [Fri, 26 Oct 2018 20:04:41 +0000 (13:04 -0700)]
Adapt to google::protobuf::uint64 type change

Protobuf 3.5.2 redefines google::protobuf::uint64 from unsigned long
long to uint64_t, which is sometimes unsigned long and sometimes
unsigned long long.  Use PRIu64 to print it, and add an implementation
of ProtoOutputStream::write for long.

Bug: 117607748
Test: m checkbuild
Change-Id: I48912f58e2f63f4a98c3aefaa4f78cc2c719bb68

5 years agoConvert statsd_test and statsd_benchmark to proto lite
Colin Cross [Sat, 27 Oct 2018 06:28:02 +0000 (23:28 -0700)]
Convert statsd_test and statsd_benchmark to proto lite

libplatformprotos for the device is compiled using proto lite, and
statsd_test and statsd_benchmark have protos that reference the
libplatformprotos.  With protobuf 3.5.2 compiling a full proto
against a lite proto doesn't work.  Convert them to lite.  Requires
adding the protobuf internal protos to the sources,
libprotobuf-cpp-lite does not contain the compiled version of
field_options.proto.

Bug: 117607748
Test: m checkbuild
Change-Id: I6a618c4118972c0e5ffb07a361ac6612b9069c5d

5 years agoChanged the onQualifiedNetworkTypesChanged API
Jack Yu [Fri, 2 Nov 2018 18:34:55 +0000 (11:34 -0700)]
Changed the onQualifiedNetworkTypesChanged API

Changed the first parameter from apnType to apnTypes so the
caller can update multiple APN types in one single call. This is
useful because in some cases one single APN setting can serve
multiple APN types.

Test: Manual
Bug: 73659459
Change-Id: Ie3274c76b42a67d2f41b41195a240052c2096f9f

5 years agoMerge "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)"
Shuo Qian [Fri, 2 Nov 2018 17:46:43 +0000 (17:46 +0000)]
Merge "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)"

5 years agoMerge "hidden API getCertsFromCarrierPrivilegeAccessRules"
Chen Xu [Fri, 2 Nov 2018 17:29:30 +0000 (17:29 +0000)]
Merge "hidden API getCertsFromCarrierPrivilegeAccessRules"

5 years agoMerge "Change the feature flag for Hearing Aid behavior"
Stanley Tng [Fri, 2 Nov 2018 15:28:11 +0000 (15:28 +0000)]
Merge "Change the feature flag for Hearing Aid behavior"

5 years agoAdd key for sample rate and bits per sample
Daniel Bonnevier [Mon, 26 May 2014 09:59:50 +0000 (11:59 +0200)]
Add key for sample rate and bits per sample

Add new keys for sample rate and bits per sample.
This makes it possible to indicate the specification of
the music files on application.

Bug: 112986969
Test: Check if sample rate and bits per sample can be retrieved

Change-Id: Ie5a90800297a0a7c2dd6f3a2bdf9e88c9221bee1

5 years agoMerge "Remove non-SDK API toast"
David Brazdil [Fri, 2 Nov 2018 10:17:28 +0000 (10:17 +0000)]
Merge "Remove non-SDK API toast"

5 years agoMerge "Deprecated the resource config_tether_apndata"
Jack Yu [Fri, 2 Nov 2018 06:54:03 +0000 (06:54 +0000)]
Merge "Deprecated the resource config_tether_apndata"

5 years agohidden API getCertsFromCarrierPrivilegeAccessRules
chen xu [Wed, 31 Oct 2018 01:18:43 +0000 (18:18 -0700)]
hidden API getCertsFromCarrierPrivilegeAccessRules

Bug: 110559381
Test: unit test & manual test
Change-Id: I7b2c946f1f4db08e1c071fe6eb9f3771a592fd47
Merged-in: I7b2c946f1f4db08e1c071fe6eb9f3771a592fd47

5 years agoMerge "Protect TelephonyManager.ACTION_SECRET_CODE"
Hall Liu [Fri, 2 Nov 2018 01:23:43 +0000 (01:23 +0000)]
Merge "Protect TelephonyManager.ACTION_SECRET_CODE"

5 years agoMerge "Add TestApi to get RTT support status"
Hall Liu [Fri, 2 Nov 2018 00:43:27 +0000 (00:43 +0000)]
Merge "Add TestApi to get RTT support status"

5 years agoMerge "set O_CLOEXEC on /dev/tun open"
Treehugger Robot [Thu, 1 Nov 2018 23:52:27 +0000 (23:52 +0000)]
Merge "set O_CLOEXEC on /dev/tun open"

5 years agoMerge "Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call."
Tyler Gunn [Thu, 1 Nov 2018 22:42:22 +0000 (22:42 +0000)]
Merge "Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call."

5 years agoClose statsd log socket before zygote fork().
Howard Ro [Tue, 2 Oct 2018 19:08:28 +0000 (12:08 -0700)]
Close statsd log socket before zygote fork().

MetricsLogger will start to write to statsd instead of logd. Zygote uses
MetricsLogger too. So we need to close statsd socket before zygote fork() is
called (see b/30963384 for context).

Bug: 110537511
Test: Manually verified that it successfully boots with no crash with
ag/5112579 and ag/5169664 (together)

Change-Id: Id550fbd5ac2f6ca47d3293c12fb537fafa3f33a0
Merged-In: Id550fbd5ac2f6ca47d3293c12fb537fafa3f33a0

5 years agoMerge "refactor resetNv API to resetRadioConfig and rebootRadio"
Chen Xu [Thu, 1 Nov 2018 21:29:39 +0000 (21:29 +0000)]
Merge "refactor resetNv API to resetRadioConfig and rebootRadio"

5 years agoProtect TelephonyManager.ACTION_SECRET_CODE
Hall Liu [Thu, 1 Nov 2018 21:27:02 +0000 (14:27 -0700)]
Protect TelephonyManager.ACTION_SECRET_CODE

Add android.telephony.action.SECRET_CODE to protected broadcast list

Bug: 117111842
Test: manual
Change-Id: Ide0b60ebee6cb4ff4c5c3ae864e51cc2d2d81eb4

5 years agoDeprecated the resource config_tether_apndata
Jack Yu [Wed, 31 Oct 2018 00:39:14 +0000 (17:39 -0700)]
Deprecated the resource config_tether_apndata

The resource has been migrated into the database so we can remove
this resource now.

Test: Telephony sanity tests
Bug: 113942223
Merged-In: I1b65a8bee81f1d190c587cf65cb55da64a184284
Change-Id: I1b65a8bee81f1d190c587cf65cb55da64a184284
(cherry picked from commit 25b7a917f850f5d46826ca594f61708954739575)

5 years agoMerge "Added new members as SystemUI owners"
Selim Cinek [Thu, 1 Nov 2018 21:07:41 +0000 (21:07 +0000)]
Merge "Added new members as SystemUI owners"

5 years agoAdded new members as SystemUI owners
Selim Cinek [Tue, 30 Oct 2018 16:59:28 +0000 (12:59 -0400)]
Added new members as SystemUI owners

Bug: 118673253
Test: see owners file
Merged-In: Ie49a091bf16d184f86264badf2d99fe13066eecb
Change-Id: Ie49a091bf16d184f86264badf2d99fe13066eecb

5 years agoMerge "Add hyunyoungs and yro to the OWNERS file"
Hyunyoung Song [Thu, 1 Nov 2018 20:38:05 +0000 (20:38 +0000)]
Merge "Add hyunyoungs and yro to the OWNERS file"

5 years agoMerge "Change default of hide LTE+ config to true"
Hall Liu [Thu, 1 Nov 2018 20:10:59 +0000 (20:10 +0000)]
Merge "Change default of hide LTE+ config to true"

5 years agoMerge "Fix local reference table overflow error."
Treehugger Robot [Thu, 1 Nov 2018 20:00:46 +0000 (20:00 +0000)]
Merge "Fix local reference table overflow error."

5 years agoMerge "Revert "Need to check empty not null for String""
Chen Xu [Thu, 1 Nov 2018 20:00:36 +0000 (20:00 +0000)]
Merge "Revert "Need to check empty not null for String""

5 years agoFix local reference table overflow error.
xiaomi/hanli [Wed, 19 Jul 2017 10:53:03 +0000 (18:53 +0800)]
Fix local reference table overflow error.

table dump:
241 of android.media.AudioMixPort (241 unique instances)
241 of android.media.AudioMixPortConfig (241 unique instances)
8 of android.media.AudioDevicePortConfig (8 unique instances)
8 of android.media.AudioDevicePort (8 unique instances)

Test: Basic audio sanity
Bug: 64554806
Change-Id: Ice7a866c6a336e54829266aedca2f01e7b75e34b
Signed-off-by: xiaomi/hanli <hl09083253cy@126.com>
5 years agoset O_CLOEXEC on /dev/tun open
Nick Kralevich [Thu, 1 Nov 2018 19:21:35 +0000 (12:21 -0700)]
set O_CLOEXEC on /dev/tun open

Ensure that this file descriptor cannot leak across exec boundaries, in
the unlikely event that system_server does an exec().

Test: device boots and no problems.
Change-Id: I45691b7780026ea288e57db73fcc88820a2b06b1

5 years agoMerge "Make SignalStrength#INVALID public"
Shuo Qian [Thu, 1 Nov 2018 18:06:25 +0000 (18:06 +0000)]
Merge "Make SignalStrength#INVALID public"

5 years agoAdd hyunyoungs and yro to the OWNERS file
Hyunyoung Song [Thu, 1 Nov 2018 17:40:41 +0000 (10:40 -0700)]
Add hyunyoungs and yro to the OWNERS file

Bug: 113043444
Test: no need
Change-Id: I2e1d2c4222c82cea80c87b81369291b13c7dba15

5 years agoMerge "Fixes context for tiles without longClick"
Fabian Kozynski [Thu, 1 Nov 2018 16:52:30 +0000 (16:52 +0000)]
Merge "Fixes context for tiles without longClick"

5 years agoRevert "Need to check empty not null for String"
Chen Xu [Thu, 1 Nov 2018 16:40:42 +0000 (16:40 +0000)]
Revert "Need to check empty not null for String"

This reverts commit 77680bd4dbf69fe22a41b73c479096bd418aac8a.

Reason for revert: this change caused no wcdma signal bar because "" is a valid default value from carrier config

Bug: 118800169
Change-Id: I0285827c84edda88f7f0d287d254ba89c9931382

5 years agoChange the feature flag for Hearing Aid behavior
Stanley Tng [Fri, 28 Sep 2018 00:44:14 +0000 (17:44 -0700)]
Change the feature flag for Hearing Aid behavior

Previously, this feature flag for Hearing Aid Profile is to disable the
profile on supported phone . This CL will reverse the logic and is
to enable the Hearing Aid profile on unsupported phone. This is to allow
testing of this profile on unsupported phone.

Test: Manual tests on different types of phones
Bug: 116861680
Change-Id: Ic8db4445a58942c5f75598dce0503f6670ff9c7b
Merged-In: Ic8db4445a58942c5f75598dce0503f6670ff9c7b
(cherry picked from commit afa1f9c5c50ede877c447033deff4fd00a7b5635)

5 years agoFixes context for tiles without longClick
Fabian Kozynski [Mon, 29 Oct 2018 16:27:42 +0000 (12:27 -0400)]
Fixes context for tiles without longClick

QSTile can declare whether it doesn't support (has no effect) long click
and then TalkBack will not report it as an available option.

Test: manual & atest
Change-Id: Iec21181f4308c7c8c4962f191fa0787e053ae944
Merged-In: Iec21181f4308c7c8c4962f191fa0787e053ae944
Fixes: 117921787

5 years agoMerge "Add a more flexible queryRecentDocuments"
Treehugger Robot [Thu, 1 Nov 2018 13:11:09 +0000 (13:11 +0000)]
Merge "Add a more flexible queryRecentDocuments"

5 years agoRemove sun.... libcore classes from light grey/vendor lists
Paul Duffin [Wed, 31 Oct 2018 10:34:51 +0000 (10:34 +0000)]
Remove sun.... libcore classes from light grey/vendor lists

Removes all the sun... libcore classes from the light grey/vendor
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: I8dadc9215e929c5047fdfe8241c430544e963c19
ge-Id: I2a9ed3fbfb0c703eafcf431b93f8a419c5ec83a3

5 years agoMerge "Remove java.... libcore classes from light grey/vendor lists"
Paul Duffin [Thu, 1 Nov 2018 10:22:53 +0000 (10:22 +0000)]
Merge "Remove java.... libcore classes from light grey/vendor lists"

5 years agoRemove non-SDK API toast
David Brazdil [Mon, 29 Oct 2018 16:49:13 +0000 (16:49 +0000)]
Remove non-SDK API toast

It served its purpose but it's time to remove it.

Test: m
Change-Id: Idc36cacae89e74f5ce01bcf51dce24cdedfda40f

5 years agoMerge "Support backward compatibility for restricted network permission"
Paul Hu [Thu, 1 Nov 2018 07:20:05 +0000 (07:20 +0000)]
Merge "Support backward compatibility for restricted network permission"

5 years agoMerge "interface-related commands porting"
Luke Huang [Thu, 1 Nov 2018 07:09:54 +0000 (07:09 +0000)]
Merge "interface-related commands porting"

5 years agorefactor resetNv API to resetRadioConfig and rebootRadio
chen xu [Sat, 27 Oct 2018 00:37:30 +0000 (17:37 -0700)]
refactor resetNv API to resetRadioConfig and rebootRadio

Bug: 116476729
Test: telephony unit test and Manual test
Change-Id: I420da20f2290d1fc3962f7c14a9ca4999eafbde8
Merged-in: I420da20f2290d1fc3962f7c14a9ca4999eafbde8

5 years agoSupport backward compatibility for restricted network permission
paulhu [Thu, 1 Nov 2018 02:38:11 +0000 (10:38 +0800)]
Support backward compatibility for restricted network permission

Some native daemons legacy design work with SYSTEM_UID. If none of
SYSTEM_UID apps declare the restricted network permission, it will
result in permission denial in daemons. Allow SYSTEM_UID in the
devices shipped before Q to support backward compatibility.

Bug:114245686
Test: 1. runtest frameworks-net
      2. atest FrameworksNetTests
      3. Native daemons with SYSTEM_UID can work normally

Change-Id: I6f3f0d83bcae74ef5389535b528af3baf649fa48

5 years agoChange default of hide LTE+ config to true
Hall Liu [Thu, 1 Nov 2018 01:17:38 +0000 (18:17 -0700)]
Change default of hide LTE+ config to true

Hide the LTE+ icon by default.

Change-Id: I9d9fbc283ac9d5b75df3818191253d84a5e6c36c
Fixes: 118775808
Test: manual

5 years agoAdd TestApi to get RTT support status
Hall Liu [Thu, 1 Nov 2018 00:03:34 +0000 (17:03 -0700)]
Add TestApi to get RTT support status

Add a TestApi for CTS to be able to tell whether a device supports RTT
on the current carrier.

Bug: 113069001
Test: manual
Change-Id: I135338b7b83f888d454d09dddd30c72197fe0533

5 years agoMerge "Add a new carrier config to support emergency dialer shortcut feature."
Chuck Liao [Wed, 31 Oct 2018 23:58:21 +0000 (23:58 +0000)]
Merge "Add a new carrier config to support emergency dialer shortcut feature."

5 years agoAdd a more flexible queryRecentDocuments
Risan [Tue, 30 Oct 2018 23:57:56 +0000 (17:57 -0600)]
Add a more flexible queryRecentDocuments

The existing queryRecentDocuments have a hard limit 64. However, case
like ARC++ wishes to have a more flexible limit that can be passed as an
extra parameter. This new API will gracefully degrade to the old API to
maintain backward compatibility with old providers.

Bug: 111288304
Test: manual test (patched the MediaDocumentsProvider, and test calling
the new API):
1. Test that passing Bundle with QUERY_ARG_LIMIT=5 is honored and
returned is limited to 5.
2. Test that passing null will release the limit to default 64.
3. Test that removing MediaProvider implementation for new method and
implement the old method will automatically redirect the call to old
method (backward compatible with old providers).

Change-Id: I37b1785b94f3e9cf09128fbf1e8779a4447fe7a9

5 years agoAdd PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call.
Tyler Gunn [Fri, 22 Jun 2018 22:52:27 +0000 (15:52 -0700)]
Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call.

This property is used to report the voip audio mode requested by the
underlying connection.  This is useful for ringing calls and held calls
where the current system audio mode will not necessarily match what the
Connection would use.

Test: Added and ran new CTS tests.
Bug: 110540796
Change-Id: I8c26db4b35de4d40d7b76b3c1adc93223afa104b

5 years agoMerge "Allow zygote to keep socket to heapprofd."
Florian Mayer [Wed, 31 Oct 2018 21:21:58 +0000 (21:21 +0000)]
Merge "Allow zygote to keep socket to heapprofd."

5 years agoAdd a new carrier config to support emergency dialer shortcut feature.
Chuck Liao [Tue, 30 Oct 2018 03:39:56 +0000 (11:39 +0800)]
Add a new carrier config to support emergency dialer shortcut feature.

Test: manual
Bug: 117865402
Change-Id: I5d008af8d4dc73adc76630d7b6f47724544f068c

5 years agoMerge "Convert statsd and incidentd to Android.bp"
Colin Cross [Wed, 31 Oct 2018 17:45:53 +0000 (17:45 +0000)]
Merge "Convert statsd and incidentd to Android.bp"

5 years agoMerge "isReservedSupported=true when running as container"
Treehugger Robot [Wed, 31 Oct 2018 17:39:41 +0000 (17:39 +0000)]
Merge "isReservedSupported=true when running as container"

5 years agoMerge "new system API getRadioAccessFamily"
Chen Xu [Wed, 31 Oct 2018 17:12:23 +0000 (17:12 +0000)]
Merge "new system API getRadioAccessFamily"

5 years agoConvert statsd and incidentd to Android.bp
Colin Cross [Sat, 27 Oct 2018 05:34:06 +0000 (22:34 -0700)]
Convert statsd and incidentd to Android.bp

See build/soong/README.md for more information.

Test: m checkbuild
Merged-In: I8c80878cec46c9299234c6f4c1e0e19efc0a221e
Change-Id: I8c80878cec46c9299234c6f4c1e0e19efc0a221e

5 years agoMerge "Add post fork hook for System Server"
Orion Hodson [Wed, 31 Oct 2018 14:20:42 +0000 (14:20 +0000)]
Merge "Add post fork hook for System Server"

5 years agoExtend onDnsEvent callback to report more fields.
junyulai [Tue, 16 Oct 2018 14:58:07 +0000 (22:58 +0800)]
Extend onDnsEvent callback to report more fields.

When native layer reports onDnsEvent, netId, eventType and
returnCode are available only in NetdEventListenerService, but
not for the clients who register event on it.

Thus, extend the callback to give clients more detail on the
network the look up was performed on and the result of the
lookup.

Bug: 113916551
Test: 1. runtest frameworks-net
      2. runtest frameworks-services -c com.android.server. \
         net.watchlist.NetworkWatchlistServiceTests
Change-Id: If7beecea50e1baf18cb5c6775ad3ecb1a60b312a

5 years agoRemove java.... libcore classes from light grey/vendor lists
Paul Duffin [Tue, 23 Oct 2018 12:14:30 +0000 (13:14 +0100)]
Remove java.... libcore classes from light grey/vendor lists

Removes all the java... libcore classes from the light grey/vendor
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: I3ada072845b311fc89d864c45e40995f4d92dfef

5 years agoAllow zygote to keep socket to heapprofd.
Florian Mayer [Tue, 16 Oct 2018 13:30:02 +0000 (14:30 +0100)]
Allow zygote to keep socket to heapprofd.

This allows users to target zygote for heap profiling without
causing it to crash on ForkCommon.

This also allows us to profile zygote in benchmark runs where we want to
profile as many processes as possible.

Bug: 117821125

Test: m
Test: flashed walleye

Change-Id: I3f41b64e0a64e362eafd02cd4e86cb77e434d94c

5 years agoAdd post fork hook for System Server
Orion Hodson [Fri, 19 Oct 2018 12:05:33 +0000 (13:05 +0100)]
Add post fork hook for System Server

Adds a post fork hook for System Server that is used to enable JIT.

Bug: 62356545
Bug: 66095511
Test: device boots, no permission errors
Change-Id: I963e8c4903fb20fd0b5a207fdc6746035b69c569

5 years agoMerge "Fix negative uid stats caused by 464xlat adjust when eBPF is on."
Junyu Lai [Wed, 31 Oct 2018 02:20:57 +0000 (02:20 +0000)]
Merge "Fix negative uid stats caused by 464xlat adjust when eBPF is on."

5 years agoMerge "Add CarrierConfig to hide "Network default" option in Caller ID setting"
Youming Ye [Wed, 31 Oct 2018 00:44:04 +0000 (00:44 +0000)]
Merge "Add CarrierConfig to hide "Network default" option in Caller ID setting"

5 years agoMerge "Change package to component for Setting's default call redirection service"
Treehugger Robot [Tue, 30 Oct 2018 19:06:55 +0000 (19:06 +0000)]
Merge "Change package to component for Setting's default call redirection service"

5 years agoMake getRssi() API for LTE Received Signal Strength Indication (RSSI)
sqian [Thu, 18 Oct 2018 21:49:31 +0000 (14:49 -0700)]
Make getRssi() API for LTE Received Signal Strength Indication (RSSI)

Bug: 113074174
Test: CTS, Treehugger

Change-Id: If12e8e88831ffcce36b04ffe0617b3283811e4a6

5 years agoMerge "Define CellInfo.UNAVAILABLE for Unreported Fields"
Treehugger Robot [Tue, 30 Oct 2018 17:53:24 +0000 (17:53 +0000)]
Merge "Define CellInfo.UNAVAILABLE for Unreported Fields"

5 years agoTrack google-benchmark API changes.
Elliott Hughes [Tue, 30 Oct 2018 17:12:57 +0000 (10:12 -0700)]
Track google-benchmark API changes.

Bug: N/A
Test: builds
Change-Id: I126734361d367529a8175aff6cc10fc426b39e1a

5 years ago[Call Screening]Programmatically changing the default call screening app.
tonyzhu [Mon, 1 Oct 2018 11:14:59 +0000 (19:14 +0800)]
[Call Screening]Programmatically changing the default call screening app.

Increase three methods in TelecomManager.java, modify
ITelecomService.aidl to make sure framworks can comunicate with service.

Bug: 113302920
Test: atest TelecomServiceImplTest.
Test: simulate third party call screening application to use methods in
TelecomManager.java, and triggle the activity to show the dialog of
setting default call screeening application.

Change-Id: I1e34061acd575813e92403c137731e618abb88d5

5 years agoFix negative uid stats caused by 464xlat adjust when eBPF is on.
junyulai [Fri, 19 Oct 2018 13:14:30 +0000 (21:14 +0800)]
Fix negative uid stats caused by 464xlat adjust when eBPF is on.

When using xt_qtaguid to count per uid stats,
NetworkStatsService needs to adjust the 464xlat traffic since
iptables module would double count for ipv4 and ipv6 packet.
But for eBPF, the per uid stats is collected in a different
hook, so the adjustment on root uid would only be needed in tx
direction.

Bug: 112226716
Test: 1. Make ipv4 traffic in ipv6-only network and check data
         usage.
      2. Make ipv4 traffic in a client which connect to
         ipv6-only hotspot.
      3. runtest frameworks-net
      4. cts-tradefed run cts -m CtsNetTestCases -t \
                 android.net.cts.TrafficStatsTest
      5. cts-tradefed run cts -m CtsUsageStatsTestCases

Change-Id: Ic9a84f5446eddc943c255d5f3b89dad171f53cac

5 years agoMerge changes from topic "icu63"
vichang [Tue, 30 Oct 2018 12:04:05 +0000 (12:04 +0000)]
Merge changes from topic "icu63"

* changes:
  API updated for ICU4J 63.1
  Fix FormatterTest#testFormatShortElapsedTime due to CLDR 34 change

5 years agoMerge "Add CACHED_NAME into call history database when the add call."
Treehugger Robot [Tue, 30 Oct 2018 04:44:35 +0000 (04:44 +0000)]
Merge "Add CACHED_NAME into call history database when the add call."

5 years agoChange package to component for Setting's default call redirection service
sqian [Tue, 30 Oct 2018 01:35:42 +0000 (18:35 -0700)]
Change package to component for Setting's default call redirection service

Bug: 64959558
Test: Compile
Change-Id: I503b34812869e2b5897033ca765c85fcd4474101

5 years agoMerge "[Call Screening]Default call screening app setting storage."
Tony Zhu [Tue, 30 Oct 2018 02:43:52 +0000 (02:43 +0000)]
Merge "[Call Screening]Default call screening app setting storage."

5 years agoisReservedSupported=true when running as container
Risan [Tue, 30 Oct 2018 02:43:43 +0000 (20:43 -0600)]
isReservedSupported=true when running as container

Test: Remove first_sdk_check from StorageHostTest#testVerify, log
Build.IS_CONTAINER inside isReservedSupported function, run on sailfish.
It shows that Build.IS_CONTAINER=false and the test still passes (i.e.,
isReservedSupported is correctly true).
Also checked that Build.IS_CONTAINER in isReservedSupported is true in
ARC++.
Bug: 111287848

Change-Id: I9af1f6cce5bab75ef941989bf279cf40c52e62b0

5 years agoMerge "Synchronize mPermissions to void NullPointerException."
Philip P. Moltmann [Mon, 29 Oct 2018 23:15:47 +0000 (23:15 +0000)]
Merge "Synchronize mPermissions to void NullPointerException."

5 years agoMerge "Add new test module for system service with static / final mocking"
Ian Kasprzak [Mon, 29 Oct 2018 22:57:06 +0000 (22:57 +0000)]
Merge "Add new test module for system service with static / final mocking"

5 years agoAdd new test module for system service with static / final mocking
Makoto Onuki [Wed, 5 Sep 2018 20:45:40 +0000 (13:45 -0700)]
Add new test module for system service with static / final mocking

And move AppStateTrackerTest for starter.

Bug: 114096820
Bug: 118510622
Test: atest FrameworksMockingServicesTests
Change-Id: Ie5bf44322f29e9971358a706cf44bc5c8a325c30
Merged-In: Ie5bf44322f29e9971358a706cf44bc5c8a325c30
(cherry picked from commit 5f732365c6a33c2115bfd159b8b9729b834c8568)

5 years agoMerge "Import translations. DO NOT MERGE"
Treehugger Robot [Mon, 29 Oct 2018 19:48:34 +0000 (19:48 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Adjust to new androidx.test beta02 rules."
Treehugger Robot [Mon, 29 Oct 2018 19:17:14 +0000 (19:17 +0000)]
Merge "Adjust to new androidx.test beta02 rules."

5 years agonew system API getRadioAccessFamily
chen xu [Thu, 25 Oct 2018 00:12:28 +0000 (17:12 -0700)]
new system API getRadioAccessFamily

1. new API in telephonyManager to getRadioAccessFamily
2. define bitmask for radioAccessFamily based on NetworkType because
we don't want to expose two sets of definition RIL_RADIO and Network
type together in public API surface
3. convert definition to NetworkType

Bug: 118351153
Test: telehony unit test
Change-Id: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c
Merged-in: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c

5 years agoMerge "Revert "Revert "Telephony light grey list clean up for Q"""
Chen Xu [Mon, 29 Oct 2018 17:20:48 +0000 (17:20 +0000)]
Merge "Revert "Revert "Telephony light grey list clean up for Q"""

5 years agoMerge "Add statsdprotolite in Android.bp"
Gopinath Elanchezhian [Mon, 29 Oct 2018 17:14:46 +0000 (17:14 +0000)]
Merge "Add statsdprotolite in Android.bp"

5 years agoMerge "Refactor UidRange by using stable aidl structure"
Treehugger Robot [Mon, 29 Oct 2018 00:17:34 +0000 (00:17 +0000)]
Merge "Refactor UidRange by using stable aidl structure"

5 years agoMerge "Refine firewall-related commands"
Luke Huang [Mon, 29 Oct 2018 00:16:30 +0000 (00:16 +0000)]
Merge "Refine firewall-related commands"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 28 Oct 2018 04:44:04 +0000 (21:44 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ie1dfa01427b8ab87208789b65055be3175f8a7e3
Auto-generated-cl: translation import

5 years agoMerge "allow statsd pull based on event trigger."
Treehugger Robot [Sat, 27 Oct 2018 03:51:31 +0000 (03:51 +0000)]
Merge "allow statsd pull based on event trigger."

5 years agoRevert "Revert "Telephony light grey list clean up for Q""
Chen Xu [Mon, 22 Oct 2018 16:54:39 +0000 (16:54 +0000)]
Revert "Revert "Telephony light grey list clean up for Q""

This reverts commit bab59cb9db0fe98550d12f03e210e3bc0efc775d.

Reason for revert: Put maxTargetSdk=P now will move APIs onto light greylist
because per-SDK versioned dark greylist is not yet supported by ART. We can
keep doing annotation work without breaking existing apps targeting on P.

Bug:117934933
Bug:112477300

Change-Id: I5e0e693dde49fac3044cd73fd6360c4485f312ec
Merged-in: I5e0e693dde49fac3044cd73fd6360c4485f312ec

5 years agoAdd statsdprotolite in Android.bp
gopinath [Fri, 26 Oct 2018 23:00:34 +0000 (16:00 -0700)]
Add statsdprotolite in Android.bp

Bug: b/118482428

Test: make statsdprotolite
Change-Id: I5c27f3017be043b6809699158a94b32155163535
Merged-In: I857957e816506162496192fe0ad1da4dbdfd4efd

5 years agoallow statsd pull based on event trigger.
gopinath [Fri, 26 Oct 2018 22:20:18 +0000 (15:20 -0700)]
allow statsd pull based on event trigger.

Bug: b/118482428

Test: make statsdprotolite
Change-Id: I5a40d5e6a409b65ca1639029d5da83c327ed1798
Merged-In: Ia15b1f209945f022edffb9ec5d673317d55d9e4f

5 years ago[Call Screening]Default call screening app setting storage.
tonyzhu [Thu, 25 Oct 2018 08:13:14 +0000 (16:13 +0800)]
[Call Screening]Default call screening app setting storage.

Add new string in Settings. To indicate which app is default
call screening, similar to default dialer application setting,
store this in the system settings provider.

Bug: 118416082
Test: atest SettingsBackupTest pass.
Change-Id: I39f81b31a68ee2dbb056ff935f8dea0f51720017

5 years agoMerge "ConnectivityService: make log configurable"
Chalard Jean [Fri, 26 Oct 2018 06:06:19 +0000 (06:06 +0000)]
Merge "ConnectivityService: make log configurable"

5 years agoMerge "No-op refactoring of VPN lockdown status check."
Junyu Lai [Fri, 26 Oct 2018 05:35:28 +0000 (05:35 +0000)]
Merge "No-op refactoring of VPN lockdown status check."