438819 Commits

Author SHA1 Message Date
Bonian Chen
62a1827a74 Merge "Add READ_PRIVILEGED_PHONE_STATE to the settings whitelist" 2019-12-23 05:53:14 +00:00
Jiyong Park
adf0109da2 Merge "Separate modules for API docs and API stubs" 2019-12-23 05:25:19 +00:00
Jiyong Park
7fb4b183d8 Separate modules for API docs and API stubs
frameworks/base/Android.bp became too big. Modularize it into multiple
files for better readability and extensibility.

droidstubs and java_library modules for API stub libraries are moved to
StubLibraries.bp.

droidstubs and droiddoc modules for API documents are moved to
ApiDocs.bp

Also, added some documentation to explain the roles of the many modules
and how they are related with each other.

Bug: N/A
Test: m

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

Merged-In: I285e8c82078d5bd3ed85b0343db2f6375ce7ffb7
(cherry picked from commit 0d7e86d03c8443cee90096ff0447fd50541d77c3)
Change-Id: I285e8c82078d5bd3ed85b0343db2f6375ce7ffb7
2019-12-22 17:27:49 +09:00
Jiyong Park
5640e1d836 Merge changes I4af73809,Iba6a564a,I3305b71e
* changes:
  Hide com.android.server package with @hide javadoc tag
  Add more enums for the client and process attributes of SystemApi
  SystemApi is parameterized
2019-12-22 08:15:25 +00:00
Treehugger Robot
99d091ee81 Merge "Add services-stubs for in-process APIs in services.jar" 2019-12-22 01:38:33 +00:00
Anton Hansson
07f63db9f7 Merge "Add logging of what derive_sdk sees" 2019-12-21 08:05:06 +00:00
Zongheng Wang
e5f36d48ef Merge "add languageTable and languageShiftTable to calculateLength" 2019-12-21 05:32:25 +00:00
Shi Lu
96e8628049 Merge "Exposing voice connection status system APIs as public API" 2019-12-21 02:31:36 +00:00
Zongheng Wang
571cbd7a6a add languageTable and languageShiftTable to calculateLength
* Change the calculateLength API's return value to an int array whose
  length is 6. Added languageTable and languageShiftTable which is used
  in Bluetooth MAP profile to encode GSM message.

Bug: 140562205
Test: Manual
Change-Id: I25e23c75d7aabcf2e3f678758a5a398f2ef8d4c1
2019-12-20 15:32:51 -08:00
Rahul Sabnis
eeef865a2a Refactor AudioPlaybackConfiguration to reduce usages of hidden APIs
Bug: 141947725
Test: Manual
Change-Id: Ia95776cda3408c321d94494cb25b9cd85cb8662a
2019-12-20 14:48:57 -08:00
Sarah Chin
598b5d5340 Merge "Change reference to Bundle.filterValues" 2019-12-20 22:28:35 +00:00
Jeff Sharkey
31a7838fb1 Merge "Replace import with fully qualified javadoc." 2019-12-20 22:08:33 +00:00
Treehugger Robot
c037935d74 Merge "Make PreciseCallState Constructor System API" 2019-12-20 22:08:13 +00:00
Sarah Chin
c8905d008d Change reference to Bundle.filterValues
Add to TelephonyUtils and replace method call

Test: atest FrameworksTelephonyTests:ImsCallProfileTest
Bug: 140761560
Change-Id: I5cbc7f771f8443835da7acc9e4330ca238d0f929
Merged-In: I5cbc7f771f8443835da7acc9e4330ca238d0f929
2019-12-20 13:07:57 -08:00
Jeff Sharkey
20d6f2e6e1 Replace import with fully qualified javadoc.
Some internal changes are depending more strongly on annotations
being "leaves" which don't directly reference other parts of the OS,
so replace the direct import of Intent with a qualified javadoc
reference.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I198d84a755b5e270a19b41328f6a6e152112c40a
Merged-In: I198d84a755b5e270a19b41328f6a6e152112c40a
2019-12-20 14:01:43 -07:00
Shuo Qian
c12886376a Make PreciseCallState Constructor System API
We would make the constructor of PreciseCallState system API, to resolve
the mainline concern from TelephonyRegistry.

Also clean up unused imports.

Test: built
Bug: 146585782
Change-Id: I0bbca065f86fe352a06c63bdd1b25d34e77a9265
2019-12-20 12:12:57 -08:00
Kevin Rocard
3ae06329dc Add OPUS encoding to the framework
Audio offload support was added to AudioTrack in Q,
but only a few encoding were exposed (MP3 & AAC).

This patch adds only Opus support.
For R we probably want to expose all format that the framework supports.

Bug: 146540917
Test: AudioTrackOffloadTest AudioFormatTest
Change-Id: I2ca57d45081668f76f8d9e153f66d1fd41209685
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-12-20 19:30:18 +00:00
Tyler Gunn
1c687628e0 Cleanup API docs for audio codecs and add intdef.
- Cleanup the API docs for the audio codec constants.
- Add an IntDef for the constants
- Refer to IntDef in the EXTRA_AUDIO_CODEC definition.
- Cleanup API docs for EXTRA_AUDIO_CODEC to make it more clear that
the codecs mentioned are not the only ones supported.

Fixes: 146563762
Test: Compile/make update-api
Change-Id: If837c640033c76f32dfa25dcf9c7d1d6cb344d7b
2019-12-20 11:08:13 -08:00
Colin Cross
de032f2e84 Merge "overlay: Fix IconPackRoundedThemePickerOverlay package name" 2019-12-20 18:40:59 +00:00
Colin Cross
1f4620ac7a Fix Error Prone errors
Soong wasn't including android_app or android_test sources in the
javac-check target used for the Error Prone build, which allowed
some Error Prone errors to get in.  Fix them so Error Prone can be
re-enabled for these targets.

Fixes:
frameworks/base/core/tests/coretests/src/android/view/textclassifier/ActionsSuggestionsHelperTest.java:241: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility.
frameworks/base/core/tests/systemproperties/src/android/os/SystemPropertiesTest.java:97: error: [JUnit3TestNotRun] Test method will not be run; please correct method signature (Should be public, non-static, and method name should begin with "test").
frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/FileUtilsTest.java:64: error: [CheckReturnValue] Ignored return value of method that is annotated with @CheckReturnValue
frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/FileUtilsTest.java:68: error: [CheckReturnValue] Ignored return value of method that is annotated with @CheckReturnValue
frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/FileUtilsTest.java:78: error: [CheckReturnValue] Ignored return value of method that is annotated with @CheckReturnValue
frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/HdmiCecLocalDeviceAudioSystemTest.java:533: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility.
frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/LockSettingsStorageTests.java:480: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility.
frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/LockSettingsStorageTests.java:491: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility.
frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/NotificationManagerServiceTest.java:4196: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility.

Bug: 146455923
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: I829373d41c97962fe2122ea74cef12ba342ac33c
Merged-In: I829373d41c97962fe2122ea74cef12ba342ac33c
2019-12-20 10:32:49 -08:00
Shuo Qian
071d78b1ef Merge "Make getDefaultCarrierServicePackageName for Mainline" 2019-12-20 18:23:12 +00:00
Suren Baghdasaryan
0c3db7785a Merge "Fix unnecessary DmaBuffer copying in getIonMappedSizeKb" 2019-12-20 18:20:52 +00:00
Nathan Harold
d9b5dda461 Expose PreciseDataConnectionState to Public API
1) Remove Unused Parameters for onDataConnectionState:
The data connection state broadcast includes a number of
parameters that are never used anywhere. To prepare for
updated code that relies on PreciseDataConnectionState,
remove the unused parameters that were internal-only and
included in the broadcast.

-LinkProperties
-NetworkCapabilities
-DataRoaming
-DataAllowed
-Interface name

2) Add Disconnecting State for Data Connections

Add a disconnecting state to correct a mismatch
between the internal and externally visible enums.

This will allow apps to know when connections are
in the process of being torn down, which in the case
of radio link issues could be as much as 15 seconds.

3) Expose PreciseDataConnection for Carrier Apps

Exposes the PSL for PreciseDataConnectionState along
with existing fields in the PreciseDataConnectionState
class.

-Make PreciseDataConnectionState public along with some
 of its fields.
-Expose onPreciseDataConnectionStateChanged.
-Add onPreciseDataConnectionStatesChanged to provide PDCS
 for all APNs in one cohesive batch.

4) Cache PreciseDataConnectionState by APN Type

In telephony registry, multiple different APN types
are all piped through the same cache entry, so every
time any APN changes relative to the previous type,
it triggers an update. This also means that when
a registrant requests the data connection state, only
the most recent type's state is updated.

This change caches entries in TelephonyRegistry based
on the APN's type (specifically the type among types
which triggered the change).

Bug: 143083105
Test: make update-api && make offline-sdk-docs
      (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Merged-In: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
Change-Id: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
(cherry picked from commit 4d340f12c9239c83aea6c3c8d8a5bbf0026f33b0)
(cherry picked from commit c95b4e54211cc50ef40494ef99abb51cb3edb455)
2019-12-20 10:06:54 -08:00
vichang
e82d740d6c Merge "Expose NumberFormatter and NumberRangeFormatter APIs" 2019-12-20 17:13:21 +00:00
Suren Baghdasaryan
af4d763b73 Fix unnecessary DmaBuffer copying in getIonMappedSizeKb
Change the loop to access DmaBuffer by reference rather than copying it.

Bug: 138148041
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I47fb49deb46d24897d75f350f4b47679cad37542
2019-12-20 09:05:38 -08:00
Treehugger Robot
bd83df66f8 Merge "Fix clean InProcessTethering fail problem" 2019-12-20 16:34:23 +00:00
Anton Hansson
ba1cdfbe29 Add logging of what derive_sdk sees
Bug: 137191822
Test: adb reboot && adb logcat | grep derive_sdk
Change-Id: I121ec43bc788d155cad113d66d6982a58a3fe9bd
2019-12-20 15:52:08 +00:00
markchien
5189266ca0 Fix clean InProcessTethering fail problem
CleanSpec only respect root of a git project.
Remove packages/Tethering/CldanSpec.mk because it never
be read.

Bug: 144320246
Test: manual build InProcessTethering and observed it is removed
      after adding new clean step.

Change-Id: I58750e4a1fe11018d83da1ebf828d1b3134ec765
Merged-In: I58750e4a1fe11018d83da1ebf828d1b3134ec765
2019-12-20 22:18:01 +08:00
Mark Chien
2410d67357 Merge "[Tether13] Move TetheringManager into framework" 2019-12-20 13:43:46 +00:00
Nikita Iashchenko
ad2026640c Merge changes from topic "icu65.1-upgrade"
* changes:
  Regenerate LocaleDataTables.cpp
  Update API surface for ICU 65.1
2019-12-20 11:14:44 +00:00
Sundong Ahn
33bca5b12b Add minOccurs="0"
For privapp-permissions and oem-permissions elements, some xml files
don't need to permission and deny-permission properties. So add the
minOccurs="0" for these elements.

Test: vts-tradefed run vts -m VtsValidatePermission
Bug: 143251304
Change-Id: Ib93a40e646f9c65bd62d23396c12ea31f2d735d8
2019-12-20 16:54:52 +09:00
Treehugger Robot
74aa262eeb Merge "[Tether14] Add tethering-client jar to whitelist" 2019-12-20 06:24:23 +00:00
Treehugger Robot
c0c28a2671 Merge "Provide APIs to get preferred payment service information" 2019-12-20 03:05:13 +00:00
Treehugger Robot
afb16fa9d4 Merge "Use sysprop library for telephony props" 2019-12-20 02:00:38 +00:00
Treehugger Robot
268fd3556d Merge "Remove Wifi APIs unused in AOSP." 2019-12-20 01:17:05 +00:00
Shuo Qian
ec428aa436 Make getDefaultCarrierServicePackageName for Mainline
Make this API system to resolve mainline concern. It is ok to make it
system API as it is not a key in CarrierConfigManager. We can add
permission check on the other side.

Test: built
Bug: 146583148
Change-Id: I7c4297d659635622ba4523abf2ce32e21f961ad0
2019-12-20 00:15:52 +00:00
Elliott Hughes
c44bffa46a Merge "Add AConfiguration_getScreenRound." 2019-12-20 00:12:49 +00:00
Treehugger Robot
2e321705a7 Merge "Make Gps.KEY_PREFIX and Gps.KEY_PERSIST_LPP_MODE_BOOL Public" 2019-12-19 23:55:34 +00:00
Meng Wang
0330797929 Merge "Do not setSubId on SmsMessage." 2019-12-19 23:47:22 +00:00
Nikita Ioffe
670352e807 Merge "Add an API to tell whenever device supports userspace reboot" 2019-12-19 23:44:06 +00:00
Treehugger Robot
4d83e67433 Merge "Change reference to Build.IS_DEBUGGABLE" 2019-12-19 23:36:16 +00:00
Treehugger Robot
634f6969c4 Merge "Use write_buffer_to_statsd within StatsLog_write" 2019-12-19 23:31:48 +00:00
Neil Fuller
472f9b1540 Merge "Extract an "ArrayMapWithHistory" support class" 2019-12-19 22:49:06 +00:00
Chen Xu
7be5365dc6 Merge "move carrierconfig key disable_severe_when_extreme_disabled to res" 2019-12-19 22:44:57 +00:00
Meng Wang
b3b63b67ac Do not setSubId on SmsMessage.
subId is not used anywhere.

Bug: 140908357
Test: make
Change-Id: I8d1786a8aa5f47886d0127a8009b1312e6d3010e
2019-12-19 14:13:12 -08:00
Fan Zhang
c55310438b Merge "Introduce telecom api to launch emeregency dialer." 2019-12-19 22:07:42 +00:00
Jean-Michel Trivi
2faf009dda Merge "AudioService: fix A2DP disconnection / reconnection" 2019-12-19 21:57:28 +00:00
Suren Baghdasaryan
5ded8c130c Merge changes from topic "ion memory accounting"
* changes:
  Add ION usage into dumpsys report and account ION pools as kernel cache
  Improve cached kernel memory accounting using meminfo KReclaimable field
  Add JNI API to query sizes of ION heaps, pools and mapped part of the heaps
2019-12-19 21:30:48 +00:00
Muhammad Qureshi
bc1002d520 Use write_buffer_to_statsd within StatsLog_write
This CL is a partial cherrypick of ag/9686088. This is needed because new
changes to libstatssocket (that need to be cherrypicked into AOSP) wrap
#write_to_statsd() with #write_buffer_to_statsd().

Bug: 143978873
Test: m -j
Test: flashes successfully
Test: DocumentsUI(a Mainline module) is able to successfully log to statsd
Change-Id: I886331f728ccaa3d281b5683eb89179aa73596b6
Merged-In: I9cdc6151d8feb29a712532e50f143af9d52c8d94
2019-12-19 21:27:18 +00:00
Sarah Chin
5ea6d8a7d2 Change reference to Build.IS_DEBUGGABLE
Replace with TelephonyUtils.IS_DEBUGGABLE and actual call

Test: build
Bug: 140908357
Change-Id: I9e33c2fe426521b8e186cb8e1e5bd7be06992b52
2019-12-19 12:54:19 -08:00