OSDN Git Service
Chris Wailes [Sat, 12 Jan 2019 01:04:41 +0000 (17:04 -0800)]
Added Java Language methods for blastula management.
This commit adds Java Language wrappers for native blastula management
functions. No changes are made to the application lifecycle.
Topic: zygote-prefork
Test: make & flash & launch apps & check log for messages
Bug:
68253328
Change-Id: Ie9fd0aea2952dbd3baaca22c820e9af700f5e89d
Merged-In: Ie9fd0aea2952dbd3baaca22c820e9af700f5e89d
Christian Wailes [Thu, 24 Jan 2019 01:13:41 +0000 (01:13 +0000)]
Merge "Refactored ZygoteConnection.Arguments to ZygoteArguments."
Christian Wailes [Thu, 24 Jan 2019 01:13:20 +0000 (01:13 +0000)]
Merge "Code cleanup in ZygoteInit."
Christian Wailes [Thu, 24 Jan 2019 01:12:46 +0000 (01:12 +0000)]
Merge "Code cleanup to conform to style guide / linter."
Christian Wailes [Thu, 24 Jan 2019 01:12:19 +0000 (01:12 +0000)]
Merge "Implemented native functions and types for blastula management."
Treehugger Robot [Thu, 24 Jan 2019 01:11:58 +0000 (01:11 +0000)]
Merge "Add the blastula pool sockets to the Zygote whitelist."
Christian Wailes [Thu, 24 Jan 2019 01:05:02 +0000 (01:05 +0000)]
Merge "Added mitigation for b/
122921367"
Treehugger Robot [Thu, 24 Jan 2019 01:02:26 +0000 (01:02 +0000)]
Merge "Removed false positives from the greylist."
Chris Wailes [Sat, 12 Jan 2019 00:14:43 +0000 (16:14 -0800)]
Refactored ZygoteConnection.Arguments to ZygoteArguments.
This commit moves the ZygoteConnection.Arguments class into its own file
and re-names it to ZygoteArgumens. Doing this also required small
changes to files that used ZygoteConnection.Arguments. In turn, this
required some changes to make the files conform to the Frameworks style
guide.
Highlights include:
* Moving ZygoteConnection.Arguments to ZygoteArguments
* Moving helper functions from ZygoteConnection to Zygote
* Re-named member variables in the ZygoteArguments class
* Removed unused imports.
Topic: zygote-prefork
Test: make & flash & launch apps & check log for messages
Bug:
68253328
Change-Id: Ideb414c87a92020128a644147949ef4f4133ae33
Merged-In: Ideb414c87a92020128a644147949ef4f4133ae33
Chris Wailes [Fri, 11 Jan 2019 22:30:43 +0000 (14:30 -0800)]
Code cleanup in ZygoteInit.
This commit mostly re-flows the code in ZygoteInit.java to conform to
the Frameworks style guide.
Topic: zygote-prefork
Test: make & flash & launch apps
Bug:
68253328
Change-Id: I0d348caa1d9ca2a4c1e32430e0eebdd91672e473
Merged-In: I0d348caa1d9ca2a4c1e32430e0eebdd91672e473
Chris Wailes [Fri, 11 Jan 2019 21:19:20 +0000 (13:19 -0800)]
Code cleanup to conform to style guide / linter.
This commit made the following changes to make the code conform to the
Frameworks style guide:
* Re-named variables
* Re-flowed code
* Organized includes
Topic: zygote-prefork
Test: make & flash & launch apps
Bug:
68253328
Change-Id: I9274b32f1f606f29f6eb3a1e5068ca18f607afe7
Merged-In: I9274b32f1f606f29f6eb3a1e5068ca18f607afe7
Chris Wailes [Fri, 11 Jan 2019 00:55:32 +0000 (16:55 -0800)]
Implemented native functions and types for blastula management.
This patch adds native support for spawning and managing blastula pools,
as well as several code cleanups and modernizations.
Changes includes:
* A function to fork blastulas
* A table for managing blastula-related data
* Functions for adding and removing blastula data from the
aforementioned table
* Switching from NULL to nullptr
* Replacing string-passing error handling with a curried failure
function
* Utility functions for handling managed objects
* JNI functions for blastula pool management
Topic: zygot-prefork
Test: make & flash & launch apps & check log for messages
Bug:
68253328
Change-Id: I12cd9f2c87a2e3c00d64b683edf3631e29a51551
Merged-In: I12cd9f2c87a2e3c00d64b683edf3631e29a51551
Chris Wailes [Sat, 19 Jan 2019 01:52:27 +0000 (17:52 -0800)]
Add the blastula pool sockets to the Zygote whitelist.
This adds the blastula pool sockets from aosp/843736 to the Zygote FD
white list in fd_utils.cpp.
Bug:
68253328
Test: m & flash image & boot
Change-Id: I1ff4bea0a2ea163bf9c1ccc0d80ffd5d04c49191
Merged-In: I1ff4bea0a2ea163bf9c1ccc0d80ffd5d04c49191
Chris Wailes [Thu, 17 Jan 2019 22:57:10 +0000 (14:57 -0800)]
Added mitigation for b/
122921367
Without this patch aosp/870566 will cause clang to abort during x86-eng
asan builds (due to b/
122921367). This is being committed separately to
enable easy reversion in the future.
Test: m
Bug:
122921367
Change-Id: Id38a6ccabdcd0da02a53e76c47850e197016e781
Merged-In: Id38a6ccabdcd0da02a53e76c47850e197016e781
Chris Wailes [Thu, 10 Jan 2019 23:03:29 +0000 (15:03 -0800)]
Removed false positives from the greylist.
This commit removes several Zygote related functions and types from the
greylist that are not required to be there.
Topic: zygote-prefork
Test: make
Bug:
68253328
Change-Id: I25022d976e7444489aad1aeb1ce6b05736233476
Merged-In: I25022d976e7444489aad1aeb1ce6b05736233476
Colin Cross [Wed, 23 Jan 2019 20:18:02 +0000 (20:18 +0000)]
Merge "Replace annotation_processors with plugins"
Steven Moreland [Wed, 23 Jan 2019 18:05:25 +0000 (18:05 +0000)]
Merge "jarjar hidl core libs."
Nathan Harold [Wed, 23 Jan 2019 17:37:03 +0000 (17:37 +0000)]
Merge "Deprecate Duplicate SignalStrength Methods"
Mathieu Chartier [Wed, 23 Jan 2019 17:02:31 +0000 (17:02 +0000)]
Merge "[view compilation] Add --compile-layouts flag to `pm compile`"
Treehugger Robot [Wed, 23 Jan 2019 17:00:48 +0000 (17:00 +0000)]
Merge "Improvements to Bugreporting API."
Remi NGUYEN VAN [Wed, 23 Jan 2019 15:05:00 +0000 (15:05 +0000)]
Merge changes I1250730c,I7d00848c
* changes:
Create a wrapper for IpClient
Move IpClient to NetworkStack
Treehugger Robot [Wed, 23 Jan 2019 14:48:19 +0000 (14:48 +0000)]
Merge "Add OWNERS"
Lorenzo Colitti [Wed, 23 Jan 2019 12:29:40 +0000 (12:29 +0000)]
Merge "Stop depending on the ConnectivityService default request."
Luke Huang [Wed, 23 Jan 2019 12:02:14 +0000 (12:02 +0000)]
Merge "Netd unsolicited event porting"
Treehugger Robot [Wed, 23 Jan 2019 11:01:43 +0000 (11:01 +0000)]
Merge "[MS11] Implement findL2Key"
Nandana Dutt [Wed, 23 Jan 2019 08:39:05 +0000 (08:39 +0000)]
Improvements to Bugreporting API.
* Add cancelBugreport method.
* Remove unused arguments to onFinished listener call.
* Publish the system service now that sepolicy for it
is submitted.
* Use the new bugreportd service.
Test: boots
BUG:
111441001
Change-Id: I12d72e0e1f4ca72d285fd02a3fc1a44f5c179885
Lorenzo Colitti [Wed, 23 Jan 2019 08:54:08 +0000 (17:54 +0900)]
Stop depending on the ConnectivityService default request.
This avoids the need to expose ConnectivityService implementation
details as @SystemApi and the complexities that would be required
to make NetworkCapabilities parcelable in stable AIDL.
Bug:
112869080
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: Icd5d25b9b8e9b7a7d1899b000c92dc4976c3b3d7
Luke Huang [Wed, 23 Jan 2019 08:48:23 +0000 (08:48 +0000)]
Merge changes from topic "Java async dns"
* changes:
Add asynchronous DNS query API in Java
Add jni method for DnsResolver
Luke Huang [Tue, 4 Sep 2018 09:08:18 +0000 (17:08 +0800)]
Netd unsolicited event porting
Test: atest FrameworksNetTests passes
Test: 1. manual test datacall/wifi work
2. manual test tethering work
3. run cts StrictModeTest pass
4. manual test data alert work
5. manual test idletimer work
Change-Id: Ia4c12510c9c97fed76e4b31fb9756c28fff72853
Chalard Jean [Fri, 18 Jan 2019 11:21:26 +0000 (20:21 +0900)]
[MS11] Implement findL2Key
Bug:
113554482
Test: old tests pass, new tests added
Change-Id: I2e93c88c30eae614a6db04abe698e8edf7fa6a43
Remi NGUYEN VAN [Wed, 23 Jan 2019 07:24:30 +0000 (16:24 +0900)]
Create a wrapper for IpClient
The wrapper allows migrating clients of the IpClient in the NetworkStack
independently.
Test: atest FrameworksNetTests NetworkStackTests FrameworksWifiTests
Bug:
112869080
Change-Id: I1250730c07166298bee2816f05351ba95416994a
Remi NGUYEN VAN [Thu, 10 Jan 2019 10:12:46 +0000 (19:12 +0900)]
Move IpClient to NetworkStack
Test: atest FrameworksNetTests NetworkStackTests
Bug: b/
112869080
Change-Id: I7d00848c052382cd1b6ce458868bed6a1e9e8ec5
Treehugger Robot [Wed, 23 Jan 2019 07:38:06 +0000 (07:38 +0000)]
Merge "Skeleton implementation of Bluetooth metadata APIs"
Remi NGUYEN VAN [Wed, 23 Jan 2019 07:06:44 +0000 (07:06 +0000)]
Merge "Add UserHandle constants to SystemApi"
Xiangyu/Malcolm Chen [Wed, 23 Jan 2019 05:40:04 +0000 (05:40 +0000)]
Merge "Add System API to enable / disable a logical modem."
Todd Kennedy [Tue, 22 Jan 2019 23:49:01 +0000 (15:49 -0800)]
Add OWNERS
Test: None
Change-Id: I3c58436a02eb61f9c822f0003165223eaf8f317a
Tyler Gunn [Wed, 23 Jan 2019 02:45:29 +0000 (02:45 +0000)]
Merge "Add get/set user selected outgoing phone account APIs."
Remi NGUYEN VAN [Wed, 23 Jan 2019 02:06:18 +0000 (11:06 +0900)]
Add UserHandle constants to SystemApi
The affected constants are already SystemApi in internal.
Bug:
112869080
Test: m
Change-Id: Iacefdefa59346eaebd8b92743fe8710845edcc29
Merged-In: I261dfcc5cfdfc76bda5d70181785e11c2715a558
Treehugger Robot [Wed, 23 Jan 2019 01:54:28 +0000 (01:54 +0000)]
Merge "Enable phone apps to mute the BLUETOOTH_SCO stream"
Remi NGUYEN VAN [Wed, 23 Jan 2019 01:13:01 +0000 (01:13 +0000)]
Merge "Add getAvoidBadWifi system API"
Sal Savage [Wed, 23 Jan 2019 00:10:24 +0000 (00:10 +0000)]
Merge "Update config file documentation and examples for network type propagation"
Tomoharu Kasahara [Fri, 18 Jan 2019 11:04:38 +0000 (20:04 +0900)]
Enable phone apps to mute the BLUETOOTH_SCO stream
This change adds support for privileged apps with the MODIFY_PHONE_STATE
permission to mute the bluetooth sco stream using the adjustStreamVolume
method.
The change adds specific handling for BLUETOOTH_SCO as a mutable stream.
Bug:
111195322
Test: Mute works by AudioManager.adjustStreamVolume
(STREAM_BLUETOOTH_SCO, ADJUST_MUTE, 0)
Change-Id: I932f9e152e9b6df93a749b083a7bcc7e08c2ad70
Treehugger Robot [Tue, 22 Jan 2019 23:09:39 +0000 (23:09 +0000)]
Merge "UsbDebuggingActivity.java: OK -> Allow"
Ugo Yu [Tue, 8 Jan 2019 01:00:09 +0000 (09:00 +0800)]
Skeleton implementation of Bluetooth metadata APIs
Bug:
121051445
Test: Build pass
Change-Id: I5e80210205b37294b1eb8356502ebf242e627ce4
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.
Remi NGUYEN VAN [Tue, 22 Jan 2019 22:03:44 +0000 (22:03 +0000)]
Merge "Migrate ICaptivePortal to stable AIDL"
Steven Moreland [Thu, 17 Jan 2019 20:24:54 +0000 (12:24 -0800)]
jarjar hidl core libs.
Otherwise, these might conflict with priv-apps that use them.
Bug:
86259915
Test: boot Pixel 2/3, look for relevant logs
Change-Id: I5f088303ba33cc2d641eea622dcdca2a642a7cd2
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
Sal Savage [Wed, 9 Jan 2019 23:31:30 +0000 (15:31 -0800)]
Update config file documentation and examples for network type propagation
Bug:
112588045
Test: N/A -- only updates comments
Change-Id: Iae5363e06d3f79e308f49cd64c286695722adf73
Tyler Gunn [Tue, 22 Jan 2019 19:42:29 +0000 (19:42 +0000)]
Merge "Mark NEW_OUTGOING_CALL broadcast as deprecated."
Colin Cross [Tue, 22 Jan 2019 05:45:20 +0000 (21:45 -0800)]
Replace annotation_processors with plugins
The annotation_processors property is deprecated, replace it with
plugins, and use java_plugin for modules that provide annotation
processors.
Bug:
77284273
Test: m checkbuild
Change-Id: I14ed4d81e097510866cbb9a27c72be4426117885
Holly Jiuyu Sun [Tue, 22 Jan 2019 19:03:58 +0000 (19:03 +0000)]
Merge "Check whether cardId is valid in EuiccManager#isEnabled."
Nathan Harold [Mon, 14 Jan 2019 22:30:08 +0000 (14:30 -0800)]
Deprecate Duplicate SignalStrength Methods
This change cleans up access and deprecates method
on the SignalStrength class that are no longer needed
due to the support of getCellSignalStrengths(). These
methods are generally technology-specific getters. In
addition, this tags non-public methods that were also
of this type to restrict their access to apps
targeting P or earlier via the @UnsupportedAppUsage
annotation.
In addition, deprecate the semantically incorrect
isGsm().
Lastly, deprecate the NotifierBundle() methods that
rely heavily on implementation details that changed
in this release, and which should also be unneeded due
to getCellSignalStrengths() giving access to the
internal storage classes of SignalStrength.
Bug:
122845432
Test: make update-api && make offline-sdk-docs && make
(no functional change).
Change-Id: Iec794aee337099dee91d0820f7269fda433e8b01
Jack Yu [Tue, 22 Jan 2019 18:18:20 +0000 (18:18 +0000)]
Merge "Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause"
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>
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>
Eric Holk [Mon, 7 Jan 2019 21:58:25 +0000 (13:58 -0800)]
[view compilation] Add --compile-layouts flag to `pm compile`
This allows us to generate precompiled layouts for installed applications.
If the system property view.precompiled_layout_enabled is set, then
PackageMannager will also automatically generate precompiled layouts for apps at
install or upgrade time.
Bug:
111895153
Test: manual
Merged-In: If6455e1b9b0542a36882af9f3e29d0185a53393c
Change-Id: Iea40f5bc90bca0d2605c3c5221159cef13e1e447
Tobias Thierer [Tue, 22 Jan 2019 16:57:50 +0000 (16:57 +0000)]
Merge "Deprecate SSLCertificateSocketFactory"
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
Luke Huang [Fri, 4 Jan 2019 11:56:29 +0000 (19:56 +0800)]
Add asynchronous DNS query API in Java
DnsResolver for asynchronous DNS querying
DnsPacket for parsing answer
Test: built, flashed, booted
atest DnsResolverTest
atest DnsPacketTest
Change-Id: Id014bc7387dd940cfaa270f68e7d4d85fab320a0
Luke Huang [Fri, 4 Jan 2019 11:46:47 +0000 (19:46 +0800)]
Add jni method for DnsResolver
Test: built, flashed, booted
atest DnsResolverTest
Change-Id: Iff730ec918f4db1ba0216f90a12550fe26e271d0
Remi NGUYEN VAN [Sun, 20 Jan 2019 11:35:06 +0000 (20:35 +0900)]
Add getAvoidBadWifi system API
This helps remove the dependency on MultinetworkPolicyTracker from
IpClient.
Test: atest FrameworksNetTests NetworkStackTests
Bug:
112869080
Change-Id: If56791dbed564772f25a859f301b8b52d84e38a3
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
Tyler Gunn [Thu, 15 Nov 2018 15:29:49 +0000 (07:29 -0800)]
Add get/set user selected outgoing phone account APIs.
Promoting getUserSelectedOutgoingPhoneAccount to a public API accessible
to the default dialer app, as well as to system priv apps such as the
settings app.
Promoting setUserSelectedOutgoingPhoneAccount to a system API accessible
to apps such as the settings app.
Add telecom shell commands to support changing the outgoing phone account
in CTS tests.
Bug:
119227574
Test: Manual
Test: Added and ran new CTS test
Change-Id: I204b2f01a1b6746aa35faf8aaacd30ebf53b9a5d
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."
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."
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:40:57 +0000 (13:40 +0000)]
Merge "Expose UIDs for NetworkStack permission checks"
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:14:06 +0000 (13:14 +0000)]
Merge "Remove InterfaceController dependency on NMS"
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.
Remi NGUYEN VAN [Tue, 22 Jan 2019 12:38:33 +0000 (12:38 +0000)]
Merge "Add SystemApi utility for raw sockets."
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
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
vichang [Tue, 22 Jan 2019 10:59:41 +0000 (10:59 +0000)]
Merge "Deprecate JapaneseCalendar.CURRENT_ERA"
Remi NGUYEN VAN [Tue, 22 Jan 2019 10:56:51 +0000 (10:56 +0000)]
Merge "Add LinkProps and NetworkCaps methods to SystemApi"
Adrian Roos [Tue, 22 Jan 2019 10:45:03 +0000 (10:45 +0000)]
Merge "apilint: 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)
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)
Jeff Sharkey [Thu, 27 Sep 2018 22:29:25 +0000 (16:29 -0600)]
Moar lint rulez!
Bug:
37534642,
116675691,
116798271,
72059458,
111790177
Test: manual
Change-Id: Ib079ae580a827f225be08f90dbdddeee7d341c48
(cherry picked from commit
daac37f229f84ed844adcf1ffd3432b235524d9b)
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)
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)
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)
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
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
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
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
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
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."
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
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:48:39 +0000 (07:48 +0000)]
Merge "Add NetworkStack metrics to system API"
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
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:13:39 +0000 (07:13 +0000)]
Merge "Fix lint errors for moving IpClient to NetworkStack"