438819 Commits

Author SHA1 Message Date
Colin Cross
645ae56f43 Merge "Fix Error Prone errors" 2020-01-02 23:33:56 +00:00
Suren Baghdasaryan
2018bf03f9 Prevent double-counting of kernel stack size in dumpsys reports
When kernel is configured with CONFIG_VMAP_STACK=y kernel stacks are mapped
into process space and therefore already accounted as part of the value
returned by ReadVmallocInfo and reported under MEMINFO_VM_ALLOC_USED
category. Introduce isVmapStack function to check if kernel is configured
with that option and if so do not exclude kernel stack size in the
calculation of memory used by kernel.

Bug: 146088882
Test: dumpsys meminfo with CONFIG_VMAP_STACK enabled and disabled
Change-Id: I9230bbf0ab05524cf52ded35171fd9ec3da16fa0
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-01-02 13:36:34 -08:00
Nick Chalko
f26efab443 Mark DVB methods and classes as System APIs.
Guard with DVB_DEVICE permission.
Add @DvbDeviceType IntDef

Bug: 146385357
Test: m framework
Change-Id: Id6c77049e7338b6503adc12e14264fa4a892a65d
2020-01-02 13:19:43 -08:00
Treehugger Robot
7d48a4513c Merge "Remove unused BluetoothHearingAid APIs and usages" 2020-01-02 20:43:57 +00:00
Tobias Thierer
bf7b806fb5 android.net: Update OWNERS.
Remove flooey@, add prb@ and dauletz@.

Bug: 147092934
Test: Treehugger
Change-Id: I1bdcaf6a2ad3aa66aff23d3488e9426b6d29d29e
2020-01-02 17:09:10 +00:00
Justin Yun
1ef374f98b Use ro.product.vndk.version for unbundled product apks
Instead of using "ro.product.apps.unbundled", use
"ro.product.vndk.version" to determine if product apks are unbundled.
"ro.product.vndk.version" will be defined by
PRODUCT_PRODUCT_VNDK_VERSION. If it is defined, all product apks must
be unbundled.

Bug: 144534640
Bug: 127738095
Bug: 128557860
Test: boot and check logs if product apps are loaded successfully
Change-Id: I6d0f7c20e131dfe12203c63a14e6254a8223893b
2020-01-02 06:30:02 +00:00
Paul Hu
5a049f5cf2 Merge "Add an override for getUser in ContextWrapper" 2020-01-02 05:42:27 +00:00
paulhu
5c0f07c4f6 Add an override for getUser in ContextWrapper
This is to fix an issue when calling getUser for a context that
is different than the context of the current foreground user.
getUser for a ContextWrapper would call the base
class Context#getUser which returns the user of the current foreground
process rather than returning the user of the calling context.

Currently, this is a bug that does not meet the ContextWrapper class Javadoc.
It looks like the ContextWrapper call was missed in Ib772ec4438e57a2ad4950821b9432f9842998451.

Fix: 144024489
Test: called the API from a test App with a different context than the
current application context.

Change-Id: I58ec9fda24bf135ba8c648a905ef0c81d36ea098
Merged-In: I2d24f5141e8cbc2546c8dc5894a1aeab376b7632
(cherry-pick from ag/9673528)
2020-01-02 02:09:45 +00:00
Hall Liu
ed384ad6aa Merge "Copy isEmailAddress" 2019-12-31 22:46:49 +00:00
Hall Liu
35c243caa4 Clean up SmsApplication and expose getDefaultSmsPackage
- Clean up usages of hidden AppOpsManager APIs in SmsApplication
- Add unit tests for SmsApplication
- Expose RoleManager#getDefaultSmsPackage for use in SmsApplication.

Bug: 146834818
Test: atest SmsApplicationTest
Change-Id: I4ab49d7f6274389e7de7cd7223cab3c433936044
2019-12-31 14:41:02 -08:00
Treehugger Robot
e84e60ae79 Merge "Switch from java_libs to java_header_libs for sdkext-sdk" 2019-12-31 19:34:23 +00:00
Paul Duffin
6bdaf90541 Switch from java_libs to java_header_libs for sdkext-sdk
The java_libs property is used to expose implementation libraries not
stubs libraries.

Test: m checkbuild
Bug: 146341462
Exempt-From-Owner-Approval: minor change and sole owner is ooo
Change-Id: I2714b65d4b81a9669831153280a29f93dbbf7a26
2019-12-31 15:36:47 +00:00
Aaron Huang
fbceb58514 Merge "Make StringNetworkSpecifier @SystemApi" 2019-12-31 08:11:48 +00:00
Howard Chen
4bef55860f Merge "Remove blocking binder calls from isInUse method" 2019-12-31 02:34:32 +00:00
Hall Liu
1da24357a0 Copy isEmailAddress
Copy the util method from Telephony.Mms so we're not using the hidden
API.

Bug: 146834818
Test: atest GsmSmsTest#testIsEmailAddress
Change-Id: I003bf504d25b65ce4fc544d918007034471d7040
Merged-In: I003bf504d25b65ce4fc544d918007034471d7040
2019-12-30 16:03:59 -08:00
Maciej Żenczykowski
e02e9cd201 convert 'Stats stats; memset(&stats, 0, sizeof(Stats));' to 'Stats stats = {};'
Not only is it more concise, but it's also just a tad more correct:
since it really should have been 'sizeof(stats)' not 'sizeof(Stats)'.

Test: builds, atest
Bug: 146787904
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I6cf0295878c7b34cedfe3ae44ff7410ef419f8b9
2019-12-30 20:49:36 +00:00
Maciej Żenczykowski
d35c66f172 remove spurious 'struct' on Stats
Test: builds, atest
Bug: 146787904
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I824daf0ebdddbac1b11cabfcb248ee4134586768
2019-12-30 20:49:27 +00:00
Treehugger Robot
8afb2bf120 Merge "Reset SurfaceControl when reapplying magnification spec" 2019-12-30 07:51:39 +00:00
Treehugger Robot
b73052d94d Merge "Ensure we clear magnification specs on non-magnifiable containers." 2019-12-30 07:37:31 +00:00
Jackal Guo
ae2002a25e Reset SurfaceControl when reapplying magnification spec
If there is a container becomes to non-magnifiable, we need to clear
magnification spec (reset the state) and re-traverse all children again.

Bug: 144810344
Test: A11y CTS & unit tests
Test: atest WmTests
Test: manual
      1. Enable Magnification in Settings > Accessibility.
      2. Open any app with an EditText, tap it to bring up the IME.
      3. Trigger Magnification.
      4. Check only the app should be magnified, but not IME.
      5. Switch to another IME, and check 4, again.

Change-Id: Ia04cb6c49b67dab98cee5bb0cacef12a8bdaffd8
Merged-In: Ia04cb6c49b67dab98cee5bb0cacef12a8bdaffd8
2019-12-30 14:22:47 +08:00
Robert Carr
32eef6b576 Ensure we clear magnification specs on non-magnifiable containers.
It seems it's possible the IME container could be magnified before an IME
is added. Once the IME is added we will view this as non-magnifiable and then
never un-do the magnification.

Bug: 137691821
Test: Manual
Change-Id: I39b43367ac500a5c6c330b5ae3a451345fa5aec4
Merged-In: I39b43367ac500a5c6c330b5ae3a451345fa5aec4
2019-12-30 14:19:39 +08:00
Daniel Bright
6b39bac3d3 Merge "Make SystemApi ACTION_SUBSCRIPTION_PLANS_CHANGED" 2019-12-28 05:05:09 +00:00
Daniel Bright
dba2aa6e6c Moved RilRadioTechnology annotation
Moved annotation from Annotation to ServiceState

Bug: 146084549
Test: FrameworkTests, TeleServiceTests
Change-Id: I2411052465204d87cb5982102df0fd1af012a97c
Merged-In: I2411052465204d87cb5982102df0fd1af012a97c
2019-12-27 20:59:56 -08:00
Daniel Bright
10aa8e7815 Make SystemApi ACTION_SUBSCRIPTION_PLANS_CHANGED
Bug: 146174645
Test: NetworkPolicyManagerServiceTests, TelephonyManagerTest

Change-Id: Ie397a65e0878994540bc42a217b3d27a2e7f108e
Merged-In: Ie397a65e0878994540bc42a217b3d27a2e7f108e
2019-12-27 13:50:46 -08:00
Aaron Huang
30b2ac7158 Merge "Expose NetworkCapabilities methods to system/public APIs" 2019-12-27 08:32:50 +00:00
Aaron Huang
e6b62391da Expose NetworkCapabilities methods to system/public APIs
Add methods to system/public APIs for mainline support.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest FrameworksNetTests
      atest NetworkStackTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      atest FrameworksTelephonyTests
      atest android.net.cts
      atest android.net.wifi.cts
      atest android.telephony.cts

Change-Id: I6ec333309172edaf5aa976f83cfbe63512043594
2019-12-27 08:31:06 +00:00
Yo Chiang
a69bb0712d VerificationActivity clones calling Intent
When VerificationActivity receives an Intent, clone the calling Intent's
extras Bundle and pass the whole Bundle into
DynamicSystemInstallationService Intent. Don't unpack and repack the
calling Intent's extras field. Since VerificationActivity aren't using the
contents of the extras Bundle, it shouldn't know about the details of extra.

Test: adb shell am start-activity \
  -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
  -a android.os.image.action.START_INSTALL \
  --el KEY_USERDATA_SIZE 8589934592 \
  -d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip

Change-Id: Ie19b9d4d9ebcbd4623d8c76637da4fa732a4a3c3
2019-12-27 12:43:14 +08:00
Nathan Harold
47fbf0aaa0 Merge "Expose PreciseDataConnectionState to Public API" 2019-12-26 23:05:58 +00:00
Shuo Qian
9c344fe751 Merge "Improve LTE signal bar level with flexible RSRQ and RSSNR threshold" 2019-12-26 21:19:50 +00:00
Hall Liu
e00ad76e90 Expose SignalStrength.CREATOR
Parcelable creators should be public per API guidelines

Bug: 146834818
Test: atest android.telephony.cts.SignalStrengthTest
Change-Id: Ib15e21c005ea5fecd5886583213af5fdb9f70abb
2019-12-26 12:48:09 -08:00
Tomita, Ryounosuke X
19078ae003 Improve LTE signal bar level with flexible RSRQ and RSSNR threshold
Current AOSP LTE signal bar has following limitation:
- For Threshold type, "RSRP & RSSNR" or "RSRP only" are selectable,
  but "RSRP & RSRQ" is unavailable.
- For threshold value, RSRP is flexible by carrier config,
  but RSSNR is hard-coded.
- The signal strength reporting criteria apply to only the RSRP.

This change allows following customizations by new carrier config:
- Threshold type can select "RSRP & RSRQ" too.
- Threshold value of RSRQ and RSSNR can be flexible.
- RSRQ and RSSNR thresholds can set signal strength reporting criteria.

Test: auto - Confirmed that run
FrameworksTelephonyTests#testSignalStrength and it has no problem.
Test: auto - Confirmed that run
FrameworksTelephonyTests#SignalThresholdInfoTest and it has no problem.
Bug: 133400544

Change-Id: I37d0dc5ff41169b0309cfaabaa0f2595894b3749
Merged-In: I37d0dc5ff41169b0309cfaabaa0f2595894b3749
2019-12-26 10:10:14 -08:00
Aaron Huang
743a79e2ba Make StringNetworkSpecifier @SystemApi
Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests

Change-Id: I64ffbca6e7cb6494748533257bc63aafb8600317
2019-12-26 15:51:08 +08:00
Wayne Ma
7f20910faa Merge "Remove tlsFingerprints init value" 2019-12-26 07:13:05 +00:00
Jiyong Park
1a3b9b93d0 Add API signature files for the system server APIs
... so that they can be reviewed.

Bug: 140202860
Test: m

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

Merged-In: Iec8cdd30ad5e4979d56140a8c00a85af6476f67f
(cherry picked from commit 13c923d00a8a605db7aecac7456ecfdd08d18759)
Change-Id: Iec8cdd30ad5e4979d56140a8c00a85af6476f67f
2019-12-26 15:15:58 +09:00
Aaron Huang
9dd0968ca1 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" 2019-12-25 08:07:00 +00:00
Howard Chen
07fcb2fc5b Remove blocking binder calls from isInUse method
Bug: 145749943
Test: adb shell am start-activity \
    -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
    -a android.os.image.action.START_INSTALL \
    -d file:///storage/emulated/0/Download/system.raw.gz \
    --el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \
    --el KEY_USERDATA_SIZE 8589934592

Change-Id: I56324c13eada832e3a319ddd9f6c5b2ab414684e
2019-12-25 01:19:35 +00:00
Treehugger Robot
967232eef3 Merge "Avoid NPE in system_server in bringDownServiceLocked()" 2019-12-24 22:18:28 +00:00
SongFerngWang
780bdfa39c isTetheringApnRequired's permission is wrong.
permission change to MODIFY_PHONE_STATE.

Bug: 146406302
Test: build pass
atest TetheringConfigurationTest (PASS)

Change-Id: I908d83abb3e6df74af16d112d31ecaa404355825
2019-12-24 17:42:14 +08:00
Treehugger Robot
9b141cc23c Merge "Add UpstreamNetworkState for tethering" 2019-12-24 05:33:15 +00:00
Suren Baghdasaryan
016131513f Merge "Subscribe ActivityManagerService to receive lmkd kill notifications" 2019-12-23 23:20:38 +00:00
Suren Baghdasaryan
b6b8d1d8fa Subscribe ActivityManagerService to receive lmkd kill notifications
With new LMK_SUBSCRIBE lmkd command clients need to subscribe for lmkd
notifications.

Bug: 146597855
Test: run lmkd_unit_test and verify kill notification delivery
Change-Id: Ib54647ce36426a56db3ab6f95f375a0a0ce352ce
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-12-23 13:39:45 -08:00
Jon Spivack
b2d8eb58a2 Merge "ServiceManagerProxy: New method implementations" 2019-12-23 20:04:33 +00:00
Meng Wang
3831174548 Merge "Remove unused SystemProperties.set" 2019-12-23 20:03:40 +00:00
Shuo Qian
888365c03d Merge "Forward svc data to "cmd phone data" in TelephonyShellCommand" 2019-12-23 19:23:31 +00:00
Meng Wang
c4aa6f6dcd Remove unused SystemProperties.set
Bug: 140908357
Test: make
Merged-In: I47239b57bbbd37695fba5a37cc64b78428189a31
Change-Id: I47239b57bbbd37695fba5a37cc64b78428189a31
2019-12-23 18:36:58 +00:00
sqian
4814e2b4a7 Forward svc data to "cmd phone data" in TelephonyShellCommand
Bug: 145553588
Test: adb shell commands; manual
Change-Id: I687635ff78439dd446df538312c4811ef8073ea3
Merged-In: I687635ff78439dd446df538312c4811ef8073ea3
(cherry picked from commit 0de373a1927966b76541bab417d278d9b0254ea2)
2019-12-23 10:22:27 -08:00
Treehugger Robot
dcb8aa7cba Merge "Refactor AudioPlaybackConfiguration to reduce usages of hidden APIs" 2019-12-23 18:03:35 +00:00
johnson.yeh
095b7a0ce8 Make TokenBucket available to the network stack
Bug: b/144826001

Test: Build Pass: OK
Test: Power ON/OFF: OK
Test: Verify CPU loading improvement: OK

Change-Id: I75d55c3e53fce57e50533dc74af3381a6cee4b96
2019-12-23 19:50:51 +08:00
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