439825 Commits

Author SHA1 Message Date
Grace Jia
799177d0fc Cleanup hidden API usage of voip-common.
1) Expose SipManager#getListOfProfiles as system API.

2) Expose SipProfile#getCallingUid and SipProfile#setCallingUid

Test: manual
Bug: 145923259
Change-Id: Icccd17a15bdce44c42619405c9597e0a109beeb9
2020-01-17 10:50:36 -08:00
Treehugger Robot
3b35f3dfef Merge "API: Supress existing inconsistent Context service names" 2020-01-17 18:26:15 +00:00
Treehugger Robot
7b56a5075d Merge "Add option to avoid clobbering visibility of <declare-styleable>" 2020-01-17 18:21:24 +00:00
Treehugger Robot
2120eced38 Merge "Track addition of Flow.* to the public API." 2020-01-17 18:06:23 +00:00
Treehugger Robot
ba0576ee28 Merge "Properly catch ServiceSpecificException if IMS isn't available" 2020-01-17 17:52:39 +00:00
Rambo Wang
55f9664eb3 Merge "Revert "Revert "Add method to enforce READ_PRECISE_PHONE_STATE p..."" 2020-01-17 17:27:06 +00:00
Rambo Wang
bd5a33f03b Merge "Annotate StringNetworkSpecifier @Deprecated and @removed" 2020-01-17 17:26:33 +00:00
Brad Ebinger
d57ff4a221 Expose proprietary extras Bundle in ImsCallProfile
Fixes: 147726367
Test: atest CtsTelephonyTestCases:ImsCallProfileTest
Change-Id: I5a2aee142b77c86f00967fc1092c219d0d164a39
2020-01-17 09:18:38 -08:00
Treehugger Robot
00d0c52470 Merge "Track addition of new java.util APIs." 2020-01-17 16:41:48 +00:00
Tobias Thierer
09b69c8568 Track addition of Flow.* to the public API.
Bug: 129875045
Test: Treehugger
Change-Id: I259713e4068acc14860a570b92e85d5446e6ee22
2020-01-17 16:25:21 +00:00
Treehugger Robot
880792723a Merge "Tweak compat change override policy" 2020-01-17 14:07:29 +00:00
Rick Yiu
28aec752bd Merge "Implement the ThreadPrioritySetter interface" 2020-01-17 13:32:54 +00:00
Treehugger Robot
046d939399 Merge changes from topic "apps_to_system_ext"
* changes:
  Move the app to /system_ext
  Set sdk_version "current" in test package
  Move the permission.xml to /system_ext
  Move SystemUI to /system_ext
  move privapp_whitelist_com.android.storagemanager to system_ext
  Move 'privapp_whitelist_com.android.launcher3' to system_ext
  Move 'privapp_whitelist_com.android.settings' to system_ext
  move privapp_whitelist_com.android.provision to system_ext
  privapp_whitelist_com.android.emergency to system_ext
  privapp_whitelist_com.android.carrierconfig to system_ext
2020-01-17 11:44:42 +00:00
Adrian Roos
2835792aa7 API: Supress existing inconsistent Context service names
Test: make checkapi
Change-Id: I1f140dc172a405fed52f0f8d6c16f2f730ab89be
Merged-In: I1f140dc172a405fed52f0f8d6c16f2f730ab89be
2020-01-17 12:30:38 +01:00
Nikita Iashchenko
d092e7cb86 Merge "Update API surface for ICU 66.0.1" 2020-01-17 10:10:09 +00:00
Jeongik Cha
2f4deb666e Move the app to /system_ext
We plan to forbid hidden API in product partition.
So these apps have to be moved to /system_ext because it uses hidden API.
It is not permanent, so they can be moved back to /product due to
needs if there isn't hidden usage anymore.

Bug: 137908189
Test: m
Test: check whether device boots successfully
Change-Id: I0662674a66bc54ee4713e5c7ed6ad0db4d342338
Merged-In: I0662674a66bc54ee4713e5c7ed6ad0db4d342338
2020-01-17 09:16:14 +00:00
Jeongik Cha
e88936689e Set sdk_version "current" in test package
java_library com.android.test.libs.product is located in product
partition, but its sdk_version isn't set. And it will be forbidden.

So set sdk_version "current"

Test: mma
Bug: 137908189
Change-Id: I3f5a164703f0e5a1f7d43b9f28cda7fa99033186
Merged-In: I3f5a164703f0e5a1f7d43b9f28cda7fa99033186
2020-01-17 09:16:03 +00:00
Jeongik Cha
45ebd05bea Move the permission.xml to /system_ext
As mentioned in b/132780927, we plan to forbid hidden APIs usage in /product partition,
in other word, apps in /product are allowed to use only either public API or system API.
So, this app will be moved to /system_ext, of course, it is not permanent,
they can be moved back to /product if they don't use hidden API anymore.

Bug: 137908189
Test: m
Test: check whether device boots successfully
Change-Id: I623e0dcc1d3bc1a2a69a6cad34ace1f79532654e
Merged-In: I623e0dcc1d3bc1a2a69a6cad34ace1f79532654e
2020-01-17 09:15:53 +00: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
Rambo Wang
e35bc815b6 Annotate StringNetworkSpecifier @Deprecated and @removed
Bug: 147441267
Test: make offline-sdk-docs
Change-Id: I101021b9e32b55e0845934c04e05f6f06a642617
2020-01-16 21:45:09 -08:00
Brad Ebinger
40cae1c0c9 Merge "Expose ImsFeature#getFeatureState as @SystemApi" 2020-01-17 03:34:05 +00:00
Shuo Qian
04d8936f82 Resolve the hidden SubscriptionManager API usage in
NetworkPolicyManagerService in Mainline

Use the public API with Executor instead.

Test: Treehugger
Bug: 147697741
Change-Id: Id4e475527c6851064f1ce9d86dc1b989590359fd
2020-01-17 03:23:51 +00:00
evitayan
0275deb3dd Add setters for IKE and Child SA lifetime
Bug: 147831552
Test: make update-api && make
Test: atest FrameworksIkeTests (passing)
Change-Id: I20f1eac709fa642867b942de278bc3557df0e2d7
2020-01-16 19:20:23 -08:00
Mark Chien
05c43b7095 Merge "add java_api_finder plugin to tethering module" 2020-01-17 03:16:34 +00:00
Hall Liu
b12609a432 Expose NotificationChannel#setBlockableSystem as SystemApi
Expose setBlockableSystem as a module-apps-only SystemApi.

Bug: 138401571
Test: atest android.app.cts.NotificationChannelTest
Change-Id: I0b6a14360e9278a092476ada6533e63a46d4e4fe
Merged-In: I0b6a14360e9278a092476ada6533e63a46d4e4fe
2020-01-16 17:43:10 -08:00
Treehugger Robot
301beddcdb Merge "Vibrator: Have Always-On Check DND/LowPower Modes" 2020-01-17 01:39:04 +00:00
Hall Liu
4a9fde1770 Move PhoneConstants constants to TelecomManager
Move the video-call related constants to TelecomManager since Telecom is
the only consumer.

Bug: 147845600
Bug: 146834818
Test: manually make a video call and verify audio route
Change-Id: I32ddaf6a237460bcf9431fee8a3f31c88d3e9361
2020-01-16 17:38:46 -08:00
Daniel Bright
c8fb6e0efe Using PhoneTypes in TelephonyManager
Bug: 147465477
Test: TelecomUnitTests
Change-Id: Idd0794a1b2b91e4635f63a35e468f3fe0bbe7990
2020-01-16 17:29:55 -08:00
Jing Ji
82551f5e0e DO NOT MERGE: Add support to send notification from Zygote to system_server
Zygote will send message to system_server on SIGCHILD now.

Bug: 136036078
Test: atest CtsWebkitTestCases
Test: atest CtsHostsideWebViewTests
Test: atest CtsAppTestCases
Change-Id: I0ad2a3299f34344a12e2a3c153ca518aca6f6f11
Merged-In: Ifb385d907018bbe76b2aa81eb09209a77ea9224d
2020-01-16 17:24:40 -08:00
Grace Jia
90b4d5b86f Expose SipAudioCall#getAudioGroup and SipAudioCall#SetAudioGroup as
public API.

Bug: 145923259
Test: manual
Change-Id: Id0edbe32e8014661dbbcbbc326014d308225b1aa
2020-01-16 16:51:23 -08:00
Sarah Chin
ad189b5e60 Merge "Add NR to ServiceState#isLte and rename to isPsOnlyTech" 2020-01-17 00:48:13 +00:00
Brad Ebinger
b114707641 Merge "[Telephony Mainline] Removed IPackageManager reference" 2020-01-17 00:33:04 +00:00
Tianjie Xu
ac6ffdbe17 Adding atoms for metrics logging
Define the atom protos for
UpdateEngineUpdateAttemptReported
UpdateEngineSuccessfulUpdateReported

The fields for both atoms are copied from the already reported Tron
counters, except for the source fingerprint. By defining our own proto,
we can have a better insight about each update events. It also makes the
query easier without the server side work to correlate each counters.

Sample output from testdrive shows:
data {
    elapsed_timestamp_nanos: 64932607816092
    atom {
      update_engine_update_attempt_reported {
        attempt_number: 1
        payload_type: FULL
        duration_boottime_in_minutes: 0
        duration_monotonic_in_minutes: 0
        payload_size_mib: 510
        attempt_result: METADATA_VERIFICATION_FAILED
        error_code: DOWNLOAD_METADATA_SIGNATURE_MISMATCH
        fingerprint: "google/walleye/walleye:R/MASTER/eng.xuncha.20190731.151212:userdebug/dev-keys"
    }
  }
}

Bug: 138253582
Bug: 137682371
Test: run statsd_testdrive and check events

Change-Id: Ic502acc8831fe4da0b32a826171d10e9c0f9876d
Merged-In: Ic502acc8831fe4da0b32a826171d10e9c0f9876d
Merged-In: Ifa57f23135b4cd63888df2b8f25650be133bb1de
(cherry picked from commit 167c3db93401adccc703815a9d71ef057b17e780)
2020-01-17 00:29:45 +00:00
Shi Lu
3ae8d12fe6 Merge "Exposing NetworkRegistrationInfo for PS service" 2020-01-17 00:08:05 +00:00
Hall Liu
87cf4b146e Merge "Add call barring constants to ImsUtImplBase" 2020-01-16 23:35:40 +00:00
Brad Ebinger
cb73930b29 Properly catch ServiceSpecificException if IMS isn't available
Fixes: 147815387
Test: boot device and ensure UCE registers correctly.
Merged-In: I4033659acb0031e2383ebcff55c1bb0798041abd
Change-Id: I4033659acb0031e2383ebcff55c1bb0798041abd
2020-01-16 23:15:12 +00:00
Sarah Chin
29e0ec7ef1 Add NR to ServiceState#isLte and rename to isPsOnlyTech
Test: atest ServiceStateTest
Bug: 129670729
Change-Id: Id058d90bc6c4f35c85bc719740bee41865390eb7
Merged-In: Id058d90bc6c4f35c85bc719740bee41865390eb7
2020-01-16 22:18:28 +00:00
Jimmy Chen
0bbf289b09 Merge "p2p: revise tethering handler for shared group interface support" 2020-01-16 22:17:38 +00:00
Sarah Chin
15720f61d9 Merge "Expose TelephonyManager constants as SystemApi" 2020-01-16 22:17:32 +00:00
Sarah Chin
9681a661ae Merge "Expose MMS constants" 2020-01-16 22:17:13 +00:00
Mingming Cai
aa5b09f6ad Merge "Add mTimeStamp to SignalStrength" 2020-01-16 21:56:51 +00:00
Steven Moreland
f67ff418f3 Merge "NetworkStatsFactory.cpp: IWYU" 2020-01-16 21:22:46 +00:00
Nathan Harold
e9f4fe3c02 Merge "Make SignalStrength constructor system APIs" 2020-01-16 21:03:51 +00:00
Peter Wang
5cbbbe3b1b [Telephony Mainline] Removed IPackageManager reference
Bug: 140908357
Test: Build
Merged-In: I53d7d98b9689c1b4f764c24fc17bb488adcf96b5
Change-Id: I53d7d98b9689c1b4f764c24fc17bb488adcf96b5
2020-01-16 20:58:29 +00:00
Sarah Chin
58c5b00293 Expose MMS constants
Unhide CarrierConfigManager#KEY_MMS_CLOSE_CONNECTION_BOOL
Move constants from SmsManager to MmsService

Test: m MmsServiceRoboTests && atest MmsServiceRoboTests
Bug: 147447171
Change-Id: I68f33b862f0607aa45d767e40c1bf24625dfd093
2020-01-16 20:27:41 +00:00
Rambo Wang
a052e75aba Revert "Revert "Add method to enforce READ_PRECISE_PHONE_STATE p..."
Revert "Revert "Add method to enforce READ_PRECISE_PHONE_STATE p..."

Revert submission 1209095-revert-1205361-ENFORCE_PRECISE_PERMISSION-ILXHLNNVLE

Reason for revert: Bring back original commits
Reverted Changes:
I8774b6f24: Revert "Add method to enforce READ_PRECISE_PHONE_S...
I71413a32c: Revert "Add method to enforce READ_PRECISE_PHONE_S...

Change-Id: I6aa9a2b0633032699ceb0e3713fccecd2385d441
2020-01-16 19:36:32 +00:00
Mingming Cai
f1a62940c7 Add mTimeStamp to SignalStrength
Add mTimestamp since boot in nanoseconds to SignalStrength.
Add a public API getTimestampNanos() in Signal Strength.
Add a public API getTimestampNanos() in CellInfo.
Deprecate public API getTimeStamp() in CellInfo.

Bug: 147157937
Test: atest  SignalStrengthTest (unit and CTS)
Change-Id: I478284a983bb3b5e33b7e0e50362a3aeddbc8545
2020-01-16 11:06:33 -08:00
Sooraj Sasindran
f48c0fd4bf Make SignalStrength constructor system APIs
Make SignalStrength constructor system APIs so that
it can be accessed by TelephonyRegistry

Bug: 140908357
Test: make
Merged-In: I80693b0f1b1f9de1a8c93ce8a23a816346afb634
Change-Id: I80693b0f1b1f9de1a8c93ce8a23a816346afb634
(cherry picked from commit 89e4e0c1e902e87d077443f4bf996f1529567092)
2020-01-16 11:02:27 -08:00
Christian Wailes
391bc94404 Merge changes from topic "manual-zygote-snap"
* changes:
  Fixed an issue Zygote initialization.
  Improved timekeeping logic for USAP Pool refill mechanism.
  Resets the refill action/timing info after a pool fill event.
  Make the USAP Pool refill delay configurable.
  Re-adds a trace  point that was accidentally removed.
  Moved some thread priority changes.
  Adjust Java Language thread priority in new processes.
  Adjusts the USAP pool refill mechanism.
  Change USAP name to application name as soon as possible.
2020-01-16 19:00:00 +00:00
shilu
6cd90e2c78 Exposing NetworkRegistrationInfo for PS service
This patch exposes WWAN and WLAN registration status
information so that callers can understand:
-Roaming status
-Searching status
-Available services, such as emergency and voice calling

Bug: 123099466
Fixes: 21208250
Test: make && make offline-sdk-docs
Change-Id: I1421b638f1835962de8e4ba18bdf75615d37ebe5
2020-01-16 10:30:44 -08:00