Commit Graph

1214 Commits

Author SHA1 Message Date
TreeHugger Robot
a563214951 Merge "Add updatable_media_stub to framework" 2019-12-19 02:49:13 +00:00
TreeHugger Robot
d8492dbfb2 Merge "Migrating Incremental* APIs to PackageManager APIs." 2019-12-18 21:38:46 +00:00
Alex Buynytskyy
ea14d19106 Migrating Incremental* APIs to PackageManager APIs.
This is the first step, migrating java parts.
CleanSpec.mk added as a workaround for b/146502407

Test: builds and flashes
Bug: b/136132412

Change-Id: Id0a26aa011b555ea457b5aafe7f5789c36d25bcc
2019-12-18 19:13:39 +00:00
Jeffrey Huang
18e52123ce Merge "Create statsmanager service" 2019-12-18 18:20:25 +00:00
Alex Buynytskyy
5b0c7fa2bd Trying to work around aidl incremental build bug.
Test: builds
Bug: b/136132412
Change-Id: I7519889f6898d7604ee5416d928dc955a4f97edf
2019-12-18 01:47:56 -08:00
Jiyong Park
92721349d9 Add updatable_media_stub to framework
The module framework is now a build-only library whose purpose is to
provide hidden APIs from the non-updatable part of the platform and APIs
from the modules. Merging updatable_media_stub to framework, like the
stub libraries from other modules.

Bug: N/A
Test: m
Change-Id: Ib627523aab44b7c41d27d70c6ae34cda5dc2e27c
2019-12-18 17:26:38 +09:00
Automerger Merge Worker
6c4c69d04e Merge "Statically link util classes into Telephony module." am: b713828c17 am: 63345dfc2a am: cf9aa18dd6
Change-Id: I75780ceb2d95dfe73be249f4c617aa9041388f27
2019-12-18 00:58:02 +00:00
Jeffrey Huang
8c1ae5aef8 Create statsmanager service
Bug: 146074170
Test: Manual
Change-Id: Ia96f2df24e660fe3293fb2e873e9050a55398cee
2019-12-17 16:54:11 -08:00
Meng Wang
b713828c17 Merge "Statically link util classes into Telephony module." 2019-12-18 00:28:34 +00:00
Alexander Dorokhine
04a05a8bb2 Move framework-appsearch out of framework.jar.
Test: CtsAppSearchTestCases
Bug: 146218515
Change-Id: I55a8732e54e46877ee448973d735ded2870d9443
2019-12-17 10:41:21 -08:00
David Su
130441b131 Create WifiAnnotations and jarjar into framework
@IntDef annotations defined in the Wifi module are
@hide and cannot be referenced from the rest of
framework. Create a separate class for Wifi
annotations that can be jarjar'ed into external
clients.

Bug: 140299412
Test: compiles
Change-Id: I5beac976b4d12fb2c01f46cb46f9c54ab54618ea
2019-12-16 17:16:07 -08:00
David Su
754fcc20c5 Split framework-wifi.jar out of framework.jar
Build framework-wifi against framework-minus-apex.
Build framework-minus-apex against "framework-wifi-stubs".
Build framework.jar against framework-wifi since a few
bundled apps/tests still use @hide Wifi APIs.

framework-minus-apex now only has @SystemApi dependencies
on framework-wifi.

Bug: 140299412
Test: atest FrameworksWifiTest FrameworksWifiApiTests
Change-Id: I3ada1dc7e8186c566cfbf7ad3d3b49878ae9860d
2019-12-16 17:16:07 -08:00
Meng Wang
8532de9d05 Telephony module will staticlly link IState.java
to avoid hidden API dependency.

Bug: 137202333
Test: make
Merged-In: I5a9ddbebadcf6226402f6e4a37ced168fe07d55b
Change-Id: I5a9ddbebadcf6226402f6e4a37ced168fe07d55b
2019-12-16 12:22:01 -08:00
Muhammad Qureshi
237c774468 Create framework-statsd
Create framework-statsd jar in statsd apex.
Move StatsEvent to framework-statsd.jar.
Right now, frameworks jar links against framework-statsd directly. This
should be changed to link against framework-statsd-stubs.

Bug: 145923096
Bug: 145923116
Bug: 142810493

Test: m
Test: flashes successfully
Test: adb shell cmd stats print-logs && adb logcat "*:S statsd:*"

Change-Id: Ife224abd5c9b9b0eeab681dc4b7f71c0bdb856b1
2019-12-16 10:17:03 -08:00
Automerger Merge Worker
2f69ed4adc Merge "Add stubs and an sdk definition for sdkext" am: 4c1f4c2bc6 am: 2bb61d97c5 am: b9a1698c97
Change-Id: I3cdca9b5bd2e21b769c8a7090a8f5578cbccb4a1
2019-12-16 16:35:37 +00:00
Anton Hansson
4c1f4c2bc6 Merge "Add stubs and an sdk definition for sdkext" 2019-12-16 16:00:43 +00:00
TreeHugger Robot
b4f91be235 Merge "SystemApi is parameterized" 2019-12-16 14:33:43 +00:00
Alex Buynytskyy
247901bb4f Merge "[incremental] Java service and shell command handler" 2019-12-16 06:44:49 +00:00
Meng Wang
9c2a8e0792 Statically link util classes into Telephony module.
- AsyncChannel
- BitwiseInputStream

Bug: 137202333
Test: make
Change-Id: I1714835d3489bc4ed5a4f289dfd9ac9ee6f194e9
2019-12-13 16:45:34 -08:00
Treehugger Robot
2626cc7089 Merge "Do not use hidden API XmlUtils." 2019-12-13 22:14:26 +00:00
Meng Wang
ae112af81d Merge "DumpUtils: Teleophony will use a local copy instead." 2019-12-13 21:34:53 +00:00
Etan Cohen
df386953a1 wificond: move wificond files to unbundled file group
Bug: 140062898
Test: builds, associates, SAP functionality works
Test: atest android.net.wifi
Change-Id: I0e637083bc9063ac25bcac6ad65f243d6ffaaaed
2019-12-13 12:04:04 -08:00
Etan Cohen
73450f2004 Wificond: transfer implementation to android.net.wifi
Move implementation of wificond to frameworks/base (android.net.wifi)
in prepration for making into a public API (which will be a wrapper
around the AIDL).

Bug: 140062898
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Test: associates, soft AP client information received correctly
Change-Id: I3c5ede95d0421a1e00078e0316e9a2e751156f3e
2019-12-13 11:18:54 -08:00
Songchun Fan
f5c894f7ce [incremental] Java service and shell command handler
Renaming:

IIncrementalManager.aidl -> IIncrementalManagerNative.aidl
IIncrementalServiceProxy.aidl -> IIncrementalManager.aidl

Adding implementation of IIncrementalManager.aidl. Also adding
implementation of the shell command handler.

Test: $adb abb incremental help

Change-Id: Ia18fde097f6170f4774552428a2927186ede8389
2019-12-13 09:38:07 -08:00
Anton Hansson
355000dc7b Add stubs and an sdk definition for sdkext
This defines both publicapi and a systemapi variants, even though
the publicapi is currently empty. Uses the newly defined module
stub_defaults.

Bug: 137191822
Test: m framework
Test: m sdkext-sdk
Change-Id: Idad8902054bef4a08953f4677689506566f146d8
2019-12-13 16:29:05 +00:00
Jiyong Park
119afc0695 SystemApi is parameterized
We have decided to reuse the existing annotation @SystemApi for all Java
APIs regardless of whether they are for apps or platform internal
modules. This was because introducing new annotation types every time
when we have to create new API surfaces will only increase the confusion
without giving much benefit.

Instead, to differenciate the different API surfaces of @SystemApi, the
annotation type is parameterized. Specifically, it has to axises.

client: specifies the intended client of the API.

process: specifies the process(es) that the API is available.

The default for client and process are priv-apps and all, respectively,
which corresponds to the today's @SystemApi for privileged apps like
GMS.

Bug: 140202860
Test: m
Change-Id: I3305b71e22970e80db95f3daf3d7713603c7d68d
2019-12-13 14:58:16 +09:00
Meng Wang
f8d5cabb71 Do not use SLog in telephony modules
Bug: 137202333
Test: make
Merged-In: Id919a18beda26c5686f77e369db6a3712dd8317b
Change-Id: Id919a18beda26c5686f77e369db6a3712dd8317b
2019-12-12 21:45:23 -08:00
Meng Wang
d4a6c06b52 DumpUtils: Teleophony will use a local copy instead.
Bug: 137202333
Test: make
Merged-In: I3366eab39ac3ac694a5b7a4a275e24130fcd5f96
Change-Id: I3366eab39ac3ac694a5b7a4a275e24130fcd5f96
2019-12-12 18:13:43 -08:00
Meng Wang
56c0ccecfc Do not use hidden API XmlUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Merged-In: Ibcf7b23a8b6628aa482b34f867db57e4cb0dbb8e
Change-Id: Ibcf7b23a8b6628aa482b34f867db57e4cb0dbb8e
2019-12-12 17:16:01 -08:00
Meng Wang
e1df98d2e2 Telephony: do not use hidden API ArrayUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Merged-In: I3218bca2d296c548b9d8427f70df8f7a33d0d449
Change-Id: I3218bca2d296c548b9d8427f70df8f7a33d0d449
2019-12-12 16:52:30 -08:00
Treehugger Robot
01e54d44b9 Merge "Addition of util library" 2019-12-13 00:31:06 +00:00
Michele
68370a8685 Addition of util library
Bug: 137202333
Test: Compilation
Test: Scripts to verify correct usage of rules
Change-Id: I20e48e66d6c429a67d367efc2a73991c3aad825c
Merged-In: I20e48e66d6c429a67d367efc2a73991c3aad825c
2019-12-12 10:19:51 -08:00
Treehugger Robot
938bc05883 Merge "Add new UnsupportedAppUsage annotation as lib dependency." 2019-12-12 12:10:55 +00:00
Artur Satayev
700e08b291 Add new UnsupportedAppUsage annotation as lib dependency.
Bug: 145132366
Test: m
Change-Id: Ibb7f8424186149365354a96249c06c9fccde66bd
Merged-In: Ibb7f8424186149365354a96249c06c9fccde66bd
2019-12-11 19:44:16 +00:00
Artur Satayev
1497a45d0c Merge "Add new UnsupportedAppUsage annotation as lib dependency." 2019-12-11 19:43:09 +00:00
David Su
b1a690d1e7 Merge "Create a new non-updatable Wifi filegroup for WifiNetworkScoreCache" 2019-12-11 18:25:48 +00:00
Artur Satayev
6aa25ec97d Add new UnsupportedAppUsage annotation as lib dependency.
Bug: 145132366
Test: m
Change-Id: Ibb7f8424186149365354a96249c06c9fccde66bd
2019-12-11 18:18:18 +00:00
TreeHugger Robot
3ee1b172a9 Merge "framework is not available to APEXes" 2019-12-11 12:42:56 +00:00
David Su
6f646ef3a3 Create a new non-updatable Wifi filegroup for WifiNetworkScoreCache
WifiNetworkScoreCache will not be part of the Wifi module. Thus,
split it out into a separate filegroup. WifiNetworkScoreCache
will eventually live in framework.jar, while the rest of the Wifi
API surface will live in framework-wifi.jar.

Bug: 144487252
Test: compiles
Change-Id: Id82218204ab62e549b60bcfc41af9eaa305000ce
2019-12-10 15:01:14 -08:00
Roshan Pius
c93cd7aa9f wifi-services-srcs: JarJar IpConfiguration
Bug: 145904524
Test: Compiles
Change-Id: I2fce222628a0f28a81770645866f7a1ead56cce9
2019-12-10 13:10:49 -08:00
Anton Hansson
f0e0cdacec Merge "Expose SdkExtension in the system SDK" 2019-12-10 16:32:47 +00:00
Winson Chiu
f0ff68f625 Merge changes from topic "androidpackage"
* changes:
  Critical fixes for AndroidPackage migration
  Revert Revert PackageParser#Package fixes
  Revert "Revert "Deprecate PackageParser#Package""
2019-12-09 21:46:13 +00:00
Anton Hansson
b52bd1cbbe Expose SdkExtension in the system SDK
Also tweak the javadoc a little bit.

Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
Merged-In: Iae1b025685344c2ffe4ed1089850b447c82a6b83
2019-12-09 17:21:24 +00:00
Anton Hansson
dc1e99bbca Expose SdkExtension in the system SDK
Also tweak the javadoc a little bit.

Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
2019-12-09 17:16:03 +00:00
Roshan Pius
3f9ba67fa7 Merge changes from topics "suggestion_no_uid_package", "wifi_key_value_list_parser", "wifi_power_profile", "wifi_service_manager_getService", "wifi_westworld"
* changes:
  statsd: Allow wifi mainline module to log its metrics
  wifi-services-srcs: Stop using KeyValueListParser from android.internal
  WifiNetworkSuggestion: Don't store packageName/uid
  WifiAwareManager: Add requestMacAddresses @hide API
  UserManager: Add StringDef for all restrictionKey values
  WifiActivityEnergyInfo: Use time values for energy calculation
2019-12-09 17:08:30 +00:00
Jiyong Park
352f9e2b6f framework is not available to APEXes
The modules 'framework', 'framework-minus-apex', 'framework-all' contain
private symbols that shouldn't be accessible to Mainline modules.
Restrict the access by making the framework modules to be accessible
only to the platform (the non updatable part).

Bug: 145796956
Test: m
Change-Id: I08cb61a67aef88ffe04ef52670144e1cbeff3cf9
2019-12-09 18:18:18 +09:00
Jordan Liu
9fd7c05eb9 Merge "Expose some SystemApis and edit framework-cellbroadcast-shared-srcs" 2019-12-07 00:06:23 +00:00
Roshan Pius
62eb61cfa4 wifi-services-srcs: Stop using KeyValueListParser from android.internal
This class introduces a lot of transitive dependencies.

Also, rename the filegroup name to be consistent with wifi service name
(wifistack is no loner relevant).

Bug: 142809066
Test: Compiles
Change-Id: I87f6d7ec15888a10338518631f04d91fc8524a56
2019-12-06 15:34:32 -08:00
Ruchir Rastogi
cd9dd94fb1 StatsEventParcel impl.; move AIDL files
This implementation continue to uses libbinder, as opposed to
libbinder_ndk.

We also move many (but not all) statsd aidl files from
frameworks/base/core into the apex.

Test: m -j128 && bit statsd_test:*
Change-Id: I95f06e937e50c1e2a638163b13587682402956a7
2019-12-06 14:08:27 -08:00
Winson
14ff71712c Revert "Revert "Deprecate PackageParser#Package""
This reverts commit 8e18a0ab89.

Exempt-From-Owner-Approval: Revert to re-add approved change

Change-Id: I5b5195470f365a2347cbf444cc0494d119e42ffc
2019-12-06 12:24:05 -08:00