Commit Graph

1346 Commits

Author SHA1 Message Date
Artur Satayev
192ca30b7a Remove unused UnsupportedAppUsage annotations.
The new annotation is android.compat.annotation.UnsupportedAppUsage.

Test: m
Bug: 145132366
Exempt-From-Owner-Approval: previously approved change
Change-Id: Ie12e28eee0ed20b5677ee3162143700813b7ab64
2020-01-29 18:19:45 +00:00
Yurii Zubrytskyi
577c74b861 Merge "Port the current code to new IncFS" 2020-01-29 01:37:01 +00:00
Yurii Zubrytskyi
4a25dfb2de Port the current code to new IncFS
Bug: 146080380
Test: manual, "cmd incremental install-start"

Change-Id: I6761c3f0e58b6d4de1ae3c4b31c23204fba9f740
2020-01-28 12:10:17 -08:00
TreeHugger Robot
97f1344c47 Merge "Add FrameworkStatsLog" 2020-01-28 18:42:48 +00:00
TreeHugger Robot
5d76edcd91 Merge "Rename exoplayer2-core to exoplayer2-extractor" 2020-01-28 12:57:05 +00:00
Automerger Merge Worker
54c3e587bf Merge "Specify which packages metalava should skip in API linting." am: d4454de42f am: 245d0bff54 am: 14fbe2c786
Change-Id: Ie01300ffb67aa8aa6262b7955db4a6e607117757
2020-01-28 00:42:01 +00:00
Muhammad Qureshi
04ec2529f7 Add FrameworkStatsLog
Add a genrule for FrameworkStatsLog and it to frameworks.jar

As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by *StatsLog.java
that is autogenerated for each module.
This CL adds autogenerated FrameworkStatsLog.

Follow up CLs will replace usages of StatsLog.write calls with
FrameworkStatsLog.write.

Bug: 145952197
Test: m
Change-Id: I6ba6a67e019a3b5cffd936dad7ce9db6c8c51632
2020-01-27 16:36:45 -08:00
Aurimas Liutikas
d4454de42f Merge "Specify which packages metalava should skip in API linting." 2020-01-28 00:09:27 +00:00
Muhammad Qureshi
17f6ed8b08 Merge "Add TelephonyCommonStatsLog" 2020-01-27 23:28:08 +00:00
Aurimas Liutikas
1f76a5ad2e Specify which packages metalava should skip in API linting.
Test: make -j checkapi
Change-Id: Iaced9d204ba72fb17d34a7085b685978125b890d
2020-01-27 22:32:45 +00:00
Santiago Seifert
5b86f83c37 Rename exoplayer2-core to exoplayer2-extractor
Bug: 132153067
Test: Not applicable.
Change-Id: I9af4c9abe49e3628928a14091eebb949670d6416
2020-01-27 19:43:50 +00:00
Muhammad Qureshi
ed8bca0bf8 Add TelephonyCommonStatsLog
Add TelephonyCommonStatsLog to framework-telephony-common-sources to
replace StatsLog call in TelephonyPermissions. This allows
TelephonyPermissions to be part of frameworks.jar after being jarjar'ed and also be included
statically in Mainline modules.

Bug: 145952197
Test: m frameworks-minus-apex
Test: fastboot flashall
Test: atest TelephonyCommonTests
Change-Id: I0b9e946e2b4a64a05acaf3132dffd8fc22f7d51d
2020-01-24 17:21:28 -08:00
Lorenzo Colitti
2458be40f4 Merge changes I7065d081,Ic7c3a331,Ia432057b
* changes:
  Add API for tethering clients change
  Allows the caller to specify configuration by TetheringRequest
  Make TetheringManager to system API
2020-01-24 16:23:18 +00:00
markchien
75b6d7b8ae Make TetheringManager to system API
Also deprecated tethering APIs in ConnectivityManager.
Will have follow up change to remove @hide tethering function in
ConnectivityManager.

Bug: 145093446
Bug: 148038547
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ia432057bf9056727c4a0ca97d160a49274d33581
Merged-In: Ia432057bf9056727c4a0ca97d160a49274d33581
2020-01-24 23:39:49 +09:00
Yu-Han Yang
c622cdf66c Merge "Add inter-signal bias fields to GnssMeasurement and GnssClock" 2020-01-23 20:35:28 +00:00
Yu-Han Yang
ad03c47369 Add inter-signal bias fields to GnssMeasurement and GnssClock
Bug: 147500886

Test: atest GnssMeasurementTest
      atest GnssClockTest

Change-Id: I8adaf1c1b0f6478695ca9b4768568af0ebfb11d4
2020-01-22 16:42:19 -08:00
TreeHugger Robot
0868e078eb Merge "Clean framework-aidl-export-defaults up" 2020-01-23 00:20:00 +00:00
Remi NGUYEN VAN
a96f449ce2 Merge "Make TetheringManager to system API" 2020-01-23 00:11:49 +00:00
markchien
40898cacc2 Make TetheringManager to system API
Also deprecated tethering APIs in ConnectivityManager.
Will have follow up change to remove @hide tethering function in
ConnectivityManager.

Bug: 145093446
Bug: 148038547
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ia432057bf9056727c4a0ca97d160a49274d33581
2020-01-23 00:41:59 +09:00
Mike Ma
6bf8baead4 Merge "Dump connmetrics in protobuf format" 2020-01-22 09:21:16 +00:00
TreeHugger Robot
50b22317ff Merge "Add configs for ePDG" 2020-01-22 01:15:07 +00:00
David Su
6dcd768873 Export Wifi Parcelables AIDLs from framework.jar
Add Wifi public/@SystemApi Parcelable AIDLs to
framework.jar AIDL exports so that they can be
referenced outside the Wifi module.

Create a new folder "aidl-export" to separate
the AIDLs we want to export to allow external
callers to reference in their AIDL. Private AIDLs
remain in the "java" folder.

Bug: 140299412
Test: compiles
Change-Id: I4e0dc1119bf2b49865c9b5cdf23c571528228902
2020-01-21 13:21:40 -08:00
Dheeraj Shetty
81a4f4ee28 Add configs for ePDG
Bug: 140873586

Test: Manually tested the configs using the following commands:
adb shell cmd phone cc get-value [KEY]
adb shell cmd phone cc set-value [KEY] [VALUE]

Change-Id: I56672f8ac622fb6226dccd3d91e8d81e6124a16b
2020-01-21 11:24:21 -08:00
David Su
c1728f1613 Merge changes from topics "framework-jar-build-against-framework-wifi-stubs", "settings-suggestions-apis"
* changes:
  framework.jar - include framework-wifi-stubs instead of framework-wifi (Attempt 2)
  Expose WifiNetworkSuggestion.getWifi/PasspointConfiguration()
2020-01-21 17:05:24 +00:00
David Su
9e208ff677 Merge changes from topic "revert-10057725-IDGRNKQGYI"
* changes:
  Build framework-wifi against core_current & framework-system-stubs (Attempt 2)
  Fully qualify android.net.wifi.ScanResult
2020-01-21 17:04:30 +00:00
Automerger Merge Worker
310f576b7f Merge "Add Framework APIs for Identity Credential." am: 2fb5112a35 am: 70485380f7 am: 6079e88fae
Change-Id: Iec2c6c1ec28b5697b8d2b444081a3240bea2af9e
2020-01-21 15:12:56 +00:00
Treehugger Robot
2fb5112a35 Merge "Add Framework APIs for Identity Credential." 2020-01-21 14:38:14 +00:00
Automerger Merge Worker
b4bae8a503 Merge "Set the visibility of framework-core-sources-for-test-mock" am: a77e4c3ad3 am: af31927d4d am: d0ba5601aa
Change-Id: I3d008d2633785d74a560b7832158caadc4eef8bc
2020-01-21 09:44:41 +00:00
David Zeuthen
045b6de975 Add Framework APIs for Identity Credential.
The Identity Credential APIs provides an interface to a secure store
for user identity documents.  These APIs are deliberately fairly
general and abstract.  To the extent possible, specification of the
message formats and semantics of communication with credential
verification devices and Issuing Authorities (IAs) is out of scope for
these APIs.

The Identity Credential APIs rely on user authentication to protect
data elements in credentials which is implemented through
auth-tokens. This CL contains changes to CryptoObject to allow this.

Bug: 111446262
Test: CtsIdentityTestCases
Change-Id: I48f21a561b762d86c9ca8d229962782572412f47
2020-01-20 15:56:57 -05:00
Henry Fang
43cab92abe Framework support cas@1.2
Test: Manual
bug: 141783130
Change-Id: I62d42ad51444b8d58282f5d6992ba6f2169dd6d3
2020-01-19 22:28:44 +00:00
David Su
439175f1b9 Build framework-wifi against core_current & framework-system-stubs (Attempt 2)
At this point framework-wifi will not depend on
any @hide APIs.

Previous attempt broke git_master/apps target.

Bug: 140299412
Change-Id: Idf4c1d22f96c01ae9c117742dcfe83929ab545ae
Test: boots up and connects to Wifi
2020-01-17 17:15:58 -08:00
David Su
298cd36e58 framework.jar - include framework-wifi-stubs instead of framework-wifi (Attempt 2)
Stop exporting @hide APIs from framework-wifi
to framework.jar by including framework-wifi-stubs
instead. At this point no code is allowed to call @hide APIs
defined in framework-wifi unless they have an explicit
exemption.

Attempt 1 broke the build, trying again.

Bug: 140299412
Change-Id: I3eecb0a5f6b1c0be85d684d190465d591994d99f
Test: boots up and connects to Wifi
2020-01-17 15:12:36 -08:00
Xiangyu/Malcolm Chen
179e23dfe9 Merge "Copy @hide util files into framework-telephony." 2020-01-17 21:38:39 +00:00
David Su
36a63e59a5 Merge "framework-wifi: clean up AIDL exports (Attempt 2)" 2020-01-17 21:06:49 +00:00
TreeHugger Robot
19d17f359d Merge "Add flag to stats-log-api-gen for WorkSource." 2020-01-17 19:32:45 +00:00
David Su
c651359200 framework-wifi: clean up AIDL exports (Attempt 2)
Remove AIDL exports to not leak internal
implementation as AIDL is not an official API
of the Wifi module.

Previous attempt broke the build.

Bug: 147757606
Change-Id: I2edeeccf83b9460881c5d4ccc6bd5d6e3befa700
Test: compiles
2020-01-17 11:05:33 -08:00
Muhammad Qureshi
ad94425b15 Add flag to stats-log-api-gen for WorkSource.
As part of getting rid of StatsLogInternal and moving every atom to be
logged from a module, this CL addresses 2 issues:
1. Add WorkSource logging to modules.
2. Gate WorkSource logging via a CLI flag to prevent WorkSource methods
from being included in modules that are Mainline modules and can't have
@hide calls.

Bug: 147541828
Test: m
Test: atest android.cts.statsd.atom.UidAtomTests

Change-Id: Icce2f6ed7298be5e5ceebfb05d87e6fa7cd6bdbb
2020-01-17 08:36:52 -08:00
Jiyong Park
392729fcc9 Clean framework-aidl-export-defaults up
The defaults module specifies AIDL paths that are exported to the
clients of framework or framework-minus-apex libraries. Therefore, it
doesn't need to be inherited to framework-annotation-proc whose purpose
is just to run the annotation processor and isn't linked to anyone.

Also moved the 'required' property to the other defaults
'framework-defaults' since the property has nothing to do with exporting
aidl directories.

Bug: N/A
Test: m
Change-Id: Ied8522eec5c03d3162e6ae22a08e21f31dc528d2
2020-01-17 16:35:12 +09:00
Jiyong Park
673e298ba5 Set the visibility of framework-core-sources-for-test-mock
It is visible only to frameworks/base/test-mock as its name says.

Bug: N/A
Test: m
Change-Id: I0ad1bfe038f8b494bfbb0e0015cfe0565934a229
2020-01-17 16:15:35 +09:00
David Su
c976e8663a Build framework-telephony-stubs against core_current
Build framework-telephony-stubs against
core_current so that it can be linked by
framework-wifi, which will also be built
against core_current.

Bug: 140908357
Test: device boots up
Change-Id: I20bf13a100d6dfca06c4e108a837987234ec2b38
2020-01-16 20:56:18 -08:00
Roshan Pius
364042007d Merge "wifi-service: Jar-Jar net util sources" 2020-01-17 02:04:14 +00:00
Roshan Pius
02432980d0 wifi-service: Jar-Jar net util sources
Bug: 135998869
Test: Compiles
Test: Number of compile errors when compiled against system_current
reduces.

Change-Id: I67d2a435e8fd8c823b6cb1bf4becb01362dcc5e0
2020-01-16 14:35:43 -08:00
Malcolm Chen
58b59a5ea4 Copy @hide util files into framework-telephony.
Also add jarjar rules for them.

Bug: 140908357
Test: build
Change-Id: I4411be058a002a4339ea563f444de9f4c0b67f23
2020-01-16 14:32:50 -08:00
Chen Xu
546ce5e45e modularize telephony-framework from framework.jar
Bug: 140908357
Test: Build & Manaul
Change-Id: Idd4cbdb84247b98072b6ebc00a37168fde6fbbaa
2020-01-16 14:32:50 -08:00
Anton Hansson
b2f709db1d Add <extension-sdk> manifest tag inside <uses-sdk>
This allows apps to specify the minimum versions they need
of extension sdks, and fails install if they aren't met.

There is additional work required to prevent local rollbacks
from triggering a downgrade of SDK versions after an install.

Bug: 137191822
Test: atest PackageParserTest
Exempt-From-Owner-Approval: PS4 was approved
Change-Id: If61ae6c67ceb752bec6876006a29e52b996901e7
2020-01-16 11:59:52 +00:00
Mike Ma
d2672bda9c Dump connmetrics in protobuf format
Add protobuf dumpsys of connmetrics. Primarily used by incident service
to capture an incident report proto.

Currently, "proto" is used to dump the ring buffer in base64-encoded
proto. The newly added "--proto" arg is a dumpsys convention to dump
a service in proto wire format. This change reuses most of the code
for executing "proto". Other cmds remain unchanged.

Command to invoke (any of the following after lunch and env setup):
$ adb shell dumpsys connmetrics --proto
$ incident_report 3049

Bug: 146086778
Test: $ incident_report 3049, then compare the content with "dumpsys
      connmetrics"

Change-Id: Ief2297d99aeb553224a83894ba3b9695ff0b87aa
2020-01-15 17:13:37 -08:00
David Su
15858efcc0 Merge changes from topic "framework-jar-build-against-framework-wifi-stubs"
* changes:
  framework.jar - include framework-wifi-stubs instead of framework-wifi
  Expose WifiConfiguration.SuiteBCipher
2020-01-15 23:22:19 +00:00
Hai Zhang
82a6227fc7 Allow adding framework and service java code into permission APEX.
Along with two empty classes to make build happy.

Bug: 136503238
Test: presubmit
Change-Id: Ib706a7ac4d09374ce220961f9439f712a38f7c0c
2020-01-15 13:56:17 -08:00
David Su
1c83ec6639 Merge "Revert "framework-wifi: clean up AIDL exports"" 2020-01-15 20:57:58 +00:00
David Su
03e42a6d68 Revert "framework-wifi: clean up AIDL exports"
This reverts commit 537d8d9e2b.

Reason for revert: Broke build

Change-Id: Ia69c60050203b1124baf8d1304e837854a1f8bc9
2020-01-15 20:50:43 +00:00