OSDN Git Service
Remi NGUYEN VAN [Wed, 23 Jan 2019 07:39:57 +0000 (23:39 -0800)]
Merge "Add UserHandle constants to SystemApi" am:
0a9054639d
am:
7b0f06d7d9
Change-Id: I4ab95e6114546f01648a949b5712b7a609319684
Remi NGUYEN VAN [Wed, 23 Jan 2019 07:23:59 +0000 (23:23 -0800)]
Merge "Add UserHandle constants to SystemApi"
am:
0a9054639d
Change-Id: I2652807a0a44b885abe00c8ec64b14de503db2b7
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 06:07:47 +0000 (22:07 -0800)]
Merge "Add System API to enable / disable a logical modem." am:
8df9d17289
am:
def2c87ee6
Change-Id: I85875233adced81ae9caa4d1a4c65cdc84922356
Xiangyu/Malcolm Chen [Wed, 23 Jan 2019 05:54:20 +0000 (21:54 -0800)]
Merge "Add System API to enable / disable a logical modem."
am:
8df9d17289
Change-Id: Ie73f7dc14b6367fe50c4a47157b6ce386788cb1e
Xiangyu/Malcolm Chen [Wed, 23 Jan 2019 05:40:04 +0000 (05:40 +0000)]
Merge "Add System API to enable / disable a logical modem."
Tyler Gunn [Wed, 23 Jan 2019 04:10:33 +0000 (20:10 -0800)]
Merge "Add get/set user selected outgoing phone account APIs." am:
bf10036306
am:
6e7caec9ae
Change-Id: I5278da53a5292379c27db7da1a9029d87f785d9a
Tyler Gunn [Wed, 23 Jan 2019 03:32:13 +0000 (19:32 -0800)]
Merge "Add get/set user selected outgoing phone account APIs."
am:
bf10036306
Change-Id: I992722f1eccf85ca4ec64e457197f72505b8ebbb
Tomoharu Kasahara [Wed, 23 Jan 2019 03:02:31 +0000 (19:02 -0800)]
Merge "Enable phone apps to mute the BLUETOOTH_SCO stream" am:
09d13a2232
am:
b0395aca6a
Change-Id: I1656753897ff28a9ff9096fee0ba9928623e75ad
Tyler Gunn [Wed, 23 Jan 2019 02:45:29 +0000 (02:45 +0000)]
Merge "Add get/set user selected outgoing phone account APIs."
Tomoharu Kasahara [Wed, 23 Jan 2019 02:13:53 +0000 (18:13 -0800)]
Merge "Enable phone apps to mute the BLUETOOTH_SCO stream"
am:
09d13a2232
Change-Id: I2e49205fd3c1c4af909972a0a9b943876ef24ddd
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:53:09 +0000 (17:53 -0800)]
Merge "Add getAvoidBadWifi system API" am:
58582a36fc
am:
656f2fa71a
Change-Id: Ide4ffc316c9301b795e8c0dabea3322aaf0b3184
Remi NGUYEN VAN [Wed, 23 Jan 2019 01:41:46 +0000 (17:41 -0800)]
Merge "Add getAvoidBadWifi system API"
am:
58582a36fc
Change-Id: Ifdf913669df84df3e3b158d5527895236e6758b7
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 01:11:06 +0000 (17:11 -0800)]
Merge "Update config file documentation and examples for network type propagation" am:
bfd44b60ef
am:
a414bf1691
Change-Id: I86789fdd45ebff23fa6020c0fa702d06908d3d67
Sal Savage [Wed, 23 Jan 2019 00:43:27 +0000 (16:43 -0800)]
Merge "Update config file documentation and examples for network type propagation"
am:
bfd44b60ef
Change-Id: I0b1690102776065a7f1c1156e9c4808a8c111e29
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
Nick Kralevich [Tue, 22 Jan 2019 23:28:39 +0000 (15:28 -0800)]
Merge "UsbDebuggingActivity.java: OK -> Allow" am:
f9718dbe17
am:
56ed214f67
Change-Id: Ieec3c59499c3a3770d92a52866aa324df1ce0473
Chalard Jean [Tue, 22 Jan 2019 23:20:30 +0000 (15:20 -0800)]
Merge changes If71fadd2,I42047185 am:
022daeb874
am:
6d1da29090
Change-Id: Id181b0c617c209bdf01ce25a8920d96025f8421d
Nick Kralevich [Tue, 22 Jan 2019 23:19:11 +0000 (15:19 -0800)]
Merge "UsbDebuggingActivity.java: OK -> Allow"
am:
f9718dbe17
Change-Id: I597e50b031334ff67641f9252d8081fbfca7f4b4
Chalard Jean [Tue, 22 Jan 2019 23:12:54 +0000 (15:12 -0800)]
Merge changes If71fadd2,I42047185
am:
022daeb874
Change-Id: Ie15258f09adb7f1cc53c558e1d3d5fdaf8d93476
Treehugger Robot [Tue, 22 Jan 2019 23:09:39 +0000 (23:09 +0000)]
Merge "UsbDebuggingActivity.java: OK -> Allow"
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:35:29 +0000 (14:35 -0800)]
Merge "Migrate ICaptivePortal to stable AIDL" am:
eb7c53718a
am:
d15930fc27
Change-Id: I6fa53f6f7c45aa801a1e48e04bdb3ca6004f565d
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
Remi NGUYEN VAN [Tue, 22 Jan 2019 22:03:44 +0000 (22:03 +0000)]
Merge "Migrate ICaptivePortal to stable AIDL"
Suren Baghdasaryan [Tue, 22 Jan 2019 21:55:25 +0000 (13:55 -0800)]
Merge changes from topic "move sched_policy functions" am:
2a2b4eec35
am:
ef974c1a36
Change-Id: I571daf3bed2a2145ea85435f6d5a753635cca9f3
Suren Baghdasaryan [Tue, 22 Jan 2019 21:49:21 +0000 (13:49 -0800)]
Add libprocessgroup dependency and fix sched_policy include am:
09a29e161f
am:
2d74e0de16
Change-Id: I77e49756d7c415896e1c3888a7f26acfb5b21105
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
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
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
Tyler Gunn [Tue, 22 Jan 2019 20:52:26 +0000 (12:52 -0800)]
Merge "Mark NEW_OUTGOING_CALL broadcast as deprecated." am:
1e08a90339
am:
8aa49b57f3
Change-Id: Ie60bbc11e0bd5ca434be609dd596ea1a33ba8812
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
Holly Jiuyu Sun [Tue, 22 Jan 2019 20:12:59 +0000 (12:12 -0800)]
Merge "Check whether cardId is valid in EuiccManager#isEnabled." am:
feb047acb3
am:
4fc9c994d4
Change-Id: I356c5b13808562af3baf970dfad6443564f64590
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
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
Tyler Gunn [Tue, 22 Jan 2019 19:42:29 +0000 (19:42 +0000)]
Merge "Mark NEW_OUTGOING_CALL broadcast as deprecated."
Holly Jiuyu Sun [Tue, 22 Jan 2019 19:03:58 +0000 (19:03 +0000)]
Merge "Check whether cardId is valid in EuiccManager#isEnabled."
Jack Yu [Tue, 22 Jan 2019 18:57:43 +0000 (10:57 -0800)]
Merge "Support radio HAL V1.4 SetupDataCallResult and DataCallFailCause" am:
3788e9147d
am:
c5e86971c1
Change-Id: Ie453f40d946ec9f512bd6ee09ce37aef4813be54
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
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>
Tobias Thierer [Tue, 22 Jan 2019 17:22:30 +0000 (09:22 -0800)]
Merge "Deprecate SSLCertificateSocketFactory" am:
f86156158c
am:
6804819923
Change-Id: Ib92af4ccfb66dc2bf261eb474d54e913bbcd96d8
Tobias Thierer [Tue, 22 Jan 2019 17:13:20 +0000 (09:13 -0800)]
Merge "Deprecate SSLCertificateSocketFactory"
am:
f86156158c
Change-Id: I30dafbd9577dbaced7712b7497ecb0e0324c75f5
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
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 15:20:11 +0000 (07:20 -0800)]
Merge "Support for treating single party IMS conference as a standalone call." am:
89e53d81ce
am:
955c9adb36
Change-Id: I5af4c4591cd825adfeab8be56d7c60d29905f1c4
Pavel Grafov [Tue, 22 Jan 2019 15:09:43 +0000 (07:09 -0800)]
Merge "Add API for VPN apps to query always-on and lockdown." am:
479c0769f1
am:
5fb1be5c0b
Change-Id: I48f3441f06af2a69776eacc5ee52463873739bdb
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
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
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 14:04:32 +0000 (06:04 -0800)]
Merge "Expose UIDs for NetworkStack permission checks" am:
3b887bdf4a
am:
29515d751b
Change-Id: Ia9bc41cebf048d536efa8aeea992fed3f583ba1b
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
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:34:33 +0000 (05:34 -0800)]
Merge "Remove InterfaceController dependency on NMS" am:
06adb08d27
am:
b6eb7e19e2
Change-Id: I432d8f625057a3e3e35e12910fc48319c723295e
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
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:22:30 +0000 (05:22 -0800)]
Merge changes Ieef54d84,Ica3e88c2 am:
491f53523a
am:
8e4ce11318
Change-Id: I33fc6ee4cf47676dc2a4a9369dd3fc053dba34ec
Remi NGUYEN VAN [Tue, 22 Jan 2019 13:14:58 +0000 (05:14 -0800)]
Merge changes Ieef54d84,Ica3e88c2
am:
491f53523a
Change-Id: Ia60c1dd733a8de0e777dce78cde67738f6d466bd
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:02:22 +0000 (05:02 -0800)]
Merge "Add SystemApi utility for raw sockets." am:
91c81c13b6
am:
510d2f82ad
Change-Id: I2252fbfb4a793b33193037003823af68a56ae760
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:53:05 +0000 (04:53 -0800)]
Merge "Add SystemApi utility for raw sockets."
am:
91c81c13b6
Change-Id: I91392d479ca24cfcc114ca6f9cf349c833f5f9c5
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
vichang [Tue, 22 Jan 2019 11:33:15 +0000 (03:33 -0800)]
Merge "Deprecate JapaneseCalendar.CURRENT_ERA" am:
0f5893ee60
am:
7f9c43a01e
Change-Id: Idb56be376c9b9e14f587ac3078d9356ca661c708
Remi NGUYEN VAN [Tue, 22 Jan 2019 11:27:36 +0000 (03:27 -0800)]
Merge "Add LinkProps and NetworkCaps methods to SystemApi" am:
4bde11491b
am:
563c545187
Change-Id: Ic15474fe0b7da8062114367ec4f692e30e73d549
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
Adrian Roos [Tue, 22 Jan 2019 11:19:04 +0000 (03:19 -0800)]
Merge "apilint: correctly parse enum_constant" am:
d8b953078e
am:
26ccde4b80
Change-Id: I36cc62620029d7a4387705fad441be24f5532673
vichang [Tue, 22 Jan 2019 11:19:03 +0000 (03:19 -0800)]
Merge "Deprecate JapaneseCalendar.CURRENT_ERA"
am:
0f5893ee60
Change-Id: I29548ec04dd5a37d5a672430002b380ff56667d9
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
Adrian Roos [Tue, 22 Jan 2019 11:10:43 +0000 (03:10 -0800)]
Merge changes I38145a51,Iac1fdabc,I90f18181,I76b979dd,Id2e17923, ... am:
137f8f2e5a
am:
d7e7397eaa
Change-Id: I470391352b9e555c28f5bbf0bf6e8309ee3c945e
Adrian Roos [Tue, 22 Jan 2019 11:07:22 +0000 (03:07 -0800)]
Merge "apilint: correctly parse enum_constant"
am:
d8b953078e
Change-Id: I633edc113833f49a4d96fafe4dfa1d9a1b49c357
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
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