377593 Commits

Author SHA1 Message Date
junyulai
5aa232e4ae Change types of fields of network stats reported to framework.
Currently, NetworkStats use int to handle uid, set and tag,
while native side using unsigned int mixing with signed int
with that. This commit make necessary changes in JNI part while
libnetdbpf unifying the types of fields.

Bug: 112226716
Test: 1. manually reconnect vpn
      2. update apps from playstore
      3. atest libnetdbpf_test
      4. runtest frameworks-net
      5. cts-tradefed run cts -m CtsUsageStatsTestCases -t \
              android.app.usage.cts.NetworkUsageStatsTest

Change-Id: I6c27124db8292e2825fba51b8994f013897cb566
2018-11-08 23:07:00 +08:00
Colin Cross
1d899f6be8 Merge changes from topic "protobuf3.5.2"
* changes:
  Adapt to google::protobuf::uint64 type change
  Convert statsd_test and statsd_benchmark to proto lite
2018-11-05 01:13:15 +00:00
Marco Nelissen
f7c4c728fc Merge "Add key for sample rate and bits per sample" 2018-11-04 00:44:58 +00:00
Jack Yu
aa08473294 Merge "Changed the onQualifiedNetworkTypesChanged API" 2018-11-03 15:32:55 +00:00
Treehugger Robot
9a8757ded5 Merge "Track google-benchmark API changes." 2018-11-03 05:11:09 +00:00
Treehugger Robot
d3efd1ad0c Merge "Replace use of deprecated androidx-test build rule." 2018-11-03 04:50:12 +00:00
Treehugger Robot
6b3a5194d9 Merge "ResetListener in StorageManagerService" 2018-11-03 02:34:10 +00:00
Risan
a354a27056 ResetListener in StorageManagerService
Bug: 110380403
Test: Manual test in ARC++, prototyped a way that reset reaches ARC++
service.
Change-Id: Icc7dcc8b5c726ed9f61226569227c4d47f44b386
Merged-In: Icc7dcc8b5c726ed9f61226569227c4d47f44b386
2018-11-02 21:45:43 +00:00
Christian Wailes
b3d2890291 Merge "Close statsd log socket before zygote fork()." 2018-11-02 21:07:02 +00:00
Brett Chabot
3c27826396 Replace use of deprecated androidx-test build rule.
Test: m -j checkbuild

Change-Id: I47e4761f054087694ac1126e7b9a19d57f880479
Merged-In: I6482ff8afbae39ffd0296aeac7b29ba019daf3a6
2018-11-02 13:27:59 -07:00
Colin Cross
fa6bc27df0 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
2018-11-02 11:35:48 -07:00
Colin Cross
e7908d7b62 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
2018-11-02 11:35:48 -07:00
Jack Yu
390edbd3d2 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
2018-11-02 11:34:55 -07:00
Shuo Qian
f4a1945d87 Merge "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)" 2018-11-02 17:46:43 +00:00
Chen Xu
b23fc3c2cd Merge "hidden API getCertsFromCarrierPrivilegeAccessRules" 2018-11-02 17:29:30 +00:00
Stanley Tng
31d6ca5c3a Merge "Change the feature flag for Hearing Aid behavior" 2018-11-02 15:28:11 +00:00
Daniel Bonnevier
56a9a6631a 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
2018-11-02 19:49:48 +09:00
David Brazdil
13c2382d4f Merge "Remove non-SDK API toast" 2018-11-02 10:17:28 +00:00
Jack Yu
346bae7c76 Merge "Deprecated the resource config_tether_apndata" 2018-11-02 06:54:03 +00:00
chen xu
7a545324ff hidden API getCertsFromCarrierPrivilegeAccessRules
Bug: 110559381
Test: unit test & manual test
Change-Id: I7b2c946f1f4db08e1c071fe6eb9f3771a592fd47
Merged-in: I7b2c946f1f4db08e1c071fe6eb9f3771a592fd47
2018-11-02 03:35:14 +00:00
Hall Liu
68a544d209 Merge "Protect TelephonyManager.ACTION_SECRET_CODE" 2018-11-02 01:23:43 +00:00
Hall Liu
f583bb525a Merge "Add TestApi to get RTT support status" 2018-11-02 00:43:27 +00:00
Treehugger Robot
68fd19b04c Merge "set O_CLOEXEC on /dev/tun open" 2018-11-01 23:52:27 +00:00
Tyler Gunn
cc690e9a48 Merge "Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call." 2018-11-01 22:42:22 +00:00
Howard Ro
65e48ec13e 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
2018-11-01 15:24:33 -07:00
Chen Xu
e459133141 Merge "refactor resetNv API to resetRadioConfig and rebootRadio" 2018-11-01 21:29:39 +00:00
Hall Liu
5bfebc7f21 Protect TelephonyManager.ACTION_SECRET_CODE
Add android.telephony.action.SECRET_CODE to protected broadcast list

Bug: 117111842
Test: manual
Change-Id: Ide0b60ebee6cb4ff4c5c3ae864e51cc2d2d81eb4
2018-11-01 14:27:02 -07:00
Jack Yu
080f131a69 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)
2018-11-01 14:08:05 -07:00
Selim Cinek
73c861da69 Merge "Added new members as SystemUI owners" 2018-11-01 21:07:41 +00:00
Selim Cinek
a256c415f3 Added new members as SystemUI owners
Bug: 118673253
Test: see owners file
Merged-In: Ie49a091bf16d184f86264badf2d99fe13066eecb
Change-Id: Ie49a091bf16d184f86264badf2d99fe13066eecb
2018-11-01 21:07:11 +00:00
Hyunyoung Song
42f6afdb1b Merge "Add hyunyoungs and yro to the OWNERS file" 2018-11-01 20:38:05 +00:00
Hall Liu
3e478bf55e Merge "Change default of hide LTE+ config to true" 2018-11-01 20:10:59 +00:00
Treehugger Robot
fe87781f40 Merge "Fix local reference table overflow error." 2018-11-01 20:00:46 +00:00
Chen Xu
8c64274ee6 Merge "Revert "Need to check empty not null for String"" 2018-11-01 20:00:36 +00:00
xiaomi/hanli
82840c4eba 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>
2018-11-01 20:00:12 +00:00
Nick Kralevich
3889888278 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
2018-11-01 12:21:35 -07:00
Shuo Qian
f5852d1500 Merge "Make SignalStrength#INVALID public" 2018-11-01 18:06:25 +00:00
Hyunyoung Song
dd4d66bdfb Add hyunyoungs and yro to the OWNERS file
Bug: 113043444
Test: no need
Change-Id: I2e1d2c4222c82cea80c87b81369291b13c7dba15
2018-11-01 10:40:41 -07:00
Fabian Kozynski
fc40620103 Merge "Fixes context for tiles without longClick" 2018-11-01 16:52:30 +00:00
Chen Xu
f5d8e6c793 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
2018-11-01 16:41:16 +00:00
Stanley Tng
799232a4a9 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)
2018-11-01 09:17:01 -07:00
Fabian Kozynski
d7a04c8965 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
2018-11-01 13:18:21 +00:00
Treehugger Robot
627441218d Merge "Add a more flexible queryRecentDocuments" 2018-11-01 13:11:09 +00:00
Paul Duffin
cd48021499 Merge "Remove java.... libcore classes from light grey/vendor lists" 2018-11-01 10:22:53 +00:00
David Brazdil
c2a8de549b Remove non-SDK API toast
It served its purpose but it's time to remove it.

Test: m
Change-Id: Idc36cacae89e74f5ce01bcf51dce24cdedfda40f
2018-11-01 10:05:28 +00:00
Paul Hu
dffb7d988c Merge "Support backward compatibility for restricted network permission" 2018-11-01 07:20:05 +00:00
Luke Huang
808c2fa747 Merge "interface-related commands porting" 2018-11-01 07:09:54 +00:00
chen xu
dbff1bd8e4 refactor resetNv API to resetRadioConfig and rebootRadio
Bug: 116476729
Test: telephony unit test and Manual test
Change-Id: I420da20f2290d1fc3962f7c14a9ca4999eafbde8
Merged-in: I420da20f2290d1fc3962f7c14a9ca4999eafbde8
2018-10-31 22:51:13 -07:00
paulhu
3b0f5ea29e 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
2018-11-01 10:38:11 +08:00
Hall Liu
1ce5e6659e Change default of hide LTE+ config to true
Hide the LTE+ icon by default.

Change-Id: I9d9fbc283ac9d5b75df3818191253d84a5e6c36c
Fixes: 118775808
Test: manual
2018-10-31 18:17:38 -07:00