439331 Commits

Author SHA1 Message Date
Naga Venkata Durga Ashok Mutyala
64b3fce9bb Remove AppWidgetManagerInternal instance before adding to global registry
of LocalServices

b/69981755 introduces AppWidgetManagerInternal and added this instance
as key in Local Services. setup() phase of Second testcase onwards
throwing IllegalStateException as the AppWidgetManagerInternal interface
already added in the global registry of LocalServices in first time setup()
phase.

Bug: 147165870
Test: atest FrameworksServicesTests:com.android.server.appwidget.AppWidgetServiceImplTest

Change-Id: I9e74b1a06e1c9a4b0ee0cad982cecaac3059f7c9
Signed-off-by: Naga Venkata Durga Ashok Mutyala <quic_nmutya@quicinc.com>
2020-01-04 19:28:13 +05:30
Rick Yiu
a7612150ff Implement the ThreadPrioritySetter interface
Implement the ThreadPrioritySetter interface and register it in
runtime.

Bug: 139521784
Test: CtsLibcoreTestCases, device boot to home, thread priority set
      as expected.
Change-Id: Iee33a26c0b25386dd10a51a14284cab71e71edb2
2020-01-04 02:56:38 +00:00
Yifan Hong
f585f651ad Use @ErrorCode for UpdateEngineCallback
Test: TH

Change-Id: I26297984e40b66ff08e0c291bc1aa0e556fe6bcc
2020-01-03 13:08:46 -08:00
Yifan Hong
8e48e6d986 Add @ErrorCode annotation to UpdateEngine APIs
Test: TH

Change-Id: I3016132454ea38d2eaf69b907c726f46b2608509
2020-01-03 13:08:46 -08:00
Yifan Hong
2ce03276e7 Add UpdateEngine.cleanupSuccessfulUpdate
This API cleans up the merge and free up space after the
device has boot successfully into the new build for a
Virtual A/B update.

Bug: 138808328
Test: pass
Change-Id: Id4543906b06e6a8487f91955af85024d8a50a464
2020-01-03 11:18:04 -08:00
Yifan Hong
16d4554abc Add UpdateEngine.allocateSpace
This API preallocates space for a Virtual A/B update.

Test: pass
Bug: 138808058
Change-Id: I34e34fbf6ac63bd189abda4a45cdac84b0e109d0
2020-01-03 11:18:04 -08:00
Daniel Bright
8288b90353 Merge "Removed LTE_CA from Annotations"
am: 8ab4812386

Change-Id: Ica0be9172523403712cca78c5c1d96a4ff08bbb5
2020-01-03 10:59:33 -08:00
Treehugger Robot
8ab4812386 Merge "Removed LTE_CA from Annotations" 2020-01-03 18:51:33 +00:00
Daniel Bright
f88d11a37a Removed LTE_CA from Annotations
Teams need to directly link to Annotations and having
a @hide as a const prevents that @SystemApi methods from
doing this.

Bug: 146084549
Test: FrameworkServiceTests
Merged-In: I2d6ad7621560ef73b10d6eb861c44700b27a2ea6
Change-Id: I2d6ad7621560ef73b10d6eb861c44700b27a2ea6
2020-01-03 10:06:08 -08:00
TreeHugger Robot
a7707c4db7 Merge "DO NOT MERGE - Merge QQ1A.200105.003 into stage-aosp-master" into stage-aosp-master 2020-01-03 17:50:01 +00:00
Daulet Zhanguzin
5727033c3a Merge "Replace com.android.internal.util.Preconditions.checkNotNull with java.util.Objects.requireNonNull"
am: edb04b0849

Change-Id: I8e4b29e00a958c9de57379010b81f416c8bfa046
2020-01-03 08:03:33 -08:00
Treehugger Robot
edb04b0849 Merge "Replace com.android.internal.util.Preconditions.checkNotNull with java.util.Objects.requireNonNull" 2020-01-03 15:44:41 +00:00
Daulet Zhanguzin
8d0b7f106f Replace com.android.internal.util.Preconditions.checkNotNull with
java.util.Objects.requireNonNull

Bug: 126528330

Test: Treehugger
Change-Id: I978d5d0959f7800e859bfb384458ba52adc0c2b0
2020-01-03 14:42:32 +00:00
Justin Yun
e0e165f06e Merge "Use ro.product.vndk.version for unbundled product apks"
am: cbfcd44f68

Change-Id: I49b3841f627a6e8b25e91e02dce491cb526886d9
2020-01-02 23:18:04 -08:00
Treehugger Robot
cbfcd44f68 Merge "Use ro.product.vndk.version for unbundled product apks" 2020-01-03 07:10:01 +00:00
Jiyong Park
6d9923d827 Remove unused system_modules
With
https://android-review.googlesource.com/c/platform/build/soong/+/1145829,
android_*stubs_current_system_modules are no longer used. Thus removing.

Bug: 142896162
Test: m checkbuild
Change-Id: I203766d92a8ebac862a816e9b6b68b6d47d5312c
2020-01-03 12:08:53 +09:00
Daniel Bright
11caff98ff Merge "Moved RilRadioTechnology annotation"
am: d031947100

Change-Id: I2d52c03374a8395dc9fb5fefc6eaeb863162f342
2020-01-02 19:06:40 -08:00
Treehugger Robot
d031947100 Merge "Moved RilRadioTechnology annotation" 2020-01-03 02:10:39 +00:00
Suren Baghdasaryan
a457a78ab7 Merge "Prevent double-counting of kernel stack size in dumpsys reports"
am: 9493f0ed0b

Change-Id: If643779ba45321f1dcb5b772ade4de451fcd4e1a
2020-01-02 17:01:53 -08:00
Suren Baghdasaryan
9493f0ed0b Merge "Prevent double-counting of kernel stack size in dumpsys reports" 2020-01-03 00:18:24 +00:00
Colin Cross
90d6707b02 Merge "Fix Error Prone errors"
am: 645ae56f43

Change-Id: I1e6dce4dd5458c01753ad78064ac6ea0e710f1ef
2020-01-02 16:03:24 -08:00
Colin Cross
645ae56f43 Merge "Fix Error Prone errors" 2020-01-02 23:33:56 +00:00
Meng Wang
51b2141041 Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED
from protected broadcast list.

The broadcast was removed in I8fffe2996f233f2422173e9823810523ce80f2e5

Bug: 140908357
Test: make
Change-Id: I12d18e307ca253c81b1e858b3d27474a0d01aac6
2020-01-02 15:03:47 -08: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
Xin Li
dd7e1b8a32 DO NOT MERGE - Merge QQ1A.200105.003 into stage-aosp-master
Change-Id: I2b5667dbbb21f5be830f9338c8cb32d4778ed0c1
2020-01-02 13:29:43 -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
Rahul Sabnis
ed567b8cad Merge "Remove unused BluetoothHearingAid APIs and usages"
am: 7d48a4513c

Change-Id: I155dce1eaeb1100f2240041d5604c9252ccc1aae
2020-01-02 13:01:42 -08:00
Treehugger Robot
7d48a4513c Merge "Remove unused BluetoothHearingAid APIs and usages" 2020-01-02 20:43:57 +00:00
Cody Kesting
9a80eafa43 Add API surface for ConnectivityDiagnostics API.
ConnectivityDiagnostics API will be used to provide callbacks to
permissioned applications for notifications on network connectivity
events.

Bug: 143187964
Test: compiles
Change-Id: Ib3c0b93f534a9c540e577891aa8aa0a2ad6de71f
2020-01-02 10:51:17 -08:00
Tobias Thierer
5317efad07 android.net.http: Update OWNERS.
Remove flooey@.

Add libcore and conscrypt owners, since they seem vaguely appropriate
as owners.

Bug: 147092934
Test: Treehugger
Change-Id: I2decceafeb688f5eb0741f8a23c0afd7731f23b7
2020-01-02 17:11:33 +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
Po-Chien Hsueh
ede56ae7ea Remove notification right after clicking on cancel
After aosp/1188881, DynamicSystemManager.remove() is blocked for
about 30 seconds. To give users feedbacks faster when they click on
the [Cancel] button, This CL removes the progress notification
earlier.

Bug: 145891864
Test: Clicking on the [Cancel] button
Change-Id: I4e43775b2de6eaa50d4a1cc073a5057f22f6d8d5
2020-01-02 15:44:26 +08: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
5d9fc9340b Merge "Add an override for getUser in ContextWrapper"
am: 5a049f5cf2

Change-Id: Ia69ca6ab1e5f34ac3ac5a16aff8a45ac92de0f9d
2020-01-01 22:04:35 -08: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
a7c70015f3 Merge "Copy isEmailAddress"
am: ed384ad6aa

Change-Id: I501de6f68a3b6b49ffad17f7ee8b932ed84cdc8d
2019-12-31 14:52:03 -08: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
Paul Duffin
582b734db9 Merge "Switch from java_libs to java_header_libs for sdkext-sdk"
am: e84e60ae79

Change-Id: Ia656690f16e3c2c051181d3386534dfcb1d7a356
2019-12-31 12:04:07 -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
1aa5ca3f70 Make Context.NETWORK_POLICY_SERVICE @SystemApi
Includes Context.NETWORK_POLICY_SERVICE into system API
so that system apps(including mainline modules) could
obtain the service.

Bug: 138306002
Test: FrameworksNetTests
      FrameworksTelephonyTests

Change-Id: I3f751b14e55969952c69b33c97ef86d859cef8b5
2019-12-31 22:12:16 +08:00
Aaron Huang
a4fbf15adf Merge "Make StringNetworkSpecifier @SystemApi"
am: fbceb58514

Change-Id: I3beee20d0e56223381b2e507752c71d2590b0264
2019-12-31 00:16:58 -08:00
Aaron Huang
fbceb58514 Merge "Make StringNetworkSpecifier @SystemApi" 2019-12-31 08:11:48 +00:00
Howard Chen
e7e3c7ec10 Merge "Remove blocking binder calls from isInUse method"
am: 4bef55860f

Change-Id: I2c4274c9c45e0a9347aa7791632e7ff3600edbf9
2019-12-30 18:40:53 -08: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