Commit Graph

12405 Commits

Author SHA1 Message Date
Jorim Jaggi
5fdaa0c9af Merge "Remove FEATURE_SWIPE_TO_DISMISS functionality" 2019-11-11 13:10:30 +00:00
Yunfan Chen
a232661f36 Merge "Hook up TaskDescription into set bar color calls (6/N)" 2019-11-08 02:22:05 +00:00
Eugene Susla
ed7d2af0de Merge "Add CDM system api to check for association presence" 2019-11-07 02:28:57 +00:00
Zhen Zhang
11cb2643c6 Merge "Fix bug: Some targets will have wrong sub-label" 2019-11-07 01:17:53 +00:00
Yunfan Chen
91b3a1bd14 Hook up TaskDescription into set bar color calls (6/N)
This patch will update the task description when the app calls
setStatusBarColor or setNavigationBarColor. The status bar is updated
but the information is not reflected in the task description without
this patch.

Bug: 132756841
Bug: 113253712
Test: Test with the test app in b/132756841. The task description is
      updated as expected.
Test: go/wm-smoke
Change-Id: I4ba1e5e7dd0f096cba40221450a8861e3d578e3c
2019-11-06 16:57:05 -08:00
Philip P. Moltmann
f1d098404c Merge "Allow null-featureIds in AppOpsService binder calls" 2019-11-06 23:38:57 +00:00
Satakshi
d2010f2628 Screenshot Notification Smart Action: AiAi and - Sys UI integration
This change creates ScreenshotNotificationSmartActionsProvider, which is overridden
in GoogleSystemUI.
Calling AiAi is guarded by a device config flag created in cl/277143225.

Test: Manually tested the code in this CL and corresponding change in SystemUIGoogle.
Took a screenshot and verified that AiAi gets invoked and the screenshot notification
shows smart actions.
Ran new tests added in this CL 'atest ScreenshotNotificationSmartActionsTest'
Bug: 143556894

Change-Id: I439a4be9aac53fb02b566ae4d438afe3edf2b37a
2019-11-06 13:46:08 -08:00
satayev
98e9bbdb06 Merge "Plumb @TestApi enforcement policy to runtime." am: eb6be3bd48 am: d24444e5ee
am: 698c84738e

Change-Id: Ib451e70ecb98e2e1af635139f23248261385694c
2019-11-06 07:19:20 -08:00
satayev
698c84738e Merge "Plumb @TestApi enforcement policy to runtime." am: eb6be3bd48
am: d24444e5ee

Change-Id: If7541ac35b6535a6d5535f777e840aa3da90fa69
2019-11-06 07:13:47 -08:00
satayev
d24444e5ee Merge "Plumb @TestApi enforcement policy to runtime."
am: eb6be3bd48

Change-Id: If061e7da58ffc566cd054e90ad26bdfa0d8f6e30
2019-11-06 07:06:56 -08:00
Tiger Huang
0f3fc6d2e0 Merge "Window Manager Flag Migration (5/n)" 2019-11-06 03:33:30 +00:00
SongFerng Wang
f1d3e7a815 Merge "[MainLine] CellularBatteryStats expose @System Api" 2019-11-06 01:18:15 +00:00
Philip P. Moltmann
02cd91b466 Allow null-featureIds in AppOpsService binder calls
Test: atest CtsAppOpsTestCases
Bug: 136595429
Change-Id: Ib47b8dd0c665314c4b3547895bda29de98a2258a
2019-11-05 14:44:14 -08:00
Jorim Jaggi
e06b1fd0f5 Remove FEATURE_SWIPE_TO_DISMISS functionality
Not used anymore by any product.

Bug: 143346248
Test: Boots
Change-Id: I21286e62f73ec34f7d5ca040cd614838c9cd4276
2019-11-05 19:14:54 +01:00
Artur Satayev
19305b4f0e Plumb @TestApi enforcement policy to runtime.
By default access to test APIs would be allowed for instrumented processes only.

Bug: 133832325
Test: manual
Change-Id: Iaaa54a3fe04624a7b5b9f4304d39fc37580568c8
2019-11-05 18:08:44 +00:00
SongFerngWang
8a5307c197 [MainLine] CellularBatteryStats expose @System Api
1. add getCellularBatteryStats() at BatteryStatsManager.java
2. CellularBatteryStats API transform to @System Api

Bug: 138806762
Test: build pass and device boots up
      atest TelephonyMetricsTest

Change-Id: Iec67f45f18ea26c96198bd732eadf14f878bdaa0
2019-11-06 01:19:35 +08:00
Makoto Onuki
4c7073b017 Bidner shell command API proposal
Bug: 142751512
Test: "adb shell cmd jobschduler help"
Test: "adb shell cmd activity help"

Change-Id: I9174040cae72172e82d260d0ceb9ca5a69b72940
2019-11-05 09:13:07 -08:00
Tiger Huang
0dbd5376ea Window Manager Flag Migration (5/n)
Completely remove the system UI visibility from the SystemUI side.

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest RegisterStatusBarResultTest
Test: build on specific target
Change-Id: Ibc866c5fbb35582dad8fd1a90376ce47dc501377
2019-11-06 01:07:31 +08:00
Felipe Leme
42a1773abe Merge "Improved UserSystemPackageInstaller.dump()" 2019-11-05 15:18:53 +00:00
Zhen Zhang
6a549b568f Fix bug: Some targets will have wrong sub-label
When bind sub-label to view, we shouldn't check empty. Otherwise the
view cannot be clean up when recycled.

Bug: 143719968
Test: ResolverActivityTest, ChooserActivityTest
Change-Id: Ic22af8369246f73039c4add4c4168949410f0517
2019-11-04 15:16:31 -08:00
Paul Mclean
be78503554 Merge "Adding USB Recording warning message to UsbResolverActivity." 2019-11-04 21:06:41 +00:00
Aran Ink
2b041061e3 Merge "Track and destroy inline URI grants separately from Notification URIs." 2019-11-04 20:31:06 +00:00
Paul McLean
07425c8c00 Adding USB Recording warning message to UsbResolverActivity.
Bug:136080195
Test: install UsbAccess and UsbPersistentPermissionsTestApp
(both want to handle USB connection events). Notice the
new warning message for the app(s) that haven't been
granted record permission.

Change-Id: I651ae5e6314a2d59ed4537aa7d7785e27e3b1a52
2019-11-04 12:25:07 -07:00
Miranda Kephart
82bfe7d6f7 Merge "Add corner flow for screenshots" 2019-11-04 19:06:45 +00:00
Aran Ink
979c9766df Track and destroy inline URI grants separately from Notification URIs.
Bug: 142492493
Bug: 137398133

Test: Unit tests pass. Manual testing with an app configured to receive images via RemoteInput can access and display image URIs after the notification has been canceled, but before the notification entry has been removed from the shade.

Change-Id: If64ae7eff7293df3317a1f629977aaaccd866b32
2019-11-04 12:56:41 -05:00
TreeHugger Robot
90edec903a Merge "Do not enforce partition restrictions on component-override" 2019-11-04 17:31:43 +00:00
Miranda Kephart
ea2e67a5a0 Add corner flow for screenshots
Instead of showing a notification, the screenshot animates into the
bottom left corner of the phone. Tapping on it leads to the same
intent as tapping "Edit" on the notification would. The screenshot
disappears after 8 seconds.

Bug: 137153302
Test: adds feature behind flag, tested that behavior remains the same
if flag is false

Change-Id: I4f48ba7de36f298bd6a66439ea6885fc92a8cb9c
2019-11-04 12:13:19 -05:00
Mike Ma
9688474172 Downgrade error level when proc file is empty
Use Slog.w instead of Slog.wtf for a few empty cases when reading
proc files.

There have been quite a few issues around reporting error at Slog
.wtf level in the past. Although Slog.wtf should not crash itself,
it has indirectly caused a few crashes due to improper handling of
wtf errors e.g. arose from incorrectly mocking BatteryStatsImpl.

Test: Manual
Change-Id: Idce018c928a1bb0f3d4c139382d090be009c291d
2019-11-01 02:26:09 -07:00
Hui Yu
a86a36b184 Merge "Add process capability as a new dimension." 2019-10-31 23:11:21 +00:00
Kweku Adams
f8ab0aa52b Merge "Move heap dump sharing to SHELL." 2019-10-31 19:23:30 +00:00
TreeHugger Robot
abc015499a Merge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master" into stage-aosp-master 2019-10-31 18:38:40 +00:00
Andrei-Valentin Onea
dd663ea38e Merge "Add apis for listing all compat changes" am: 2c3b1a1010 am: 4b8947bd56
am: 97ad6f5c48

Change-Id: I6478b10141e6a051e7e1d04b3108f0266f74a173
2019-10-31 06:59:18 -07:00
Andrei-Valentin Onea
97ad6f5c48 Merge "Add apis for listing all compat changes" am: 2c3b1a1010
am: 4b8947bd56

Change-Id: I924c55f20755d33c6a748326bf07083592fd77e6
2019-10-31 06:52:54 -07:00
Andrei Onea
18041f787d Add apis for listing all compat changes
These apis are required for adding UI in the Developer options for
modifying compatibility change overrides.

Bug: 138280620
Test: atest CompatConfigTest
Change-Id: If55aa68f9bdd6bed0765324e972de3683bacb553
2019-10-31 11:54:13 +00:00
Hui Yu
2696932100 Add process capability as a new dimension.
Add new attribute capability to ProcessRecord, it represents what this
process is allowed to do. Capability is a separate dimension for
process state (ProcState).

In OomAdjuster.java, capabilities can be passed from client to service.

Add PROCESS_CAPABILITY_FOREGROUND_LOCATION to represent the capability
that can access location while-in-use.

For permission such as foreground location access, AppOpsService
checks for FOREGROUND_LOCATION capability, also checks if the process
is in one of the foreground process states, if both conditions meet,
the locaton operation is allowed.

Remove PROCESS_STATE_FOREGROUND_SERVICE_LOCATION.

Bug: 136274596
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
atest CtsAppTestCases:ActivityManagerApi29Test
atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java
Change-Id: Ie1c8e670fb0789208b753eb49b7e2fce6a2f211f
2019-10-30 18:23:24 -07:00
Xin Li
6f48900f50 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: If5056a73ede668b0048ca107b686413695e5b3b6
2019-10-30 14:33:01 -07:00
Eugene Susla
e62958cb98 Add CDM system api to check for association presence
Per agreement with wifi team, wifi stack will call into CDM when wifi
connection is requested, treating CDM record similarly to the previously
approved networks records, i.e. skipping UI when association exists.

Test: atest android.os.cts.CompanionDeviceManagerTest
Fixes: 143572863
Change-Id: I28b44076e594fb9357b5a543176d285414ef06f8
2019-10-30 18:08:00 +00:00
Ryan Mitchell
61a3032198 Do not enforce partition restrictions on component-override
Previously, any static RRO could change the manifest value of any
resource in any package. The initial component-override change
restricted this to only partitions with the ALLOW_APP_CONFIGS flag
are allowed to configure component enabled state.

This change allows any partition to use component-override.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I035b2233bceb4ed7b091295e5aaa99b61dad851e
2019-10-30 08:52:43 -07:00
TreeHugger Robot
2bbe7de417 Merge "Remove StartInputFlags.FIRST_WINDOW_FOCUS_GAIN" 2019-10-29 23:51:56 +00:00
Kweku Adams
6d4bd8e8db Move heap dump sharing to SHELL.
The system shouldn't be granting read URI permissions as itself. This
means that heap dumps aren't successfully shared. Moving the heap dump
sharing mechanism to SHELL, which already has the permission to dump
heaps so that dumps can be shared properly.

The Shell changes are submitted separately.

Bug: 126885951
Bug: 135150619
Test: collect a heap dump and confirm it's successfully shared with an app
Test: do manual test on a secondary user & confirm it's not available to
other user
Change-Id: I6d2230bb2d9ca42a105b3fedee9d075de35e3dd3
2019-10-29 15:17:05 -07:00
arangelov
b0802dc1fc Separate adapter logic from ChooserActivity and ResolverActivity
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverActivityTest
Bug: 142537267
Bug: 142538125
Change-Id: Ia4a61e3dc7cbac5c31e0d5b126e033a043c81d90
2019-10-29 14:48:59 +00:00
lumark
847a7d97e9 Remove StartInputFlags.FIRST_WINDOW_FOCUS_GAIN
Since this flag does not do any check during start input,
Remove this flag and the related parameter for IMM#onPostWindowFocus
to keep the logic simpler (included removing
ViewRootImpl#mHasHadWindowFocus).

This is refector CL and does not impact any behavior change.

Bug: 141738570
Test: Refector CL, make sure all existing test passed.
Change-Id: I9119f4846cbbd2b15246dea9a3b1fc5845dce951
2019-10-29 21:40:45 +08:00
Xin Li
b2198fa670 Merge "Merge Coral/Flame into AOSP master" 2019-10-27 04:44:29 +00:00
Roshan Pius
748c9c61a9 Merge "Add a new BatteryStatsManager class" 2019-10-27 00:09:50 +00:00
Roshan Pius
848513ebe6 Add a new BatteryStatsManager class
Wifi/telephony mainline modules uses IBatteryStats which is an AIDL &
hence cannot be made a @SystemApi. Create a new manager class to wrap
around this AIDL to expose @System Api.

Bug: 138806762
Test: Device boots up & connects to wifi networks.
Change-Id: Ib8816c3df17ccc562b9664e7bea1ef01ab61f697
2019-10-26 14:43:59 -07:00
Mathieu Chartier
e4bc16c489 Merge "Avoid preloading classes for boot image profiling" am: cfee28589b am: 84f358f9bf am: ac60bbb740
am: fca111db2f

Change-Id: Ic28857abef951581a7627e3805ccd3db49c03391
2019-10-25 13:27:34 -07:00
Mathieu Chartier
fca111db2f Merge "Avoid preloading classes for boot image profiling" am: cfee28589b am: 84f358f9bf
am: ac60bbb740

Change-Id: I48fa3fbc8b9f2859a084bf36d06117a1ea8970cf
2019-10-25 13:20:46 -07:00
Mathieu Chartier
ac60bbb740 Merge "Avoid preloading classes for boot image profiling" am: cfee28589b
am: 84f358f9bf

Change-Id: Iea9cf99e07272a4e5a6ae132825591d3508a5c04
2019-10-25 13:08:35 -07:00
Mathieu Chartier
84f358f9bf Merge "Avoid preloading classes for boot image profiling"
am: cfee28589b

Change-Id: I9c7be76f96546d50a6e049aeab60ca71ee215500
2019-10-25 12:58:29 -07:00
Mathieu Chartier
cfee28589b Merge "Avoid preloading classes for boot image profiling" 2019-10-25 19:35:00 +00:00