Commit Graph

1154 Commits

Author SHA1 Message Date
TreeHugger Robot
2e955bcb7d Merge "Add basebandCn0Dbhz to GnssMeasurement" 2019-12-04 00:54:05 +00:00
Meng Wang
bb55c78b36 Merge "Telephony module will staticlly link IState.java" 2019-12-03 18:34:34 +00:00
Sarah Chin
7ed0bdeb89 Merge "Updated AccessNetworkConstants and RadioAccessSpecifier" 2019-12-03 17:59:31 +00:00
atrost
c3c2e4de2d Add a compat change to opt-in to latest SELinux domain.
Refactor getSeInfo into a method, if the app doesn't share a
sharedUserId, and the change is enabled use targetSdkVersion R (1000)
for the seInfo domain.

Add a listener to the compat change that checks if seInfo has changed
(as a result of enabling/disabling the change), and if it did updates it,
and calls prepareAppDataAfterInstallLIF to make sure the data is
correctly labeled.
The listener will be called when an override is introduced or removed
for the change.

Bug: 143539591
Test: atest com.android.server.pm.SELinuxMMAXTest
Test: Install facebook (target SDK 28), login +download a photo, turn on
      the change, open facebook, download another photo, disable change,
      open facebook again, download another photo. Everything works as
      expected, photos are accessible, profile is setup.

Change-Id: If5ecf490e781db13d84656b36d0740a00ee124b5
2019-12-03 15:01:03 +00:00
Meng Wang
64fffb9787 Telephony module will staticlly link IState.java
to avoid hidden API dependency.

Bug: 137202333
Test: make
Change-Id: I5a9ddbebadcf6226402f6e4a37ced168fe07d55b
2019-12-02 17:06:02 -08:00
Anton Hansson
6717604aa3 Merge "Put all updatable sources in one filegroup" am: 0223efdaa1 am: 371cf3ce5e
am: 022f6f2ab7

Change-Id: I079cb8dc6729f62b03eb262a5e0a17141f069087
2019-12-02 11:54:20 -08:00
Anton Hansson
0223efdaa1 Merge "Put all updatable sources in one filegroup" 2019-12-02 19:30:36 +00:00
Anton Hansson
bbe62f41ab Merge "Add SdkExtensions class" am: 0899f50b75 am: af659d8ac4
am: e71a500a08

Change-Id: I5d09d54c59fcda545eb3028bd08cccf33a5cd805
2019-12-02 10:33:02 -08:00
Anton Hansson
b4f3557fde Put all updatable sources in one filegroup
Avoids having to add updatable jars to a bunch of different
lists.

Test: m
Change-Id: Ieb0347a87f5bfc4a6ac8367279b3e97e05bfa6a7
2019-12-02 16:51:50 +00:00
Anton Hansson
cd333734c3 Merge "Add scaffolding for 'sdkext' module" am: 728048b49e am: 5fd63b6571
am: 3dc2d698c4

Change-Id: I855a8d7902c8880d0142506bd3d86eea9f73a3ca
2019-12-02 08:43:35 -08:00
Anton Hansson
4ec07fadef Add SdkExtensions class
It currently just reads a prop that is never set, but that will
be updated separately.

Keep the class @hide for now.

Bug: 137191822
Test: m com.android.sdkext
Change-Id: I1a874bf3d3e34676b5d767c4d03b09337b193cce
2019-12-02 15:32:39 +00:00
Anton Hansson
98460abc89 Add scaffolding for 'sdkext' module
This module will have a java framework part as well as a native
binary. Add directory and hook future java sources into the stub
rules.

Bug: 137191822
Test: m
Change-Id: I5527a055bf935178b88a1b20504b251f18f3d873
2019-12-02 13:56:06 +00:00
Meng Wang
3ef13e045c Merge "Do not use hidden API XmlUtils." 2019-12-01 23:41:25 +00:00
Tobias Thierer
10672be4de Merge "Android.bp: Add comment about APEX stub dependency for MimeMap." am: bb2531f16b am: 4eed4ccc56
am: 721f6371d5

Change-Id: I710fdebbb209615c3f22b835d27568cb44c4fde2
2019-12-01 12:29:17 -08:00
Tobias Thierer
8296853914 Android.bp: Add comment about APEX stub dependency for MimeMap.
This addresses a review comment on https://r.android.com/1172924

Test: Treehugger
Change-Id: Ic2106aebf707c9d347f06d5a0dab18614e0ad5a3
2019-11-29 19:42:11 +00:00
Tobias Thierer
17d0c59338 Tweak framework-mime / mimemap dependencies.
This CL addresses an outstanding review comment from
https://r.android.com/1115772 . To be honest, I don't
fully get the semantics of what I've changed, so I've
followed Jiyong's suggestions pretty blindly, except
that I've added the static dependency on mimemap to
framework-minus-apex as opposed to the (non-existing)
frameworks.

Test: Confirmed that the data files are still in framework.jar by
      rebuilding (make installclean && make droid && flashall )
      and then running:
      adb shell su 0 unzip -l /system/framework/framework.jar | grep types
Test: atest CtsMimeMapTestCases
Change-Id: Icfa5aba8455c7460063d1e4812c71c5a2c0c6c90
Merged-In: Icfa5aba8455c7460063d1e4812c71c5a2c0c6c90
2019-11-29 19:42:03 +00:00
Tobias Thierer
c0c06088f0 Tweak framework-mime / mimemap dependencies.
This CL addresses an outstanding review comment from
https://r.android.com/1115772 . To be honest, I don't
fully get the semantics of what I've changed, so I've
followed Jiyong's suggestions pretty blindly, except
that I've added the static dependency on mimemap to
framework-minus-apex as opposed to the (non-existing)
frameworks.

Test: Confirmed that the data files are still in framework.jar by
      rebuilding (make installclean && make droid && flashall )
      and then running:
      adb shell su 0 unzip -l /system/framework/framework.jar | grep types
Test: atest CtsMimeMapTestCases
Change-Id: Icfa5aba8455c7460063d1e4812c71c5a2c0c6c90
2019-11-29 17:21:08 +00:00
Songchun Fan
f4c2c56121 Merge "[incremental] Manager, Storage and changes to Package Manager Service" 2019-11-28 07:38:50 +00:00
Songchun Fan
d1b41d49eb [incremental] Manager, Storage and changes to Package Manager Service
Checking in basic high-level classes and their interactions with
package manager service.

Incremental Manager manages IncrementalStorage instances. Both are
backed by Incremental Service.

Package Manager Service uses Incremental Manager to handle file
operaions on Incremental File System, such as renaming and cleanup.

Also adding place holders for native library handling.

Test: builds
Change-Id: I78b64f795de480e109aeaffe61272a413a6b4be5
2019-11-27 15:47:29 -08:00
Jeff Gaston
a08395de66 Replacing @Nullable/@NonNull with @RecentlyNullable/@RecentlyNonNull in non-android APIs
because this causes callers of those APIs to only receive warnings from kotlinc rather than errors.

Bug: 141748642

Test: m api-stubs-docs && \
      cd out/target/common && mv docs docs-new && unzip docs-new/api-stubs-docs-stubs.srcjar -d docs-new/api-stubs-docs-stubs.srcjar_unzipped && cd - && \
      cd frameworks/base && git checkout HEAD^ && cd - && m api-stubs-docs && \
      cd out/target/common && mv docs docs-old && unzip docs-old/api-stubs-docs-stubs.srcjar -d docs-old/api-stubs-docs-stubs.srcjar_unzipped && \
      diff -x "*.html" -r docs-old/ docs-new | grep -v "^diff" | sed 's/^</>/' | grep '^>' | sed 's|androidx.annotation.Recently|android.annotation.|g' | sort | uniq -c | grep "^ *1 " # And notice that there aren't any copies of "androidx.annotation.Recently" without a matching instance of "android.annotation." or vice versa

Test: m api-stubs-docs && out/target/common/docs && unzip api-stubs-docs-stubs.srcjar -d unzipped && cd unzipped && \
      grep -r "@.*NonNull" java | grep -v Recently && \
      grep -r "@.*Nullable" java | grep -v Recently

Change-Id: I156f1788880958cf3d1f030da829e76cefd6072e
Merged-In: I156f1788880958cf3d1f030da829e76cefd6072e
2019-11-27 17:18:22 -05:00
Jeff Gaston
8d32c937d1 Merge "Revert "Replacing @Nullable with @RecentlyNullable for apis annotated since API 28"" 2019-11-27 21:44:20 +00:00
Jordan Liu
ea6874a856 Merge "Expose some SystemApis and edit framework-cellbroadcast-shared-srcs" 2019-11-27 19:43:24 +00:00
Meng Wang
6409dd586a Merge "DumpUtils: Teleophony will use a local copy instead." 2019-11-27 19:32:42 +00:00
Jeff Gaston
6855f1d484 Revert "Replacing @Nullable with @RecentlyNullable for apis annotated since API 28"
This reverts commit 1b51142eb6 now that nullability of non-android APIs will remain as @Nullable/@NonNull rather than @RecentlyNullable/@RecentlyNonNull

Bug: 141748642
Test: m api-stubs-docs &&
      cd out/target/common && mv docs docs-new && unzip docs-new/api-stubs-docs-stubs.srcjar -d docs-new/api-stubs-docs-stubs.srcjar_unzipped && cd - &&
      cd frameworks/base && git checkout HEAD^ && cd - && la m api-stubs-docs &&
      cd out/target/common && mv docs docs-old && unzip docs-old/api-stubs-docs-stubs.srcjar -d docs-old/api-stubs-docs-stubs.srcjar_unzipped &&
      diff -q -x "*.html" -r docs-old/ docs-new # And notice that all of the changes are in android/ or in dalvik/

Change-Id: Iecad0acdd910de4a1270e3ccfe34fe378d22a113
2019-11-27 18:48:41 +00:00
Meng Wang
ae3d807965 Do not use hidden API XmlUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Change-Id: Ibcf7b23a8b6628aa482b34f867db57e4cb0dbb8e
2019-11-26 16:26:24 -08:00
Jordan Liu
15a727439f Expose some SystemApis and edit framework-cellbroadcast-shared-srcs
The APIs are used in the CellBroadcastService, and the
framework-cellbroadcast-shared-srcs library is also linked there.

Bug: 135956699
Test: manual
Change-Id: I5e71ea1ee1a858c0520c241dc7365733441e0f50
2019-11-26 15:26:11 -08:00
Yu-Han Yang
9fe06ddab8 Add basebandCn0Dbhz to GnssMeasurement
The new basebandCn0DbHz is the carrier-to-noise density measured at the
baseband. The old Cn0DbHz is measured at the attenna port. Adding
the new field so that ecosystem will report both and avoid reporting
inconsistent signal strengths in one field. See go/r-gnss-hal for
detailed design.

Bug: 136136192
Test: atest GnssMeasurementTest
Change-Id: Ia8d3711e7422db5cae05d66138a3fae61bec0ae1
2019-11-26 14:29:07 -08:00
Meng Wang
741e30f974 Do not use SLog in telephony modules
Bug: 137202333
Test: make
Change-Id: Id919a18beda26c5686f77e369db6a3712dd8317b
2019-11-26 12:05:11 -08:00
Meng Wang
2933315626 DumpUtils: Teleophony will use a local copy instead.
Bug: 137202333
Test: make
Change-Id: I3366eab39ac3ac694a5b7a4a275e24130fcd5f96
2019-11-26 10:22:43 -08:00
Meng Wang
60a46c5833 Telephony: do not use hidden API ArrayUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Change-Id: I3218bca2d296c548b9d8427f70df8f7a33d0d449
2019-11-25 11:18:10 -08:00
evitayan
82d1e1414d Expose IKE module API: IKE ID, TS and SaProposal am: 69d77da91a am: 327e0fcecc
am: 171bf87879

Change-Id: I72e8f88adb2abf875eb97a3e248b8de019dcf846
2019-11-25 07:38:48 -08:00
evitayan
327e0fcecc Expose IKE module API: IKE ID, TS and SaProposal
am: 69d77da91a

Change-Id: I3cc01a28d45bbf9d7706e0522b2c8e1fc8d5a78f
2019-11-22 20:10:18 -08:00
Benedict Wong
091e420529 Merge changes from topics "Expose IKE ID, TS & SaProposal", "Expose IKE exception and callback", "Expose IkeManager & IkeSession", "Expose SessionOptions & EapConfig"
* changes:
  Expose IKE module API: IkeManager and IkeSession
  Expose IKE module API: Session Options & EapSessionConfig
  Expose IKE module API: IkeException, configuration & callback
  Expose IKE module API: IKE ID, TS and SaProposal
2019-11-23 03:45:53 +00:00
Ytai Ben-tsvi
a99e006cd8 Merge changes from topic "hidl-memory-java"
* changes:
  Add HidlMemoryUtil
  Add parceling support for HIDL memory in Java
2019-11-22 00:33:34 +00:00
Ytai Ben-Tsvi
a907efc3bc Add parceling support for HIDL memory in Java
This change adds support for reading/writing a HidlMemory
instance into / out of a HwParcel and HwBlob, in a format that
is compatible with the hidl_memory C++ type.
This paves the way to be able to exchange shared memory blocks
between native and Java via HwBinder, which will be exposed
as adding Java support for the HIDL 'memory' type.

Change-Id: I6cbbf852218c8a631f9014e7caa7a97d17e11889
Bug: 143566068
Merged-In: I6cbbf852218c8a631f9014e7caa7a97d17e11889
2019-11-21 15:19:47 -08:00
Terry Wang
ecc0d1b2c1 Add a new system service for app search project
Bug: 142567528
Test: manual
Change-Id: Iefb426383f94ec89c896065c798b22cfb2977bf3
2019-11-21 14:15:22 -08:00
Ytai Ben-Tsvi
4659e18733 Add parceling support for HIDL memory in Java
This change adds support for reading/writing a HidlMemory
instance into / out of a HwParcel and HwBlob, in a format that
is compatible with the hidl_memory C++ type.
This paves the way to be able to exchange shared memory blocks
between native and Java via HwBinder, which will be exposed
as adding Java support for the HIDL 'memory' type.

Change-Id: I6cbbf852218c8a631f9014e7caa7a97d17e11889
Bug: 143566068
2019-11-21 13:38:39 -08:00
TreeHugger Robot
0371af9072 Merge "Remove unnecessary jarjar rule from framework/base" 2019-11-20 22:42:30 +00:00
Santiago Seifert
7094b76782 Remove unnecessary jarjar rule from framework/base
Bug: 144765333
Test: Not applicable.
Change-Id: Ia092b7fb1156652b69080030673b0e8427e745a0
2019-11-20 20:55:45 +00:00
Charles Munger
9c743482fc Merge "Include androidx stubs in framework docs" am: acd388baf2 am: 5c239c7e95
am: ecf64ba3c4

Change-Id: I8b7f2e1e303b7add21e8eee9fa16f29a14177d55
2019-11-20 09:58:51 -08:00
Treehugger Robot
acd388baf2 Merge "Include androidx stubs in framework docs" 2019-11-20 17:32:09 +00:00
TreeHugger Robot
5d4b8e683e Merge "Remove api_dir property" 2019-11-20 12:02:49 +00:00
Anton Hansson
55b08655e9 Merge "Revert "Work around b/70221552"" am: 79995a5673 am: b2f181d3c3
am: 6f81d38eb0

Change-Id: I1674380d0b79b446e27ddffff32f708c12d3acc0
2019-11-19 19:43:20 -08:00
Charles Munger
1b1c0ca9ee Include androidx stubs in framework docs
This will allow javadoc links to androidx packages to resolve.

Test: No behavior changes
Bug: 144042891
Change-Id: I01c1cd637f46c666c28669c1796a1d5a0d249c24
2019-11-19 14:01:19 -08:00
Santiago Seifert
195d7c1519 Merge changes I11074924,Ieb6b114e
* changes:
  Add initial stubs for MediaParser
  Add ExoPlayer dependency to frameworks/base
2019-11-19 11:06:50 +00:00
Anton Hansson
d82b2f7e4a Revert "Work around b/70221552"
This reverts commit 159799d7c9.

Reason for revert: b/70221552 is fixed

Change-Id: Iaae0df6736a3141847376b9ab0115f1c7a31fdb1
2019-11-18 13:40:45 +00:00
Jiyong Park
ced28d531d remove framework_base_subdirs
Metalava no longer requires it at least for droidstubs in this
directory. Even when local_sourcepath is not set, the -sourcepath option
is set to the module directory (frameworks/base in this case), and
metalava tries to find package.html files under the directory to know if
a package is hidden or not.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 144264106
Test: m

Merged-In: Idfa2aa392ae1da9582e7691a8c06c986baad5088
(cherry picked from commit e53786e864)
Change-Id: Idfa2aa392ae1da9582e7691a8c06c986baad5088
2019-11-16 20:48:06 +09:00
TreeHugger Robot
19e6a8c5c1 Merge "remove framework_base_subdirs" 2019-11-16 08:08:52 +00:00
Sundong Ahn
ed2ed6b476 Remove api_dir property
The api_dir property is removed, and the api dir path for aidl_interface
is fixed to aidl_api/{module_name}.

Bug: 113134692
Test: m -j
Change-Id: I0fdc074579647be0e5f5b025a909c3c0c41194c9
2019-11-15 11:19:44 +09:00
Santiago Seifert
5466a7d4a6 Add ExoPlayer dependency to frameworks/base
In preparation for the addition of MediaParser.

Bug: 134057371
Test: Not applicable.
Change-Id: Ieb6b114e90703abf59a589eb01dccca8a2d20e02
2019-11-14 20:44:01 +00:00