3f51e3cfd474fa6bb2a77f397eceeeb8954d2b1f
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
…
…
Merge "docs: Added missing comma in RectF class description." into qt-dev am:
0c77665c37 am: 12873fe364 am: 79f985061d
…
…
…
Merge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev am:
6564df6264 am: e6fb43cff3
…
…
Merge "[view compiler] Remove dex_builder_test.cc" am:
63f6a62163 am: 130c3cc2b1 am: 08c3ae702a am: f28ef60b1e
…
Merge "Fix dependency on APK used by test" am:
85d2ac2e12 am: 6bbd7c4cc6 am: 2f62154908 am: a88f18a5c7
Merge "Remove the dependencies to ext and framework from the stubs build" am:
9b0e7670f8 am: 58cfae5d38 am: fd91098d77 am: ce7226df53
…
Description
No description provided
Languages
Java
73.7%
Kotlin
14%
PowerBuilder
5.8%
C++
5.2%
AIDL
1%