Commit Graph

15868 Commits

Author SHA1 Message Date
Alex Light
92ac76bb7d Merge "Add agent startup-attach" into qt-dev-plus-aosp am: 74f191c782
am: 25abf4d99a

Change-Id: I4caa4c4af263544bf76278397e67b283c2f6ef40
2019-08-19 13:54:04 -07:00
Alex Light
25abf4d99a Merge "Add agent startup-attach" into qt-dev-plus-aosp
am: 74f191c782

Change-Id: I45f82e0c1efa8d312971cb84ab51888c4595498f
2019-08-19 13:29:49 -07:00
Alex Light
ca8502a7f5 Add agent startup-attach
Add ability to give 'startup-agents' that are automatically loaded
when a (debuggable) app starts. These agents are any files in the
'code_cache/startup_agents' directory. The agents are started with the
apps data_directory as an argument.

Test: Install debuggable apk (here com.antonioleiva.bandhookkotlin)
  walleye:/ $ run-as com.antonioleiva.bandhookkotlin sh
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ mkdir code_cache/startup_agents
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libtifasts32.so code_cache
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libtifasts64.so code_cache
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libchainagentss32.so code_cache/startup_agents/
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libchainagentss64.so code_cache/startup_agents/
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ echo $PWD/code_cache/libtifasts32.so=log,ClassLoad > chain_agents.txt
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ echo $PWD/code_cache/libtifasts64.so=log,ClassLoad >> chain_agents.txt
  Start bandhookkotlin
  Examine logcat

Bug: 135627501

Cherry-picked from commit c0fce111c8b due to merge conflict.

Change-Id: Ib82b27df90c7964a995288d8b2b3d348a11cdd80
Merged-In: Ib82b27df90c7964a995288d8b2b3d348a11cdd80
2019-08-16 16:14:07 +00:00
Felipe Leme
fcee9fb574 Fixed SystemServiceRegistry to return a null AppPredictionManager when the service is not defined.
am: 87c5855e17

Change-Id: I207ddf77599d9a12609c7b297a58c8ce1b6eab17
2019-08-15 02:09:58 -07:00
Felipe Leme
87c5855e17 Fixed SystemServiceRegistry to return a null AppPredictionManager when the service is not defined.
Test: manual verification
Test: atest CtsAssistTestCases

Fixes: 139416391

Change-Id: Ieb2ae3f39bd42dc077ed3db1c6acdf429a39d519
2019-08-15 06:03:24 +00:00
Prabir Pradhan
a47f176420 Merge "apply empty transaction in startActivitySync" into qt-dev am: f928b661d9 am: 5cd874d792
am: fa6f50e13d

Change-Id: I30338c95c5ea27b191b20decdcf78cbe240b62c0
2019-08-14 02:00:18 -07:00
Prabir Pradhan
5d138b1d12 Merge "apply empty transaction in startActivitySync" into qt-dev am: f928b661d9
am: 5cd874d792

Change-Id: I430d68da69b2123dcaae8378d024d65ff4405824
2019-08-14 01:53:22 -07:00
Prabir Pradhan
fa6f50e13d Merge "apply empty transaction in startActivitySync" into qt-dev am: f928b661d9
am: 5cd874d792

Change-Id: I9c9ac83d6466c1d9c5ac666cfcfe0920b276ffdc
2019-08-14 01:53:13 -07:00
Prabir Pradhan
5cd874d792 Merge "apply empty transaction in startActivitySync" into qt-dev
am: f928b661d9

Change-Id: Ic4b27be6729a3a7627a8fc499cd99fdec42cad35
2019-08-14 01:40:41 -07:00
Prabir Pradhan
d8006ca972 Merge "apply empty transaction in startActivitySync" into qt-dev
am: f928b661d9

Change-Id: Ifcb1ebfee97d26c0ceeddc88f39f54ecee4da85f
2019-08-14 01:39:18 -07:00
Pinyao Ting
ba45d8a844 Merge "fixes a security vulnerability in slice provider" into qt-qpr1-dev
am: 69018b0325

Change-Id: Ibd5810c49a728b297751891006da35f09c6975b1
2019-08-13 11:20:04 -07:00
Pinyao Ting
2b415a4c44 fixes a security vulnerability in slice provider
Bug: 138441555
Test: Manual
Change-Id: Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965
2019-08-13 00:25:33 +00:00
lumark
290d6f3546 DO NOT MERGE: Fix ActivityView surface can't visible for ActivityViewTest
am: dc9b319039

Change-Id: Iedaebd2888f402e382a4eaf0d7385df2c17d0bdd
2019-08-09 07:48:32 -07:00
lumark
dc9b319039 DO NOT MERGE: Fix ActivityView surface can't visible for ActivityViewTest
CL [1] introduced ActivityView's surface view set alpha as zero by default.
but SurfaceView ignores alpha value by default.

So to archieve SurfaceView can support alpha value and then introduced CL[2].
with that CL, it will affect ActivityView that can't see the surface because
of this zero alpha value.

Since CLs[1] & [2] are mainly considered for BubbleController to implement
content visiblity with setting surface view's alpha value without
flickering, and in BubbleExpandedView#onFinishInflate has already
called setContentVisibility(false) to set ActivityView's alpha value as
zero before add this view.

So removing ActivityView's default zero alpha value would be fine, since
it may not always the case that need to set zero alpha but need to show
the black rectangle surface for user. (i.e. ActivityViewTest or Android Auto)

Also, refined ActivityView#setAlpha for some stuff to make it clear.

[1]: Ie5aed373996419b059935889b564ca91c2e3cf23
[2]: I86847de59109b2adf12a2c7c50c988c2cbcf0450

Bug: 137937105
Test: manual as below steps
      1) make & install ActivityViewTest
      2) launch "AV Main" shortcut
      3) press "Test ActivityView" -> "Launch test activity"
      4) see if launched Acitvity is visible as expected.
Test: atest ActivityViewTest, observe if ActivityView is visible during testing.

Change-Id: Iaf480912f06a6851001a42bf90e4d962c8a88a37
2019-08-09 14:26:12 +00:00
Issei Suzuki
94e8d116ab DO NOT MERGE: Support alpha value in SurfaceView.
For backward compatibility, SurfaceView ignores alpha value by
default. In order to reflect alpha value set on the SurfaceView
to its underlying surface, setUseAlpha() needs to be called.

Translucent alpha only works when the surface is placed z-above.
Otherwise only fully opaque and transparent status are supported.

Bug: 137937105
(Orignal bug from b/130442248)
Test: Manual, use BubblesTest app and checks if alpha is set.
Change-Id: I86847de59109b2adf12a2c7c50c988c2cbcf0450
2019-08-09 14:08:03 +00:00
Prabir Pradhan
03dde38efc apply empty transaction in startActivitySync
Force SurfaceFlinger to update synchronously by applying an empty
transaction. Without this, SurfaceFlinger will only update after the
next vsync, which may only happen after the instrumentation already
starts.

Since InputFlinger will only have the proper InputWindowInfo after
SurfaceFlinger updates, waiting for the vsync caused some
instruemntation tests to be flaky.

Bug: 138263890
Test: atest android.view.cts.HoverTest
Change-Id: I5457ab67ac574530dc1aa84549ca11e7e3f0d714
2019-08-07 12:59:01 -07:00
Kevin Hufnagle
7130f7ed6b Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev am: c80fe63001 am: ad1de8fbe4
am: 0f27f04f9b

Change-Id: Ibafe22878438e3f1ce176647a3ba07544d753dbf
2019-08-06 09:38:01 -07:00
Kevin Hufnagle
0f27f04f9b Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev am: c80fe63001
am: ad1de8fbe4

Change-Id: I22a8b72e89aef3063c3f2b40e6d1f58c7155a7e8
2019-08-06 09:23:03 -07:00
Kevin Hufnagle
05ad21feaf Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev am: c80fe63001
am: ad1de8fbe4

Change-Id: I0f33586ecb3b8f7e6cfa91dac274f9b384428495
2019-08-06 09:22:59 -07:00
Kevin Hufnagle
410f162645 Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev
am: c80fe63001

Change-Id: I3acf4d0a724d252b59a9e56fb1939187d741dcf7
2019-08-06 09:09:56 -07:00
Kevin Hufnagle
ad1de8fbe4 Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev
am: c80fe63001

Change-Id: I332332fc88e565a3842297b04769778ee1c344ca
2019-08-06 09:09:56 -07:00
Jorim Jaggi
c7b3ff1c52 Merge "Fix overlapping remote and recents animations" into qt-r1-dev am: b248a0343f
am: dd40a0c75a

Change-Id: Ia9361be8e0040303ab397e718e055193409624cf
2019-08-05 11:50:14 -07:00
Jorim Jaggi
dd40a0c75a Merge "Fix overlapping remote and recents animations" into qt-r1-dev
am: b248a0343f

Change-Id: I103ff225bbf69e6945cb90430130ae233dd6cb9f
2019-08-05 11:39:05 -07:00
Jorim Jaggi
f76a0f8376 Merge "Fix overlapping remote and recents animations" into qt-r1-dev
am: b248a0343f

Change-Id: I65a0859aa03247262767107f3525b2b7490b5eb8
2019-08-05 11:39:03 -07:00
Jorim Jaggi
589c5ba0fa Fix overlapping remote and recents animations
Test: Open app and immediately swipe up while opening. Verify
Thread prioties in systrace

Test: WindowProcessControllerTests
Fixes: 137881181
Change-Id: Ic1d7403d2a648e6f1d1b6a3d55b56bf37bc57a2c
2019-08-05 17:10:18 +02:00
Kevin Hufnagle
4fbcec13a0 docs: Clarified when onRestoreInstanceState() executes
This method executes only after onDestroy() is called.

Change-Id: I4880cc98ea08945f30b16baa7ae400a5bbe3e439
Test: make ds-docs
Bug: 136241777
2019-08-02 15:43:33 +00:00
Julia Reynolds
b15b4616d7 Merge "Allow the down volume key to silence notifs" into qt-qpr1-dev
am: 71148077e8

Change-Id: I582d615ae6b66cfaeef0b5420e626855024cf7f2
2019-07-26 17:48:52 -07:00
Julia Reynolds
1ceddc4ce3 Allow the down volume key to silence notifs
Additionally preserve existing behavior by passing
the keypress on.

Fixes: 130025623
Test: manual
Change-Id: I00f83275000369c1ab03bae63eb0a4b6170c4b53
(cherry picked from commit deb2d0b743)
2019-07-26 19:25:38 +00:00
Selim Cinek
324bf3e6d1 Merge "Not asking for the password when dragging down and bypass" into qt-r1-dev
am: 87592617ec

Change-Id: Ifd782f3883c52b800228a4a5ca5171fe7f4dc390
2019-07-24 10:17:47 -07:00
Selim Cinek
a014f22da9 Merge "Not asking for the password when dragging down and bypass" into qt-r1-dev am: 87592617ec
am: dad92fc913

Change-Id: Ice0f1ed6e40d76aff872b17913b08ee2615a4fb1
2019-07-24 10:17:37 -07:00
Selim Cinek
abcc201afb Not asking for the password when dragging down and bypass
Instead we'll just keep them in there looking like locked
notifications.

Fixes: 138225058
Test: add notifications, enable dynamic privacy, drag down
Change-Id: Ica49035ba3fe655c145f81be962817ddd294c48d
2019-07-23 18:44:07 -07:00
Lucas Dupin
d3dcd040e0 Merge "Fixed the layout of media heads up notifications" into qt-r1-dev
am: bddf774dd1

Change-Id: I69a46eb5b09d95fdc73ec2848e5198c6cd339c30
2019-07-19 12:19:56 -07:00
Selim Cinek
16f334e5c1 Fixed the layout of media heads up notifications
Previously the heads up layout was strangely clipped
because we were using the expanded layout.
We're now using the collapsed layout instead. In order to allow this,
the media notification needs to wrap it's height properly.

Fixes: 136507638
Test: show heads up media notification
Change-Id: Ib091b0e776b5cd1a615c9ea0121a3115817b7f64
2019-07-18 18:11:54 -07:00
Mathew Inwood
be2b0a71d7 Compatibility API implementation for app processes.
Pass the set of disabled changes from the system server into the app in the
bindApplication() call. Use this to instantiate an implementation of
Compatibility.Callbacks() to implement the API.

Test: Manual.
Bug: 135010838
Merged-In: I2fcf25264c62acc801f9e62967072cd04e4641e7
Change-Id: I2fcf25264c62acc801f9e62967072cd04e4641e7
2019-07-18 15:50:26 +00:00
Mathew Inwood
97bc3a29d8 Compatibility API implementation for app processes.
Pass the set of disabled changes from the system server into the app in the
bindApplication() call. Use this to instantiate an implementation of
Compatibility.Callbacks() to implement the API.

Test: Manual.
Bug: 135010838
Merged-In: I2fcf25264c62acc801f9e62967072cd04e4641e7
Change-Id: I2fcf25264c62acc801f9e62967072cd04e4641e7
2019-07-18 13:52:02 +01:00
Adrian Roos
56b89eff84 Merge "AM: make isHighEndGfx TestApi" into qt-dev am: 2ac934280c
am: 1b027edda1

Change-Id: I2ac2395e2c2814285e940f937c80f641fac31e44
2019-07-16 09:41:21 -07:00
Adrian Roos
60d8434884 Merge "AM: make isHighEndGfx TestApi" into qt-dev
am: 2ac934280c

Change-Id: I6a9c2ce91b4971cab32cabdd5d25e9edc29e64b5
2019-07-16 09:30:16 -07:00
Adrian Roos
1b027edda1 Merge "AM: make isHighEndGfx TestApi" into qt-dev
am: 2ac934280c

Change-Id: Ib531628ddd2fe1f4f5231f3892740b5dcbcfaf0d
2019-07-16 09:30:05 -07:00
TreeHugger Robot
2ac934280c Merge "AM: make isHighEndGfx TestApi" into qt-dev 2019-07-16 16:11:19 +00:00
Adrian Roos
5af40871ea AM: make isHighEndGfx TestApi
Bug: 136784434
Test: n/a
Change-Id: Ie26de8dcf64a02b7757d4f705485cdcb7470f511
2019-07-15 12:05:54 +02:00
Brad Ebinger
545a4c369e Merge "Make RcsMessageStore a top level API" am: bac258f22e am: 53f6c34039
am: 36cc070c24

Change-Id: Iaf09d213817a8df251e1d846bd50d7a571960b5c
2019-07-12 15:23:16 -07:00
Brad Ebinger
36cc070c24 Merge "Make RcsMessageStore a top level API" am: bac258f22e
am: 53f6c34039

Change-Id: Id6eba925aef3a1af812039372bf5e2e87fcbb35e
2019-07-12 15:01:58 -07:00
Brad Ebinger
53f6c34039 Merge "Make RcsMessageStore a top level API"
am: bac258f22e

Change-Id: If235ead8a75dc080e1e129d83bf7f24c3c996d8c
2019-07-12 14:53:26 -07:00
Brad Ebinger
bac258f22e Merge "Make RcsMessageStore a top level API" 2019-07-12 21:40:40 +00:00
Treehugger Robot
f0d921c41a Merge "Replace HashMap with ArrayMap for services" 2019-07-11 20:41:31 +00:00
Svet Ganov
78de8a10cc Merge "Update docs for UID_STATE" into qt-dev am: 261a2d62e2
am: f821b5df70

Change-Id: Ia293f2ea0fb56d8b03eadbedb831895fdb3e80bd
2019-07-09 11:08:44 -07:00
Svet Ganov
f3c177cc86 Merge "Update docs for UID_STATE" into qt-dev
am: 261a2d62e2

Change-Id: I259b70dc290ee1dccfb5768496e362965a75dadf
2019-07-09 11:01:30 -07:00
Svet Ganov
f821b5df70 Merge "Update docs for UID_STATE" into qt-dev
am: 261a2d62e2

Change-Id: Ibdca805d9105e60955b8258409752f13305b57ed
2019-07-09 10:55:59 -07:00
TreeHugger Robot
261a2d62e2 Merge "Update docs for UID_STATE" into qt-dev 2019-07-09 17:25:49 +00:00
Svet Ganov
b83d9c1c2d Specify the duration time base am: 6f672a3835
am: 947aeb09d9

Change-Id: Ibf0123753fe765deb1d2c6942ca8f5bf8926cb7c
2019-07-08 19:44:58 -07:00