Commit Graph

11800 Commits

Author SHA1 Message Date
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
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
2106ef79ad DO NOT MERGE Do not call drawableChanged pre Q
am: 843f9dee8b

Change-Id: Id54fa3b2327faec88c936228109643c8425eeb2a
2019-07-24 16:17:49 -07: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
Daniel Sandler
ea28adf7de Merge "Q card." into qt-dev am: 13de667fa6
am: 59fdc5ca76

Change-Id: Ia448d7b73d88f69ab53b0cd888bd25c242aa6d4f
2019-07-10 21:31:55 -07:00
Daniel Sandler
69a42c8217 Merge "Q card." into qt-dev
am: 13de667fa6

Change-Id: I844b8a49d78988b4bf5cffbce04c9b4b4e3469ca
2019-07-10 21:21:31 -07:00
Daniel Sandler
59fdc5ca76 Merge "Q card." into qt-dev
am: 13de667fa6

Change-Id: Ia30df6e52c78381860782b282125d9deef9511b5
2019-07-10 21:21:30 -07:00
Dan Sandler
a761337637 Q card.
(Goodbye, hypno-P and your '90s tech magazine color palette.)

Bug: 123903304
Test: adb shell am start -n android/com.android.internal.app.PlatLogoActivity
Test: adb shell am start -c com.android.internal.category.PLATLOGO -a android.intent.action.MAIN
Test: adb shell am start -n com.android.egg/.paint.PaintActivity # still works
Change-Id: I4865024a14b6a78e7a043c56d2330b5f9dd214c6
2019-07-10 15:51:12 -04:00
Beverly
72dbd11ccd Adjust window rounded corners
Test: manual
Fixes: 136652290
Change-Id: I969b00528e269da16021387cb8298e05aeeb63ab
2019-07-10 14:00:17 -04:00
Dan Sandler
8c7b8cbd39 Q card.
(Goodbye, hypno-P and your '90s tech magazine color palette.)

Bug: 123903304
Test: adb shell am start -n android/com.android.internal.app.PlatLogoActivity
Test: adb shell am start -c com.android.internal.category.PLATLOGO -a android.intent.action.MAIN
Test: adb shell am start -n com.android.egg/.paint.PaintActivity # still works
Change-Id: I4865024a14b6a78e7a043c56d2330b5f9dd214c6
Merged-In: I4865024a14b6a78e7a043c56d2330b5f9dd214c6
2019-07-10 17:21:30 +00:00
Hongwei Wang
e4579b2a49 Merge "Fixes the PiP edge intersect for fling" 2019-07-10 17:17:17 +00:00
TreeHugger Robot
fd0082b723 Merge "Move reading time field to inside HistoryItem.readFromParcel()." 2019-07-10 01:23:32 +00:00
Jeongik Cha
9ec059ac1d Support /system_ext partition
This commit is mainly from I7a6a30bf8e8db9f2738594d187bb9148f138b8da, so
test cases and features are mostly same.

We change product_services partition name to "system_ext" because this
partition's purpose changes.

 - installing a RRO package for framework from /system_ext/overlay
 - installing apps from /system_ext/app
 - installing priv-apps from /system_ext/priv-app
 - installing permissions from
   /system_ext/etc/[default-permissions|permissions|sysconfig]

Bug: 134359158
Test: `mma` under frameworks/base/tests/[libs|privapp]-permissions
      adb sync && adb reboot
      adb shell cmd package list libraries
        => confirmed com.android.test.libs.system_ext library
      adb shell cmd package dump \
        com.android.framework.permission.privapp.tests.system_ext
        => confirmed that the package is a priv-app

Change-Id: Ibbccbba64156a7bc464ffb3785fb8fe69ebb973c
2019-07-09 23:55:37 +09:00
Hongwei Wang
02e3c9d0b9 Fixes the PiP edge intersect for fling
Bug: 135896456
Test: Fling the PiP window towards edge
Change-Id: Ia10823b9aa21e32223fbd8938719ebf31dfc936b
2019-07-08 16:54:18 -07:00
Matt Pietal
a8031410eb Merge "Resolver - 'Always' button broken for non VIEW cases" into qt-dev am: 914de104b3 am: ef430bb118
am: 5153eb6f4e

Change-Id: I4ea935b5807f13d6626c45ec5e74b23009520fb4
2019-07-03 20:35:12 -07:00
Ray Essick
4522610802 Merge "Revert "Preload sfplugin_ccodec for performance"" into qt-dev am: fb4fab4fa3 am: de7e7b1e61
am: 5a33417f50

Change-Id: I6267e738560c80c98040f865f9d2c99bdd197615
2019-07-03 20:13:40 -07:00
Matt Pietal
5153eb6f4e Merge "Resolver - 'Always' button broken for non VIEW cases" into qt-dev am: 914de104b3
am: ef430bb118

Change-Id: Ib168d0e8fa6eb436a215b0a0a01119a81627c571
2019-07-03 18:23:30 -07:00