OSDN Git Service

android-x86/frameworks-base.git
5 years agoUse delta reads for per uid traffic stats
Chenbo Feng [Thu, 10 Jan 2019 22:48:54 +0000 (14:48 -0800)]
Use delta reads for per uid traffic stats

For the detailed network stats of each uid and tag, the native
implementation provides delta read instead of consistent stats
data since boot. Every time the readNetworkStatsDetail function gets
called, the data pulled will be cleared. We will keep a persistent data
since boot in NetworkStatsService instead.

Fixed some checkstyle complains in related files as well.

Bug: 79171384
Test: android.app.usage.cts.NetworkUsageStatsTest
      NetworkStatsServiceTest
Change-Id: I50bcf278739135081d522e50b0e88d76fd9ab131

5 years agoMerge "Propagate some SIP INVITE header fields on a MT call"
Hall Liu [Fri, 11 Jan 2019 19:17:35 +0000 (19:17 +0000)]
Merge "Propagate some SIP INVITE header fields on a MT call"

5 years agoMerge "Add a struct wrapper for bytes fields in stats_log cpp APIs."
yaochen [Fri, 11 Jan 2019 19:02:29 +0000 (19:02 +0000)]
Merge "Add a struct wrapper for bytes fields in stats_log cpp APIs."

5 years agoMerge "precisedataState refactor part 3"
Chen Xu [Fri, 11 Jan 2019 18:11:37 +0000 (18:11 +0000)]
Merge "precisedataState refactor part 3"

5 years agoMerge "Add profile class in SubscriptionInfo database"
Treehugger Robot [Fri, 11 Jan 2019 18:04:44 +0000 (18:04 +0000)]
Merge "Add profile class in SubscriptionInfo database"

5 years agoMerge "Fix/suppress libs/* google-explicit-constructor warnings"
Chih-hung Hsieh [Fri, 11 Jan 2019 17:18:57 +0000 (17:18 +0000)]
Merge "Fix/suppress libs/* google-explicit-constructor warnings"

5 years agoMerge "Fix/suppress tools google-explicit-constructor warnings"
Chih-hung Hsieh [Fri, 11 Jan 2019 17:18:12 +0000 (17:18 +0000)]
Merge "Fix/suppress tools google-explicit-constructor warnings"

5 years agoMerge "Add a privileged API for capturing and consuming bugreports"
Nandana Dutt [Fri, 11 Jan 2019 15:21:21 +0000 (15:21 +0000)]
Merge "Add a privileged API for capturing and consuming bugreports"

5 years agoAdd a privileged API for capturing and consuming bugreports
Nandana Dutt [Wed, 12 Dec 2018 17:26:57 +0000 (17:26 +0000)]
Add a privileged API for capturing and consuming bugreports

The API is mostly implemented; except for hooking up the listener
and handling an already running bugreport.

BugreportManager is the handle to the new API exposed to apps.

Generating bugreports requires root privileges. To limit the footprint
of the root access, the actual bugreport generation in Dumpstate binary,
is accessed as a oneshot service and dies after it finishes
running.

System server accesses Dumpstate via a binder interface since it does
not have root privileges.

Starting a oneshot service is done via setting a system property, which
needs to be done from system server. BugreportManagerService is the
new system server service that does this. BugreportManager calls into
BugreportManagerService via a binder interface, since the former is in
the app's process.

Both app to system server as well as system server to native service
calls are via implementations of IDumpstate binder interface.

Bug: 111441001
Test: builds. Flashed & verified it boots.
Test: wrote a test client (not included) and verified invoking
startBugreport works.

Change-Id: I4abeb753388c055c36ae0dd916af1ec8d40b7bf0
Merged-In: I4abeb753388c055c36ae0dd916af1ec8d40b7bf0

5 years agoMerge changes from topic "IPMS1"
Chalard Jean [Fri, 11 Jan 2019 11:32:01 +0000 (11:32 +0000)]
Merge changes from topic "IPMS1"

* changes:
  [MS02] Write the skeleton for the IP memory store.
  [MS01] Add the IP memory store service.

5 years agoMerge "Define entry and exit threshold for opportunistic"
Treehugger Robot [Fri, 11 Jan 2019 06:34:28 +0000 (06:34 +0000)]
Merge "Define entry and exit threshold for opportunistic"

5 years agoMerge "Switch to metalava"
Treehugger Robot [Fri, 11 Jan 2019 06:27:51 +0000 (06:27 +0000)]
Merge "Switch to metalava"

5 years ago[MS02] Write the skeleton for the IP memory store.
Chalard Jean [Fri, 7 Dec 2018 14:09:02 +0000 (23:09 +0900)]
[MS02] Write the skeleton for the IP memory store.

This implements a minimal contract for the IP Memory Store
feature.

Test: Created new tests for parcelable code. For the rest, created
      empty tests, but there is no logic, it's boilerplate day
Bug: 116512211
Change-Id: I15dc6275b370d671385ddfdb058a8b8d39952d6e

5 years ago[MS01] Add the IP memory store service.
Chalard Jean [Tue, 4 Dec 2018 11:20:56 +0000 (20:20 +0900)]
[MS01] Add the IP memory store service.

Bug: 116512211
Test: Added initial tests
Change-Id: I9d9af4097e3e2d7afd9956b9cbfa29a9f9558ae0

5 years agoMerge "Move NetworkMonitor to NetworkStack"
Remi NGUYEN VAN [Fri, 11 Jan 2019 05:08:52 +0000 (05:08 +0000)]
Merge "Move NetworkMonitor to NetworkStack"

5 years agoMerge "Allow NetworkStack to send protected broadcasts"
Treehugger Robot [Fri, 11 Jan 2019 03:56:11 +0000 (03:56 +0000)]
Merge "Allow NetworkStack to send protected broadcasts"

5 years agoAdd profile class in SubscriptionInfo database
Grace Chen [Fri, 21 Dec 2018 06:50:18 +0000 (22:50 -0800)]
Add profile class in SubscriptionInfo database

Bug: 116732485
Test: Basic telephony sanity

Change-Id: I28a6d64c90db94ef0735f4d97f430560b733e797
Merged-In: I28a6d64c90db94ef0735f4d97f430560b733e797

5 years agoMerge "Add 'stubs' to libandroid"
Dongwon Kang [Fri, 11 Jan 2019 01:50:48 +0000 (01:50 +0000)]
Merge "Add 'stubs' to libandroid"

5 years agoAdd a struct wrapper for bytes fields in stats_log cpp APIs.
Yao Chen [Wed, 9 Jan 2019 23:41:50 +0000 (15:41 -0800)]
Add a struct wrapper for bytes fields in stats_log cpp APIs.

To avoid conflict between statslog.write() function signatures for

Atom1 {
  Foo foo = 1 [logMode=bytes];
}

and

Atom2 {
  string bar = 1;
  int64 arg2 = 2;
}

Bug: 122571213
Test: manually tested with new atoms.

Change-Id: Ied0f0bd81cef8d0964f571e921f47022301157d9
Merged-In: Ied0f0bd81cef8d0964f571e921f47022301157d9
(cherry picked from Ied0f0bd81cef8d0964f571e921f47022301157d9)

5 years agoMove NetworkMonitor to NetworkStack
Remi NGUYEN VAN [Thu, 27 Dec 2018 07:43:56 +0000 (16:43 +0900)]
Move NetworkMonitor to NetworkStack

Bug: b/112869080
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I1b8b6a3f4390adbabf92fb9e48da61c47b08b2ec

5 years agoPropagate some SIP INVITE header fields on a MT call
shilu [Fri, 9 Nov 2018 23:52:04 +0000 (15:52 -0800)]
Propagate some SIP INVITE header fields on a MT call

These fields can be used for Spoof call detection in the Dialer

Bug: 115537553
Test: compile and test on device
Change-Id: Ib92043536e0fc43e40efc53189a28c4e58064ddc

5 years agoMerge "Fix compile time warning."
Treehugger Robot [Thu, 10 Jan 2019 22:21:45 +0000 (22:21 +0000)]
Merge "Fix compile time warning."

5 years agoFix/suppress libs/* google-explicit-constructor warnings
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:51:01 +0000 (13:51 -0800)]
Fix/suppress libs/* google-explicit-constructor warnings

* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I31d45e4c6ff9fa69801a14c341f2da66baf565a0

5 years agoFix/suppress tools google-explicit-constructor warnings
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:54:17 +0000 (13:54 -0800)]
Fix/suppress tools google-explicit-constructor warnings

* Add explicit to conversion constructors/operators
* Remove redundant explicit of copy constructors

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ic11c22c59beb7aa32b878a23315b1036ca4e3c6a

5 years agoMerge changes from topic "libpac_C_api"
vichang [Thu, 10 Jan 2019 12:54:14 +0000 (12:54 +0000)]
Merge changes from topic "libpac_C_api"

* changes:
  Replace C++ API by the C API provided by libpac
  Use std::u16string instead of android::String16 due to API change in libpac

5 years agoMerge "Remove notion of skip library check in framework."
Nicolas Geoffray [Thu, 10 Jan 2019 08:28:51 +0000 (08:28 +0000)]
Merge "Remove notion of skip library check in framework."

5 years agoprecisedataState refactor part 3
chen xu [Wed, 12 Dec 2018 02:09:41 +0000 (18:09 -0800)]
precisedataState refactor part 3

1. expose DataFailCause to systemAPI
2. expose PreciseDataState to systemAPI
3. change string apntype to bitmask.
4. change string dataFaiLcause to intdef

Bug: 119891533
Change-Id: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b
(cherry picked from commit 16e24cd5dea591c16d47a9777e3aefb4b952c529)
Merged-in: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b

5 years agoMerge "Add PCSCF to LinkProperties."
Chalard Jean [Thu, 10 Jan 2019 05:55:05 +0000 (05:55 +0000)]
Merge "Add PCSCF to LinkProperties."

5 years agoMerge "Deprecate BluetoothHealth APIs"
Treehugger Robot [Thu, 10 Jan 2019 04:46:21 +0000 (04:46 +0000)]
Merge "Deprecate BluetoothHealth APIs"

5 years agoDeprecate BluetoothHealth APIs
Jack He [Fri, 4 Jan 2019 00:23:41 +0000 (16:23 -0800)]
Deprecate BluetoothHealth APIs

* Mark all BluetoothHealth related APIs as deprecated
* Make BluetoothAdapter#getProfileProxy(context, BluetoothProfile.HEALTH)
  always return false
* Remove all logic behind BluetoothHealth APIs and add deprecation error log
* Health Device Profile (HDP) and MCAP protocol has been largely
  replaced by BLE. New applications should use Bluetooth Low Energy
  instead of legacy Bluetooth Health Device Profile

Bug: 111562841
Test: make, unit test, use Bluetooth
Change-Id: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892
Merged-In: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892
(cherry picked from commit 2be70a11a2dff8c801fdf044d34657b41c2006c5)

5 years agoAdd 'stubs' to libandroid
Dongwon Kang [Thu, 10 Jan 2019 00:01:01 +0000 (16:01 -0800)]
Add 'stubs' to libandroid

In order to exclude libandroid.so + its dependent libraries from the apex.

Test: build and check if libandroid.so is excluded in the media apex
Bug: 112766913
Change-Id: I5f1c5692a5395cf673d7868e0a429767d639720f

5 years agoFix compile time warning.
Xin Li [Wed, 9 Jan 2019 23:15:15 +0000 (15:15 -0800)]
Fix compile time warning.

In checkIncidentPermissions(), the intention of code is to bail out when
the caller do not have appropriate permission.

Logically, DEST_LOCAL and DEST_EXPLICIT should be checked separately.
In the current code, we would fall-through to DEST_EXPLICIT case, but
because permitted DEST_LOCAL callers (AID_SHELL and AID_ROOT) are also
permitted DEST_EXPLICIT callers, we will still get the Status:ok().

Test: build
Change-Id: I0f6121cb1aba7724306b99469f5ef97b4358ac7d

5 years agoMerge "Fix/suppress hwui google-explicit-constructor warnings"
Treehugger Robot [Wed, 9 Jan 2019 22:35:27 +0000 (22:35 +0000)]
Merge "Fix/suppress hwui google-explicit-constructor warnings"

5 years agoFix/suppress hwui google-explicit-constructor warnings
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:48:02 +0000 (13:48 -0800)]
Fix/suppress hwui google-explicit-constructor warnings

* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I8c6ebb99679b0a71251024d70a13f8164e67db5e

5 years agoMerge "Fix spelling of "HARDWARE""
Hans Boehm [Wed, 9 Jan 2019 19:11:33 +0000 (19:11 +0000)]
Merge "Fix spelling of "HARDWARE""

5 years agoMerge "Adjust map names due to new bpfloader"
Treehugger Robot [Wed, 9 Jan 2019 18:34:49 +0000 (18:34 +0000)]
Merge "Adjust map names due to new bpfloader"

5 years agoDefine entry and exit threshold for opportunistic
Sooraj Sasindran [Tue, 11 Dec 2018 18:35:16 +0000 (10:35 -0800)]
Define entry and exit threshold for opportunistic

Define entry and exit threshold for opportunistic network RSRP and RSSNR

Bug: 120847469
Test: compile
Merged-In: I6a2a02e03b66dc8ea682fc2483ec71c343563d7a
Change-Id: I6a2a02e03b66dc8ea682fc2483ec71c343563d7a

5 years agoMerge changes Ic4bd706a,I680224ba
Nathan Harold [Wed, 9 Jan 2019 17:38:10 +0000 (17:38 +0000)]
Merge changes Ic4bd706a,I680224ba

* changes:
  Log Invalid Level as an Error in SignalStrength
  Set DBG Flag False for CellSignalStrengthLte

5 years agoRemove notion of skip library check in framework.
Nicolas Geoffray [Thu, 20 Dec 2018 09:47:00 +0000 (09:47 +0000)]
Remove notion of skip library check in framework.

bug: 111174995
Test: m

(cherry picked from commit 03dba3ba8c99b99c2252f3929ebf1df3fae34c89)
Merged-In: Id4d69258116696db3662ac7678f6d235fcccabc7

Change-Id: I5d66f4ad60869c7946a781bfc0741717cb839138

5 years agoMerge "118395019: Hide constants and methods in StatsLogInternal"
Adrian Roos [Wed, 9 Jan 2019 14:57:05 +0000 (14:57 +0000)]
Merge "118395019: Hide constants and methods in StatsLogInternal"

5 years agoMerge "Remove unnecessary right padding from time picker"
Treehugger Robot [Wed, 9 Jan 2019 11:50:36 +0000 (11:50 +0000)]
Merge "Remove unnecessary right padding from time picker"

5 years agoMerge "Add control flags in asynchronous DNS query API"
Luke Huang [Wed, 9 Jan 2019 11:30:18 +0000 (11:30 +0000)]
Merge "Add control flags in asynchronous DNS query API"

5 years agoMerge "Move DhcpServer to NetworkStack app"
Remi NGUYEN VAN [Wed, 9 Jan 2019 10:42:48 +0000 (10:42 +0000)]
Merge "Move DhcpServer to NetworkStack app"

5 years agoMerge "Add priv-app permissions for NetworkStack"
Remi NGUYEN VAN [Wed, 9 Jan 2019 09:14:12 +0000 (09:14 +0000)]
Merge "Add priv-app permissions for NetworkStack"

5 years agoMerge "Add start time to LmkKillOccurred"
Jim Blackler [Wed, 9 Jan 2019 08:44:35 +0000 (08:44 +0000)]
Merge "Add start time to LmkKillOccurred"

5 years agoSwitch to metalava
Sundong Ahn [Wed, 9 Jan 2019 07:12:24 +0000 (16:12 +0900)]
Switch to metalava

android.test.mock, com.android.location.provider and
com.android.mediadrm.signer libraries are change to using metalava
instead of doclava.

Test: m -j
Bug: 117127012
Change-Id: I82e838ab60110698e1c0ea8e567467a1b32707ce

5 years agoMove DhcpServer to NetworkStack app
Remi NGUYEN VAN [Tue, 4 Dec 2018 03:13:09 +0000 (12:13 +0900)]
Move DhcpServer to NetworkStack app

Test: atest FrameworksNetTests && atest NetworkStackTests
Bug: b/112869080

Change-Id: I96c40e63e9ceb37b67705bdd4d120307e114715b

5 years agoMerge "DO NOT MERGE: Revert: use legacy way to get tcp packet count"
Treehugger Robot [Wed, 9 Jan 2019 05:10:05 +0000 (05:10 +0000)]
Merge "DO NOT MERGE: Revert: use legacy way to get tcp packet count"

5 years agoMerge "Change package name for NetworkStack"
Remi NGUYEN VAN [Wed, 9 Jan 2019 04:57:19 +0000 (04:57 +0000)]
Merge "Change package name for NetworkStack"

5 years agoMerge "Add /product sepolicy support to SELinuxMMAC.java"
Tri Vo [Wed, 9 Jan 2019 04:26:15 +0000 (04:26 +0000)]
Merge "Add /product sepolicy support to SELinuxMMAC.java"

5 years agoDO NOT MERGE: Revert: use legacy way to get tcp packet count
junyulai [Wed, 9 Jan 2019 02:23:20 +0000 (10:23 +0800)]
DO NOT MERGE: Revert: use legacy way to get tcp packet count

In Q, legacy way to get tcp packet count is not planned to be
supported. Users who use this unsupported API e.g., data stall
detection are also planned to be removed.

Thus, this change reverts a5c3fb10f2576 which is the short term
solution in P.

Bug: 110443385
Test: atest FrameworksNetTests
Change-Id: Ia09f908edbf194b9aa873a3bdd5aee7b6fcb16bc

5 years agoAdd priv-app permissions for NetworkStack
Remi NGUYEN VAN [Thu, 27 Dec 2018 02:49:21 +0000 (11:49 +0900)]
Add priv-app permissions for NetworkStack

Bug: b/112869080
Test: m, flashed, booted
Change-Id: Ia2cf0f708d815a5e5f49924fb15bb9c728f4ad56

5 years agoLog Invalid Level as an Error in SignalStrength
Nathan Harold [Tue, 8 Jan 2019 23:02:55 +0000 (15:02 -0800)]
Log Invalid Level as an Error in SignalStrength

If one of the CellSignalStrength classes returns a
level value that's out of range, it should be logged
as an error. This CL adds loge() to SignalStrength
and logs this event at the correct level.

Bug: 8675309
Test: compilation
Change-Id: Ic4bd706ae83e647cd782a60d94db7077c6d0fc1b

5 years agoSet DBG Flag False for CellSignalStrengthLte
Nathan Harold [Tue, 8 Jan 2019 22:57:15 +0000 (14:57 -0800)]
Set DBG Flag False for CellSignalStrengthLte

The debug flag for CellSignalStrengthLte was left
"true" due to "f23153f - Refactor SignalStrength".

This CL sets it to false to fix log spam.

Bug: 122545223
Test: compilation
Change-Id: I680224ba726dde26c1e45584bd37d85bc02aa91a

5 years agoMerge "Implement RcsParticipant (base)"
Sahin Caliskan [Tue, 8 Jan 2019 22:34:15 +0000 (22:34 +0000)]
Merge "Implement RcsParticipant (base)"

5 years ago118395019: Hide constants and methods in StatsLogInternal
Tor Norbye [Tue, 8 Jan 2019 20:07:15 +0000 (12:07 -0800)]
118395019: Hide constants and methods in StatsLogInternal

This CL updates the code generator which creates the
hidden StatsLogInternal class to explicitly hide
the generated constants and write methods as well.

The intent of this class was for everything to be hidden,
but it turns out that public methods and fields in
hidden classes which are extended by a public class also
ends up in the SDK, even though they don't appear in the
signature file. StringBuilder#setLength(int) is an
example of this.

Bug: 118395019
Test: make sdk
Change-Id: I97e510e8155ee50ade653f6abeb5479c7ca9029d

5 years agoMerge "Move the implementation of ProxyErrorListener to libpac"
vichang [Tue, 8 Jan 2019 20:08:43 +0000 (20:08 +0000)]
Merge "Move the implementation of ProxyErrorListener to libpac"

5 years agoMerge "[view compiler] Compile all layouts in an APK"
Treehugger Robot [Tue, 8 Jan 2019 17:55:04 +0000 (17:55 +0000)]
Merge "[view compiler] Compile all layouts in an APK"

5 years agoReplace C++ API by the C API provided by libpac
Victor Chang [Fri, 4 Jan 2019 19:21:18 +0000 (19:21 +0000)]
Replace C++ API by the C API provided by libpac

- libpac will be moved into the Runtime APEX module.
  Use the new stable C API interface provided by libpac
- The change also removes the following debug log when
  error occurs.

  ALOGE("Error Running PAC: %s", ret8.string());

  When ProxyServerV8::GetProxyForURL != OK, ret8 may not
  contain the error message, but the non-ASCII proxy names.

Bug: 121269980
Test: m droid
Change-Id: I0ea0ad7489a23cbc0476dcd66d320f80499f8be1

5 years agoAdd control flags in asynchronous DNS query API
Luke Huang [Thu, 20 Dec 2018 06:53:29 +0000 (14:53 +0800)]
Add control flags in asynchronous DNS query API

Test: built, flashed, booted
      cts test: NativeDnsAsyncTest

Change-Id: Ief04d99b2b289d95e54899572d28576d464037b8

5 years agoMerge "Move default sounds to /product"
Anton Hansson [Tue, 8 Jan 2019 08:17:55 +0000 (08:17 +0000)]
Merge "Move default sounds to /product"

5 years agoChange package name for NetworkStack
Remi NGUYEN VAN [Tue, 8 Jan 2019 07:58:21 +0000 (16:58 +0900)]
Change package name for NetworkStack

Test: flashed, booted, apk started as expected
Bug: b/112869080
Change-Id: I8aaf5a89ffff7bba1228ea7214e662acbe47e776

5 years agoMerge "Add nullability annotations to public methods of ConnManager."
Chalard Jean [Tue, 8 Jan 2019 07:58:13 +0000 (07:58 +0000)]
Merge "Add nullability annotations to public methods of ConnManager."

5 years agoMerge "Cleaned up dead code"
Treehugger Robot [Tue, 8 Jan 2019 06:36:18 +0000 (06:36 +0000)]
Merge "Cleaned up dead code"

5 years agoMerge "Fix linter errors in NetworkMonitor"
Remi NGUYEN VAN [Tue, 8 Jan 2019 05:33:45 +0000 (05:33 +0000)]
Merge "Fix linter errors in NetworkMonitor"

5 years agoMerge "Fix linter errors in IpServer and its dependencies"
Remi NGUYEN VAN [Tue, 8 Jan 2019 05:32:26 +0000 (05:32 +0000)]
Merge "Fix linter errors in IpServer and its dependencies"

5 years agoMerge "fix mmap leak of graphicsstats service"
Treehugger Robot [Tue, 8 Jan 2019 05:03:47 +0000 (05:03 +0000)]
Merge "fix mmap leak of graphicsstats service"

5 years agoAllow NetworkStack to send protected broadcasts
Remi NGUYEN VAN [Fri, 28 Dec 2018 06:00:49 +0000 (15:00 +0900)]
Allow NetworkStack to send protected broadcasts

NetworkStack is a system app and should be able to send such broadcasts.

Test: flashed, booted
Bug: b/112869080
Merged-In: I149c0a37640ea81fe5f4180e3bfc56124a2dcfa8
Change-Id: I9b020e4233dee21cdfc7f1c6341a25f1e97d3a06

5 years agoFix linter errors in NetworkMonitor
Remi NGUYEN VAN [Mon, 7 Jan 2019 02:14:00 +0000 (11:14 +0900)]
Fix linter errors in NetworkMonitor

The fixes are necessary to move the class to packages/NetworkStack.

Test: atest FrameworksNetTests
Bug: b/112869080
Change-Id: I1fe42d9edf4cc86de1b9c75808407183e23a87e2

5 years agoRemove unnecessary right padding from time picker
Tetsutoki Shiozawa [Tue, 8 Aug 2017 04:25:00 +0000 (13:25 +0900)]
Remove unnecessary right padding from time picker

Symptom:
When the device language was set to Spanish, "A.M." label was not fully
displayed on the time picker widget. "M." was lacked.

Root cause:
There are unnecessary right paddings on the layout definition of time
picker. It uselessly consumes the room for ampm_layout.

Bug: 64498105
Change-Id: Ie52fafc0fb7d6d6ea5b0ca2eaeb53755d4aebc19

5 years agoFix linter errors in IpServer and its dependencies
Remi NGUYEN VAN [Fri, 21 Dec 2018 07:17:09 +0000 (16:17 +0900)]
Fix linter errors in IpServer and its dependencies

Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I534b391458433ac24dffe78f287e3c83a264acfd

5 years agoMerge "Add parceling for DhcpServingParams"
Remi NGUYEN VAN [Tue, 8 Jan 2019 01:53:19 +0000 (01:53 +0000)]
Merge "Add parceling for DhcpServingParams"

5 years agoFix spelling of "HARDWARE"
Hans Boehm [Tue, 8 Jan 2019 01:42:05 +0000 (17:42 -0800)]
Fix spelling of "HARDWARE"

Happened to notice this while reading the code for other purposes.

Test: Treehugger
Change-Id: I2d1b1e239bfd8d2506a62173fe854f608a45f5b0

5 years agoCleaned up dead code
Jack Yu [Tue, 8 Jan 2019 00:54:16 +0000 (16:54 -0800)]
Cleaned up dead code

Cleaned up dead code and simplified code path.

Test: Telephony sanity tests + unit tests
Bug: 73659459
Change-Id: I0c066d59f2fde9af315f4dabe0fe7b55600fa9f8

5 years agoMerge "Fix/suppress hwui/tests google-explicit-constructor warnings"
Chih-hung Hsieh [Tue, 8 Jan 2019 00:29:21 +0000 (00:29 +0000)]
Merge "Fix/suppress hwui/tests google-explicit-constructor warnings"

5 years ago[view compiler] Compile all layouts in an APK
Eric Holk [Sat, 22 Dec 2018 01:25:38 +0000 (17:25 -0800)]
[view compiler] Compile all layouts in an APK

Test: atest
Bug: 111895153
Change-Id: I5f4b9b4c1160acf1c04a4492f5e3a736fbaf2fdc

5 years agoImplement RcsParticipant (base)
Sahin Caliskan [Wed, 12 Dec 2018 18:03:08 +0000 (10:03 -0800)]
Implement RcsParticipant (base)

This change adds the tables, APIs and provider for RcsParticipants. It
is now possible to add/update/query participants.

Test: Added unit tests

Bug: 109759350
Change-Id: I61f3ee3bcb0b3a2d70906a282258677377d9fa5a

5 years agoMerge "NetworkPolicy: Replace fake allLocks"
Andreas Gampe [Mon, 7 Jan 2019 18:10:15 +0000 (18:10 +0000)]
Merge "NetworkPolicy: Replace fake allLocks"

5 years agoMerge "[view compiler] Add XML to DEX compilation"
Treehugger Robot [Mon, 7 Jan 2019 17:43:50 +0000 (17:43 +0000)]
Merge "[view compiler] Add XML to DEX compilation"

5 years agoMerge "Stop exposing reasons through phone state listener"
Jack Yu [Mon, 7 Jan 2019 15:25:38 +0000 (15:25 +0000)]
Merge "Stop exposing reasons through phone state listener"

5 years agoMove default sounds to /product
Anton Hansson [Mon, 7 Jan 2019 14:13:43 +0000 (14:13 +0000)]
Move default sounds to /product

The set of audio files is frequently customized, so move the default
set to /product. The frameworks scans both of these directories.

Bug: 80410283
Bug: 118826166
Test: verify sounds available in soundpicker
Change-Id: I3bfc71b46eb64b4d4614b62c65fb8821bf1c271a
Merged-In: I3bfc71b46eb64b4d4614b62c65fb8821bf1c271a

5 years agoAdd nullability annotations to public methods of ConnManager.
Chalard Jean [Mon, 7 Jan 2019 10:26:34 +0000 (19:26 +0900)]
Add nullability annotations to public methods of ConnManager.

This is mainly for Kotlin compatibility.
https://android-developers.googleblog.com/2018/08/android-pie-sdk-is-now-more-kotlin.html

Bug: 122437895
Test: no logic changes
Change-Id: Ic1b9a774aee0099397b1ccfd958ff3b61d69a7fb

5 years agoStop exposing reasons through phone state listener
Jack Yu [Thu, 3 Jan 2019 00:51:08 +0000 (16:51 -0800)]
Stop exposing reasons through phone state listener

The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ia005abf19664e6213118ee932495950af118456d
Change-Id: Ia005abf19664e6213118ee932495950af118456d
(cherry picked from commit 4d1c9450005dbd05c5c619d444938467068047a3)

5 years agoMerge "Cleaned up dead code"
Jack Yu [Mon, 7 Jan 2019 06:37:30 +0000 (06:37 +0000)]
Merge "Cleaned up dead code"

5 years agoMerge "Null locale causing the VTS fail."
Treehugger Robot [Mon, 7 Jan 2019 04:19:22 +0000 (04:19 +0000)]
Merge "Null locale causing the VTS fail."

5 years agoAdd parceling for DhcpServingParams
Remi NGUYEN VAN [Mon, 10 Dec 2018 07:35:30 +0000 (16:35 +0900)]
Add parceling for DhcpServingParams

Introduce a stable AIDL parcel class, DhcpServingParamsParcel, and
methods to convert to and from that class to DhcpServingParams.
This will be used to move DhcpServer to the NetworkStack app.

Test: atest FrameworksNetTests
Bug: b/112869080
Change-Id: I276b7affccb938059769c90a53f0f6beb26e6ede

5 years agoCleaned up dead code
Jack Yu [Mon, 24 Dec 2018 03:59:08 +0000 (19:59 -0800)]
Cleaned up dead code

Renamed the scanning state to retrying. Removed the
old retrying dead code.

Test: Telephony sanity tests
Bug: 73659459

Merged-In: I54849bafbd0d05206e67636f0717b4b833a5e229
Change-Id: I54849bafbd0d05206e67636f0717b4b833a5e229
(cherry picked from commit 5de4a2d86972a882dafc24b541164a68a37adf31)

5 years agoMerge "Implement RcsThread querying (base)"
Sahin Caliskan [Sat, 5 Jan 2019 21:19:09 +0000 (21:19 +0000)]
Merge "Implement RcsThread querying (base)"

5 years ago[view compiler] Add XML to DEX compilation
Eric Holk [Mon, 17 Dec 2018 23:46:18 +0000 (15:46 -0800)]
[view compiler] Add XML to DEX compilation

Test: atest
Bug: 111895153
Change-Id: I91c01ff4474e080c87b902ae963b5d655346f859

5 years agoMerge "Fix WCDMA Level Calculation for Default CC"
Nathan Harold [Sat, 5 Jan 2019 01:25:14 +0000 (01:25 +0000)]
Merge "Fix WCDMA Level Calculation for Default CC"

5 years agoMerge "Add tryCreateView to LayoutInflater"
Treehugger Robot [Sat, 5 Jan 2019 01:02:28 +0000 (01:02 +0000)]
Merge "Add tryCreateView to LayoutInflater"

5 years agoImplement RcsThread querying (base)
Sahin Caliskan [Tue, 11 Dec 2018 17:38:13 +0000 (09:38 -0800)]
Implement RcsThread querying (base)

This change does a first pass to introduce RcsThread querying. We can
now insert threads and query them back.

Test: Added unit test

Bug: 109759350
Change-Id: Ib116cd533a19ce4d099864a095f585ac47cdc9f6

5 years agoMerge "Deprecate Android beam APIs and create a feature flag to gate them"
Treehugger Robot [Fri, 4 Jan 2019 21:49:14 +0000 (21:49 +0000)]
Merge "Deprecate Android beam APIs and create a feature flag to gate them"

5 years agoDeprecate Android beam APIs and create a feature flag to gate them
Ruchi Kandoi [Tue, 23 Oct 2018 21:40:29 +0000 (14:40 -0700)]
Deprecate Android beam APIs and create a feature flag to gate them

Test: Test application trying to invoke the API
Bug: 117519147
Change-Id: Icd3187e4f3e0f180cb42d36011f60895fb395002

5 years agoFix WCDMA Level Calculation for Default CC
Nathan Harold [Thu, 3 Jan 2019 18:30:31 +0000 (10:30 -0800)]
Fix WCDMA Level Calculation for Default CC

The default carrier config was setting the level
calculation method to an empty string, which caused
the level to be set forcibly to NONE/UNKNOWN due to
the logic failing to account for empty strings. This
patch sets the default to something sane "rssi" that
matches legacy behavior and also adds guards so that
an empty string will be considered default, and a non
empty but otherwise invalid string will also try to
use RSSI instead of simply failing to display signal
bars.

-Add protection against invalid array sizes
-Fix a bug where RSCP could use RSSI thresholds
-Add fallback for RSCP thresholds being null when the
 measurement type is set to RSCP.
-Define RSCP thresholds as constants.

Bug: 118800169
Test: atest CellSignalStrengthWcdmaTest
Change-Id: I8d6261bc5adab6bf9b0a88f7d59b259d338a49e9

5 years agoAdd tryCreateView to LayoutInflater
Eric Holk [Fri, 14 Dec 2018 18:27:29 +0000 (10:27 -0800)]
Add tryCreateView to LayoutInflater

This method is needed so that precompiled layouts can reuse the factory logic
from the LayoutInflater.

Bug: 111895153
Test: atest android.view.cts.LayoutInflaterTest
Change-Id: Ifd1028906b655af2bd14247d586dc16b35550c82

5 years agoUse std::u16string instead of android::String16 due to API change in libpac
Victor Chang [Fri, 4 Jan 2019 11:43:25 +0000 (11:43 +0000)]
Use std::u16string instead of android::String16 due to API change in libpac

Bug: 121269980
Test: m droid
Change-Id: I17a91114f1a97b2ccd3049680aace1719eb7ae8a

5 years agoAdjust map names due to new bpfloader
Chenbo Feng [Sat, 22 Dec 2018 21:20:31 +0000 (13:20 -0800)]
Adjust map names due to new bpfloader

With the new loader support added. The bpf map format is defined by bpf
kernel program as well. Change the netd bpf program to the new format.

Test: CtsUsageStatsTestCases
Bug: 112334572
Change-Id: I34e38e0a8cf0cca54dc52ec897771452f9d90525

5 years agoMerge changes from topic "multi-se-support"
Ruchi Kandoi [Fri, 4 Jan 2019 19:56:41 +0000 (19:56 +0000)]
Merge changes from topic "multi-se-support"

* changes:
  Add a mechanism to register AIDs to specific off-host SE
  Add Off-Host Card Emulation Features

5 years agoMerge "Fix/suppress aapt/aapt2 google-explicit-constructor warnings"
Treehugger Robot [Fri, 4 Jan 2019 19:34:30 +0000 (19:34 +0000)]
Merge "Fix/suppress aapt/aapt2 google-explicit-constructor warnings"