Commit Graph

468813 Commits

Author SHA1 Message Date
Hyunyoung Song
8a7c978c57 Merge "Move UiEventLogger related methods into a library so that launcher can depend on it." 2020-02-09 20:43:38 +00:00
TreeHugger Robot
f0e9300080 Merge "Statsd logging of notification cancels." 2020-02-09 20:37:30 +00:00
Muhammad Qureshi
0b04b0560f Remove more Slog usages in statsd apex
Slog.* --> Log.*

Bug: 149128236
Test: m
Change-Id: I926f292dd5562af132774670c35fe2ca4e853bf8
2020-02-09 11:05:47 -08:00
Hai Shalom
623e9afbf2 [Passpoint] Allow multiple profiles w/identical FQDN
Allow to install multiple Passpoint profiles with identical
FQDN. The FQDN is not used as a key for profiles.
Existing Passpoint APIs that require FQDN (e.g. remove,
allow auto-join) , will apply the request to all matching
profiles with the same FQDN.

Bug: 148556276
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: Ife57367ea974ae361478ff66b2bd9ac1af0fd6ee
2020-02-09 11:04:31 -08:00
Omer Nebil Yaveroglu
b994372efb Change the way we handle app and installer certificates to be prepared
for the case that there might be multiple certificates signing the app.

Bug: 148373316
Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/integrity
Change-Id: Ic1e86aeff6c087266739682fe4fe206200a87420
2020-02-09 18:52:29 +00:00
Wu Ahan
b4ab54ad97 Merge "Unit tests for wide color gamut of ImageWallpaper" 2020-02-09 14:17:16 +00:00
Bill Yi
7927db83fb Import translations. DO NOT MERGE
Change-Id: I1daebbdb76f12b132888d100eb574dc630e47576
Auto-generated-cl: translation import
2020-02-09 02:25:18 -08:00
Trung Lam
a127fceb73 Add persistence of ConversationInfo during device reboot.
Change-Id: I01ee08eb212a42b0c19d654241adb6afd718c14b
Test: Build and run on test device.
Bug: 147782721
2020-02-08 23:42:05 -08:00
Trung Lam
6a1ec23cf7 Add protobufs for PeopleService data persistence.
Change-Id: I36d45e9ed5464802d0f7c4b405a666ff8ce83a21
Test: Built and ran on device.
Bug: 149050408
2020-02-08 23:41:49 -08:00
Automerger Merge Worker
68021fb9d0 Merge "[NS A43] Separate updating the linger timer and sending LOSING" am: 7abb6f602d am: aaa07c64f5 am: 63ab2fd0ab
Change-Id: Ia51cd7174e24744c8b2d3566f9e7b12f47504564
2020-02-09 07:34:46 +00:00
Automerger Merge Worker
99e6f4321e Merge "[NS A42] Move writing to the reassignment to the computation" am: 9b8a767cd6 am: 25d888115a am: acd7792824
Change-Id: If7fc3f8d859cfa7ba0bb7d638dbe5cae741cae71
2020-02-09 07:34:27 +00:00
Yotam Aron
742999757b Add atoms for publishing ban state.
This will replace the current dumpsys ban state logging from Android
Sessions.

Bug: 146158683
Test: manually ran adb shell cmd stats pull-source 10071/10072/10073.
Change-Id: I4123180a139efefa9ff4774bab87ce7c0ad25f21
2020-02-09 09:33:21 +02:00
Automerger Merge Worker
63ab2fd0ab Merge "[NS A43] Separate updating the linger timer and sending LOSING" am: 7abb6f602d am: aaa07c64f5
Change-Id: Id7ed8f80307d2e1252195a6aef62e51d0c4e7f27
2020-02-09 07:21:19 +00:00
Automerger Merge Worker
acd7792824 Merge "[NS A42] Move writing to the reassignment to the computation" am: 9b8a767cd6 am: 25d888115a
Change-Id: Iebe3dbd3b98f4b92486e86c48b0e50b6713b2aa6
2020-02-09 07:20:57 +00:00
Automerger Merge Worker
aaa07c64f5 Merge "[NS A43] Separate updating the linger timer and sending LOSING" am: 7abb6f602d
Change-Id: I4b8e7eec2df77d04700582542d6f3f2fb455c2af
2020-02-09 07:06:13 +00:00
Automerger Merge Worker
25d888115a Merge "[NS A42] Move writing to the reassignment to the computation" am: 9b8a767cd6
Change-Id: Ic04c72d0720bb53a38329dbcbc75cd914e1296c0
2020-02-09 07:05:54 +00:00
Chalard Jean
7abb6f602d Merge "[NS A43] Separate updating the linger timer and sending LOSING" 2020-02-09 06:51:06 +00:00
Chalard Jean
9b8a767cd6 Merge "[NS A42] Move writing to the reassignment to the computation" 2020-02-09 06:50:48 +00:00
Jiyong Park
a21b20414f Use framework-statsd-stubs in frameworks/base/Android.bp
The non-updatable part of the platform does not use framework-stats, but
framework-stats-stub. In doing so, some APIs in StatsEvent were made as
SystemApis.

FrameworkCoreTests was also modified to avoid the implicit linking with
'framework.jar' that doesn't have the test-only APIs for statsd. To
disable the implicit linking, sdk_version was set to core_platform and
the dependency to framework.jar was replaced with framework-all.

Bug: 146167933
Test: m
Test: m FrameworkCoreTests
Change-Id: Ic447993a13f74c09fabb04fe32b9b94d78a34ce2
2020-02-08 22:37:04 -08:00
Muhammad Qureshi
8ea733e435 Clean up service-statsd
- Build against framework-statsd
- Build against service-stubs

Bug: 146084685
Test: m
Change-Id: I0b855c065ce0159dbfd73998a54bc388a4d9611a
2020-02-08 22:37:04 -08:00
Automerger Merge Worker
7a59ea4ca1 Merge "[NS A41] Cut out a function to update NAI info" am: f0be137c05 am: bbbcec376c am: ac9ce40d70
Change-Id: Ie40f6e1428a7d3a98bb2b83bb6ac9f9224aa3de7
2020-02-09 05:45:49 +00:00
Automerger Merge Worker
ac9ce40d70 Merge "[NS A41] Cut out a function to update NAI info" am: f0be137c05 am: bbbcec376c
Change-Id: If22b44893c33c3640a85eed7e6dc0ce888018059
2020-02-09 05:33:29 +00:00
Automerger Merge Worker
bbbcec376c Merge "[NS A41] Cut out a function to update NAI info" am: f0be137c05
Change-Id: I668fe3095ee9184b50db83d8f52f572dc57cfa1f
2020-02-09 05:09:07 +00:00
Ilya Matyukhin
d93437034a Use @2.2 callback with @2.2 HAL
Bug: 139317981
Test: build
Change-Id: I86d3d50f9eb3c28cae4282d64f9e12a473c7f07c
2020-02-08 21:03:29 -08:00
Chalard Jean
f0be137c05 Merge "[NS A41] Cut out a function to update NAI info" 2020-02-09 04:56:37 +00:00
TreeHugger Robot
909a3c9f13 Merge "Import translations. DO NOT MERGE" 2020-02-09 03:56:34 +00:00
Etan Cohen
3d3138f063 Revert "[WIFICOND][API] Update channel API from array to list"
This reverts commit 98b1d8d5a2.

[API council request]

Bug: 148680192
Test: atest android.net.wifi
Change-Id: Id532feaa0b18d681bda317a68c0ebbd43761d183
2020-02-08 17:46:51 -08:00
Jiashen Wang
4cb4e19cce Clear calling identity when executing the callback
Callbacks need to be executed within Binder.clearCallingIdentity() since user code executed
in the callback should be with the calling pid/uid of the app, not the system.
Bug: 117795921
Test: Manually tested on eSIM operations

Change-Id: Ie50315e3fd287559ed516a24de09af6707c03d2f
Merged-In: Ie50315e3fd287559ed516a24de09af6707c03d2f
2020-02-08 15:35:50 -08:00
Philip P. Moltmann
6e406c8ae7 Merge "Activity start: Send featureId from context->AppOpsManager" 2020-02-08 22:54:50 +00:00
Philip P. Moltmann
9c5226fe36 Activity start: Send featureId from context->AppOpsManager
The expected usage pattern for noteOp is to get the
Context#getOpPackageName() and Context#getFeatureId() in the calling app
and the call

noteOp(callingPackageName, Binder.getCallingUid(), callingFeatureId)

As the featureId parameter is new this parameter has to been piped all
through from the ...Manager classes running in the app all way deep into
the bowels of the system server.

There is a special featureId==null for the "default" feature. This is
used in two cases:
- In case the system server (packageName == null || packageName ==
  "android") makes a call
- In the case there is no caller. In this case I left annotations in the
  code to make clear that the default feature is used

Raw binder interfaces (defined in AIDL files) are not supposed to be
used by apps. Still historically this has happened and we ended up with
@UnsupportedAppUsage tags in these files. Also AIDL does not support
two methods with the same name but different parameters. I.e. in the
case when I had to add a paramater to a method tagged as UnsupportedAppUsage I
- created a new method ...WithFeature with the additional paramter
- set a maxTargetSDK for the old method and mention the public API to
  use in the deprecation method
This is really not pretty. Once there is no more app using the old
internal API this hack can be removed.

Additionally this change removed all internal calls to
AppOpsService.noteOperation and AppOpsService.checkOperation and
replaces them with the public API equivalent. This sometimes means to
move the resolution of the mAppOpsManager to be lazy.

Exempt-From-Owner-Approval:: Just piping through arguments
Bug: 136595429
Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/am/
      atest CtsAppOpsTestCases added test to cover activity start
      atest WmTests
Change-Id: Ic7056b492cb1c9a79158e6c2b4864898a0eb5b2a
2020-02-08 22:53:43 +00:00
Automerger Merge Worker
c1532be57c Merge "Disabled some DEBUG constants." into qt-qpr1-dev am: e8d9d331ae am: af5dbf486a
Change-Id: I84f518d874a3f7ac136c7458fff8bc5600025de8
2020-02-08 21:34:42 +00:00
Automerger Merge Worker
af5dbf486a Merge "Disabled some DEBUG constants." into qt-qpr1-dev am: e8d9d331ae
Change-Id: I7d4e49253b1ecd54dc8036e21e23e7392aa47602
2020-02-08 21:24:30 +00:00
Felipe Leme
e8d9d331ae Merge "Disabled some DEBUG constants." into qt-qpr1-dev 2020-02-08 21:12:22 +00:00
Fabian Kozynski
01f07684d3 Documentation for QSTiles
Also added javadoc for QSTileImpl

Test: no test

Change-Id: I3c71954e04d58b1d694502baf01ceae13288031b
2020-02-08 21:06:46 +00:00
TreeHugger Robot
1ff2f07455 Merge "Make suggestion chip non-focusable to remove the background shadow" 2020-02-08 20:48:19 +00:00
Anton Hansson
08b48bb91f Dedup stub jar build rules
Move shared attrs into defaults.

Bug: 146757305
Test: m
Change-Id: I90292cafaac1dcc64d642db072ce4880fcdb87cb
2020-02-08 20:43:19 +00:00
Anton Hansson
2e2008b7a1 Tweak module_libs stub build rules
- Don't depend on framework-all (we depend on srcs)
- Set sdk_version to core_current

Bug: 146757305
Test: m
Change-Id: I9f14d35ba657045e99190b7a651781a5b87d490d
2020-02-08 20:39:59 +00:00
Fabian Kozynski
460ce85bbe Merge "Make HotspotControllerImpl async" 2020-02-08 20:23:04 +00:00
Fabian Kozynski
ec574d1890 Merge "Remove plugin for Controls in Global Action" 2020-02-08 20:21:50 +00:00
Muhammad Qureshi
d3e560f53f Merge "Add statsd_java_aidl to framework-statsd" 2020-02-08 19:51:04 +00:00
Muhammad Qureshi
c2d0b5d516 Merge "Remove @hide usages from statsd apex" 2020-02-08 19:50:41 +00:00
TreeHugger Robot
1e77561653 Merge "Descriped how getFeatures map is keyed" 2020-02-08 17:46:03 +00:00
Sudheer Shanka
5fec9dba93 Merge "Re-enable testHandleIdleMaintenance_deleteStaleSessions." 2020-02-08 17:29:57 +00:00
Anton Hansson
9003745360 Build permission against the module SDK
Bug: 146757305
Test: m
Change-Id: I6a2f8c9340051497770811f631ffb72debbf0b23
2020-02-08 13:49:57 +00:00
Anton Hansson
2ce92a9d82 Build updatable media against the module SDK
Bug: 146757305
Test: m
Change-Id: Id81e487ae28cc93cd5899cd5354ed9900567d415
2020-02-08 13:11:44 +00:00
Anton Hansson
ca03ef4de6 Add @Nullable and @NonNull to module API
These two annotations are already in the public/system stubs,
but are re-written to be package private instead of public. This
makes them inaccessible to libs building against these stubs.

When setting sdk_version:<X>, the stubs of X will appear before any
other libraries on the classpath. This also makes it impossible for
modules to add Nullable annotations of their own when setting sdk_version.

Exposing these annotations as public in the module stubs makes it
possible for modules using these annotation to specify an sdk_version.

Bug: 146758669
Test: m
Test: downstream CLs using sdk_version:module_current
Change-Id: I71fb766d02f833ed9a1b3a7dbfbc1c8118882b30
2020-02-08 13:11:40 +00:00
Julia Reynolds
e6fed50a1d Update inline conversation controls
- Move actions to header
- Reorder items
- Fix missing icon
- Wrap header text so it won't overlap buttons
- Enable 'add to home screen'

Test: atest
Fixes: 149070309
Fixes: 148467829
Bug: 137397357
Change-Id: I6ad7702f4ffd1eeb5a48914fa6e55538a6c92be2
2020-02-08 08:04:44 -05:00
Automerger Merge Worker
729082ca25 Merge "Remove "ro." prefix from sdk extension props" am: 57c17a8136 am: aae4da8fd3 am: e6303aaa3c
Change-Id: I665c25032124610e764915169d06a1ef9950d659
2020-02-08 12:10:23 +00:00
Automerger Merge Worker
e6303aaa3c Merge "Remove "ro." prefix from sdk extension props" am: 57c17a8136 am: aae4da8fd3
Change-Id: I616edf5d0cb45fe06168e9c8b9ee68255b26887d
2020-02-08 11:57:14 +00:00
Julia Reynolds
d05b0a7f66 Merge "Add support for Conversation settings" 2020-02-08 11:48:17 +00:00