OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "docs: Correct sensor runtime permission documentation" into qt-dev am: 119f1220cd
Brian Duddie [Wed, 14 Aug 2019 20:19:42 +0000 (13:19 -0700)]
Merge "docs: Correct sensor runtime permission documentation" into qt-dev am: 119f1220cd
am: 7eeb6f60f9

Change-Id: Ib01177a1863818238d5998628252dc5c4372e06d

5 years agoMerge "docs: Correct sensor runtime permission documentation" into qt-dev
Brian Duddie [Wed, 14 Aug 2019 20:09:45 +0000 (13:09 -0700)]
Merge "docs: Correct sensor runtime permission documentation" into qt-dev
am: 119f1220cd

Change-Id: I380c1dab916509ac0878e8a60712e7f08e7451a5

5 years agoMerge "Fix number of pages in PagedTileLayout" into qt-qpr1-dev
TreeHugger Robot [Wed, 14 Aug 2019 19:46:16 +0000 (19:46 +0000)]
Merge "Fix number of pages in PagedTileLayout" into qt-qpr1-dev

5 years agoMerge "docs: Correct sensor runtime permission documentation" into qt-dev
Brian Duddie [Wed, 14 Aug 2019 17:32:05 +0000 (17:32 +0000)]
Merge "docs: Correct sensor runtime permission documentation" into qt-dev

5 years agoMerge "apply empty transaction in startActivitySync" into qt-dev am: f928b661d9
Prabir Pradhan [Wed, 14 Aug 2019 08:53:13 +0000 (01:53 -0700)]
Merge "apply empty transaction in startActivitySync" into qt-dev am: f928b661d9
am: 5cd874d792

Change-Id: I9c9ac83d6466c1d9c5ac666cfcfe0920b276ffdc

5 years agoMerge "apply empty transaction in startActivitySync" into qt-dev
Prabir Pradhan [Wed, 14 Aug 2019 08:40:41 +0000 (01:40 -0700)]
Merge "apply empty transaction in startActivitySync" into qt-dev
am: f928b661d9

Change-Id: Ic4b27be6729a3a7627a8fc499cd99fdec42cad35

5 years agoMerge "apply empty transaction in startActivitySync" into qt-dev
TreeHugger Robot [Wed, 14 Aug 2019 06:42:05 +0000 (06:42 +0000)]
Merge "apply empty transaction in startActivitySync" into qt-dev

5 years agoMerge "ThermalService: add event log when temperature changed" into qt-qpr1-dev
Wei Wang [Wed, 14 Aug 2019 03:41:44 +0000 (03:41 +0000)]
Merge "ThermalService: add event log when temperature changed" into qt-qpr1-dev

5 years agoMerge "Fix double auth issue" into qt-qpr1-dev
TreeHugger Robot [Tue, 13 Aug 2019 23:10:04 +0000 (23:10 +0000)]
Merge "Fix double auth issue" into qt-qpr1-dev

5 years agoMerge "Don't start intelligence services that are not provided by the OEM." into...
TreeHugger Robot [Tue, 13 Aug 2019 21:52:56 +0000 (21:52 +0000)]
Merge "Don't start intelligence services that are not provided by the OEM." into qt-qpr1-dev

5 years agoThermalService: add event log when temperature changed
Wei Wang [Thu, 1 Aug 2019 18:51:15 +0000 (11:51 -0700)]
ThermalService: add event log when temperature changed

Bug: 126562025
Test: Use emul_temp to test event log
Change-Id: I4271d226f106cfd61960f858429de8042fb5a7c8
(cherry picked from commit d295b27c3ad54cc67b0a0a6a96fba88e458b1548)

5 years agoMerge "[AT&T] Add key to show 4g for 3g RAT." into qt-r1-dev
Vagdevi Kondeti [Tue, 13 Aug 2019 19:07:31 +0000 (12:07 -0700)]
Merge "[AT&T] Add key to show 4g for 3g RAT." into qt-r1-dev
am: d7a23cc714

Change-Id: I6ac937185796a11cba2efe513877ed330915290a

5 years agoMerge "[AT&T] Add key to show 4g for 3g RAT." into qt-r1-dev
Vagdevi Kondeti [Tue, 13 Aug 2019 18:57:29 +0000 (18:57 +0000)]
Merge "[AT&T] Add key to show 4g for 3g RAT." into qt-r1-dev

5 years agodocs: Correct sensor runtime permission documentation
Brian Duddie [Tue, 13 Aug 2019 18:42:19 +0000 (11:42 -0700)]
docs: Correct sensor runtime permission documentation

The ACTIVITY_RECOGNITION permission applies to TYPE_STEP_DETECTOR, not
TYPE_GEOMAGNETIC_ROTATION_VECTOR.

Bug: 139363621
Test: n/a, comment update only
Change-Id: Ibce74be1e704ded04ae710988d0e03df43ab1cf9

5 years agoMerge "bootanimation: Change bootanim ioprio to highest in IOPRIO_CLASS_RT" into...
Miguel de Dios [Tue, 13 Aug 2019 18:13:49 +0000 (11:13 -0700)]
Merge "bootanimation: Change bootanim ioprio to highest in IOPRIO_CLASS_RT" into qt-r1-dev
am: f64c698ec7

Change-Id: I3f13d721d20a3610880cfc515caa732de121f766

5 years agoMerge "fixes a security vulnerability in slice provider" into qt-qpr1-dev
Pinyao Ting [Tue, 13 Aug 2019 18:04:29 +0000 (18:04 +0000)]
Merge "fixes a security vulnerability in slice provider" into qt-qpr1-dev

5 years agoMerge "bootanimation: Change bootanim ioprio to highest in IOPRIO_CLASS_RT" into...
TreeHugger Robot [Tue, 13 Aug 2019 17:45:57 +0000 (17:45 +0000)]
Merge "bootanimation: Change bootanim ioprio to highest in IOPRIO_CLASS_RT" into qt-r1-dev

5 years agoFix double auth issue
Lucas Dupin [Fri, 9 Aug 2019 17:35:34 +0000 (10:35 -0700)]
Fix double auth issue

This was a regression from a security fix b/135289187

Test: reach, auth, swipe up
Test: reach, auth, ait for timeout, reach again
Fixes: 138851575
Change-Id: Icd457dc79cb6f86a7cbb22a78ee80ebfbb4380a7
Merged-In: Icd457dc79cb6f86a7cbb22a78ee80ebfbb4380a7

5 years agoMerge "Freezing screen when dismiss pip if orientation is going to change." into...
wilsonshih [Tue, 13 Aug 2019 04:41:45 +0000 (21:41 -0700)]
Merge "Freezing screen when dismiss pip if orientation is going to change." into qt-r1-dev
am: 41b006d8d6

Change-Id: I4c66179b972c9137fc233df385cbf4699f635d55

5 years agoMerge "Freezing screen when dismiss pip if orientation is going to change." into...
TreeHugger Robot [Tue, 13 Aug 2019 04:09:12 +0000 (04:09 +0000)]
Merge "Freezing screen when dismiss pip if orientation is going to change." into qt-r1-dev

5 years agoMerge "Fix sensor triggering issue" into qt-r1-dev
Lucas Dupin [Tue, 13 Aug 2019 01:20:09 +0000 (18:20 -0700)]
Merge "Fix sensor triggering issue" into qt-r1-dev
am: fba4296329

Change-Id: I4e361ec71856b572220bfebf47a62965ef79786f

5 years agofixes a security vulnerability in slice provider
Pinyao Ting [Thu, 8 Aug 2019 22:35:20 +0000 (15:35 -0700)]
fixes a security vulnerability in slice provider

Bug: 138441555
Test: Manual
Change-Id: Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965

5 years agoMerge "Fix sensor triggering issue" into qt-r1-dev
TreeHugger Robot [Tue, 13 Aug 2019 00:24:14 +0000 (00:24 +0000)]
Merge "Fix sensor triggering issue" into qt-r1-dev

5 years agoMerge "Log various types of back gesture using StatsLog Bug: 135152789 Test: m statsd...
Hyunyoung Song [Mon, 12 Aug 2019 23:35:05 +0000 (16:35 -0700)]
Merge "Log various types of back gesture using StatsLog Bug: 135152789 Test: m statsd_testdrive -j31 Test: out/host/linux-x86/bin/statsd_testdrive 224" into qt-r1-dev
am: fa38ed5296

Change-Id: I3250c533571e6b371de81e75fc8094a5b3c59d8e

5 years agoMerge "Log various types of back gesture using StatsLog Bug: 135152789 Test: m statsd...
TreeHugger Robot [Mon, 12 Aug 2019 23:18:04 +0000 (23:18 +0000)]
Merge "Log various types of back gesture using StatsLog Bug: 135152789 Test: m statsd_testdrive -j31 Test: out/host/linux-x86/bin/statsd_testdrive 224" into qt-r1-dev

5 years agoMerge "Prevent Infinite Recursion in Telecom Sessions" into qt-qpr1-dev
TreeHugger Robot [Mon, 12 Aug 2019 23:08:04 +0000 (23:08 +0000)]
Merge "Prevent Infinite Recursion in Telecom Sessions" into qt-qpr1-dev

5 years agoMerge "Using the keyguard fading away duration for the scrim" into qt-r1-dev
Selim Cinek [Mon, 12 Aug 2019 23:03:04 +0000 (16:03 -0700)]
Merge "Using the keyguard fading away duration for the scrim" into qt-r1-dev
am: 85224a5834

Change-Id: I11aafc252dc733ef01cafd510b3a602aea803804

5 years agoMerge "Using the keyguard fading away duration for the scrim" into qt-r1-dev
TreeHugger Robot [Mon, 12 Aug 2019 22:44:56 +0000 (22:44 +0000)]
Merge "Using the keyguard fading away duration for the scrim" into qt-r1-dev

5 years agoMerge "Add timeout for displaying 5G icon" into qt-qpr1-dev
Pengquan Meng [Mon, 12 Aug 2019 22:24:58 +0000 (22:24 +0000)]
Merge "Add timeout for displaying 5G icon" into qt-qpr1-dev

5 years agoFix sensor triggering issue
Lucas Dupin [Mon, 12 Aug 2019 21:14:08 +0000 (14:14 -0700)]
Fix sensor triggering issue

Code duplication was causing the wrong sensor to be re-registered,
also, binned brightness isn't a drop-in replacement for proximity
as expected.

Brightness can be low when prox is not covered, the correct behavior
is to verify if brightness is not 0

Test: manual, covering sensor
Test: atest DozeSensorsTest
Fixes: 139298207
Change-Id: I8673e7d9bcb56d7a34741cfad35cf397d976c18d

5 years agoAdd timeout for displaying 5G icon
Pengquan Meng [Wed, 26 Jun 2019 23:56:45 +0000 (16:56 -0700)]
Add timeout for displaying 5G icon

This change add an optional filed that allows carrier to change the
timeout.

System UI will show the 5G icon and start a timer with the timeout
from this config when the device connect to a 5G cell. System UI stop
displaying 5G icon when both the device disconnect from 5G cell and
the timer is expired.

Bug: 136107473
Test: build
Change-Id: I9720ec127865daa03fb2c23fbdd7d4ebf5e30e1b

5 years agoAllow the vendor specific initialization of display_settings.xml.
Yuncheol Heo [Fri, 12 Jul 2019 17:03:40 +0000 (10:03 -0700)]
Allow the vendor specific initialization of display_settings.xml.

In hawk_md, I tried to copy the intial settings in vendor-init: ag/7309059
Later, I found that this way doesn't work in SELINUX, since vendor-init is
not allowed to access core_data_files: http://shortn/_h6LOOHBVCF
So, I'd like to add a hook that vendor can provide the intial display
settings.
This is a stop-gap solution until b/123226552 is resolved.

Bug: 137233447
Test: Check if /vendor/etc/display_settings.xml is copied into /data/system/.
Change-Id: Ib87219e62c3414f26d63f072a0e767287ddb156e

5 years agoMerge "Disable falsing manager when face-authed." into qt-r1-dev
Dave Mankoff [Mon, 12 Aug 2019 15:41:30 +0000 (08:41 -0700)]
Merge "Disable falsing manager when face-authed." into qt-r1-dev
am: 9249d828a1

Change-Id: Icfba07cedf942e13c2a5747890b253e6f6d588c0

5 years agoMerge "Disable falsing manager when face-authed." into qt-r1-dev
Dave Mankoff [Mon, 12 Aug 2019 15:17:39 +0000 (15:17 +0000)]
Merge "Disable falsing manager when face-authed." into qt-r1-dev

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev am: 893173...
Bill Yi [Mon, 12 Aug 2019 04:41:39 +0000 (21:41 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev am: 8931739c16 -s ours
am: a6e7345636 -s ours
am skip reason: subject contains skip directive

Change-Id: I1d5193e298818d94425d28492caaafcf4d6ea295

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
Bill Yi [Mon, 12 Aug 2019 04:31:51 +0000 (21:31 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: 8931739c16 -s ours
am skip reason: subject contains skip directive

Change-Id: I968bb1d6987ac3baab44a20b642ef4196026a408

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Mon, 12 Aug 2019 04:00:48 +0000 (04:00 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Mon, 12 Aug 2019 01:47:33 +0000 (01:47 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

5 years agoUsing the keyguard fading away duration for the scrim
Selim Cinek [Sat, 10 Aug 2019 00:19:57 +0000 (17:19 -0700)]
Using the keyguard fading away duration for the scrim

Previously we were using a fixed duration and as a result the
scrims duration was much shorter right after boot when the
fading away duration takes 2 seconds. We're now always using
the fading away duration which simplifies also the bypass
transition.

Fixes: 138305791
Test: atest SystemUITests
Change-Id: I2eba68c75c9777ab1ba6ffadadafed3836eb74e3

5 years ago[AT&T] Add key to show 4g for 3g RAT.
vagdevi [Fri, 9 Aug 2019 16:45:14 +0000 (09:45 -0700)]
[AT&T] Add key to show 4g for 3g RAT.

This key is introduced for AT&T

This will also require a carrier-config side change
to set show_4g_for_3g_data_icon_bool to true.

This will replace H/H+ that is shown by AT&T today.

Bug: 138655095
Test: manually

Change-Id: I480e14be41f8edbe607472351efd39d6d91b81b0

5 years agoMerge "Use the current user rather than USER_SYSTEM as default user for AccountManage...
Nicholas Sauer [Fri, 9 Aug 2019 23:19:57 +0000 (23:19 +0000)]
Merge "Use the current user rather than USER_SYSTEM as default user for AccountManagerServiceShellCommand" into qt-qpr1-dev

5 years ago[automerger skipped] Merge "Ensure isTopBucket() gets set when there is just one...
Ned Burns [Fri, 9 Aug 2019 22:51:53 +0000 (15:51 -0700)]
[automerger skipped] Merge "Ensure isTopBucket() gets set when there is just one notification" into qt-dev am: 68f3bb1305 -s ours
am: f5933683a7 -s ours
am skip reason: change_id I615b2f7fddca30dae67dbaab0e5d54a824a4c441 with SHA1 2d35980e72 is in history

Change-Id: I1f3818b203591b5644b4def1db594fb029830487

5 years ago[automerger skipped] Merge "Ensure isTopBucket() gets set when there is just one...
Ned Burns [Fri, 9 Aug 2019 22:38:03 +0000 (15:38 -0700)]
[automerger skipped] Merge "Ensure isTopBucket() gets set when there is just one notification" into qt-dev
am: 68f3bb1305 -s ours
am skip reason: change_id I615b2f7fddca30dae67dbaab0e5d54a824a4c441 with SHA1 2d35980e72 is in history

Change-Id: I37cdb13b72ac7c4da5df1db6ee07209ed20353db

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 9 Aug 2019 22:27:03 +0000 (15:27 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic9922a76ee09256ee0539d53d4c527911a869325

5 years agoMerge "Ensure isTopBucket() gets set when there is just one notification" into qt-dev
Ned Burns [Fri, 9 Aug 2019 22:21:45 +0000 (22:21 +0000)]
Merge "Ensure isTopBucket() gets set when there is just one notification" into qt-dev

5 years agoMerge "Hide the home handle in lock task home when home and overview are disabled...
Sunny Goyal [Fri, 9 Aug 2019 22:18:28 +0000 (15:18 -0700)]
Merge "Hide the home handle in lock task home when home and overview are disabled" into qt-r1-dev
am: 2862d538b6

Change-Id: Ied33a36a262ad766421321e9f4c53bb07a608fe7

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 9 Aug 2019 22:06:46 +0000 (15:06 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ibb92c8650e8f63fd70e7a23dcbde26ce19868d4a

5 years agoDisable falsing manager when face-authed.
Dave Mankoff [Fri, 9 Aug 2019 21:58:56 +0000 (17:58 -0400)]
Disable falsing manager when face-authed.

Bug: 139202921
Test: manual
Change-Id: Icc24dfaa2958443d0927567c1e90184059fc7ae7

5 years agoMerge "Hide the home handle in lock task home when home and overview are disabled...
TreeHugger Robot [Fri, 9 Aug 2019 21:51:03 +0000 (21:51 +0000)]
Merge "Hide the home handle in lock task home when home and overview are disabled" into qt-r1-dev

5 years agobootanimation: Change bootanim ioprio to highest in IOPRIO_CLASS_RT
Miguel de Dios [Wed, 7 Aug 2019 22:07:51 +0000 (15:07 -0700)]
bootanimation: Change bootanim ioprio to highest in IOPRIO_CLASS_RT

We see cases where bootanim is IO sleeping on boot and its causing
jank. Change the ioprio to the highest in an attempt to reduce this.

Bug: 138459662
Test: manual - flash and factory reset, looking for artifacts in the boot animation
Change-Id: I9734edea37c92e365a2b359a5180303e9b9284f7

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev am: fe2d42...
Bill Yi [Fri, 9 Aug 2019 19:38:47 +0000 (12:38 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev am: fe2d421fab -s ours
am: 5c0d577dea -s ours
am skip reason: subject contains skip directive

Change-Id: I8137f4945cc640f35f7de41ca90ba9c3ece572a3

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
Bill Yi [Fri, 9 Aug 2019 19:26:12 +0000 (12:26 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: fe2d421fab -s ours
am skip reason: subject contains skip directive

Change-Id: I2b7c8c005bb0d174a451243b9f0b4148f6c427bb

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 9 Aug 2019 18:42:27 +0000 (18:42 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Fade from black when reach" into qt-r1-dev
Lucas Dupin [Fri, 9 Aug 2019 18:00:00 +0000 (11:00 -0700)]
Merge "Fade from black when reach" into qt-r1-dev
am: 331cdb72e6

Change-Id: I94c39e651621b47e3bad580df1b0895e91cf1d42

5 years agoMerge "Ensure isTopBucket() gets set when there is just one notification" into qt...
Ned Burns [Fri, 9 Aug 2019 17:56:10 +0000 (10:56 -0700)]
Merge "Ensure isTopBucket() gets set when there is just one notification" into qt-r1-dev
am: 9a38205327

Change-Id: Ic9c363e93356cfdd6ae157da39064bf70b3b400d

5 years agoMerge "Prevent QSPanel from remeasuring" into qt-qpr1-dev
Fabian Kozynski [Fri, 9 Aug 2019 17:53:39 +0000 (17:53 +0000)]
Merge "Prevent QSPanel from remeasuring" into qt-qpr1-dev

5 years agoMerge "Do not set guts visibility to transient state" into qt-qpr1-dev
TreeHugger Robot [Fri, 9 Aug 2019 17:52:24 +0000 (17:52 +0000)]
Merge "Do not set guts visibility to transient state" into qt-qpr1-dev

5 years agoMerge "Assume sensors perform prox check" into qt-qpr1-dev
Lucas Dupin [Fri, 9 Aug 2019 17:43:50 +0000 (17:43 +0000)]
Merge "Assume sensors perform prox check" into qt-qpr1-dev

5 years agoMerge "Fade from black when reach" into qt-r1-dev
TreeHugger Robot [Fri, 9 Aug 2019 17:39:40 +0000 (17:39 +0000)]
Merge "Fade from black when reach" into qt-r1-dev

5 years agoEnsure isTopBucket() gets set when there is just one notification
Ned Burns [Thu, 8 Aug 2019 17:43:57 +0000 (13:43 -0400)]
Ensure isTopBucket() gets set when there is just one notification

My descendants will vilify this CL for generations to come. We'll
clean it up for R, but this is our last, best hope for fixing things
in Q.

Bug: 138775282

Test: manual
Change-Id: I615b2f7fddca30dae67dbaab0e5d54a824a4c441
Merged-In: I615b2f7fddca30dae67dbaab0e5d54a824a4c441
(cherry picked from commit 2d35980e7201e042e253fadd0eb55e1866fc28d9)

5 years agoMerge "Ensure isTopBucket() gets set when there is just one notification" into qt...
Ned Burns [Fri, 9 Aug 2019 17:27:58 +0000 (17:27 +0000)]
Merge "Ensure isTopBucket() gets set when there is just one notification" into qt-r1-dev

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-r1-dev
Bill Yi [Fri, 9 Aug 2019 17:11:47 +0000 (10:11 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-r1-dev
am: c7a7eaa776 -s ours
am skip reason: subject contains skip directive

Change-Id: I0ec2792ce542e9c39bf25843d16ff5b4df038d68

5 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Fri, 9 Aug 2019 16:52:31 +0000 (16:52 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Fri, 9 Aug 2019 16:27:20 +0000 (16:27 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

5 years agoDon't start intelligence services that are not provided by the OEM.
Felipe Leme [Fri, 9 Aug 2019 01:09:26 +0000 (18:09 -0700)]
Don't start intelligence services that are not provided by the OEM.

Bug: 135218095

Test: adb shell service check content_suggestions
Test: adb shell service check app_prediction
Test: atest CtsContentSuggestionsTestCases CtsAppPredictionServiceTestCases # on Automotive

Merged-In: I07f9873a7ad0c6dd1c1a0d6a0e5e05681bfc67fc
Change-Id: I07f9873a7ad0c6dd1c1a0d6a0e5e05681bfc67fc

5 years agoMerge changes from topic "cherrypick_for_b_137937105" into qt-qpr1-dev
TreeHugger Robot [Fri, 9 Aug 2019 14:26:50 +0000 (14:26 +0000)]
Merge changes from topic "cherrypick_for_b_137937105" into qt-qpr1-dev

* changes:
  DO NOT MERGE: Fix ActivityView surface can't visible for ActivityViewTest
  DO NOT MERGE: Support alpha value in SurfaceView.

5 years agoDO NOT MERGE: Fix ActivityView surface can't visible for ActivityViewTest
lumark [Tue, 23 Jul 2019 13:18:17 +0000 (21:18 +0800)]
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

5 years agoDO NOT MERGE: Support alpha value in SurfaceView.
Issei Suzuki [Mon, 17 Jun 2019 13:56:57 +0000 (15:56 +0200)]
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

5 years agoPrevent QSPanel from remeasuring
Fabian Kozynski [Thu, 8 Aug 2019 19:53:34 +0000 (15:53 -0400)]
Prevent QSPanel from remeasuring

Once QSPanel has been measured, do not measure it again in the pass from
QSContainerImpl.

This prevents measuring with a slightly bigger size
(why?) that causes it to recalculate the number of rows (and the number
of pages) of PagedTileLayout. In some cases, this was causing a
different measure while scrolling for an instant, changing the number of
pages and therefore sending the user to page 0 again.

Fixes: 135136427
Test: manual, following configs:
* landscape and portrait
* 1, 2 and 3 pages
* Security footer off and on with 1 and 2 lines

Change-Id: I74e3ce68bd2d3a8b7af1c84d9d0164ce6a672ed1

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 9 Aug 2019 07:37:36 +0000 (00:37 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I9df1f54ad86eab46524acc13721bff37e63a716d

5 years agoLog various types of back gesture using StatsLog
Hyunyoung Song [Tue, 6 Aug 2019 00:19:54 +0000 (17:19 -0700)]
Log various types of back gesture using StatsLog
Bug: 135152789
Test: m statsd_testdrive -j31
Test: out/host/linux-x86/bin/statsd_testdrive 224

<Verified all four types of back gesture>
  data {
    elapsed_timestamp_nanos: 113275964369614
    atom {
      back_gesture_reported_reported {
        type: INCOMPLETE
        y_coordinate: 900
        x_location: LEFT
      }
    }
  }
  data {
    elapsed_timestamp_nanos: 113281680894558
    atom {
      back_gesture_reported_reported {
        type: COMPLETED
        y_coordinate: 912
        x_location: LEFT
      }
    }
  }
  data {
    elapsed_timestamp_nanos: 113285878610809
    atom {
      back_gesture_reported_reported {
        type: INCOMPLETE_EXCLUDED
        y_coordinate: 2496
        x_location: LEFT
      }
    }
  }
  data {
    elapsed_timestamp_nanos: 39490430338
    atom {
      back_gesture_reported_reported {
        type: COMPLETED_REJECTED
        y_coordinate: 856
        x_location: LEFT
      }
    }
  }

Change-Id: I986a64c296cc2a1e33db8f7ea81b05b0ee96cdd5

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 9 Aug 2019 04:48:16 +0000 (21:48 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I68fcda4e1f4d0abaebf711f96f3770411b85fb5d

5 years agoMerge "Make the back longpress timeout a system property" into qt-r1-dev
Adam Cohen [Fri, 9 Aug 2019 04:23:32 +0000 (21:23 -0700)]
Merge "Make the back longpress timeout a system property" into qt-r1-dev
am: 55d3821609

Change-Id: I5f806a62000927a8da9c9edfa97dbcfb71916f1d

5 years agoMerge "Make the back longpress timeout a system property" into qt-r1-dev
Adam Cohen [Fri, 9 Aug 2019 03:37:37 +0000 (03:37 +0000)]
Merge "Make the back longpress timeout a system property" into qt-r1-dev

5 years agoEnsure isTopBucket() gets set when there is just one notification
Ned Burns [Thu, 8 Aug 2019 17:43:57 +0000 (13:43 -0400)]
Ensure isTopBucket() gets set when there is just one notification

My descendants will vilify this CL for generations to come. We'll
clean it up for R, but this is our last, best hope for fixing things
in Q.

Bug: 138775282

Test: manual
Change-Id: I615b2f7fddca30dae67dbaab0e5d54a824a4c441

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 9 Aug 2019 01:58:21 +0000 (18:58 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If8df5134da53280a8a52b21df9d4769d31230d0a

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev am: 801d17...
Bill Yi [Fri, 9 Aug 2019 01:36:03 +0000 (18:36 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev am: 801d177995 -s ours
am: da046065c4 -s ours
am skip reason: subject contains skip directive

Change-Id: Iff6efaacfa002a2e305c931c4e60a708f179fadd

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
Bill Yi [Fri, 9 Aug 2019 01:25:06 +0000 (18:25 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: 801d177995 -s ours
am skip reason: subject contains skip directive

Change-Id: I71e66cacaa799e8bcb1f2d994862290644fd47c5

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 9 Aug 2019 01:08:59 +0000 (01:08 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Add carrier config for allowing merge of RTT calls" into qt-r1-dev
Hall Liu [Fri, 9 Aug 2019 00:13:34 +0000 (17:13 -0700)]
Merge "Add carrier config for allowing merge of RTT calls" into qt-r1-dev
am: f84ff34a31

Change-Id: I14916ac03825bcfac65208aa2dfda26e7d7b8632

5 years agoFade from black when reach
Lucas Dupin [Thu, 8 Aug 2019 23:58:50 +0000 (16:58 -0700)]
Fade from black when reach

Previously, we were fading from the previous state, which could
be transparent. The screen would seem to flash if the wallpaper
were light.

Test: manual
Fixes: 138097741
Change-Id: Ic86024b8970e01ed405e90bf12ef2dc27acf1c29

5 years agoMerge "Add carrier config for allowing merge of RTT calls" into qt-r1-dev
Hall Liu [Thu, 8 Aug 2019 23:47:58 +0000 (23:47 +0000)]
Merge "Add carrier config for allowing merge of RTT calls" into qt-r1-dev

5 years agoHide the home handle in lock task home when home and overview are disabled
Sunny Goyal [Thu, 8 Aug 2019 23:36:14 +0000 (16:36 -0700)]
Hide the home handle in lock task home when home and overview are disabled

Bug: 137626984
Test: Verified the home handle is hidden with CtsVerifier app
Change-Id: I0c21ae5b6f0d094e84b2ba4200a93fd9c4295a55

5 years agoPrevent Infinite Recursion in Telecom Sessions
Brad Ebinger [Thu, 8 Aug 2019 21:23:05 +0000 (14:23 -0700)]
Prevent Infinite Recursion in Telecom Sessions

There looks to be a case where infinite recursion
is occuring when printing information about
Telecom Sessions. Set a reasonable limit of
iterations and throw a warning when this condition
occurs to better track down a root cause.

Bug: 139045282
Test: atest TelecomUnitTests:SessionTest
Change-Id: Iae69c5db070c5e58ae5d37c12d1c4df027138611

5 years agoUse the current user rather than USER_SYSTEM as
Nicholas Sauer [Tue, 6 Aug 2019 05:40:56 +0000 (22:40 -0700)]
Use the current user rather than USER_SYSTEM as
default user for AccountManagerServiceShellCommand

This allows for testing of accountmanager with instant apps in secondary users.

bug: 138142372
Test:  cts-tradefed run cts  -m CtsAccountManagerTestCases -t android.accounts.cts.AccountManagerTest
$ adb shell am get-current-user
10
$ adb shell cmd account set-bind-instant-service-allowed true
$ adb shell cmd account get-bind-instant-service-allowed
true
$ adb shell cmd account get-bind-instant-service-allowed --user 0
false
$ adb shell cmd account get-bind-instant-service-allowed --user 10
true
$ adb shell cmd account set-bind-instant-service-allowed false
$ adb shell cmd account get-bind-instant-service-allowed --user 10
false

Change-Id: Ic4d4ce411f4471ea1b02e93f6a05857efc7287a8

5 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Thu, 8 Aug 2019 22:29:13 +0000 (22:29 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

5 years agoDo not set guts visibility to transient state
Lucas Dupin [Thu, 8 Aug 2019 22:27:53 +0000 (15:27 -0700)]
Do not set guts visibility to transient state

We can't really copy the guts visibility during reinflation
because we might be in the middle of an animation.
Let's rely on a more stable property to determine the visibility.

Test: expand guts, close guts
Test: expand guts, switch dark mode
Test: expand guts, switch dark mode, expand guts again
Test: change font size, expand and collapse guts
Fixes: 135553192
Change-Id: I76f02bbd8f071c94e9c2c777e1d1c1de995ea37b

5 years agoAssume sensors perform prox check
Lucas Dupin [Wed, 7 Aug 2019 22:55:00 +0000 (15:55 -0700)]
Assume sensors perform prox check

Assume that doze sensors will be prox gated.
Not doing so would be a bad idea anyway since the device would wake
up way more often than it should and drain battery.

Another improvement on this CL is that regular DozeSensors prox
checks are trying to use a binned brightness sensor instead.

Fixes: 138765669
Test: atest DozeSensorsTest DozeTriggersTest
Test: single tap from AOD (observe no re-registration of lift)
Test: 'reach' from AOD (observe no re-registration of lift)
Test: receive notification with prox covered or unobstructed
Change-Id: I1961ff9b16480ba1a60c397570494dd7acb4802d

5 years agoMake the back longpress timeout a system property
Adam Cohen [Wed, 7 Aug 2019 22:29:34 +0000 (15:29 -0700)]
Make the back longpress timeout a system property

issue 138944380

Test: manual

Change-Id: I9cebea1f7f44298a8723d04df17349cc3cb03067

5 years agoMerge "Add a blacklist for preinstalled carrier apps." into qt-dev am: aa3689c4d9
Andrew Sapperstein [Thu, 8 Aug 2019 21:40:05 +0000 (14:40 -0700)]
Merge "Add a blacklist for preinstalled carrier apps." into qt-dev am: aa3689c4d9
am: 386126a450

Change-Id: I71c331bb025b0c0786d5bfb6f46e760ef3d8aa54

5 years agoMerge "Add a blacklist for preinstalled carrier apps." into qt-dev
Andrew Sapperstein [Thu, 8 Aug 2019 21:30:33 +0000 (14:30 -0700)]
Merge "Add a blacklist for preinstalled carrier apps." into qt-dev
am: aa3689c4d9

Change-Id: I4a9898f5a205b7ff13ef8631870cbe3f8451923b

5 years agoMerge "Add a blacklist for preinstalled carrier apps." into qt-dev
Andrew Sapperstein [Thu, 8 Aug 2019 20:50:09 +0000 (20:50 +0000)]
Merge "Add a blacklist for preinstalled carrier apps." into qt-dev

5 years agoMerge "Avoid using secondary displays as launch params when not support" into qt...
bsears [Thu, 8 Aug 2019 18:19:22 +0000 (11:19 -0700)]
Merge "Avoid using secondary displays as launch params when not support" into qt-dev am: c5568f9aac
am: 54ce005a97

Change-Id: I8c6af618546f5bb8ec1eadb7a9988a71857bb88a

5 years agoMerge "Avoid using secondary displays as launch params when not support" into qt-dev
bsears [Thu, 8 Aug 2019 18:02:43 +0000 (11:02 -0700)]
Merge "Avoid using secondary displays as launch params when not support" into qt-dev
am: c5568f9aac

Change-Id: I28c1abc4eea843fdbffc95d9bccde910e415a468

5 years agoMerge "Don't crash trying to stop program list updates on already closed tuner" into...
TreeHugger Robot [Thu, 8 Aug 2019 17:54:28 +0000 (17:54 +0000)]
Merge "Don't crash trying to stop program list updates on already closed tuner" into qt-qpr1-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 8 Aug 2019 17:51:22 +0000 (10:51 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie8885933ae01cb24f524be427fbf09e6c278fd53

5 years agoMerge "Avoid using secondary displays as launch params when not support" into qt-dev
bsears [Thu, 8 Aug 2019 17:51:11 +0000 (17:51 +0000)]
Merge "Avoid using secondary displays as launch params when not support" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 8 Aug 2019 17:30:47 +0000 (10:30 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1fc9b1dc26f21604c06de951f0bfc0ec4e5e1155

5 years agoMerge "Cleans up sharedUser regardless of creation logic" into qt-dev am: a1bf282e43
Patrick Baumann [Thu, 8 Aug 2019 17:06:45 +0000 (10:06 -0700)]
Merge "Cleans up sharedUser regardless of creation logic" into qt-dev am: a1bf282e43
am: da658b4a34

Change-Id: I8ec2669b8671ccfbb778ae42f8f5773776fb1e75

5 years agoMerge "Cleans up sharedUser regardless of creation logic" into qt-dev
Patrick Baumann [Thu, 8 Aug 2019 16:56:08 +0000 (09:56 -0700)]
Merge "Cleans up sharedUser regardless of creation logic" into qt-dev
am: a1bf282e43

Change-Id: Ic721f31332bbcbb9d64e501b3b94b6b457c8af51