439331 Commits

Author SHA1 Message Date
Grace Jia
f5b6267d93 Merge "Add post-call screen API." 2019-12-18 21:10:23 +00:00
Grace Jia
91cec6ee8f Add post-call screen API.
Test: manual
Bug: 135929421
Change-Id: I63043646bb96b8543849c617ce1ccd41a558f24d
2019-12-18 21:07:40 +00:00
Jordan Liu
ac2b27aed1 Merge "Expose Circle and Polygon as SystemApi" 2019-12-18 20:56:22 +00:00
Shuo Qian
81ca5f3ee8 Merge "Revert "Deprecate Data Command in Android""
am: 609f65048f

Change-Id: I0c69d8b4573e6a482574cf9930c8d7a45367a272
2019-12-18 11:53:49 -08:00
Treehugger Robot
609f65048f Merge "Revert "Deprecate Data Command in Android"" 2019-12-18 19:41:49 +00:00
Brad Ebinger
2499aa4b81 Create new Carrier configuration for separate MMTEL/RCS features
Bug: 111305845
Test: atest FrameworksTelephonyTests; atest CtsTelephonyTestCases
Merged-In: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
Change-Id: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
2019-12-18 11:02:09 -08:00
Chen Xu
9663781a86 Expose ModemActivitiyInfo to system API
ModemActivityInfo is used for batteryStatusService which is part of
system service. To prepare telephony to be an mainline module, we
should expose ModemActivityInfo to systemAPI

1. remove getConsumedPower API as we are missing modem support, API
today only report 0
2. isValid API is introduced to cover modem issues before. Do not
expose this for now.

Bug: 140908357
Test: Build
Change-Id: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
(cherry picked from commit 7322e4a7ce0ba5a331df215e48d6f68f2cf890b9)
Merged-in: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
2019-12-18 10:45:00 -08:00
Shuo Qian
6fe660ea86 Make Gps.KEY_PREFIX and Gps.KEY_PERSIST_LPP_MODE_BOOL Public
Test: build
Bug: 146445404
Change-Id: Ifb1efcb6fb0b870b8dc8caf07103e41e593b1a5f
2019-12-18 18:44:03 +00:00
Daniel Huang
b17c13a61f Merge "Add more error codes."
am: 53484a4946

Change-Id: Idc0f2f8dd76279e4bb1e9260be2418aef0e32e41
2019-12-18 10:28:19 -08:00
David Su
66b0e7d150 Merge "Fix android.util.CloseGuard sample usage"
am: 7381525076

Change-Id: I4e69d9638ca69be5896bfeb0c3d950d340294cb5
2019-12-18 10:26:02 -08:00
Daniel Huang
53484a4946 Merge "Add more error codes." 2019-12-18 18:22:08 +00:00
David Su
7381525076 Merge "Fix android.util.CloseGuard sample usage" 2019-12-18 18:19:58 +00:00
Shuo Qian
b179a7fc2f Revert "Deprecate Data Command in Android"
This reverts commit 5c4e7b81b571d11851fd9c63a308e1a910b196b9.

Reason for revert: <b/146461873>

Bug: 146461873

Change-Id: I8bd10333f2014e52e1d3122c5b9dc895a5d6c658
2019-12-18 17:27:21 +00:00
Andrei Onea
7ec97ff1d5 Refactor CompatConfigTest and PlatformCompatTest
Use the convenience builders.

Bug: 144552011
Test: atest PlatformCompatTest
Test: atest CompatConfigTest
Change-Id: I984ea4fd043c354dbbe3ff764798e52f68d1c750
2019-12-18 17:12:19 +00:00
satayev
068a9faf3d Merge "Use new UnsupportedAppUsage annotation."
am: 1385dca8f6

Change-Id: I50c9bd452147a28fd2cb76f1d9fe91336b7104c1
2019-12-18 08:05:21 -08:00
satayev
1385dca8f6 Merge "Use new UnsupportedAppUsage annotation." 2019-12-18 15:32:40 +00:00
Andrei Onea
1828d218d6 Add test for OverrideValidatorImpl
Also add some helper builders for testing.

Bug: 144552011
Test: atest OverrideValidatorImplTest
Change-Id: Ia66638e13df14c72c242ce14041f982b2ce707ac
2019-12-18 15:11:32 +00:00
Andrei Onea
465b214383 Enforce overriding methods for IPlatformCompat
Restrict the ability of callers to IPlatformCompat.setOverrides and
IPlatformCompat.clearOverride, depending on the type of build and/or
whether the app is debuggable.

Bug: 144552011
Test: atest PlatformCompatTest
Test: atest CompatConfigTest
Change-Id: Ibff7db73d7867735853aa2ddde7c14a12625b3dc
2019-12-18 15:10:25 +00:00
Abhijeet Kaur
54c4b58fa1 Merge "Add Light/Dark theme for bugreport warning dialog"
am: 6748f4cc07

Change-Id: I9a520e35faaf54d48a23bdab7da7bc3316b7796f
2019-12-18 07:05:36 -08:00
Abhijeet Kaur
23f81e572e Merge "Fix bugreport warning dialog"
am: 591e1fcfcf

Change-Id: Ib801c7e45b63d49b31430c97b15bee942014e682
2019-12-18 07:02:27 -08:00
Treehugger Robot
6748f4cc07 Merge "Add Light/Dark theme for bugreport warning dialog" 2019-12-18 14:50:30 +00:00
Treehugger Robot
591e1fcfcf Merge "Fix bugreport warning dialog" 2019-12-18 14:39:29 +00:00
Abhijeet Kaur
b7518de1b4 Add Light/Dark theme for bugreport warning dialog
Previously added "android:theme="@android:style/Theme.
DeviceDefault.DayNight" to the application tag in this manifest file to
enable dark theme for bugreport info.
BugreportWarningActivity is nested within this application tag, so
assumed all the child tags to have DayNight theme.

android:theme="@android:style/Theme.DeviceDefault.Dialog.Alert" shows
the dialog always as Dark mode.

android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"
shows the dialog always as Light mode.

This bug is not easily notice-able as "Do not show this again" checkbox
is checked by default for this dialog. Unless one wipes data partition,
this dialog doesn't come up even after flashing new builds.

Bug: 141663298
Bug: 146400225
Test: Normal (light mode) Trigger interactive/full/wifi bugreport.
      Click on bugreport finished "Share" notification.
      Light mode warning dialog should appear. (with white background)
      Uncheck the "Do not show this again" checkbox to test with dark
      mode.
Test: Go to Settings. Turn on Dark theme.
      Trigger interactive/full/wifi bugreport.
      Click on bugreport finished "Share" notification.
      Dark mode warning dialog should appear. (with dark grey background)

Merged-In: I200c592608261665e4c2416303f573522c6bc59a
Change-Id: I200c592608261665e4c2416303f573522c6bc59a
(cherry picked from commit 43bbe8a2fcce4bddfb59b8545e55ed328315a064)
2019-12-18 14:09:44 +00:00
Abhijeet Kaur
6a8f0fb9a5 Fix bugreport warning dialog
This bug was introduced when fixing dark theme for bugreport dialogs.

Bug: 135446537
Bug: 146400225
Test: manually (both in light and dark theme)
Merged-In: Ib8c16d068c00632d009033c2eab7d2d6cb7e4eea
Change-Id: Ib8c16d068c00632d009033c2eab7d2d6cb7e4eea
(cherry picked from commit f90de9746b119d2bc540b563ac7cc46fa7957366)
2019-12-18 14:09:17 +00:00
SongFerngWang
40f04301b6 [Mainline] decouple ServiceState.getDataNetworkType()
Use NetworkRegistrationInfo.getRegistrationState() to
replace serviceState.getDataNetworkType() inside getCombinedServiceState

Bug: 146473838
Test: atest frameworks/base/packages/SettingsLib/tests/robotests/\
src/com/android/settingslib/UtilsTest.java (PASS)

Change-Id: Iddf23778be5d275c76ad01bfbac8f4ed0c655331
Merged-In: Iddf23778be5d275c76ad01bfbac8f4ed0c655331
2019-12-18 21:08:52 +08:00
Artur Satayev
a5264903e2 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv \
      git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import'
Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
2019-12-18 12:07:36 +00:00
Omer Nebil Yaveroglu
350a7b97bc Merge "Changes in OWNERS of app integrity component."
am: ea0124cddf

Change-Id: I03ea9e0689751ad6c96b0983c8c09e040c06cc11
2019-12-18 03:37:38 -08:00
Treehugger Robot
ea0124cddf Merge "Changes in OWNERS of app integrity component." 2019-12-18 11:31:39 +00:00
Remi NGUYEN VAN
f705ea69dc Fix parceling of LinkProperties Inet6Addr
IPv6 addresses parceled for DNS servers, private DNS servers, PCSCF
servers were parceled without the scope. This causes issues with
link-local DNS servers.

Test: atest FrameworksNetTests
Bug: 145181158
Change-Id: I0ed24e51d4d0656f4a1f932b5e9f646b35b4b971
2019-12-18 19:52:30 +09:00
Neil Fuller
4d5ada2838 Merge "Tidy up changes for TimeZoneDetectorStrategy"
am: c5725ad0a7

Change-Id: I96d8e84c8f0c6d378b8f25027eb2429e9a377652
2019-12-18 02:08:53 -08:00
Neil Fuller
c5725ad0a7 Merge "Tidy up changes for TimeZoneDetectorStrategy" 2019-12-18 10:00:17 +00:00
Jiyong Park
c3711cf7af Merge "framework is not available to APEXes"
am: f65e0e3181

Change-Id: I01c5137ca2cda4ecb8ca31d11da31dc20d1af624
2019-12-18 00:31:07 -08:00
Treehugger Robot
f65e0e3181 Merge "framework is not available to APEXes" 2019-12-18 08:24:49 +00:00
Mathew Inwood
f4eddd99c1 Merge "Don't depend on annotation processors XmlWriter."
am: e6d84c0d97

Change-Id: If65b250fedc4020323e9eb7110c9e9ebe25f4c89
2019-12-18 00:23:48 -08:00
Treehugger Robot
e6d84c0d97 Merge "Don't depend on annotation processors XmlWriter." 2019-12-18 08:17:32 +00:00
Jiyong Park
7aa79697cd Merge "unique_fd is passed by value in AIDL interfaces"
am: 6316f348e7

Change-Id: I8fe65475b8b0a17b73356b46f803947277570601
2019-12-17 22:21:27 -08:00
Harpreet \"Eli\" Sangha
5d97061d0b Merge "vibrator: Support Always-On Effects"
am: 65303aa385

Change-Id: I3421d02508a1dda6960bcc307c4ff1f0343937f6
2019-12-17 22:18:07 -08:00
Jiyong Park
6316f348e7 Merge "unique_fd is passed by value in AIDL interfaces" 2019-12-18 06:14:38 +00:00
danielwbhuang
7e4b4629d0 Add more error codes.
1. Add error codes for setPreferredOpportunisticDataSubscription and updateAvailableNetworks
2. Use Compatibility Framework to remap them.

Test: run atest.
1.atest TelephonyManagerTest#testPreferredOpportunisticDataSubscription
2.atest TelephonyManagerTest#testUpdateAvailableNetworks

Bug: 130595455
Merged-In: I6f386bfcf75236e30141fab89e2b62ee3a8cb59e
Change-Id: I6f386bfcf75236e30141fab89e2b62ee3a8cb59e
2019-12-18 06:13:51 +00:00
Treehugger Robot
65303aa385 Merge "vibrator: Support Always-On Effects" 2019-12-18 06:10:18 +00:00
Jiyong Park
79242c2d2d framework is not available to APEXes
The modules 'framework', 'framework-minus-apex', 'framework-all' contain
private symbols that shouldn't be accessible to Mainline modules.
Restrict the access by making the framework modules to be accessible
only to the platform (the non updatable part).

Bug: 145796956
Test: m
Merged-In: I08cb61a67aef88ffe04ef52670144e1cbeff3cf9
Change-Id: I08cb61a67aef88ffe04ef52670144e1cbeff3cf9
2019-12-18 05:45:46 +00:00
Jiyong Park
573fd3dfe0 unique_fd is passed by value in AIDL interfaces
FileDescriptor type in AIDL was translated into const unique_fd& in C++.
Now, it is unique_fd, i.e. passed by value, to make it easier to keep it
beyond the scope of the call.

Bug: 144943748
Test: m

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

Merged-In: I2b87761401361f9cf96cdda070f26e70a5c6c935
(cherry picked from commit b8ba23418aa6868ec14e82c29311021e382a19bc)
Change-Id: I2b87761401361f9cf96cdda070f26e70a5c6c935
2019-12-18 05:32:25 +00:00
junyulai
41c13c9a19 Update interface quota limit when network stats updated
In previous design, interface quota limit does not changed
when network stats are updated. However, this is incorrect
today since there are some offloaded traffic that cannot
be seen by kernel. If the limit is not updated, the offloaded
traffic might still be able to use whole quota as if there is
no embedded traffic.

This change also removes the re-arm global alert after
advising persist threshold if not changed, given that it will
cause an additional alert while updating interface quota limit.

Bug: 145792619
Test: 1. atest NetworkStatsServiceTest
      2. atest NetworkPolicyManagerServiceTest
      3. manual test: run speedtest, check dumpsys netd

Change-Id: I8d2203e713730d536430a234b1aa8b2468badee3
2019-12-18 10:57:29 +08:00
Meng Wang
63345dfc2a Merge "Statically link util classes into Telephony module."
am: b713828c17

Change-Id: If06427143318ffa7952e4b2f0b161829477204a5
2019-12-17 16:34:01 -08:00
Meng Wang
b713828c17 Merge "Statically link util classes into Telephony module." 2019-12-18 00:28:34 +00:00
Mark Chien
906a909c32 Merge "[Tether11] Grant privileged permissions for tethering"
am: b04cf17d71

Change-Id: Ic7ac8a205abaf83064d2edf6675badc1dea3a7cd
2019-12-17 16:16:07 -08:00
Mark Chien
b04cf17d71 Merge "[Tether11] Grant privileged permissions for tethering" 2019-12-18 00:11:43 +00:00
Xiangyu/Malcolm Chen
b790d2e3ea Merge "Define a telephony database column for uicc applications enabled or not."
am: fbfe850906

Change-Id: Ia142eafd6cab715d9b9119687feddf0327516aec
2019-12-17 16:01:47 -08:00
Xiangyu/Malcolm Chen
fbfe850906 Merge "Define a telephony database column for uicc applications enabled or not." 2019-12-17 23:56:41 +00:00
Steven Liu
5606de388d Remove Wifi APIs unused in AOSP.
Bug: 132059890
Test: build
Change-Id: I75044e713ae039759b6f96a7e98928ca9f8645f9
2019-12-17 15:38:07 -08:00