Commit Graph

367870 Commits

Author SHA1 Message Date
Makoto Onuki
a50bf78fde Disable battery saver tron log by default
Test: Make sure not logs are written on: logcat -b events | grep -w 1302
Test: Re-anble tron log with settings put global battery_saver_constants send_tron_log=true
and make sure logs are written on: logcat -b events | grep -w 1302
Bug: 74742911

Change-Id: I1f4159b7194fbc29be7f76669aa4e53084ed27e7
2018-05-25 14:51:21 -07:00
TreeHugger Robot
78766d2901 Merge "Support rtl for quick scrub onboarding text." into pi-dev 2018-05-25 18:06:07 +00:00
TreeHugger Robot
1ffdec20b4 Merge "Fix monkey crash in smart selection animation" into pi-dev 2018-05-25 15:59:07 +00:00
TreeHugger Robot
568ccfe0b6 Merge "Camera: Clarify multi-camera id selection logic" into pi-dev 2018-05-25 15:27:43 +00:00
Mihai Popa
6e8e27bf9a Fix monkey crash in smart selection animation
In Id65443e93d277c106ea955c867d39e94192cc55d we fixed a monkey crash
happening when the smart selected text had changed while the smart
selection animation was running. However, the change introduced a new
crash, happening when the smart selection result was null. This CL fixes
it, and lets startSelectionActionMode run even when the result is null,
as there seems to be some logic there which should happen in this case.

Bug: 80244201
Test: none
Change-Id: I7f0304446dec85578bdcd5011d2e9ea2737d3c36
(cherry picked from commit a9d27ea869)
Merged-in: I7f0304446dec85578bdcd5011d2e9ea2737d3c36
2018-05-25 14:01:23 +00:00
Nicolas Geoffray
a764186455 Merge "Add one telephony API to light grey." into pi-dev 2018-05-25 13:46:31 +00:00
Nicolas Geoffray
1b32d34457 Merge "More light grey apis." into pi-dev 2018-05-25 13:30:19 +00:00
Nicolas Geoffray
83ee75a2de Merge "Add SharedPreferencesImpl;->startLoadFromDisk()V to light grey." into pi-dev 2018-05-25 13:29:55 +00:00
TreeHugger Robot
32256ceb22 Merge "Add more light grey APIs." into pi-dev 2018-05-25 10:49:18 +00:00
Nicolas Geoffray
acde0e9450 More light grey apis.
bug: 80270434
Test: m
Change-Id: I4877a782f9f8c0599de189d28df876d60d2c7b3d
2018-05-25 10:48:24 +01:00
Nicolas Geoffray
7fdc783855 Add more light grey APIs.
bug: 80256659
Test: m
Change-Id: Ic2a0ecffcd039cb5474625e39264714b9eed768a
2018-05-25 10:23:30 +01:00
TreeHugger Robot
a278df4aae Merge "New Autofill field: FIELD_AUTOFILL_SESSION_ID" into pi-dev 2018-05-25 08:57:23 +00:00
Nicolas Geoffray
3e89950ac0 Add SharedPreferencesImpl;->startLoadFromDisk()V to light grey.
bug: 80091112
Test: m
Change-Id: Ia7c0cf66408fb241b029778d248dd3b7e324727a
2018-05-25 09:01:06 +01:00
Nicolas Geoffray
7e1c36e64b Merge "Add some telephony API to light grey." into pi-dev 2018-05-25 07:50:22 +00:00
Felipe Leme
ce3ae87da9 New Autofill field: FIELD_AUTOFILL_SESSION_ID
This field contains the autofill session id (Thank You, Captain Obvious!), which
is useful to correlate autofill metrics that are not logged on
AUTOFILL_REQUEST.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched
      'adb shell logcat -b events | grep sysui'. Example:
     [757,913,758,4,806,android.autofillservice.cts,871,android.autofillservice.cts.LoginActivity,914,2,915,2,1456,-2045861404

Fixes: 80093094

Merged-In: If4b1c9ab616b2ba580745096894997eb7edb3e34
Change-Id: If4b1c9ab616b2ba580745096894997eb7edb3e34
2018-05-25 06:22:25 +00:00
Tracy Zhou
245da75f47 Support rtl for quick scrub onboarding text.
Change-Id: I1f2073e1c24a24aa5ddfd061a6e8b0eaef40335c
Fixes: 80257508
Test: Manual test
2018-05-24 22:23:23 -07:00
TreeHugger Robot
9aafb212c5 Merge "Add missing copyright messages Test: Tested on Mojave Bug: 80266597 Change-Id: I1a2e712adabe8872f7c440e8e2c15787aea7aa98" into pi-dev 2018-05-25 04:24:29 +00:00
Jason Monk
96910a6dc2 Merge "Follow supportlib changes in SliceManager" into pi-dev 2018-05-25 01:21:35 +00:00
TreeHugger Robot
41a60f4033 Merge "Added the class name of activity being autofilled on (most) autofill metrics." into pi-dev 2018-05-25 00:55:42 +00:00
Aarthi Balachander
bba3bd30c2 Add missing copyright messages
Test: Tested on Mojave
Bug: 80266597
Change-Id: I1a2e712adabe8872f7c440e8e2c15787aea7aa98
2018-05-24 17:46:45 -07:00
TreeHugger Robot
94594d1290 Merge "Merged many autofill session metrics into AUTOFILL_REQUEST:" into pi-dev 2018-05-25 00:18:41 +00:00
TreeHugger Robot
a9050275ba Merge "Tweak new rotate icon and motion" into pi-dev 2018-05-25 00:13:35 +00:00
Makoto Onuki
621fd20f55 Merge "Tweak exemption for sync requests made by FG apps" into pi-dev 2018-05-24 23:22:09 +00:00
TreeHugger Robot
0726f5c82a Merge "Fix boundary condition of showing quickscrub tip after dismissal." into pi-dev 2018-05-24 23:18:19 +00:00
TreeHugger Robot
2640b2142e Merge "Put a little space between wifi and data type" into pi-dev 2018-05-24 22:12:16 +00:00
Tracy Zhou
36d8170e6b Fix boundary condition of showing quickscrub tip after dismissal.
It's possible that user opens overview 11 times after first dismissal of
Quickscrub tip before going to an app and our current condition check would fail. Change
the condition of showing swipe-up tip for consistency.

Change-Id: If58f9b6f2edfbdccf68a2c44e0b3b4b489862734
Fixes: 80256933
Test: Manual test
2018-05-24 21:47:20 +00:00
Mike Digman
c038c32c7c Tweak new rotate icon and motion
Slightly reduce the icon size to decrease its size relative to the new
back button. Use scaleX attribute to ensure arrows always point in
direction of motion. Fix intro animation bug where rippling would only
happen for first three loops.

Bug: 79930974
Test: manual
Change-Id: I6b8d4acd4c1537649d0120663169e7a1fd4db7fb
2018-05-24 14:05:44 -07:00
Felipe Leme
212b1614f4 Added the class name of activity being autofilled on (most) autofill metrics.
Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched
      'adb shell logcat -b events | grep sysui'

Fixes: 80151641

Change-Id: I5b83e6ceb549a641d10c39bbfd4f24d0a43d1a23
2018-05-24 13:59:06 -07:00
TreeHugger Robot
478923bded Merge "Update location icons (qs + status)" into pi-dev 2018-05-24 20:50:41 +00:00
TreeHugger Robot
bb5154982e Merge "Add tuning to SystemUI to draw into a DisplayCutout's bounds" into pi-dev 2018-05-24 20:50:35 +00:00
Michael Wachenschwanz
14c61286c4 Merge "Revert "Revert "Write UsageEvents Parcel data as a Blob""" into pi-dev 2018-05-24 20:45:34 +00:00
TreeHugger Robot
473b8b09b0 Merge "Added display null check to ActivityStackSupervisor.getNextFocusableStackLocked" into pi-dev 2018-05-24 20:41:14 +00:00
TreeHugger Robot
d49118bd48 Merge "Update some app permission icons" into pi-dev 2018-05-24 20:17:14 +00:00
TreeHugger Robot
65477d138d Merge "Flip flag to enable vibration on wireless charging" into pi-dev 2018-05-24 20:05:54 +00:00
TreeHugger Robot
10908b1972 Merge "On configuration change setup screen decorations" into pi-dev 2018-05-24 20:05:49 +00:00
TreeHugger Robot
cf2c35dca6 Merge "Revert "WallpaperColors hint computation"" into pi-dev 2018-05-24 20:00:27 +00:00
TreeHugger Robot
56cc567dfd Merge "Hide system apps until installed (1/2)" into pi-dev 2018-05-24 18:01:43 +00:00
TreeHugger Robot
d88abbfd78 Merge "Destroy networks as soon as they are disconnected." into pi-dev 2018-05-24 17:57:46 +00:00
TreeHugger Robot
05a6e77106 Merge "DngCreator: Use new LENS_DISTORTION result field if available." into pi-dev 2018-05-24 17:47:10 +00:00
Michael Wachenschwanz
76d03fcd7e Revert "Revert "Write UsageEvents Parcel data as a Blob""
This reverts commit 8520e56998.

Reason for revert: Bug Fixed
Bug:79860717
Bug:80215357

Change-Id: Ibaabe3c6bab72f417b24121a91ec5f953ad18ff7
2018-05-24 17:36:47 +00:00
Felipe Leme
f61ba5cabf Merged many autofill session metrics into AUTOFILL_REQUEST:
- AUTOFILL_UI_LATENCY
- AUTOFILL_AUTHENTICATED;
- AUTOFILL_DATASET_AUTHENTICATED
- AUTOFILL_INVALID_AUTHENTICATION
- AUTOFILL_INVALID_DATASET_AUTHENTICATION

At least one AUTOFILL_REQUEST is created on each session; additional ones are
created for each additional request made to the service (which is tracked by
FIELD_AUTOFILL_REQUEST_INDEX).

Also:
- Added TYPE_CLOSE to indicate a timeout waiting for the service response.
- Added FIELD_AUTOFILL_REQUEST_ORDINAL to indicate the order of the request in
  the session.
- Added FIELD_AUTOFILL_NUMBER_REQUESTS on AUTOFILL_SESSION_FINISHED.
- Created an AUTOFILL_FIELD_FLAGS to avoid conflict with FIELD_FLAGS.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched the result of
      'adb shell logcat -b events | grep sysui', as described below.

1) LoginActivityTest#testAutoFillNoDatasets:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,-1,1454,1]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,1]

Where 907=AUTOFILL_REQUEST, 919=AUTOFILL_SESSION_FINISHED,
1454=FIELD_AUTOFILL_REQUEST_ORDINAL, 1455=FIELD_AUTOFILL_NUMBER_REQUESTS,
758:10 = TYPE_SUCCESS, 909 = FIELD_AUTOFILL_NUM_DATASETS (-1 == null response)

2) LoginActivityTest#testAutoFillTwoDatasetsSameNumberOfFields:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,2,1145,60,1454,1]

Where 1145=FIELD_AUTOFILL_DURATION (60ms UI latency)

3) LoginActivityTest#testCancellationSignalCalledAfterTimeout:

[757,907,758,2,806,android.autofillservice.cts,908,android.autofillservice.cts,1454,1]

Where 758:2 = TYPE_CLOSE (timeout)

4) LoginActivityTest#testAutofillManuallyOneDataset:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,67,1452,1,1454,1]

Where 1452=FIELD_AUTOFILL_FLAGS and 1=FLAG_MANUAL_REQUEST

5) FillEventHistoryTest#testNoEvents_whenServiceReturnsFailure:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,48,1454,1]
[757,907,758,11,806,android.autofillservice.cts,908,android.autofillservice.cts,1454,2]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,2]

Where 758:11 = TYPE_FAILURE

6) AuthenticationTest#testFillResponseAuthJustOneField

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1145,91,1453,912,1454,1]

Where 1453:912 is FIELD_AUTOFILL_AUTHENTICATION_STATUS = AUTOFILL_AUTHENTICATED

7) AuthenticationTest#testDatasetAuthTwoDatasets

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,2,1145,64,1453,1126,1454,1]

Where 1453:1126 is FIELD_AUTOFILL_AUTHENTICATION_STATUS =
                   AUTOFILL_DATASET_AUTHENTICATED

8) AuthenticationTest#testFillResponseAuthServiceHasNoData
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1145,49,1453,1128,1454,1]

Where 1453:1128 is FIELD_AUTOFILL_AUTHENTICATION_STATUS =
                   AUTOFILL_INVALID_AUTHENTICATION

9) VirtualContainerActivityCompatModeTest#testAutofillSync

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,53,1414,1,1454,1]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1414,1,1455,1]

Where 1414 is FIELD_AUTOFILL_COMPAT_MODE

10) FieldsClassificationTest#testHit_manyUserData_manyDetectableFields

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1271,2,1454,1]
Where 1271 is FIELD_AUTOFILL_NUM_FIELD_CLASSIFICATION_IDS

11)PartitionedActivityTest#testAutofill4PartitionsMixManualAndAuto

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,109,1454,1]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1452,1,1454,2]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1454,3]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1452,1,1454,4]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,4]

Bug: 80093094
Fixes: 80095814

Merged-In: I87424834fc925a3bcba410eec5aa32fcd6253367
Change-Id: I87424834fc925a3bcba410eec5aa32fcd6253367
2018-05-24 09:43:27 -07:00
Lucas Dupin
b5e5053ebc Revert "WallpaperColors hint computation"
This reverts commit c50f47d970.

Fixes: 79465234
Reason for revert: Google still does it using private APIs and apps were relying on this behavior, not good for the ecosystem.

Change-Id: I62e2b4cd1e6e562fcdd89c97e599bcdade83381a
2018-05-24 16:33:14 +00:00
TreeHugger Robot
87631c2d29 Merge "Use TCM context if application context is unavailble." into pi-dev 2018-05-24 16:30:16 +00:00
Michael Wachenschwanz
d55c618340 Merge "Revert "Write UsageEvents Parcel data as a Blob"" into pi-dev 2018-05-24 15:54:05 +00:00
Michael Wachenschwanz
8520e56998 Revert "Write UsageEvents Parcel data as a Blob"
This reverts commit f5bae21c5e.

Reason for revert:
Bug: 79860717
Fixes: 80215357

Change-Id: I0768e5ce0a95afe7ff091c0035335437bb33c46c
2018-05-24 15:45:17 +00:00
Beverly
5c2b48aa92 On configuration change setup screen decorations
Test: developer options > set emulated cutout
Change-Id: I6418ad8226955264d6197491d772954491aba9ac
Fixes: 80230317
2018-05-24 10:58:00 -04:00
Nicolas Geoffray
364de82b2d Add one telephony API to light grey.
bug: 80131205
Test: m
Change-Id: I70c0474e3ddedddbc25c5046e1695667a1283131
2018-05-24 15:32:39 +01:00
Nicolas Geoffray
85012c9632 Add some telephony API to light grey.
bug: 80149150
Test: m
Change-Id: I625f0721d4cff80c2f920a03f0058f99b729a950
2018-05-24 15:27:32 +01:00
Michael Wright
b112f26cce Use TCM context if application context is unavailble.
In TextClassificationManager, we use the application context to reduce
the likelihood of leaking the underlying Activity. Unfortunately, some
places (e.g. auto, system_server) don't actually provide us an
application context, so we need to fall back to whatever context was
passed in to TCM in the first place.

Bug: 80188317
Test: none
Change-Id: Ib4b2e6ed543d3ed56cefd8f56717855158cdc0fe
2018-05-24 14:15:04 +01:00
Nicolas Geoffray
9ed0da42b3 Merge "Add camera APIs to light grey." into pi-dev 2018-05-24 12:31:13 +00:00