Commit Graph

11957 Commits

Author SHA1 Message Date
Beth Thibodeau
2ec68155dd Merge "Stop timer when notification isn't visible" into qt-dev am: 7256c379df am: 8594033be0 am: 487868ff02
am: 5114045f56

Change-Id: Ic07fc80edfc041166eab4843de67f472a9e4b5e7
2019-07-29 15:49:34 -07:00
Miranda Kephart
5e7ba7874f Merge "Add phenotype flags for transcription speed" into qt-r1-dev am: bb600247ec am: e5dadcc252
am: 1015ccc66f

Change-Id: I3a4597201b099a5434a38832321f4ad9124d16f9
2019-07-29 15:18:35 -07:00
Beth Thibodeau
5114045f56 Merge "Stop timer when notification isn't visible" into qt-dev am: 7256c379df am: 8594033be0
am: 487868ff02

Change-Id: I63ed867d1f35bf9bdaeab3755ad2186d718c43c7
2019-07-29 15:01:43 -07:00
Miranda Kephart
1015ccc66f Merge "Add phenotype flags for transcription speed" into qt-r1-dev am: bb600247ec
am: e5dadcc252

Change-Id: Iac58d33cc7a27883c43c1ead3abef4223b38ac8b
2019-07-29 14:31:28 -07:00
Beth Thibodeau
8594033be0 Merge "Stop timer when notification isn't visible" into qt-dev
am: 7256c379df

Change-Id: If8705c20723e5ee725399e9377f0c6e33e997429
2019-07-29 14:13:58 -07:00
Miranda Kephart
bb600247ec Merge "Add phenotype flags for transcription speed" into qt-r1-dev 2019-07-29 19:46:21 +00:00
TreeHugger Robot
38f7d6c813 Merge "[wm]: DividerSnapAlgorithm doesn't consider vertical divider" 2019-07-29 19:01:28 +00:00
Miranda Kephart
6369fc0379 Add phenotype flags for transcription speed
Bug: 138305857
Test: manual (tested along with changes to pick up/use the flags)
Change-Id: I9b65079c75e01829a243ffd1286e8c171438cc6f
2019-07-26 17:02:51 -04:00
hyok.kim
1b652fd994 [wm]: DividerSnapAlgorithm doesn't consider vertical divider
Consider orientation when checking new snapTarget's position
 meets minimal size

Test: atest WmTests:DockedStackDividerControllerTests
Bug: 129522552
Change-Id: I70db9edada07df8aeb24dfaea1e9d4f6e1d69899
2019-07-26 10:20:12 -07:00
Beth Thibodeau
3c4a8e48d4 Stop timer when notification isn't visible
Fixes: 138261464
Test: manual, atest com.android.systemui.statusbar.notification.row.wrapper.NotificationMediaTemplateViewWrapperTest
Change-Id: Id7b1b586f3ab258fad8670070240ef951080c969
2019-07-26 11:33:18 -04:00
Makoto Onuki
a0eb2ddf1a Merge "Revert "Move the job scheduler service code to its own jar file."" 2019-07-25 18:13:15 +00:00
Makoto Onuki
a0c692ff9f Revert "Move the job scheduler service code to its own jar file."
This reverts commit 136d1ecf1e.

Reason for revert: My device didn't boot. :(

Change-Id: I11636c2ad03a3c14f5953a700fc3a2d629a81a42
2019-07-25 18:09:14 +00:00
Makoto Onuki
9343ae0bbe Merge "Move the job scheduler service code to its own jar file." 2019-07-25 16:40:30 +00:00
Vadim Caen
ef4e1cea9b Do not call drawableChanged pre Q
Some apps rely on not updating the window format when changing the
background of the DecorView. To keep the compatibilty with these app we
add only call DecoreView.drawableChanged() when the window background is
changed on app targetting Q and above.

Test: Manually test by lunching Instagram TV and pressing return twice.
The window should aninate with no flickering.
Bug: 136987724

Change-Id: I3593d30dc6f10519008151974e475f0dad86fc64
2019-07-25 15:25:19 +02:00
Kalesh Singh
dfd36454fc Merge "Get wakelock stats from SystemSuspend" am: dff4801d6b am: 7c7c466e1b am: bd2c24e1d1 am: 7faeb8c82f
am: 8ffa2cfcea

Change-Id: Id3a2d8d7bd3df8c141f9764f5381212ca3d99a2c
2019-07-25 01:23:20 -07:00
Kalesh Singh
7faeb8c82f Merge "Get wakelock stats from SystemSuspend" am: dff4801d6b am: 7c7c466e1b
am: bd2c24e1d1

Change-Id: I27016c9f7cb7914f89f608ff0ba1b47d3c677579
2019-07-25 00:51:12 -07:00
Kalesh Singh
bd2c24e1d1 Merge "Get wakelock stats from SystemSuspend" am: dff4801d6b
am: 7c7c466e1b

Change-Id: I149f176165fda0ac02c890677a3c2e97459aaed3
2019-07-25 00:32:06 -07:00
Kalesh Singh
7c7c466e1b Merge "Get wakelock stats from SystemSuspend"
am: dff4801d6b

Change-Id: I96bda190d2935e3a21391e831d23f50526c8fc93
2019-07-25 00:21:12 -07:00
Treehugger Robot
dff4801d6b Merge "Get wakelock stats from SystemSuspend" 2019-07-25 07:02:25 +00:00
Vadim Caen
d6aa056512 DO NOT MERGE Do not call drawableChanged pre Q am: 843f9dee8b
am: 2106ef79ad

Change-Id: Ic5ceb704346deb38d1151f0e1fdc79fbb28ff82d
2019-07-24 16:38:48 -07:00
Vadim Caen
605e74c930 DO NOT MERGE Do not call drawableChanged pre Q
am: 843f9dee8b

Change-Id: I813f41905386da06e6eaebd6b7f85c17a6051456
2019-07-24 16:19:39 -07:00
Vadim Caen
2106ef79ad DO NOT MERGE Do not call drawableChanged pre Q
am: 843f9dee8b

Change-Id: Id54fa3b2327faec88c936228109643c8425eeb2a
2019-07-24 16:17:49 -07:00
Jorim Jaggi
d007c7b90d Merge "DO NOT MERGE Do not call drawableChanged pre Q" into qt-dev 2019-07-24 22:49:21 +00:00
Makoto Onuki
136d1ecf1e Move the job scheduler service code to its own jar file.
- Also remove the dependency from SystemServiceRegistry to JobScheduler

See apex/jobscheduler/README_js-mainline.md for the details.

Bug: 137763703
Test: build and boot
Test: atest CtsJobSchedulerTestCases
Change-Id: Ic8ae8e99e6600b261618b5cfb6590d3f3664ae9f
2019-07-24 14:50:47 -07:00
Vadim Caen
843f9dee8b DO NOT MERGE Do not call drawableChanged pre Q
Some apps rely on not updating the window format when changing the
background of the DecorView. To keep the compatibilty with these app we
add only call DecoreView.drawableChanged() when the window background is
changed on app targetting Q and above.

Test: Manually test by lunching Instagram TV and pressing return twice.
The window should aninate with no flickering.
Bug: 136987724

Change-Id: I3593d30dc6f10519008151974e475f0dad86fc64
2019-07-24 21:29:12 +00:00
Dave Mankoff
f62794fab9 Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-dev
am: 8d56bbf2e3

Change-Id: I02f776454972a2b96744c02bad1de3b9e24e689c
2019-07-24 12:28:42 -07:00
Dave Mankoff
e38da07841 Allow BrightLineFalsingManager settings to be experimented with via Phenotype.
This is a CP of http://ag/8687829

Bug: 138308096
Test: atest SystemUITests
Change-Id: I9e2b22b157c45da1606466acdfff3c5de7f182e1
Merged-In: I9fa4d1344bb184dea00f92f8d265667f0be11466
2019-07-24 18:37:11 +00:00
Kalesh Singh
f166d19ebe Get wakelock stats from SystemSuspend
Read wakelock stats from SystemSuspend if possible else fallback to
/d/wakeup_source, /proc/wakelocks.

Bug: 128923994
Test: KernelWakelockReaderTest

Change-Id: I859092d53d7697a4940f9369480e203181f0c370
2019-07-23 09:40:31 -07:00
Vadim Caen
d94c8e720a Merge "Postpone setting background when window is set." 2019-07-22 14:37:43 +00:00
Eugene Susla
03af85af07 Merge "Codegen for parcelable/dataclass boilerplate" 2019-07-19 22:07:24 +00:00
Dave Mankoff
63bc5be960 Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-r1-dev am: 1ec1ecb364
am: a50e7bb20d

Change-Id: I30b508ca38a3be49b0c59665bdf18c33532489e7
2019-07-19 13:11:59 -07:00
Dave Mankoff
a50e7bb20d Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-r1-dev
am: 1ec1ecb364

Change-Id: I8ff7f9c7f9e9c4d10d5e36285f6ac043de8cca11
2019-07-19 12:48:00 -07:00
Vadim Caen
6932c77d53 Postpone setting background when window is set.
The DecorView background is the same as the window background.
If a background is set before the DecorView's window is set,
setWindowBackground will throw an NPE.

This happens when the default theme has android:view set with a
non-null value, so the background is set within the super constructor
(in View.java) before the PhoneWindow is set in the constructor of
DecorView.

Fixes: 137764086
Test: regression test DecoreViewTest.setBackgroundWithNoWindow()
Change-Id: I3b3c31cfe50ffa7284a1b37ca4b2f864be77c838
2019-07-19 17:45:52 +02:00
Dave Mankoff
1b80884e03 Allow BrightLineFalsingManager settings to be experimented with via Phenotype.
This also ensures that the FalsingManagerProxy cleans up its internal instance
whenever a Phenotype flag changes.

Bug: 71762354
Test: atest SystemUITests
Change-Id: I9fa4d1344bb184dea00f92f8d265667f0be11466
2019-07-18 17:22:54 -04:00
Eugene Susla
38dd28caac Merge "Access ServiceConnector.mService in a thread-safe manner" 2019-07-18 20:20:47 +00:00
Eugene Susla
05bc95949b Access ServiceConnector.mService in a thread-safe manner
binderDied() doesn't seem to have a defined thread on which it's called,
yet we want to abort queue processing asap on receiving it, so we have to
maintain state, modifiable from different threads.

The attached bug suggests modifying mService from a different thread is already
the case, so this just cleans up its usages to behave correctly in
parallel access scenario.

Fixed: 137744044
Test: presubmit
Change-Id: I9a09a69b5c1a1cd448a925bd7f8b2c6fa24357aa
2019-07-17 17:28:41 -07:00
Eugene Susla
574b7e11d5 Codegen for parcelable/dataclass boilerplate
This is the initial implementation of the `codegen` cli utility
for in-place java boilerplate generation

See DataClass and SampleDataClass for documentation/guide/examples.

See tools/codegen/ for implementation and tests/Codegen/ for tests.

Bug: 64221737
Test: . frameworks/base/tests/Codegen/runTest.sh
Change-Id: I75177cb770f1beabc87dbae9e77ce4b93ca08e7f
2019-07-17 17:12:37 -07:00
Jeongik Cha
168267660f Merge changes from topic "system_ext"
* changes:
  Consider overlay in system_ext as system's
  Support /system_ext partition
2019-07-17 10:24:58 +00:00
Vadim Caen
576f239f57 Merge "Delegate setBackgroundDrawable to setWindowDrawable" 2019-07-16 12:14:04 +00:00
randy.jeong
7e01bc3e2c Ignore signal registration for debugging am: 3ea9580a29
am: 0d79e1293c

Change-Id: I7a970d1d4f06e1261a3f5e9bb894f21315fc6d9d
2019-07-15 17:26:48 -07:00
randy.jeong
0d79e1293c Ignore signal registration for debugging
am: 3ea9580a29

Change-Id: I90f90104e68b4911f15bbfc1dfc3407320b86564
2019-07-15 16:44:05 -07:00
randy.jeong
2526b492a4 [FRAMEWORK] Ignore signal registration for debugging
It's difficult to identify native crash/error of 3rd party app.
Because they can control their app with own signal handling.
Therefore I would like to support the way to ignore signal
registration in 3rd party app with the specific property.

To enable this, do just setprop "debug.ignoreappsignalhandler 1".

Test: test app to hook signal, then setprop debug.ignoreappsignalhandler 1

Change-Id: I2af98a0f58e5ac039eab0ebe9c3780357aca7820
Merged-In: I2af98a0f58e5ac039eab0ebe9c3780357aca7820
Signed-off-by: randy.jeong <randy.jeong@samsung.com>
2019-07-15 23:16:49 +00:00
randy.jeong
3ea9580a29 Ignore signal registration for debugging
It's difficult to identify native crash/error of 3rd party app.
Because they can control their app with own signal handling.
Therefore I would like to support the way to ignore signal
registration in 3rd party app with the specific property.

To enable this, do just setprop "debug.ignoreappsignalhandler 1".

Test: test app to hook signal, then setprop debug.ignoreappsignalhandler 1

Merged-In: I2af98a0f58e5ac039eab0ebe9c3780357aca7820
Exempt-From-Owner-Approval: Cherry-pick
Change-Id: I2af98a0f58e5ac039eab0ebe9c3780357aca7820
Signed-off-by: randy.jeong <randy.jeong@samsung.com>
2019-07-15 21:45:40 +00:00
randy.jeong
4c2eafc201 Ignore signal registration for debugging
It's difficult to identify native crash/error of 3rd party app.
Because they can control their app with own signal handling.
Therefore I would like to support the way to ignore signal
registration in 3rd party app with the specific property.

To enable this, do just setprop "debug.ignoreappsignalhandler 1".

Test: test app to hook signal, then setprop debug.ignoreappsignalhandler 1

Change-Id: I2af98a0f58e5ac039eab0ebe9c3780357aca7820
Signed-off-by: randy.jeong <randy.jeong@samsung.com>
2019-07-15 12:24:15 +01:00
Vadim Caen
e664c705df Delegate setBackgroundDrawable to setWindowDrawable
Bug: 132232241
Test: DevoreViewTest#setBackgroundDrawableSameAsSetWindowBackground

Change-Id: Ic5961dd1d08d8cff7eb6bb72f475df579541b1d2
2019-07-15 11:55:05 +02:00
TreeHugger Robot
6a528472b4 Merge "Throttle calls to grant default roles." 2019-07-12 17:51:11 +00:00
Hai Zhang
fa97060c21 Throttle calls to grant default roles.
Package changes can be very frequent when for instance a new user is
created, and we used to re-run granting default roles every time a
package change is detected. In such cases the grant is inherently
async, so we can throttle it with a certain interval for better
performance.

This CL adds a throttled runnable and makes the async call in
RoleManagerService package change receiver throttled with an interval
of 1 second. The package hash computation is also moved to FgThread in
this case. The original blocking call in onStartUser() is not
affected and still runs on main thread.

Test: manual
Change-Id: I211ee3d4acbdf0662c6dfe4d67b35d253e12a472
2019-07-11 14:50:03 -07:00
Beverly
cca19d0c82 Merge "Adjust window rounded corners" into qt-r1-dev am: dcba632b41
am: 189c662b0e

Change-Id: Ic7e5ad474fcecb99c8b48c499e349bff3cd79c2d
2019-07-11 13:45:07 -07:00
Beverly
189c662b0e Merge "Adjust window rounded corners" into qt-r1-dev
am: dcba632b41

Change-Id: Icbd2513a96469ae187f2624a289982261478d475
2019-07-11 13:34:06 -07:00
TreeHugger Robot
dcba632b41 Merge "Adjust window rounded corners" into qt-r1-dev 2019-07-11 20:01:41 +00:00