OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "UsbDebuggingActivity.java: OK -> Allow"
Nick Kralevich [Tue, 22 Jan 2019 23:19:11 +0000 (15:19 -0800)]
Merge "UsbDebuggingActivity.java: OK -> Allow"
am: f9718dbe17

Change-Id: I597e50b031334ff67641f9252d8081fbfca7f4b4

5 years agoMerge changes If71fadd2,I42047185
Chalard Jean [Tue, 22 Jan 2019 23:12:54 +0000 (15:12 -0800)]
Merge changes If71fadd2,I42047185
am: 022daeb874

Change-Id: Ie15258f09adb7f1cc53c558e1d3d5fdaf8d93476

5 years agoMerge "UsbDebuggingActivity.java: OK -> Allow"
Treehugger Robot [Tue, 22 Jan 2019 23:09:39 +0000 (23:09 +0000)]
Merge "UsbDebuggingActivity.java: OK -> Allow"

5 years agoMerge changes If71fadd2,I42047185
Chalard Jean [Tue, 22 Jan 2019 22:50:21 +0000 (22:50 +0000)]
Merge changes If71fadd2,I42047185

* changes:
  [MS10] Address leftover comments on MS03 and MS07
  [MS09] Implement isSameNetwork.

5 years agoMerge "Migrate ICaptivePortal to stable AIDL"
Remi NGUYEN VAN [Tue, 22 Jan 2019 22:25:09 +0000 (14:25 -0800)]
Merge "Migrate ICaptivePortal to stable AIDL"
am: eb7c53718a

Change-Id: Id0844ec4d438dcc1f6c1028552dd21da6bd76584

5 years agoMerge "Migrate ICaptivePortal to stable AIDL"
Remi NGUYEN VAN [Tue, 22 Jan 2019 22:03:44 +0000 (22:03 +0000)]
Merge "Migrate ICaptivePortal to stable AIDL"

5 years agoMerge changes from topic "move sched_policy functions"
Suren Baghdasaryan [Tue, 22 Jan 2019 21:21:57 +0000 (13:21 -0800)]
Merge changes from topic "move sched_policy functions"
am: 2a2b4eec35

Change-Id: I1b72c5676b1d3ec18e7432cf7f5e3336f956051c

5 years agoAdd libprocessgroup dependency and fix sched_policy include
Suren Baghdasaryan [Tue, 22 Jan 2019 21:14:22 +0000 (13:14 -0800)]
Add libprocessgroup dependency and fix sched_policy include
am: 09a29e161f

Change-Id: I4bde60447975339250dd4e755530e4bc390461c7

5 years agoMerge changes from topic "move sched_policy functions"
Suren Baghdasaryan [Tue, 22 Jan 2019 20:58:16 +0000 (20:58 +0000)]
Merge changes from topic "move sched_policy functions"

* changes:
  Add libprocessgroup dependency
  Add libprocessgroup dependency and fix sched_policy include

5 years agoMerge "Mark NEW_OUTGOING_CALL broadcast as deprecated."
Tyler Gunn [Tue, 22 Jan 2019 20:08:48 +0000 (12:08 -0800)]
Merge "Mark NEW_OUTGOING_CALL broadcast as deprecated."
am: 1e08a90339

Change-Id: I9894a0bfa6eecf0fa23ee799a22078e432b5716c

5 years agoMerge "Check whether cardId is valid in EuiccManager#isEnabled."
Holly Jiuyu Sun [Tue, 22 Jan 2019 19:57:56 +0000 (11:57 -0800)]
Merge "Check whether cardId is valid in EuiccManager#isEnabled."
am: feb047acb3

Change-Id: I29c25297b91bb8c31addf4d88d126adaa440db8b

5 years agoMerge "Mark NEW_OUTGOING_CALL broadcast as deprecated."
Tyler Gunn [Tue, 22 Jan 2019 19:42:29 +0000 (19:42 +0000)]
Merge "Mark NEW_OUTGOING_CALL broadcast as deprecated."

5 years agoMerge "Check whether cardId is valid in EuiccManager#isEnabled."
Holly Jiuyu Sun [Tue, 22 Jan 2019 19:03:58 +0000 (19:03 +0000)]
Merge "Check whether cardId is valid in EuiccManager#isEnabled."

5 years agoMerge "Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause"
Jack Yu [Tue, 22 Jan 2019 18:31:11 +0000 (10:31 -0800)]
Merge "Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause"
am: 3788e9147d

Change-Id: I01620d1fa5bc8417ba154b76ad854fa64d6d042f

5 years agoMerge "Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause"
Jack Yu [Tue, 22 Jan 2019 18:18:20 +0000 (18:18 +0000)]
Merge "Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause"

5 years agoAdd libprocessgroup dependency
Suren Baghdasaryan [Thu, 17 Jan 2019 17:47:51 +0000 (09:47 -0800)]
Add libprocessgroup dependency

Because set_sched_policy is moved into libprocessgroup an additional
dependency is required for its users. libframeworksnettestsjni requires
libprocessgroup otherwise com.android.frameworks.tests.net fails with
error:
dlopen failed: library "libprocessgroup.so" not found

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots

Merged-In: Ia8bc5b447efa568fd1c822746919fa1496cc42a6
Change-Id: Ia8bc5b447efa568fd1c822746919fa1496cc42a6
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
5 years agoAdd libprocessgroup dependency and fix sched_policy include
Suren Baghdasaryan [Fri, 4 Jan 2019 20:16:57 +0000 (12:16 -0800)]
Add libprocessgroup dependency and fix sched_policy include

Because android_runtime is using set_sched_policy which is moved
into libprocessgroup an additional dependency is added and header
file change is made.

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots
Merged-In: I98a7a6f9a9d6be8595b3604fb73dafc05412c482
Change-Id: I98a7a6f9a9d6be8595b3604fb73dafc05412c482
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
5 years agoMerge "Deprecate SSLCertificateSocketFactory"
Tobias Thierer [Tue, 22 Jan 2019 17:13:20 +0000 (09:13 -0800)]
Merge "Deprecate SSLCertificateSocketFactory"
am: f86156158c

Change-Id: I30dafbd9577dbaced7712b7497ecb0e0324c75f5

5 years agoMerge "Deprecate SSLCertificateSocketFactory"
Tobias Thierer [Tue, 22 Jan 2019 16:57:50 +0000 (16:57 +0000)]
Merge "Deprecate SSLCertificateSocketFactory"

5 years agoMark NEW_OUTGOING_CALL broadcast as deprecated.
Tyler Gunn [Tue, 15 Jan 2019 16:57:57 +0000 (08:57 -0800)]
Mark NEW_OUTGOING_CALL broadcast as deprecated.

Mark NEW_OUTGOING_CALL broadcast as deprecated and document that callers
should use the CallRedirectionService API.

Test: Build APIs.
Bug: 64959558
Change-Id: I9192b50b16be2ff0cdc0f864ee99b42b83e261e9

5 years agoMigrate ICaptivePortal to stable AIDL
Remi NGUYEN VAN [Sun, 20 Jan 2019 05:00:34 +0000 (14:00 +0900)]
Migrate ICaptivePortal to stable AIDL

Also add required API for the captive portal app to stop using hidden
members.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Merged-In: I62b457e709fa199822bb8f80b0eab990be4ded93
Change-Id: I62b457e709fa199822bb8f80b0eab990be4ded93

5 years agoMerge "Support for treating single party IMS conference as a standalone call."
Tyler Gunn [Tue, 22 Jan 2019 15:09:11 +0000 (07:09 -0800)]
Merge "Support for treating single party IMS conference as a standalone call."
am: 89e53d81ce

Change-Id: Ic9de1989c156a1dd111465c20d84bd1c7c37e69f

5 years agoMerge "Add API for VPN apps to query always-on and lockdown."
Pavel Grafov [Tue, 22 Jan 2019 15:00:53 +0000 (07:00 -0800)]
Merge "Add API for VPN apps to query always-on and lockdown."
am: 479c0769f1

Change-Id: Icb11cdd5c7384eacf1df9b7a0c42e451641f0e04

5 years agoMerge "Support for treating single party IMS conference as a standalone call."
Tyler Gunn [Tue, 22 Jan 2019 14:57:10 +0000 (14:57 +0000)]
Merge "Support for treating single party IMS conference as a standalone call."

5 years agoMerge "Add API for VPN apps to query always-on and lockdown."
Pavel Grafov [Tue, 22 Jan 2019 14:43:06 +0000 (14:43 +0000)]
Merge "Add API for VPN apps to query always-on and lockdown."

5 years agoMerge "Expose UIDs for NetworkStack permission checks"
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:53:20 +0000 (05:53 -0800)]
Merge "Expose UIDs for NetworkStack permission checks"
am: 3b887bdf4a

Change-Id: I893fbd359e9d5e7731e3b640b86ec9dd05b829f3

5 years agoMerge "Expose UIDs for NetworkStack permission checks"
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:40:57 +0000 (13:40 +0000)]
Merge "Expose UIDs for NetworkStack permission checks"

5 years agoMerge "Remove InterfaceController dependency on NMS"
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:25:12 +0000 (05:25 -0800)]
Merge "Remove InterfaceController dependency on NMS"
am: 06adb08d27

Change-Id: I24c129d143f49434c126855dd90f7a0436d00ca5

5 years agoMerge changes Ieef54d84,Ica3e88c2
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:14:58 +0000 (05:14 -0800)]
Merge changes Ieef54d84,Ica3e88c2
am: 491f53523a

Change-Id: Ia60c1dd733a8de0e777dce78cde67738f6d466bd

5 years agoMerge "Remove InterfaceController dependency on NMS"
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:14:06 +0000 (13:14 +0000)]
Merge "Remove InterfaceController dependency on NMS"

5 years agoMerge changes Ieef54d84,Ica3e88c2
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:00:10 +0000 (13:00 +0000)]
Merge changes Ieef54d84,Ica3e88c2

* changes:
  Remove NetworkStack dependencies on hidden members
  Expose ServiceSpecificException as @SystemApi.

5 years agoMerge "Add SystemApi utility for raw sockets."
Remi NGUYEN VAN [Tue, 22 Jan 2019 12:53:05 +0000 (04:53 -0800)]
Merge "Add SystemApi utility for raw sockets."
am: 91c81c13b6

Change-Id: I91392d479ca24cfcc114ca6f9cf349c833f5f9c5

5 years agoMerge "Add SystemApi utility for raw sockets."
Remi NGUYEN VAN [Tue, 22 Jan 2019 12:38:33 +0000 (12:38 +0000)]
Merge "Add SystemApi utility for raw sockets."

5 years agoExpose UIDs for NetworkStack permission checks
Remi NGUYEN VAN [Sun, 20 Jan 2019 03:23:32 +0000 (12:23 +0900)]
Expose UIDs for NetworkStack permission checks

The UIDs are unlikely to change and added as public API.

Test: m
Bug: 112869080
Change-Id: I5477093a4c8593dd9ada7587b86c65352e628c34

5 years agoRemove InterfaceController dependency on NMS
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:13:57 +0000 (16:13 +0900)]
Remove InterfaceController dependency on NMS

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: Ib3773068b087f58f4ac3394291cda132b00b2dcc

5 years agoMerge "Deprecate JapaneseCalendar.CURRENT_ERA"
vichang [Tue, 22 Jan 2019 11:19:03 +0000 (03:19 -0800)]
Merge "Deprecate JapaneseCalendar.CURRENT_ERA"
am: 0f5893ee60

Change-Id: I29548ec04dd5a37d5a672430002b380ff56667d9

5 years agoMerge "Add LinkProps and NetworkCaps methods to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 11:14:19 +0000 (03:14 -0800)]
Merge "Add LinkProps and NetworkCaps methods to SystemApi"
am: 4bde11491b

Change-Id: I7ba317e49a6ad7a7413d9ff4e312aed0b700e695

5 years agoMerge "apilint: correctly parse enum_constant"
Adrian Roos [Tue, 22 Jan 2019 11:07:22 +0000 (03:07 -0800)]
Merge "apilint: correctly parse enum_constant"
am: d8b953078e

Change-Id: I633edc113833f49a4d96fafe4dfa1d9a1b49c357

5 years agoMerge changes I38145a51,Iac1fdabc,I90f18181,I76b979dd,Id2e17923, ...
Adrian Roos [Tue, 22 Jan 2019 11:03:20 +0000 (03:03 -0800)]
Merge changes I38145a51,Iac1fdabc,I90f18181,I76b979dd,Id2e17923, ...
am: 137f8f2e5a

Change-Id: Ic44c73e0c96b9beed999319996b36ba1c9b0efb0

5 years agoMerge "Deprecate JapaneseCalendar.CURRENT_ERA"
vichang [Tue, 22 Jan 2019 10:59:41 +0000 (10:59 +0000)]
Merge "Deprecate JapaneseCalendar.CURRENT_ERA"

5 years agoMerge "Add LinkProps and NetworkCaps methods to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 10:56:51 +0000 (10:56 +0000)]
Merge "Add LinkProps and NetworkCaps methods to SystemApi"

5 years agoMerge "apilint: correctly parse enum_constant"
Adrian Roos [Tue, 22 Jan 2019 10:45:03 +0000 (10:45 +0000)]
Merge "apilint: correctly parse enum_constant"

5 years agoapilint: correctly parse enum_constant
Adrian Roos [Mon, 21 Jan 2019 14:43:15 +0000 (15:43 +0100)]
apilint: correctly parse enum_constant

Change-Id: I1a243caa3a01837ff989d21926478f20d70372ae
Fixes: 120132045
Test: python apilint_test.py
(cherry picked from commit 373df11baab1fbbd9f6986e38a1a929abc901d63)

5 years agoMerge changes I38145a51,Iac1fdabc,I90f18181,I76b979dd,Id2e17923, ...
Adrian Roos [Tue, 22 Jan 2019 10:41:10 +0000 (10:41 +0000)]
Merge changes I38145a51,Iac1fdabc,I90f18181,I76b979dd,Id2e17923, ...

* changes:
  ApiLint: Add operator keyword and property parsing
  ApiLint: Add Kotlin-style type support
  ApiLint: Performance improvements for verification
  ApiLint: Performance improvements for 2.0 signature format parsing
  ApiLint: Allow parsing 2.0 API signature files
  apilint: Fix API lint issues 2/2
  apilint: Fix API lint issues
  API Lint: Add support for base current.txt
  Guide towards Context.createPackageContextAsUser().
  Moar lint rulez!
  Update lint rules for graphics/text package layering
  Handle new current.txt format.
  Extend lint script to emit API statistics.

5 years agoApiLint: Add operator keyword and property parsing
Adrian Roos [Mon, 14 Jan 2019 14:44:15 +0000 (15:44 +0100)]
ApiLint: Add operator keyword and property parsing

Also fix up some issues with expression parsing, type use annotations, etc.

Test: python tools/apilint/apilint_test.py
Change-Id: I38145a51470ce6c3e5813a546d681489fd87fc19
(cherry picked from commit 403c8e35d8e7cc0f81a0a2c42d038c47e1b2703f)

5 years agoApiLint: Add Kotlin-style type support
Adrian Roos [Sat, 5 Jan 2019 21:04:55 +0000 (22:04 +0100)]
ApiLint: Add Kotlin-style type support

Test: tools/apilint/apilint_sha.sh HEAD && python tools/apilint/apilint_test.py
Change-Id: Iac1fdabcbeffe57c8288d73b2359e8ce0b2bc3eb
(cherry picked from commit 7884d6b9090c586ac0d72abe0e6efab191a143a7)

5 years agoApiLint: Performance improvements for verification
Adrian Roos [Sat, 5 Jan 2019 19:09:38 +0000 (20:09 +0100)]
ApiLint: Performance improvements for verification

Test: tools/apilint/apilint_sha.sh HEAD
Test: python tools/apilint/apilint_test.py
Change-Id: I90f18181cd0d3c43f176d7c9d1b198f6f5172390
(cherry picked from commit 7f8886a9933abbb6f1fdd97d920185b80d439339)

5 years agoApiLint: Performance improvements for 2.0 signature format parsing
Adrian Roos [Fri, 4 Jan 2019 19:10:06 +0000 (20:10 +0100)]
ApiLint: Performance improvements for 2.0 signature format parsing

Test: tools/apilint/apilint_sha.sh HEAD
Test: python tools/apilint/apilint_test.py
Change-Id: I76b979dd81702afce6468ac377230e589a25e08f
(cherry picked from commit a30d062775da3812589a6ce3e49be9d697ef0d6d)

5 years agoApiLint: Allow parsing 2.0 API signature files
Adrian Roos [Thu, 3 Jan 2019 17:54:33 +0000 (18:54 +0100)]
ApiLint: Allow parsing 2.0 API signature files

Test: tools/apilint/apilint_sha.sh HEAD
Test: python tools/apilint/apilint_test.py
Change-Id: Id2e1792392b3626746f1ec99f481d0cb27e523a1
(cherry picked from commit d170961b02bf67189ddd14f358c9f263009df786)

5 years agoapilint: Fix API lint issues 2/2
Adrian Roos [Wed, 19 Dec 2018 16:11:21 +0000 (17:11 +0100)]
apilint: Fix API lint issues 2/2

Fixes false positives that occur when a class in current.txt is faulty, and an
entry for that class is then added to system-current.txt.

This was so because when parsing the previous revison's system-current.txt, we
did not know about the class and thus didn't look for it in current.txt, and
thus never recorded that the error is preexisting.

To avoid that, we track all classes in system-current.txt with a matching entry
in current.txt in the current revision, and later use that to look up all classes we
may have missed when examining the previous revision.

Test: python tools/apilint/apilint_test.py
Change-Id: Ibe09f1159e351e56b35b8816ce0db760de4ef791
(cherry picked from commit 61e3730bc07e04181a01760d2eb1db834a854683)

5 years agoapilint: Fix API lint issues
Adrian Roos [Wed, 19 Dec 2018 16:10:22 +0000 (17:10 +0100)]
apilint: Fix API lint issues

Fixes a bug where only the name instead of the fully qualified name was
considered when looking for a class, which lead to faulty results for inner
classes.

Test: python tools/apilint/apilint_test.py
Change-Id: Ib015669ed3faef21d2bdd16f1e27bc55c8669d70
(cherry picked from commit 2c5cacfd36128f43f5fab4f0665acf69ac049a44)

5 years agoAPI Lint: Add support for base current.txt
Adrian Roos [Thu, 13 Dec 2018 21:08:29 +0000 (22:08 +0100)]
API Lint: Add support for base current.txt

Allows specifying a base current.txt and previous.txt file when linting
system-current.txt and test-current.txt to avoid false positive error
messages due to public API members not being duplicated in the respective
non-public APIs

Test: python tools/apilint/apilint.py --base-current=api/current.txt api/system-current.txt
Change-Id: I306a99b1423584ef3fcdc9272a83cb5eacc37227
(cherry picked from commit 7690d0d4eea0ffa429351b0b1caa34cdb3e0d37f)

5 years agoGuide towards Context.createPackageContextAsUser().
Jeff Sharkey [Wed, 28 Nov 2018 00:33:42 +0000 (17:33 -0700)]
Guide towards Context.createPackageContextAsUser().

It's a better alternative that should be used instead of adding
new "ForUser" or "AsUser" methods.

Bug: 115654727
Test: manual
Change-Id: I8742c2ef42d743ef69f8f7a91378f498fdc81e43
(cherry picked from commit 86445841ac90e04941dbc8dad34f2a893a2e0f8b)

5 years agoMoar lint rulez!
Jeff Sharkey [Thu, 27 Sep 2018 22:29:25 +0000 (16:29 -0600)]
Moar lint rulez!

Bug: 3753464211667569111679827172059458111790177
Test: manual
Change-Id: Ib079ae580a827f225be08f90dbdddeee7d341c48
(cherry picked from commit daac37f229f84ed844adcf1ffd3432b235524d9b)

5 years agoUpdate lint rules for graphics/text package layering
Siyamed Sinir [Thu, 13 Sep 2018 23:06:59 +0000 (16:06 -0700)]
Update lint rules for graphics/text package layering

Test: N/A
Bug: 77347886
Change-Id: I907d99b4a1dee0c69b914e55a033d3d9c4eebe56
(cherry picked from commit e23aeb802409cb337ad66454049c9e3b6af0db9a)

5 years agoHandle new current.txt format.
Jeff Sharkey [Tue, 17 Jul 2018 19:29:40 +0000 (13:29 -0600)]
Handle new current.txt format.

We're starting to see "@interface" show up, so handle them like any
other interface.  We're also seeing more details argument lists
with names and annotations; ignore them for now, since all our
existing lint checks work on the "real" data type.

Verified that it handles new support library current.txt files
without causing any regressions against existing framework
current.txt files.

Test: manual inspection
Bug: 111555356
Change-Id: Id11c3561edd317e4ba1a9b43993fd96d8243e00d
(cherry picked from commit bd2611916990b0d18a36483060365207fdd94c13)

5 years agoExtend lint script to emit API statistics.
Jeff Sharkey [Fri, 20 Apr 2018 17:26:16 +0000 (11:26 -0600)]
Extend lint script to emit API statistics.

Bug: 77588754
Test: manual
Change-Id: I240dba5fae1a8635a4265a1af903517f00dec54c
(cherry picked from commit daa7cf3a365c24e3a81d0df178c188b12e6d3a91)

5 years ago[MS10] Address leftover comments on MS03 and MS07
Chalard Jean [Wed, 16 Jan 2019 14:05:10 +0000 (23:05 +0900)]
[MS10] Address leftover comments on MS03 and MS07

- Fix the copyright year in IPMSDatabase.java.
- Add missing Override annotations.
- Remove random l2keys, use fixed strings.
- Rename the method in OnNetworkAttributesRetrieved that puzzlingly
  nobody noticed was wrong.

Test: atest IpMemoryStoreServiceTest
Bug: 113554482
Change-Id: If71fadd23e158a4be299d112bfce75690b1ed8e8

5 years ago[MS09] Implement isSameNetwork.
Chalard Jean [Wed, 16 Jan 2019 09:18:44 +0000 (18:18 +0900)]
[MS09] Implement isSameNetwork.

Test: Old tests pass, new tests pass too.
Bug: 113554482

Change-Id: I420471853f3fab7725cba7ae500cebdce1912e43

5 years agoRemove NetworkStack dependencies on hidden members
Remi NGUYEN VAN [Sun, 20 Jan 2019 07:50:42 +0000 (16:50 +0900)]
Remove NetworkStack dependencies on hidden members

 - DhcpClient only shares its handler with IpClient, and NetworkMonitor
   has its own handler: remove Protocol.BASE_DHCP,
   Protocol.BASE_NETWORK_MONITOR
 - Remove dependency on Network.netid in NetworkMonitor
 - Remove dependency on Sets.newArraySet in DhcpServingParams
 - Remove dependency on formatDuration() in DhcpClient
 - Replace isMetered() with hasCapability() in NetworkMonitor
 - Use WifiManager.isScanAlwaysAvailable instead of reading setting

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: Ieef54d847ddc081fb33cbad0b050b06d2e52548e

5 years agoExpose ServiceSpecificException as @SystemApi.
Lorenzo Colitti [Tue, 22 Jan 2019 08:11:01 +0000 (17:11 +0900)]
Expose ServiceSpecificException as @SystemApi.

This class is useful as a system API because:

- It is one of the few exceptions that is natively Parcelable.
- It is directly supported by native code without using JNI,
  using Status::fromServiceSpecificError.
- Unlike other natively parcelable exceptions, it contains both
  an error message and an error code.

Test: m
Bug: 112869080
Change-Id: Ica3e88c2b6877e429a61b053d75f69b9f19fc74a

5 years agoMerge "Delay start of bootanimation until after the Runtime APEX is mounted."
Nicolas Geoffray [Tue, 22 Jan 2019 08:59:38 +0000 (00:59 -0800)]
Merge "Delay start of bootanimation until after the Runtime APEX is mounted."
am: 20f1e0ca1d

Change-Id: I7b37dacfe1de51b29d3484602857cb8d8b1d365d

5 years agoAdd SystemApi utility for raw sockets.
Remi NGUYEN VAN [Sun, 20 Jan 2019 03:08:21 +0000 (12:08 +0900)]
Add SystemApi utility for raw sockets.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: Id228bf3317b6933314174571697ee256b2f18452

5 years agoMerge "Delay start of bootanimation until after the Runtime APEX is mounted."
Nicolas Geoffray [Tue, 22 Jan 2019 08:43:55 +0000 (08:43 +0000)]
Merge "Delay start of bootanimation until after the Runtime APEX is mounted."

5 years agoMerge "Add NetworkStack metrics to system API"
Remi NGUYEN VAN [Tue, 22 Jan 2019 08:09:31 +0000 (00:09 -0800)]
Merge "Add NetworkStack metrics to system API"
am: 8586a43f31

Change-Id: I686e0ffb8d226d9245f1ef6c04bbc8d586c61e81

5 years agoAdd LinkProps and NetworkCaps methods to SystemApi
Remi NGUYEN VAN [Sun, 20 Jan 2019 03:38:10 +0000 (12:38 +0900)]
Add LinkProps and NetworkCaps methods to SystemApi

Added methods are used by the NetworkStack.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: I8822d43c1a4981ca39289525685b3f975fb0e8d5

5 years agoMerge "Add NetworkStack metrics to system API"
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:48:39 +0000 (07:48 +0000)]
Merge "Add NetworkStack metrics to system API"

5 years agoSupport radio HAL V1.4 SetupDataCallResult and DataCallFailCause
paulhu [Fri, 21 Dec 2018 10:26:40 +0000 (18:26 +0800)]
Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause

For exposing more data call failed cause from modem, add more
cause definitions in radio HAL V1.4 and adjust some related
parameters in SetupDataCallResult. Update frameworks related
files to fulfill V1.4 modification.

Bug: 113505704
Test: 1. atest FrameworksTelephonyTests
      2. Manually test data call functions

Change-Id: I47265345df151e080b873c5b29bf5b1eb6ab4a74

5 years agoMerge "Fix lint errors for moving IpClient to NetworkStack"
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:21:28 +0000 (23:21 -0800)]
Merge "Fix lint errors for moving IpClient to NetworkStack"
am: 9325fbc4f8

Change-Id: I00fa049ebd7c1b68a4ef0a9c1d8f00e1f2dd906f

5 years agoMerge "Fix lint errors for moving IpClient to NetworkStack"
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:13:39 +0000 (07:13 +0000)]
Merge "Fix lint errors for moving IpClient to NetworkStack"

5 years agoMerge "Properly expect all callbacks in testStackedLinkProperties."
Lorenzo Colitti [Tue, 22 Jan 2019 06:41:16 +0000 (22:41 -0800)]
Merge "Properly expect all callbacks in testStackedLinkProperties."
am: a1b2a93273

Change-Id: Ida7b6da29e46856b504cc5b58afa78404a54cb4e

5 years agoMerge "Properly expect all callbacks in testStackedLinkProperties."
Lorenzo Colitti [Tue, 22 Jan 2019 06:31:23 +0000 (06:31 +0000)]
Merge "Properly expect all callbacks in testStackedLinkProperties."

5 years agoFix lint errors for moving IpClient to NetworkStack
Remi NGUYEN VAN [Fri, 18 Jan 2019 10:05:29 +0000 (19:05 +0900)]
Fix lint errors for moving IpClient to NetworkStack

Test: checklint at upload, m
Bug: 112869080
Change-Id: I82fb9c9037cc0a9d3c80958d64552ff1ef0a90ab

5 years agoMerge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java"
Xiangyu/Malcolm Chen [Tue, 22 Jan 2019 03:23:53 +0000 (19:23 -0800)]
Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java"
am: 5c1968475c

Change-Id: Ia19133604da30bd1c67b62369f0bcd94c08d0cb4

5 years agoMerge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java"
Xiangyu/Malcolm Chen [Tue, 22 Jan 2019 03:16:28 +0000 (03:16 +0000)]
Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java"

5 years agoMerge "Add NetworkMonitor constants to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 03:15:59 +0000 (19:15 -0800)]
Merge "Add NetworkMonitor constants to SystemApi"
am: c3a6317b0b

Change-Id: Ic9591f31c6f2b7e613a78fa32311412952be26b8

5 years agoMerge "Add NetworkMonitor constants to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 03:03:37 +0000 (03:03 +0000)]
Merge "Add NetworkMonitor constants to SystemApi"

5 years agoMerge "Add startActivityAsUser to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 02:16:56 +0000 (18:16 -0800)]
Merge "Add startActivityAsUser to SystemApi"
am: 3f4873baef

Change-Id: I14e63dbb8ded7cd858c45b12034637bbe403a618

5 years agoMerge "Add startActivityAsUser to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 02:01:29 +0000 (02:01 +0000)]
Merge "Add startActivityAsUser to SystemApi"

5 years agoProperly expect all callbacks in testStackedLinkProperties.
Lorenzo Colitti [Tue, 22 Jan 2019 00:47:54 +0000 (09:47 +0900)]
Properly expect all callbacks in testStackedLinkProperties.

Currently testStackedLinkProperties accounts for some of the
NetworkCallbacks that are fired, but not all of them. The test
passes because it only ever expects LinkProperties changed
callbacks (and not, e.g., lost callbacks), because it uses
waitForIdle(), and because at the end, when the callback is
unregistered, it does not call assertNoCallback().

Add the missing callback expectation and expect a LOST callback
at the end. Also add an assertNoCallback, even though it's not
strictly necessary. Remove all the waitForIdle statements, which
are no longer necessary because every assertion happens after
waiting for a callback.

Making the expectations more precise in a separate CL will help
ensure that upcoming changes to this code don't break anything,
and will make said changes easier to review.

Bug: 65674744
Test: atest FrameworksNetTests
Test: ConnectivityServiceTest#testStackedLinkProperties passes 400 times
Change-Id: I73cda0dd029a0e6546f7272beedf841ce5a4c0dc

5 years agoMerge "Add IIpClient API for IpClient"
Remi NGUYEN VAN [Tue, 22 Jan 2019 01:23:32 +0000 (17:23 -0800)]
Merge "Add IIpClient API for IpClient"
am: 60b9ad2ec3

Change-Id: I56befc787ef7d25f6e0cd6f2faa523c8f24773c0

5 years agoMerge "Add IIpClient API for IpClient"
Remi NGUYEN VAN [Tue, 22 Jan 2019 01:10:17 +0000 (01:10 +0000)]
Merge "Add IIpClient API for IpClient"

5 years agoMerge changes I5a6174a4,Idfbfdf54
Remi NGUYEN VAN [Mon, 21 Jan 2019 23:48:17 +0000 (15:48 -0800)]
Merge changes I5a6174a4,Idfbfdf54
am: 33a04d0ff9

Change-Id: Ia42c7690a527ecddf90468749e112897207175dc

5 years agoDeprecate JapaneseCalendar.CURRENT_ERA
Victor Chang [Fri, 18 Jan 2019 19:14:59 +0000 (19:14 +0000)]
Deprecate JapaneseCalendar.CURRENT_ERA

In the future, if the era changes in Japan, CURRENT_ERA
on old Android devices will be incorrect.

Thus, Android app developer should not use this API.

Bug: 77850660
Test: m droid
Change-Id: I9ee640bccc83a73c94ac76138597f09f05af8796

5 years agoMerge "Add fields used by NetworkStack to the API"
Remi NGUYEN VAN [Mon, 21 Jan 2019 23:36:17 +0000 (15:36 -0800)]
Merge "Add fields used by NetworkStack to the API"
am: 79a6d5e30c

Change-Id: Iaf2dfea8263a1c7e78130222126e2ebbaa84fedd

5 years agoMerge changes I5a6174a4,Idfbfdf54
Remi NGUYEN VAN [Mon, 21 Jan 2019 23:31:07 +0000 (23:31 +0000)]
Merge changes I5a6174a4,Idfbfdf54

* changes:
  Acquire lock to write NetworkStackConnector
  Allow Bluetooth to bind to NetworkStack

5 years agoAdd startActivityAsUser to SystemApi
Remi NGUYEN VAN [Sun, 20 Jan 2019 12:18:22 +0000 (21:18 +0900)]
Add startActivityAsUser to SystemApi

Normal applications do not have permissions to use this method.

Test: m
Bug: 112869080
Merged-In: I693b3bf56f3be71f0790776e3aad5694717786ef
Change-Id: Ibe91c1bc4c94883a313e799cb0a37db7696fc62e

5 years agoAdd NetworkStack metrics to system API
Remi NGUYEN VAN [Sat, 19 Jan 2019 12:13:24 +0000 (21:13 +0900)]
Add NetworkStack metrics to system API

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: Ie52c55f248c173e2a5ee603ecd004fbac9004ac1

5 years agoMerge "Add fields used by NetworkStack to the API"
Remi NGUYEN VAN [Mon, 21 Jan 2019 23:20:26 +0000 (23:20 +0000)]
Merge "Add fields used by NetworkStack to the API"

5 years agoMerge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList"
Xiangyu/Malcolm Chen [Mon, 21 Jan 2019 23:03:38 +0000 (15:03 -0800)]
Merge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList"
am: b4a450a13c

Change-Id: I3cedb75df101d49da95158455377c876ac2a9369

5 years agoMerge "Add helper API to hide subscriptions when getting active subscriptions"
Xiangyu/Malcolm Chen [Mon, 21 Jan 2019 22:58:59 +0000 (14:58 -0800)]
Merge "Add helper API to hide subscriptions when getting active subscriptions"
am: 795b80da15

Change-Id: I69c5807c7f819bafdc59e3914ca93fec11066a10

5 years agoMerge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList"
Xiangyu/Malcolm Chen [Mon, 21 Jan 2019 22:45:09 +0000 (22:45 +0000)]
Merge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList"

5 years agoMerge "Add helper API to hide subscriptions when getting active subscriptions"
Xiangyu/Malcolm Chen [Mon, 21 Jan 2019 22:44:30 +0000 (22:44 +0000)]
Merge "Add helper API to hide subscriptions when getting active subscriptions"

5 years agoAdd helper API to hide subscriptions when getting active subscriptions
Malcolm Chen [Sat, 22 Dec 2018 01:00:30 +0000 (17:00 -0800)]
Add helper API to hide subscriptions when getting active subscriptions

Adding a hidden API that only return user visible active subscriptions.

Bug: 121396526
Test: manual
Change-Id: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f
Merged-In: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f

5 years agoConnect IRadioConfig 1.1 HAL interfaces with RadioConfig.java
Malcolm Chen [Fri, 21 Dec 2018 23:43:57 +0000 (15:43 -0800)]
Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java

IRadioConfig 1.1 getPhoneCapability and setPreferredDataModem
are defined. Here we hook the calls into RadioConfig.

Bug: 121354686
Test: sanity
Change-Id: I2a198d446962510ef9a3019d3aa30b40e796ebe0
Merged-In: I2a198d446962510ef9a3019d3aa30b40e796ebe0

5 years agoRemove mistake of calling iSub twice in getSelectableSubscriptionInfoList
Malcolm Chen [Wed, 19 Dec 2018 23:56:13 +0000 (15:56 -0800)]
Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList

Don't call getAvailableSubscriptionInfoList twice in
getSelectableSubscriptionInfoList.

Test: build
Change-Id: Ie5821b1d8a01834228401ce6bb1e9ae251168760
Merged-In: Ie5821b1d8a01834228401ce6bb1e9ae251168760

5 years agoMerge "Clean up config of tabs and trailing whitespace"
Chalard Jean [Mon, 21 Jan 2019 19:33:28 +0000 (11:33 -0800)]
Merge "Clean up config of tabs and trailing whitespace"
am: a4c1416c28

Change-Id: I2aee7d2a254fde80cb47eb121651c8eaaac1e9d4

5 years agoMerge changes from topics "coreapi-flag", "coreapi-stubs-csv"
David Brazdil [Mon, 21 Jan 2019 19:25:43 +0000 (11:25 -0800)]
Merge changes from topics "coreapi-flag", "coreapi-stubs-csv"
am: 4620039dc5

Change-Id: I6348f6dfb9f7382087c052a4fedd7b84a73f92d4

5 years agohiddenapi: Expect public/private API as CSV
David Brazdil [Mon, 21 Jan 2019 19:18:42 +0000 (11:18 -0800)]
hiddenapi: Expect public/private API as CSV
am: 17d16e84da

Change-Id: Ib6a27572dcdeb144329f0043b2498b2bd3d6b618

5 years agoMerge "Add OsConstants networking constants to public API"
Remi NGUYEN VAN [Mon, 21 Jan 2019 19:11:00 +0000 (11:11 -0800)]
Merge "Add OsConstants networking constants to public API"
am: 72373058ce

Change-Id: I36afef57362df58b1873e64dfcd7b5adb081fe02