439825 Commits

Author SHA1 Message Date
Treehugger Robot
aa7d4c540d Merge "Add javadoc @see to methods affected by resetAllCarrierActions" 2020-01-15 21:15:13 +00:00
Mingming Cai
81e1da28a5 Migrate convertHalCellIdentityToCellIdentity()
Remove convertHalCellIdentityToCellIdentity() in
CellularNetworkService, and introduce create() in CellIdentity
for CellIdentity 1.0 and 1.2.

Bug: 146498725
Test: atest CellularNetworkServiceTest
Change-Id: Ibf07f770b377c383ea0c4d3ef2d1d991a37854a9
Merged-In: Ibf07f770b377c383ea0c4d3ef2d1d991a37854a9
(cherry picked from commit f55983a5d5233ee7e0269adbd3dfee4575fc65d3)
2020-01-15 12:31:30 -08:00
Treehugger Robot
3f9e9efe46 Merge "Use non-wakeup alarm for delay constraint." 2020-01-15 20:07:43 +00:00
Treehugger Robot
ff3210b045 Merge "Statically link AsyncChannel/AsyncService in telephony" 2020-01-15 19:35:22 +00:00
Hall Liu
ef98bf8300 Add additional APIs in Call for Bluetooth
Add additional APIs in android.telecom.Call for consumption by Bluetooth
as they move to using an InCallService.

Also refactor ParcelableCall to use a builder pattern

Fixes: 147445725
Fixes: 147445603
Test: atest CallDetailsTest ConferenceTest
Change-Id: I12241b4ceadaa840f6e577bcfa8521375aedcb6a
2020-01-15 11:17:18 -08:00
Rambo Wang
606a24df78 Add method to enforce READ_PRECISE_PHONE_STATE permission
Permission READ_PRECISE_PHONE_STATE was exposed as public API in
b/147324131. Many APIs that ask for this permission will need
a method to enforce caller to declare the permission.

Bug: 147498511
Test: atest TelephonyPermissionsTest
Change-Id: Ib542a5e2fd4ea0634bf1b51bf9514e9fb78ee3e7
2020-01-15 11:14:39 -08:00
Hall Liu
38fa60b511 Merge "Expose ServiceState#getDataNetworkType as SystemApi" 2020-01-15 19:09:19 +00:00
Treehugger Robot
e88817bd42 Merge changes Ie816e0c6,I5b94e92a,I5391ac49,If074bed1
* changes:
  DO NOT MERGE Fix AppOpsServiceTest
  DO NOT MERGE Don't throw exception in AppOpsManager.checkOp
  DO NOT MERGE Remove unnecessary internal APIs.
  DO NOT MERGE SetMode: Don't call into PM with AppOps lock held
2020-01-15 19:01:15 +00:00
Shuo Qian
725c54065d Merge "Cleanup ITelephony in TelephonyPermissions with new System API. This method is used by Telephony Module for permission checking." 2020-01-15 18:51:54 +00:00
Yan Yan
259781e84a Merge "Statically include @StringDef in IKE module" 2020-01-15 18:16:00 +00:00
Neil Fuller
48564ac144 Merge "System API proxies for the telephony module" 2020-01-15 18:04:31 +00:00
David Su
427cb398e2 Merge changes from topic "networkscoremanager-cachefilter"
* changes:
  SettingsLib: Rename CACHE_FILTER_* to SCORE_FILTER_*
  NetworkScoreManager: Expose SCORE_FILTER_* consts
2020-01-15 17:55:35 +00:00
Rambo Wang
7fd95f64df Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer" 2020-01-15 17:45:58 +00:00
Neil Fuller
e9dafe541e Merge "Expose time / time zone system apis for telephony" 2020-01-15 16:19:16 +00:00
Treehugger Robot
c764cb634d Merge "Use new UnsupportedAppUsage annotation." 2020-01-15 13:29:02 +00:00
Arc Wang
59555877e8 Merge "[Wi-Fi] Add OWNER files for Wi-Fi test cases" 2020-01-15 12:53:46 +00:00
Mark Chien
7f9b3ca809 Merge "Tethering: remove redundant source code" 2020-01-15 11:51:07 +00:00
Treehugger Robot
dda5e92547 Merge "Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi" 2020-01-15 11:42:11 +00:00
allenwtsu
02dc982642 [RCS] Add triggerType for onNotifyUpdateCapabilites
Bug:147122370
Test: build pass
Change-Id: I161de7bb6c27b06102a6754771e2693ae3ee4886
2020-01-15 19:39:09 +08:00
Neil Fuller
f7346ecb1f System API proxies for the telephony module
Introduce classes that exist to give the telephony module something
stable to call for in-process utilities: libcore cannot directly expose
System APIs today and the package names are internal. The APIs are the
subset of internal libcore.timezone APIs used by telephony code
currently.

Bug: 139091367
Test: See associated frameworks/opt/telephony commit
Merged-In: I6109aef77171346ecb103c190526b7b9b81012b2
Change-Id: I6109aef77171346ecb103c190526b7b9b81012b2
(cherry picked from commit 944aeffa85ab0a94e20a4edc7293fe70f904bddd)
2020-01-15 09:48:36 +00:00
Arc Wang
5b698cfaf2 [Wi-Fi] Add OWNER files for Wi-Fi test cases
Bug: NA
Test: NA
Change-Id: I57ba071e77d7c5cdf7b01ce44195a090b0177389
2020-01-15 17:33:18 +08:00
paulhu
5ae1d2c043 Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi
Support wifi mainline module usage.

Bug: 135998869
Test: Build and make system-api-stubs-docs-update-current-api
      atest FrameworksNetTests

Change-Id: I77cb45e6b2aaf4ab2c457cb59ccf77b1b8c01fa9
2020-01-15 15:38:23 +08:00
Mark Chien
bd7fa99584 Merge "Allow opening tethering when data saver ON" 2020-01-15 06:58:29 +00:00
Mark Chien
cd2ffc26dc Merge "Unhide NetworkRequest API which use legacy type" 2020-01-15 06:49:33 +00:00
Treehugger Robot
d63ebcf807 Merge "DevicePolicyManager: annotate SystemApi" 2020-01-15 06:37:55 +00:00
Mark Chien
49b8c99f2c Merge "Tethering: switch to use tethering package resources" 2020-01-15 06:17:06 +00:00
Zongheng Wang
f12ed60eca Create a new API to decode Sms PDU
Created createFromNativeSmsSubmitPdu() to avoid usage of hidden API createFromEfRecord().

Bug: 140562205
Test: Compile
Change-Id: Ia6dda310a29b6969c26f85f98d2264b476fbf3f0
2020-01-15 14:00:44 +08:00
Treehugger Robot
b8c95a647f Merge "Enlarge EPSILON to 0.01 for android.display.cts.DisplayTest#testModeSwitch pass" 2020-01-15 05:37:54 +00:00
Treehugger Robot
4c85840bd0 Merge "Expose SocketKeepalive#SUCCESS as SystemApi" 2020-01-15 05:01:04 +00:00
Junyu Lai
01d30a4ce0 Merge changes from topic "sp06-offloadcontroller"
* changes:
  [SP09] Remove NetworkStatsService @hide usage in Tethering
  [SP08] re-calculate interface quota when limit reached
  [SP07] Remove reference of NetworkStatsService in IpServer
  [SP06.1] Add UPDATE_DEVICE_STATS permission to Tethering
  [SP06] Use system API to communicate with NSS in OffloadController
  Use Context#getSystemService to get network stack binder
2020-01-15 04:50:27 +00:00
markchien
6aa796135c Tethering: remove redundant source code
Bug: 143195885
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: I92cbb51a0d4fb048aa75ba9932e3b106d181bad9
2020-01-15 04:33:10 +00:00
Treehugger Robot
922ec35d28 Merge "Replace usages of ServiceState#getDataNetworkType" 2020-01-15 04:05:36 +00:00
Zongheng Wang
d48914249d Merge "Created an API to get encoded message of SubmitPuds" 2020-01-15 03:05:14 +00:00
sqian
1e28948aaa Cleanup ITelephony in TelephonyPermissions with new System API.
This method is used by Telephony Module for permission checking.

Test: manual; cts; unit tests in other CLs
Bug: 145688189
Change-Id: Ie706e05e6a69e570331c1fe08a8df9677e0d9c8a
Merged-In: Ie706e05e6a69e570331c1fe08a8df9677e0d9c8a
Merged-In: If3adcd17916be2e81497061120d1f350bfb8026d
(cherry picked from commit 145294168f3bc9155a0641c7ef4ef5b7ff8c30a6)
2020-01-15 02:53:32 +00:00
paulhu
521cd8c85d Expose SocketKeepalive#SUCCESS as SystemApi
Support wifi mainline module usage.

Bug: 135998869
Test: Build and make system-api-stubs-docs-update-current-api
      atest FrameworksNetTests
Change-Id: I94171b2dc4f26442df918547bf8bc40953f63f2e
Merged-In: I94171b2dc4f26442df918547bf8bc40953f63f2e
2020-01-15 02:45:43 +00:00
Allen Su
b498fbf860 Merge "[RCS] Implement notifyRcsAutoConfigurationReceived()" 2020-01-15 02:42:27 +00:00
Jean-Michel Trivi
24f8ed2d98 Merge "Audioservice:do not supress music volume adjustment" 2020-01-15 02:42:04 +00:00
Hangyu Kuang
4a87745a4d Merge "Add hkuang to Media OWNERS." 2020-01-15 02:18:14 +00:00
Lev Rumyantsev
2b7a5ea3ba Zygote: support native-bridge for app-zygote
1. Disable PreInitializeNativeBridge if native bridge is already
initialized. This happens in apps forked from app-zygote.

2. Pass nullptr app data directory to PreInitializeNativeBridge if app
doesn't have any private storage, which is the case for isolated
app-zygote processes.

Test: CtsExternalServiceTestCases
android.externalservice.cts.ExternalServiceTest
testBindExternalServiceWithZygote
Test: CtsSeccompHostTestCases
android.seccomp.cts.SeccompHostJUnit4DeviceTest
testAppZygoteSyscalls
both for Q.sdk_gphone_x86_arm.armeabi-v7a
Bug: 143143718
Bug: 146904103

Change-Id: I652bb604f30a34826a90b04eb72dde59fb56ae90
2020-01-14 17:03:29 -08:00
Lev Rumyantsev
041f016971 AppZygote: start with the correct instruction set
This allows triggering native-bridge initialization if needed.

Test: CtsExternalServiceTestCases
android.externalservice.cts.ExternalServiceTest
testBindExternalServiceWithZygote
for Q.sdk_gphone_x86_arm.armeabi-v7a
Bug: 143143718

Change-Id: If105c4283879407c4fcee33fa6086772d43609a3
2020-01-14 17:03:06 -08:00
Michele
fc81eab13a Add javadoc @see to methods affected by resetAllCarrierActions
Bug: 143548877
Test: make
Change-Id: I3792bff727d87d30ea90db202b594df3d16a8afb
2020-01-14 16:52:46 -08:00
hkuang
14c876311a Add hkuang to Media OWNERS.
Bug:145233472
Test: None
Change-Id: I233800683bd9f4e0d47d62eab9fef7a3d09b583b
2020-01-14 16:29:06 -08:00
Tobias Thierer
f82e644964 Track addition of new java.util APIs.
A libcore CL in this CL topic adds some new APIs. This CL adds the
corresponding entries to api/current.txt.

Test: Treehugger
Bug: 147483640

Change-Id: I8d04b110a3d2c57c9038d7d6fc43dd204697bb72
2020-01-15 00:26:48 +00:00
Sarah Chin
a42e241438 Remove @hide for CarrierConfigManager constants
Remove @hide for CarrierConfigManager constants used outside of
Telephony mainline

referencing packages:
cts/tests
frameworks/base/packages/CarrierDefaultApp
frameworks/base/packages/SystemUI
frameworks/base/packages/Tethering
frameworks/base/services
frameworks/base/telecomm
frameworks/opt/wifi
packages/apps/Dialer
packages/apps/Settings
packages/providers/BlockedNumberProvider
packages/services/Car
packages/services/Telecomm
prebuilts/sdk

Test: build
Bug: 147447171
Change-Id: Ib3d8d904a80f11247012b01aceb92eaee2c84d5b
Merged-In: Ib3d8d904a80f11247012b01aceb92eaee2c84d5b
2020-01-14 15:56:39 -08:00
Neil Fuller
dc20cafcc1 Merge "Remove wake lock checks from TimeDetectorStrategy" 2020-01-14 23:05:19 +00:00
Jack Yu
8027ca9b97 Merge changes from topic "remove_dev_mode"
* changes:
  Do not migrate use full volume shared preference
  support data migration from OEM legacy app to mainline
2020-01-14 22:59:31 +00:00
Jack Yu
c3133cbc57 Do not migrate use full volume shared preference
Use full volume has been renamed to override DnD and
the toggle is now only available for certain countries. We
intended not to provide the ability to migrate this shared
preference as it might cause issue for users who already
changed the preference. After mainline migration, override
DnD should be always reset to default value of that country.

Test: Manual
Bug: 147426188

Merged-In: I5746fe32674131b474e784bd5dd62ecff76386d5
Change-Id: I5746fe32674131b474e784bd5dd62ecff76386d5
(cherry picked from commit bcbe46816c7febb2641413e363cb634f7fb8f18b)
2020-01-14 22:59:05 +00:00
Chen Xu
32f525c975 support data migration from OEM legacy app to mainline
Defined systemAPI for interaction with legacy cellbroadcast app

Bug: 135956699
Test: Tested with cell broadcast receiver test app and confirmed data can be migrated.
Merged-In: I6e583672a3673fd226e14d33d7a7648f4fd03efb
Change-Id: I6e583672a3673fd226e14d33d7a7648f4fd03efb
(cherry picked from commit ad2f91fc6d3088de16f969849411239f57b71b54)
2020-01-14 22:54:58 +00:00
Treehugger Robot
cab872d58d Merge "Use android.compat.annotation.UnsupportedAppUsage everywhere." 2020-01-14 22:50:44 +00:00
Hall Liu
5884933ee6 Expose ServiceState#getDataNetworkType as SystemApi
Test: atest android.telephony.cts.ServiceStateTest#testGetDataNetworkType
Bug: 146834818
Change-Id: If3f7b227da1bd2d3a107375dbd8b4218435dc1dc
2020-01-14 14:28:57 -08:00