Commit Graph

11929 Commits

Author SHA1 Message Date
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
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
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
Ray Essick
5a33417f50 Merge "Revert "Preload sfplugin_ccodec for performance"" into qt-dev am: fb4fab4fa3
am: de7e7b1e61

Change-Id: I614d66b28875df8cfa9529db9e7db417b57d9c08
2019-07-03 17:50:54 -07:00
Matt Pietal
d4f87e905f Merge "Resolver - 'Always' button broken for non VIEW cases" into qt-dev
am: 914de104b3

Change-Id: Ibe159fb80f851be84cf825416ce936b481b38cf8
2019-07-03 17:37:56 -07:00
Ray Essick
de7e7b1e61 Merge "Revert "Preload sfplugin_ccodec for performance"" into qt-dev
am: fb4fab4fa3

Change-Id: I6d51b391c335ad4df81073313003576a06c02da1
2019-07-03 16:55:15 -07:00
Matt Pietal
ef430bb118 Merge "Resolver - 'Always' button broken for non VIEW cases" into qt-dev
am: 914de104b3

Change-Id: I5583dde27c46f7130a540fce1476400767e7ec98
2019-07-03 16:55:05 -07:00
Ray Essick
790f8912a3 Merge "Revert "Preload sfplugin_ccodec for performance"" into qt-dev
am: fb4fab4fa3

Change-Id: I7be69015e447bd251edfe8595d6774327b491570
2019-07-03 16:51:28 -07:00
Matt Pietal
914de104b3 Merge "Resolver - 'Always' button broken for non VIEW cases" into qt-dev 2019-07-03 20:11:59 +00:00
TreeHugger Robot
fb4fab4fa3 Merge "Revert "Preload sfplugin_ccodec for performance"" into qt-dev 2019-07-03 19:08:42 +00:00
Ray Essick
4a0199a899 Revert "Preload sfplugin_ccodec for performance"
This reverts commit 30da74bda4.

Reason for revert: occasional audio race, losing volume control for device

Bug: 133186424
Bug: 135763139
Change-Id: I3aca2780dfcf80cfe0095af2a40496f3af0733cd
2019-07-03 18:48:16 +00:00
Matt Pietal
a310c1fa3a Resolver - 'Always' button broken for non VIEW cases
Users are incorrectly being directed to the settings app when
selecting 'Always', making them unable to actually open an app through
the resolver.

Bug: 132071949
Test: Steps are reported in b/136451610
Change-Id: I11775d7b0b780195f08273ad2b90b8ecd2ee1db4
2019-07-03 09:12:56 -04:00
Hui Yu
cb99610483 Move reading time field to inside HistoryItem.readFromParcel().
Also HistoryItem does not need to implement Parcelable interface,
just like other batterystats classes, readFromParcel() and
writeToParcel() are pair of symmetric methods, but those classes do
not implement Parcelable interface because readFromParcel() is not a
method of readFromParcel() interface.

Change-Id: I5ac974c9903c5639a6bb52fc0a53367f92187af0
Fix: 135442392
Test: reboot device and "adb shell dumpsys batterystats"
2019-07-02 21:57:24 +00:00
Winson Chung
98b75b7ce8 Merge "Check that alpha is zero instead of transparent color to decide scrim" into qt-dev am: 1abc45038b am: a5c11b4ae4
am: ed586b2c53

Change-Id: Iff2d3ecd045f6a7be23638b4407f85d2fdcafb6e
2019-07-02 13:12:32 -07:00
Ray Essick
6844778e39 Merge "Preload sfplugin_ccodec for performance" into qt-dev am: 878a6b2015 am: 0ef82ad076
am: b816bc76c6

Change-Id: I1f562a4c91ef6d5d803ddb8513f5a8b1c4bd86cc
2019-07-02 12:33:27 -07:00
Winson Chung
ed586b2c53 Merge "Check that alpha is zero instead of transparent color to decide scrim" into qt-dev am: 1abc45038b
am: a5c11b4ae4

Change-Id: I1590888f5fc01c2feed7e7af9c0d08ba12d729c4
2019-07-02 12:06:03 -07:00
Ray Essick
b816bc76c6 Merge "Preload sfplugin_ccodec for performance" into qt-dev am: 878a6b2015
am: 0ef82ad076

Change-Id: Ia00336a9c12a1082607f59145201db26624261ba
2019-07-02 11:58:58 -07:00
Matt Pietal
24df27b6e2 Merge "Sharesheet - Fix regression in direct share sorting" into qt-dev am: ac1c8ddcc3
am: 3d1f220698

Change-Id: Idb5ab5b887e89fe08c670cb14a76471662b68b22
2019-07-02 11:36:13 -07:00