379391 Commits

Author SHA1 Message Date
Dan Sandler
8c6ff42abc Some of us are weird.
Test: dsandler can give OWNERS approval
Change-Id: I9b4f7903513e7171dfa51aa39a32b6bcfbfbb0eb
2019-01-29 14:44:39 -05:00
Sooraj Sasindran
cf2e069962 Merge "Define more thresholds for opportunistic data" 2019-01-29 19:43:26 +00:00
Treehugger Robot
5aef5c6508 Merge changes I94d15307,I7deb8556,I755b3140
* changes:
  Atom: Add more Bluetooth atoms
  Atom: Add A2DP playback related atoms to StatsLog
  Fix typo in hci/enums.proto: OCCURED -> OCCURRED
2019-01-29 19:27:53 +00:00
Jordan Liu
d6c684fff4 Card ID APIs are public
These were system API but we should expose them for apps with carrier
privileges.

Test: manual
Bug: 122974656
Change-Id: Ie60e4c580dfa9dd0d7d6fb6b94226661d0620dad
2019-01-29 10:55:35 -08:00
Michele Berionne
d8148b6c8c Merge "Add check for slot index value" 2019-01-29 17:25:17 +00:00
Adrian Roos
34b11c92b3 Merge "apilint: Allow parsing 3.0 signature files" 2019-01-29 16:05:21 +00:00
Pavel Grafov
f86dc53000 Add sandness@ and rubinxu@ to OWNERS for UserRestrictionsUtils
Test: none
Bug: none
Change-Id: I48d2547de69092a3d98f7a97803146ab3fe38f01
2019-01-29 15:20:28 +00:00
Remi NGUYEN VAN
9fdc6d2963 Merge "Revert "Extract network observer code from NetworkManagementService."" 2019-01-29 14:30:56 +00:00
Adrian Roos
cf82e04400 apilint: Allow parsing 3.0 signature files
Test: python apilint_test.py
Change-Id: I59df950229c05329afde93f94efc13adb4640ad7
2019-01-29 15:01:28 +01:00
Treehugger Robot
4a838a68d6 Merge "Move FdEventsReader to the shared area." 2019-01-29 11:45:15 +00:00
Remi NGUYEN VAN
f89a1cfd21 Merge "Run IpClientLinkObserver on Binder thread" 2019-01-29 11:07:42 +00:00
Remi NGUYEN VAN
1e002eede3 Merge "Add utils connect, setsockopt, bind, sendTo" 2019-01-29 11:07:20 +00:00
Remi NGUYEN VAN
9cc31061fe Merge "Add NetworkUtils utilities to SystemApi" 2019-01-29 11:07:04 +00:00
Remi NGUYEN VAN
bfd0aa022e Revert "Extract network observer code from NetworkManagementService."
This reverts commit d8bc829a85c9c9bb390e18b59ef1455b6d0b94ec.

Reason for revert: Refactoring was unnecessary

Merged-In: Ib4e7da3274e49f25676505a08e6ce7e7b0dfdb8d
Change-Id: Iff332c680315b560f0b762c1d7311ec83d539115
2019-01-29 10:21:19 +00:00
Chalard Jean
0bf364d92e Move FdEventsReader to the shared area.
This is necessary both in the network stack app and the
framework.

Test: FrameworksNetTests
Change-Id: I48af0ab29405501f0581a6c0c9ce6e5d4a32c8b4
2019-01-29 18:35:11 +09:00
Remi NGUYEN VAN
9fe79edfd2 Merge "Remove IpClient usage of NetworkManagementService" 2019-01-29 08:58:32 +00:00
Remi NGUYEN VAN
249da094eb Add utils connect, setsockopt, bind, sendTo
The utilities are not supported as public API but required as SystemApi
for the NetworkStack.

Test: flashed, boots, WiFi works
Bug: 112869080
Change-Id: Ia64b3bf9c6c33cf61bed76469ea9963b550bed2b
2019-01-29 17:49:36 +09:00
Remi NGUYEN VAN
5c5f1ba99c Add NetworkUtils utilities to SystemApi
attach*Filter and addArpEntry are necessary for the NetworkStack but are
only usable for apps that have system permissions.
Also includes system API for IpPrefix, LinkAddress, LinkProperties,
Network, and static modifier in ApfCapabilities that were missed in
previous CLs.

Test: Builds, flashed, WiFi works
Bug: 112869080
Change-Id: If141ae6a2f9145f5af64ba002ca44938f39b90a9
2019-01-29 17:30:26 +09:00
Remi NGUYEN VAN
1bbed8a3b8 Run IpClientLinkObserver on Binder thread
This restores previous behavior, where callbacks would not be called on
the IpClient handler thread.

Test: atest FrameworksNetTests NetworkStackTests
Test: flashed, WiFi works
Bug: 123062477
Change-Id: I3015566b0922d76ac7cf70579a1de3e033bf7b4a
2019-01-29 17:09:01 +09:00
junyulai
7fe17a45a3 [KA06] export keepalive offload permission as system api.
Bug: 114151147
Test: m -j
Change-Id: I67a1656ccd3b0498d712c3a1297cf49ef8069eda
2019-01-29 15:44:19 +08:00
chen xu
0f49468184 new API for IMS call fail cause
Bug: 119890559
Test: atest CtsTelephonyTestCases:PhoneStateListenerTest
Change-Id: Ia047b7ba2345ad0c8d998506026defc02eb80dc9
(cherry picked from commit 6ac5fc19e6db5159bb325c7c705437e7d204f463)
Merged-in: Ia047b7ba2345ad0c8d998506026defc02eb80dc9
2019-01-28 23:07:37 -08:00
Treehugger Robot
d20bdb915a Merge "uce: Updating UCE API to accept ICC-ID." 2019-01-29 04:43:32 +00:00
Mathieu Chartier
3c496729de Merge "Disable view compilation for privileged apps" 2019-01-29 04:24:10 +00:00
Treehugger Robot
23b144eb40 Merge "Fix for CTS testAllowWhileIdleJobInTempwhitelist" 2019-01-29 03:51:11 +00:00
Remi NGUYEN VAN
31d7447e04 Remove IpClient usage of NetworkManagementService
Use the new NetworkObserverRegistry instead.

Test: atest FrameworksNetTests NetworkStackTests
Test: flashed, WiFi working fine
Bug: 112869080
Change-Id: If16ecfd6489f86afec67c22b4c3692cd68f4edbf
2019-01-29 11:37:01 +09:00
Jack He
4d6abe6534 Atom: Add more Bluetooth atoms
* BluetoothHciTimeoutReported is logged when Bluetooth controller
  failed to respond to an HCI command in time
* BluetoothQualityReportReported is logged when Bluetooth controller
  sends a link quality report event to Android host due to bad link
  quality
* BluetoothManufacturerInfoReported is logged when we learn about
  manufactuer defined metadata for a device such as manufactuer name
  model number, software version, and hardware version
* BluetoothRemoteVersionInfoReported is logged when we learn about
  the manufactuer and Bluetooth version of remote Bluetooth controller
  and stack
* BluetoothSdpAttributeReported is logged when we learn about services
  provided by the remote device and their metdata such as protocol
  version and feature bitmask. Only profiles that use 16-bit UUIDs are
  logged
* BluetoothBondStateChanged is logged when Bluetooth bonding state is
  changed a a macro level such as none -> bonding, bonding -> bonded,
  and user interaction events such as passkey confirmation
* BluetoothClassicPairingEventReported is logged from native layer
  when Bluetooth classic pairing state changed due to HCI command
  or events. This is a more verbose level logging compared to
  BluetoothBondStateChanged
* BluetoothSmpPairingEventReported is logged from native layer when
  Bluetooth Security Manager Protocol based pairing state changed due to
  SMP command sent or received. Pairing failure reason code is also
  logged as a pre-defined enum

Bug: 112969790
Test: test drive with statsd
Change-Id: I94d1530758f79ce6d5f119426b1379c76517afec
Merged-In: I94d1530758f79ce6d5f119426b1379c76517afec
(cherry picked from commit 1021a6108132bf0d98676cae1afe98a1960f1375)
2019-01-28 17:30:05 -08:00
Jack He
924f346b45 Atom: Add A2DP playback related atoms to StatsLog
* BluetoothA2dpPlaybackStateChanged:
  - Logged when A2DP playback state changed for individual devices
* BluetoothA2dpCodecConfigChanged
  - Logged when A2DP codec configuration changed for individual devices
* BluetoothA2dpCodecCapabilityChanged
  - Logged when A2DP codec capability changed for individual devices
* BluetoothActiveDeviceChanged
  - Logged when A2DP/HFP/HEARNING_AID active device changed
* BluetoothA2dpAudioOverrunReported
  - Logs when A2DP failed send encoded data to the remote device fast
    enough such that the transmit buffer queue is full and we have to
    drop data
* BluetoothA2dpAudioUnderrunReported
  - Logs when A2DP failed to read from PCM source
* BluetoothDeviceRssiReported
  - Logged when remote device's RSSI level is reported by the controller
* BluetoothDeviceFailedContactCounterReported
  - Logged when ACL transmit queue was flushed by the controller
  - This is normally disabled unless we set automatic flush timeout was
    set to a non-zero value
  - However, when this event is reported, the connection quality must
    be very bad
* BluetoothDeviceTxPowerLevelReported
  - Logged when transmit power level is reported for a particular
    connection

Bug: 112969790
Test: make, testdrive with statsd
Change-Id: I7deb85567630fae75be733df21b45f9c6bcf9e17
Merged-In: I7deb85567630fae75be733df21b45f9c6bcf9e17
(cherry picked from commit c27040aea7775482f5a2e2d8d2c075b61c6c1ad8)
2019-01-28 17:29:49 -08:00
Muhammad Qureshi
598719d2be Fix typo in hci/enums.proto: OCCURED -> OCCURRED
Test: none

Change-Id: I755b3140b550ade5078c946c1d4ee910bd47b5ad
Merged-In: I755b3140b550ade5078c946c1d4ee910bd47b5ad
(cherry picked from commit a664734a031091083885e43140b1dd747cd52a25)
2019-01-28 17:29:30 -08:00
Mathieu Chartier
60f568127d Disable view compilation for privileged apps
Bug: 111895153
Test: look that there are no selinux denials

Change-Id: Id759171654888f8172d46fd05094f58842442a81
2019-01-28 17:17:23 -08:00
Sooraj Sasindran
428871cb04 Define more thresholds for opportunistic data
Define entry bandwidth threshold for opportunistic data
Define entry and hysteresis time for opportunistic data

Bug: 120847469
Test: make
Change-Id: Ie7c35e10aeaf791dba49d9f5e881d292068f81f3
Merged-In: Ie7c35e10aeaf791dba49d9f5e881d292068f81f3
2019-01-29 00:49:39 +00:00
Pengquan Meng
5cf41e47fe Merge "new SystemAPI to getSimLocale" 2019-01-29 00:21:49 +00:00
Remi NGUYEN VAN
cec60fa56a Merge "Add SocketUtils for NetworkStack" 2019-01-28 23:14:08 +00:00
Treehugger Robot
171c9cdc6a Merge "clang-format ManifestFixer_test.cpp" 2019-01-28 22:15:35 +00:00
Ruchi Kandoi
3ffdb26aa8 Merge "Add Secure NFC functionality" 2019-01-28 22:11:32 +00:00
Jack Yu
b551d0d6d3 Merge "Data profile refactoring" 2019-01-28 21:29:27 +00:00
Michele
3590fa4d72 Add check for slot index value
Verify that slot index passed in setAllowedCarrier() and in
getAllowedCarrier() has a valid value or return error code.

Bug: 123097251
Test: compilation
Change-Id: I322ecd11c49301a7d5bf5edb75d32a72a9f813c3
2019-01-28 13:07:30 -08:00
Amit Mahajan
783400c390 Merge "Add Emergency Number Test Mode" 2019-01-28 20:51:25 +00:00
Treehugger Robot
0bd511611e Merge "jni: more O_CLOEXECs" 2019-01-28 20:40:43 +00:00
Pavel Grafov
774c3ce152 Merge "Whitelist packages from VPN lockdown." 2019-01-28 20:15:49 +00:00
Jordan Liu
b3f282daa1 Merge "CallQuality is set to empty instead of null" 2019-01-28 19:16:06 +00:00
sqian
4fd607e32e Add Emergency Number Test Mode
Add EMERGENCY_NUMBER_SOURCE_TEST_MODE

This also does not allow to send the service categories from database when
dialing.

Bug: 122840137
Test: Manual; Treehugger
Merged-in: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
(cherry picked from commit cb4bd3a30f40611bc91f1f7f8289a4dd61b8251b)
2019-01-28 10:58:45 -08:00
Amit Mahajan
e01a358b5b Merge "Add Emergency Uniform Resource Number (URN)" 2019-01-28 18:50:55 +00:00
Nick Kralevich
4b3a08c2b7 jni: more O_CLOEXECs
Prevent FDs from leaking across an execve() boundary.

Test: compiles and boots
Change-Id: I5f91046917b55b6abead0a5c6e939f82814e6f18
2019-01-28 10:39:10 -08:00
sqian
86e2209260 Add Emergency Uniform Resource Number (URN)
Test: Treehugger
Bug: 112657134
Change-Id: I87537f7123910e9843207428eb3167a90a15b6df
Merged-In: I87537f7123910e9843207428eb3167a90a15b6df
(cherry picked from commit 03bde886e5cfe06fcbced55b45d2b3d6fc5746ae)
2019-01-28 18:37:47 +00:00
Jack Yu
7d675e5a44 Data profile refactoring
Data profile should use the public defined types
instead of the internal defined data types.

1. Using integer instead of string for protocol type.
2. Using TelephonyManager.NetworkTypeBitMask instead of
   the internal ServiceState.RIL_RADIO_TECHNOLOGY_XXX
   in data profile.

Test: Telephony sanity tests
Bug: 73659459
Merged-In: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
Change-Id: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
(cherry picked from commit af6b47af54e35a665fb18bd6d63fa945c333b6a9)
2019-01-28 10:32:23 -08:00
Nandana Dutt
706b2d0e16 Merge "Remove DumpstateOptions" 2019-01-28 17:20:45 +00:00
Treehugger Robot
ff1aa4e49a Merge "startop: use static_lib dependency on libdexfile." 2019-01-28 16:46:41 +00:00
Steven Moreland
3c7ac4e991 Merge "framework.jar: Include all radio HIDL libs." 2019-01-28 16:30:36 +00:00
Nandana Dutt
6ac57c669a Merge "Expose bugreporting API as system API." 2019-01-28 16:27:07 +00:00
Paul Duffin
2111aeb289 Merge "Remove unused library framework-oahl-backward-compatibility" 2019-01-28 15:40:13 +00:00