Commit Graph

424299 Commits

Author SHA1 Message Date
Kamaljeet Maini
fca39a9cbe Allow customization of timeout value for expanded volume dialog
Bug: b/141850913
Test: Local build
Change-Id: Ifd25bbe7b542169b36a80cc953cf028e89826d66
2019-11-20 11:22:31 -08:00
Sooraj Sasindran
772358beb6 Merge "Add back off timer configs as carrier config" into qt-qpr1-dev 2019-11-20 19:15:13 +00:00
Automerger Merge Worker
ff797c3ba3 [automerger skipped] resolve merge conflicts of 88c651eab1 to oc-dr1-dev am: 2bb3845dff -s ours
am skip reason: Change-Id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA-1 3692a6d231 is in history

Change-Id: I43e5186089d0f40fccdcf9ac85c78f8bda488aac
2019-11-20 19:05:29 +00:00
Satakshi Rana
a681b9d205 Merge "Passing feedback for screenshots in SysUI" into qt-qpr1-dev 2019-11-20 18:40:06 +00:00
Satakshi
da07b0eec5 Passing feedback for screenshots in SysUI
(cherry picked from commit aaf695366e)

Test: Took a screenshot and verified that AiAi gets notified for
share/edit/delete/smart action clicked and exceptions thrown.
Ran tests-
'atest ScreenshotNotificationSmartActionsTest'
'atest ScreenshotNotificationSmartActionsGoogleTest'
Bug: 141634285
Change-Id: Ief6400549b30cf1c0c8a374aa443cf6347f84875
Merged-In: Ief6400549b30cf1c0c8a374aa443cf6347f84875
2019-11-20 09:51:00 -08:00
Heemin Seog
19f5398e51 DO NOT MERGE Rearrange listener logic so it can be overriden
Bug: 144567659
Test: build, manual
Change-Id: I81a5e0c169b0d916a3f86bfc4d63fffd3eb225af
2019-11-20 17:29:33 +00:00
Jin Seok Park
e6e97865f3 [DO NOT MERGE] Return correct offsets for getAttributeRange()
Cherry-picked from ag/9745767

Currently, the offset value returned from getAttributeRange() does
not take into account the offset to the EXIF data within the image
file. This CL fixes the code to return the correct offsets.

The existing test code could not detect this issue because it does
not explicitly seek to the given offset and retrieve/compare the
data. This CL also adds test code to do this. Make tag information
is also added because all test files have this information, while only
a select few have thumbnail/GPS tag information.

This CL also fixes a bug where the thumbnail offset was not being
updated if the data was passed with StripOffsets tag.

Bug: 143118731, Bug: 143663411
Test: atest ExifInterfaceTest
Change-Id: I94c3438020d1091a8829a96e1b0a5ef4193d9dc9
2019-11-20 13:31:08 +09:00
Jin Seok Park
013afc4daf [DO NOT MERGE] Return correct offsets for getAttributeRange()
Cherry-picked from ag/9745767

Currently, the offset value returned from getAttributeRange() does
not take into account the offset to the EXIF data within the image
file. This CL fixes the code to return the correct offsets.

The existing test code could not detect this issue because it does
not explicitly seek to the given offset and retrieve/compare the
data. This CL also adds test code to do this. Make tag information
is also added because all test files have this information, while only
a select few have thumbnail/GPS tag information.

This CL also fixes a bug where the thumbnail offset was not being
updated if the data was passed with StripOffsets tag.

Bug: 143118731, Bug: 143663411
Test: atest ExifInterfaceTest
Change-Id: Ia147cdcacf4699c5e7efc43f52e58b945032a51f
2019-11-20 13:30:22 +09:00
TreeHugger Robot
599634a26b Merge "Restore app pinning." into qt-qpr1-dev 2019-11-20 00:06:52 +00:00
Sooraj Sasindran
74891f2730 Add back off timer configs as carrier config
Add time to determine as ping pong as a carrier config
Add max back off hysteresis time as a carrier config

Test: build
Bug: 143578171
Change-Id: I599aa88c4a8f29ca62aaa2948cc5c7f292b6a827
2019-11-19 12:00:47 -08:00
Satakshi Rana
ecc65c6e34 Merge "Assert only one bitmap is provided to ContentSuggestionsService." into qt-qpr1-dev 2019-11-19 19:33:23 +00:00
Alison Cichowlas
a40cd3feb8 Restore app pinning.
Bug: 143229724
Test: atest AbstractResolverComparatorTest; atest ChooserActivityTest
Change-Id: I71d4334c8d3beed94495b41d5264a95cbbd132ff
Merged-In: I71d4334c8d3beed94495b41d5264a95cbbd132ff
2019-11-19 19:16:02 +00:00
TreeHugger Robot
a7b2bd71cd Merge "Force a garbage collection after lockscreen verification" into qt-qpr1-dev 2019-11-19 18:31:55 +00:00
Satakshi
b846e83ff5 Assert only one bitmap is provided to ContentSuggestionsService.
Test: Took a screenshot and verified that AiAi gets invoked and the screenshot notification
shows smart actions.
Long press in Overview shows smart actions.
Bug: 141634285

Change-Id: I1e82f8bb837b8b032e6d25032642e47f492eb495
2019-11-19 10:27:11 -08:00
Felipe Leme
7f9474cba3 Merge "Check for dump permission on BinderCallsStatsService." into qt-qpr1-dev 2019-11-19 18:04:29 +00:00
Satakshi Rana
73b4e1923a Merge "Screenshot Notification Smart Action: AiAi and - Sys UI integration" into qt-qpr1-dev 2019-11-19 17:14:49 +00:00
Jerome Gaillard
15087a4097 Merge "Use Metalava to get SDK metadata for devtools" into qt-dev am: 28332d5218
am: 094ac26039

Change-Id: I7204ae6d5b4998cd6e56e20499b541c2286b77c6
2019-11-19 04:29:12 -08:00
Jerome Gaillard
094ac26039 Merge "Use Metalava to get SDK metadata for devtools" into qt-dev
am: 28332d5218

Change-Id: Ic223574542472b2d6f61d48d52d02aebb432b239
2019-11-19 04:25:54 -08:00
Jerome Gaillard
28332d5218 Merge "Use Metalava to get SDK metadata for devtools" into qt-dev 2019-11-19 12:12:59 +00:00
Felipe Leme
8d4c825ce3 Fixes usage of WallpaperManager to make it optional.
As the main javadoc states:
"An app can check whether wallpapers are supported for the current user,
by calling {@link #isWallpaperSupported()}, and whether setting of
wallpapers is allowed, by calling {@link #isSetWallpaperAllowed()}."

Test: manual verification on automotive
Test: atest CtsAppTestCases:android.app.cts.WallpaperManagerTest # on automotive

Bug: 138939803
Bug: 132111956

Change-Id: I88946f92ff54e556d289c41c28e22da3a4b8c8b8
Merged-In: I88946f92ff54e556d289c41c28e22da3a4b8c8b8
(cherry picked from commit 34a861add1)
2019-11-19 01:24:52 +00:00
Satakshi
ce35ce9f08 Screenshot Notification Smart Action: AiAi and - Sys UI integration
Create a constant in ContentSuggestionsManager, which will
be used to pass a hardware bitmap to ContentSuggestionsService.
In the presence of this key in the request extras, we skip taking a
snapshot in ContentSuggestionsPerUserService.
Bitmap is extracted from reading this value from extras in
ContentSuggestionsService.

Create ScreenshotNotificationSmartActionsProvider, which is overridden
in GoogleSystemUI.
Calling AiAi is guarded by a device config flag created in cl/277143225.

(cherry picked from commit d2010f2628 and c45d86fc15)

Test: Manually tested the code in this CL and corresponding change in SystemUIGoogle.
Took a screenshot and verified that AiAi gets invoked and the screenshot notification
shows smart actions.
Ran new tests added in this CL
'atest ScreenshotNotificationSmartActionsTest'
'atest ContentSuggestionsPerUserServiceTest'
Bug: 141634285
Change-Id: I439a4be9aac53fb02b566ae4d438afe3edf2b37a
Merged-In: I439a4be9aac53fb02b566ae4d438afe3edf2b37a
2019-11-18 16:06:08 -08:00
Kevin Hufnagle
0f18e3444e Merge "docs: Updated desc. of lockNow() method and its overload" into qt-dev am: 1ec7235ebe
am: c54b10fa62

Change-Id: I60ce7afd84eae7b1c297e6cc0f246680d84f5cc0
2019-11-18 14:10:11 -08:00
Kevin Hufnagle
c54b10fa62 Merge "docs: Updated desc. of lockNow() method and its overload" into qt-dev
am: 1ec7235ebe

Change-Id: Iec60117a620bf655859555e8d5e3bc028e73b8a0
2019-11-18 14:06:10 -08:00
TreeHugger Robot
c2ce0ac905 Merge "Remove cancel listeners from pending intent alarms" into qt-qpr1-dev 2019-11-18 21:53:31 +00:00
Kevin Hufnagle
1ec7235ebe Merge "docs: Updated desc. of lockNow() method and its overload" into qt-dev 2019-11-18 21:47:10 +00:00
Hai Shalom
78ee3320ff Merge "[WPA3] Fix WPA3-Personal transition mode" into qt-qpr1-dev 2019-11-18 21:29:39 +00:00
Jian-Yang Liu
17eb45ab54 Merge "Changed NotificationViewController to be enabled when car service is ready." into qt-qpr1-dev 2019-11-18 20:26:32 +00:00
TreeHugger Robot
0537bd334d Merge "DO NOT MERGE Refactor StatusBar and CarStatusBar to optimize automotive boot time." into qt-qpr1-dev 2019-11-18 17:33:05 +00:00
Jerome Gaillard
326fce2ee3 Use Metalava to get SDK metadata for devtools
Metalava, not Doclava, should be used to extract the metadata used in
devtools. The files created then need to be copied into the SDK.

Bug: 142480924
Test: m sdk
Change-Id: I7eb15341fde9520d51a696a6416a63e6c19c71f9
Merged-In: I7eb15341fde9520d51a696a6416a63e6c19c71f9
2019-11-18 10:40:18 +00:00
TreeHugger Robot
64f417f0ae Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-11-17 16:00:24 +00:00
Bill Yi
d56745b074 Import translations. DO NOT MERGE
Change-Id: I968dea21531f5be59f2b413af19165e0cae6a209
Auto-generated-cl: translation import
2019-11-16 20:14:49 -08:00
Bill Yi
08e60f1702 Import translations. DO NOT MERGE
Change-Id: I3cd04293441364321633db92ef92748d5e0fd42a
Auto-generated-cl: translation import
2019-11-16 03:00:01 -08:00
Hai Shalom
8000abd65b [WPA3] Fix WPA3-Personal transition mode
Fix WPA3-Personal in transition mode issues. Current
solution will create an upgraded WPA3 connection if
there is a WPA2 saved network and AP is in transition
mode.

Bug: 143843364
Test: Manual tests
Test: atest com.android.server.wifi
Change-Id: Idadbd1d155ddd617e61063e64e186abec478f5ff
Merged-In: I53b278e846828198fb1953b075d86e16fac6d795
2019-11-16 01:43:30 +00:00
JianYang Liu
f7f1f79728 Changed NotificationViewController to be enabled when car service is
ready.

Also moved the listener to be added at the end of connectNotificationsUI
when all other variables have been initialized.

Bug: 144583077
Test: Manual
Change-Id: I281fbdd833c23d8dc9d2430d8a6eaad7e4577c53
Merged-In: I281fbdd833c23d8dc9d2430d8a6eaad7e4577c53
2019-11-16 00:17:46 +00:00
Adam He
514271fd61 DO NOT MERGE - Temporary fix to disable augmented autofill requests coming from
password fields.

Bug: 141703197
Test: atest android.autofillservice.cts.augmented
Change-Id: I9b12c2c49645cacc59c2005b039fa7ec975c3b9c
2019-11-15 23:37:00 +00:00
Kevin Hufnagle
496c0bae14 docs: Updated desc. of lockNow() method and its overload
Explains in more complete detail who should call lockNow(), when to call the method,
and what happens when there's no lock set on a device.

Test: make ds-docs -j32

Bug: 28831838
Change-Id: I5acc0cbfa63dffe8676e8b60476b584fd43b5bde
2019-11-15 19:44:11 +00:00
James O'Leary
712eb51dc9 [DO NOT MERGE] Convert TakeScreenshot finishers Runnables to Consumer<Uri>
Test: n/a
Bug: b/131082115
Change-Id: Ia84d034d08ff4d004fc9852dc5156d46059e8b00
2019-11-15 16:41:21 +00:00
Felipe Leme
a94024aa40 Check for dump permission on BinderCallsStatsService.
Test: adb shell dumpsys binder_calls_stats
Bug: 143966438

Change-Id: Icb2cc6437a8a0640dcdfafd2ba03f932b5fadb15
2019-11-14 16:35:06 -08:00
TreeHugger Robot
3ea014ca6d Merge "DO NOT MERGE - Added user flags to 'dumpsys user'" into qt-qpr1-dev 2019-11-14 22:27:22 +00:00
TreeHugger Robot
5403049225 Merge "DO NOT MERGE - Added reset geo-fencing checking after airplane mode support" into qt-qpr1-dev 2019-11-14 20:59:47 +00:00
Jack Yu
3a45500c89 DO NOT MERGE - Added reset geo-fencing checking after airplane mode support
The out-of-polygon cell broadcast messages will not be
considered for rebroadcasting after airplane mode turned on
or reboot.

Bug: 143614007
Test: Unit tests
Merged-In: Ifa3de1576f23f68b040c8473bc79b4bf5a5f7261
Change-Id: Ifa3de1576f23f68b040c8473bc79b4bf5a5f7261
2019-11-14 11:04:57 -08:00
Evan Laird
2bb3845dff resolve merge conflicts of 88c651eab1 to oc-dr1-dev
Bug: 119041698
Test: atest SystemUITests
Change-Id: I9d1547f98cc19111ce2dc8ab2f4e2bf2d3cb0baa
Merged-In: I0680034ed9315aa2c05282524d48faaed066ebd0
2019-11-14 18:48:17 +00:00
Gavin Corkery
15040587a5 Merge "Don't send session committed broadcast for dry runs" into qt-qpr1-dev 2019-11-14 16:08:27 +00:00
Rubin Xu
63da1c7cd5 Force a garbage collection after lockscreen verification
This is to attempt erasing any lockscreen password remnants from memory,
which is a NIAP certification requirement.

Bug: 142861621
Test: reboot device, enter lockscreen password, then use pmdump to dump
process memory for SystemUi, verify password does not exist in the dump.

Merged-In: Ifbec81a64e4c592b566f5653bd93fd7326693ec7
Change-Id: Ifbec81a64e4c592b566f5653bd93fd7326693ec7
(cherry picked from commit 20aa6cd497)
2019-11-14 13:32:19 +00:00
Emilian Peev
abe984f550 Use correct calling identity during camera permission check
UVC clients need to acquire the CAMERA permission
before trying to call open. The permission check is
currently done via calls to "checkCallingPermission".
In case the calling identity gets cleared, the check
will always fail. To resolve this, use "checkPermission"
with appropriate identity arguments.

Bug: 144433314
Test: Manual using application,
CtsVerifier USB Device test

Change-Id: I5318fbb4426bec1448ecc398c86ea96500bb3189
Merged-In: I5318fbb4426bec1448ecc398c86ea96500bb3189
2019-11-13 16:19:29 -08:00
Suprabh Shukla
c8e1162852 Remove cancel listeners from pending intent alarms
The cancel listeners are created per PendingIntent instance and were
spamming the callback list stored inside PendingIntentRecord. In cases
where there is even a single live PendingIntent backed by this
PendingIntentRecord, all PendingIntent instances backed by this
PendingIntentRecord for which a callback was ever registered will leak.

Test: atest FrameworksMockingServicesTests:\
com.android.server.am.PendingIntentControllerTest
atest FrameworksMockingServicesTests:\
com.android.server.AlarmManagerServiceTest

Bug: 143091024
Change-Id: I65df12da0c437064e6e3719911926738c677c4eb
Merged-In: I65df12da0c437064e6e3719911926738c677c4eb
(cherry picked from commit 0d51a8bcc0)
2019-11-14 00:02:06 +00:00
kwaky
ca1c886c5f DO NOT MERGE Refactor StatusBar and CarStatusBar to optimize automotive boot time.
Test: Robolectric -- Robolectric results are identical before and after this change.

Test: Manual -- Hawk is booting successfully and interacting with different
 parts of CarStatusBar is not failing.

Test: Manual -- Pixel 2 is booting successfully and interacting with different
 parts of StatusBar is not failing.

Bug: 142342652
Bug: 140999054
Change-Id: Idf5e152aa661f06b7a041d39d759595636807dce
2019-11-13 14:00:15 -08:00
TreeHugger Robot
903cd4ceed Merge "Add prefix to logs based on call source" into qt-qpr1-dev 2019-11-13 21:33:01 +00:00
TreeHugger Robot
abd0f5ba3d Merge "Actually use mContext directly" into qt-qpr1-dev 2019-11-13 21:22:02 +00:00
TreeHugger Robot
8c7181ab91 Merge "DO NOT MERGE Create a single provider of car service" into qt-qpr1-dev 2019-11-13 20:32:34 +00:00