439331 Commits

Author SHA1 Message Date
markchien
b0aca967c2 Add UpstreamNetworkState for tethering
Previous tethering use NetworkState to encapsulate network states.
But NetworkState is hide API and Tethering just use NetworkState
locally that it don't interact with other module by NetworkState.
To avoid hide API accessing and reduce dependency, replace
NetworkState as UpstreamNetworkState in tethering.

Bug: 144758082
Test: atest TetheringTests
     OFF/ON hotspot

Change-Id: Ia1837b6ed983a64c3ed72ecf0e6f46d91b3af7da
2019-12-23 17:38:40 +08:00
Kevin Rocard
7252ee13be Merge "Add OPUS encoding to the framework" 2019-12-23 09:32:43 +00:00
Bonian Chen
ecc0fce03b Merge "Add READ_PRIVILEGED_PHONE_STATE to the settings whitelist"
am: 62a1827a74

Change-Id: I4ccc56384bf910dce6be18218b7166e4047442ae
2019-12-22 22:06:37 -08:00
Jiyong Park
1ab2a87a59 Merge "Separate modules for API docs and API stubs"
am: adf0109da2

Change-Id: I778d4736dd73e1a4955f8cbab316b8d60f44f9a2
2019-12-22 22:02:14 -08:00
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
91ccb1b309 Merge changes I4af73809,Iba6a564a,I3305b71e
am: 5640e1d836

Change-Id: Ia0bfa4b3135a12f2e38438f192baa6ebb641bc4b
2019-12-22 00:20:17 -08: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
Jiyong Park
1c86d14d8f Merge "Add services-stubs for in-process APIs in services.jar"
am: 99d091ee81

Change-Id: I1bb1e6ccd21aa9e1fb15ca209a18edb612beabb8
2019-12-21 18:02:08 -08: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
2fe9938f7c Merge "Add logging of what derive_sdk sees"
am: 07f63db9f7

Change-Id: If144484adb1bf194b00f8cf07ce689bcdab61c97
2019-12-21 01:04:03 -08:00
Anton Hansson
07f63db9f7 Merge "Add logging of what derive_sdk sees" 2019-12-21 08:05:06 +00:00
Zongheng Wang
b73b9c9f76 Merge "add languageTable and languageShiftTable to calculateLength"
am: e5f36d48ef

Change-Id: I0b567214374549a6c2526180b0c35f1aab2d1d4c
2019-12-20 21:35:34 -08:00
Zongheng Wang
e5f36d48ef Merge "add languageTable and languageShiftTable to calculateLength" 2019-12-21 05:32:25 +00:00
Shi Lu
55cc8b27b8 Merge "Exposing voice connection status system APIs as public API"
am: 96e8628049

Change-Id: I222a9a2b44050825a4553b4b7baa7dfe7de3e046
2019-12-20 18:39:56 -08: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
16e27b9a3e Merge "Change reference to Bundle.filterValues"
am: 598b5d5340

Change-Id: I0b2cc753addf4f806f11f0f801d6f796340142ef
2019-12-20 14:35:15 -08:00
Sarah Chin
598b5d5340 Merge "Change reference to Bundle.filterValues" 2019-12-20 22:28:35 +00:00
Jeff Sharkey
1d5eed4cb0 Merge "Replace import with fully qualified javadoc."
am: 31a7838fb1

Change-Id: I1ede620fad6dfe3debb7156bf882a27402bfb5d9
2019-12-20 14:15:54 -08:00
Shuo Qian
682ba08d42 Merge "Make PreciseCallState Constructor System API"
am: c037935d74

Change-Id: I8ec5d83ddcd2114e697e9ad322edb45e278ff1c1
2019-12-20 14:12:46 -08: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
d248789271 Merge "overlay: Fix IconPackRoundedThemePickerOverlay package name"
am: de032f2e84

Change-Id: I3f83dbe45e27b05b802fd25209889037d4ea4e53
2019-12-20 10:45:53 -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
58fd0fd58d Merge "Make getDefaultCarrierServicePackageName for Mainline"
am: 071d78b1ef

Change-Id: I97c5ecfaf01856e0983f0805e357211f75dfdf06
2019-12-20 10:29:18 -08:00
Suren Baghdasaryan
6ae159e035 Merge "Fix unnecessary DmaBuffer copying in getIonMappedSizeKb"
am: 0c3db7785a

Change-Id: Id26832bc288f128ab823a60f767f51a632371db2
2019-12-20 10:25:43 -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
81b019eda9 Merge "Expose NumberFormatter and NumberRangeFormatter APIs"
am: e82d740d6c

Change-Id: Ifd1f5f2d8539f10344cdc57d9cbce0a6ebeec264
2019-12-20 09:18:29 -08:00
vichang
e82d740d6c Merge "Expose NumberFormatter and NumberRangeFormatter APIs" 2019-12-20 17:13:21 +00:00
markchien
5faa2ebe67 Merge "Fix clean InProcessTethering fail problem"
am: bd83df66f8

Change-Id: Ifa8e7e4ac7c4d48e149a8a6d797d8f964603a95a
2019-12-20 09:06:08 -08: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
25cc1f47c5 Merge "[Tether13] Move TetheringManager into framework"
am: 2410d67357

Change-Id: I05c79a1cf07e7679ea2a2c9221e541fb1c9a5a23
2019-12-20 05:47:01 -08:00
Mark Chien
2410d67357 Merge "[Tether13] Move TetheringManager into framework" 2019-12-20 13:43:46 +00:00
Nikita Iashchenko
b1cc7c336b Merge changes from topic "icu65.1-upgrade"
am: ad2026640c

Change-Id: I46464bedb5a1fe913db0e5317ffba0eebeb00b5f
2019-12-20 04:04:02 -08:00
Nikita Iashchenko
755d19c121 Update API surface for ICU 65.1
am: 9da8b8e3da

Change-Id: Idf168de98045b8db65acf1e79c82fe74b51a3cf8
2019-12-20 04:03:55 -08: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