Commit Graph

113226 Commits

Author SHA1 Message Date
Automerger Merge Worker
f977b7f596 Merge "Allow UsbDeviceManager to start adbd again." into rvc-dev am: e3fce1c7fe
Change-Id: Iec84ac9a7337c6dee42a4a1c320a5fa3bf34688c
2020-02-26 21:30:59 +00:00
Joshua Duong
e3fce1c7fe Merge "Allow UsbDeviceManager to start adbd again." into rvc-dev 2020-02-26 21:19:04 +00:00
Automerger Merge Worker
83e72855e6 Merge "Start InstanceIDs at 1." into rvc-dev am: e1e7c02af4
Change-Id: I82afa66999d1da7d26d2a58b3240d91a61b7bc55
2020-02-26 21:01:57 +00:00
TreeHugger Robot
e1e7c02af4 Merge "Start InstanceIDs at 1." into rvc-dev 2020-02-26 20:52:21 +00:00
Automerger Merge Worker
dbb995eef2 Merge "Add docs to Controls API" into rvc-dev am: 0b66590fbf
Change-Id: I9b28b5c48ae89ea1844243ff56b53eed12781628
2020-02-26 20:25:16 +00:00
Fabian Kozynski
0b66590fbf Merge "Add docs to Controls API" into rvc-dev 2020-02-26 20:21:53 +00:00
Automerger Merge Worker
4f307ab121 Merge "Removing possible user defined strings from bugreport view-dump" into rvc-dev am: 31c94a2f0e
Change-Id: I6ad961a89efddcbb9fafc259246d0ebe386cc7e2
2020-02-26 20:20:19 +00:00
TreeHugger Robot
31c94a2f0e Merge "Removing possible user defined strings from bugreport view-dump" into rvc-dev 2020-02-26 20:12:10 +00:00
Automerger Merge Worker
6a6c04a54e Merge "Use display context all the way" into rvc-dev am: 214fe98184
Change-Id: Id041747e8fa8f87c97c7d91019774f5256aa6fab
2020-02-26 19:07:06 +00:00
TreeHugger Robot
214fe98184 Merge "Use display context all the way" into rvc-dev 2020-02-26 19:02:34 +00:00
Automerger Merge Worker
c4721f1fe4 Merge "Add missing RequiresPermission annotations in BluetoothHidHost and BluetoothMap APIs, disallow null device input for setConnectionPolicy, getConnectionPolicy, and getConnectionState in BluetoothHidHost, and BluetoothMap implements AutoCloseable, its close() method is public, and utilizes a CloseGuard." am: a9e6a280f8 am: 7e3f076b2c
Change-Id: I2932905cba9dfff800e705289bca07c48898791c
2020-02-26 18:14:24 +00:00
Automerger Merge Worker
7e3f076b2c Merge "Add missing RequiresPermission annotations in BluetoothHidHost and BluetoothMap APIs, disallow null device input for setConnectionPolicy, getConnectionPolicy, and getConnectionState in BluetoothHidHost, and BluetoothMap implements AutoCloseable, its close() method is public, and utilizes a CloseGuard." am: a9e6a280f8
Change-Id: Iee457f25ea65b2507986f7e111341fc9924f56e3
2020-02-26 18:01:50 +00:00
Automerger Merge Worker
03a66475ee Merge "WebView: Update setAllowFileAccess doc to reflect new default value" into rvc-dev am: 44e0da66e2
Change-Id: If55a4a1c999920f7be27870dccf8488b4511605b
2020-02-26 17:53:13 +00:00
TreeHugger Robot
44e0da66e2 Merge "WebView: Update setAllowFileAccess doc to reflect new default value" into rvc-dev 2020-02-26 17:43:13 +00:00
Automerger Merge Worker
2a0437f8d2 Merge "Prevent NPE whlie leaving windowless dream service." into rvc-dev am: 3944050acb
Change-Id: I17c96b934b7a4fb6484f0383e843fd5740af33d0
2020-02-26 17:26:32 +00:00
Joshua Duong
ac29885a0e Allow UsbDeviceManager to start adbd again.
There's some weird state where if persist.sys.usb.config=none,adb, then
adbd won't get started. Give back adbd start permissions to
UsbDeviceManager to see if that fixes the issue.

Bug: 150130503
Bug: 150116813

Test: adb shell su 0 setprop persist.sys.usb.config none,adb; adb reboot
adb should be online after.

Change-Id: I36c6ef4b20d58570a2d51ed70088ae5c54d6687d
Exempt-From-Owner-Approval: Fix adbd offline failure
(cherry picked from commit 7a3800993d)
2020-02-26 16:26:39 +00:00
Fabian Kozynski
9f2dabf255 Add docs to Controls API
Test: build
Bug: 150154816
Change-Id: Ie1f77620f8302032845ae1f66459b2990513bb86
2020-02-26 09:56:44 -05:00
Hazem Ashmawy
ee824f006b WebView: Update setAllowFileAccess doc to reflect new default value
Update setAllowFileAccess java docs to reflect that it's now disabled by
default after merging crrev.com/c/2056824. Also add a note to use
androidx WebViewAssetLoader instead.

Bug: 148840827
Test: m offline-sdk-docs -j20
Change-Id: I15866ab63818771fd91f40828846d6b4c39d278e
(cherry picked from commit 47a4c2da51)
2020-02-26 12:26:36 +00:00
Jerry Chang
30efde6a30 Prevent NPE whlie leaving windowless dream service.
There might having windowless dream service like doze dream which won't
hava attached activity, so call finish() directly in onWakeUp() since
finish() itself deals with finishAndRemoveTask() as well.

Fix: b/150110220
Test: manual test, won't throw NPE while leaving doze service.
Change-Id: I982c2f6fb1859e869732ef8795b61bf96e8cff64
Merged-In: I982c2f6fb1859e869732ef8795b61bf96e8cff64
(cherry picked from commit 45f0d572c1)
2020-02-26 10:56:29 +00:00
Automerger Merge Worker
d42b6fa9b9 Merge "Restore UnsupportedAppUsage method call" into rvc-dev am: da043aee24
Change-Id: I40968d188143e87e02a0600c35a5c4d1d17b15d8
2020-02-26 03:06:58 +00:00
TreeHugger Robot
da043aee24 Merge "Restore UnsupportedAppUsage method call" into rvc-dev 2020-02-26 03:05:31 +00:00
Automerger Merge Worker
647d514d47 Merge "Fine-tune the public APIs of allow rich content in Accessibility Settings for security." into rvc-dev am: 9c9ed396b5
Change-Id: I3dc957c2fd4ff9b8bd03315af70494e3b4fee880
2020-02-26 03:03:55 +00:00
PETER LIANG
9c9ed396b5 Merge "Fine-tune the public APIs of allow rich content in Accessibility Settings for security." into rvc-dev 2020-02-26 02:51:57 +00:00
Ryan Mitchell
93f2b3f9a2 Restore UnsupportedAppUsage method call
4579c0aea2 changed the method signature
of the constructor of ResourcesKey, which is marked
UnsupportedappUsage. Restore the previous signature and provide a new
constructor that is hidden.

Bug: 147359613
Test: none
Change-Id: I391167e9064b1d88f4ad75200a190e5e3b0968cf
2020-02-25 22:10:22 +00:00
Automerger Merge Worker
e8e258ace4 Merge "docs: Fix spelling of "environments"" into rvc-dev am: d697434fdc
Change-Id: I2e1a409d30ce508b036064126656b75024dea554
2020-02-25 21:06:32 +00:00
Kevin Hufnagle
d697434fdc Merge "docs: Fix spelling of "environments"" into rvc-dev 2020-02-25 21:05:53 +00:00
Automerger Merge Worker
2895bf9d70 Merge "Atom for when fgs accesses appop" into rvc-dev am: 10398d29f3
Change-Id: I05bd0d910df7d69a6a58cf32a4ebfdab43612e1a
2020-02-25 20:11:48 +00:00
Svet Ganov
17a647eee0 Use display context all the way
Bug: 149958394
Test: core/java/android/service/autofill/InlineSuggestionRenderService.java

Change-Id: I15c3149dfe37adef95ffd47454975761d6e624f0
(cherry picked from commit 8cdf9ebc5c)
2020-02-25 20:07:31 +00:00
Rahul Sabnis
f9e92a836f Add missing RequiresPermission annotations in BluetoothHidHost and
BluetoothMap APIs, disallow null device input for setConnectionPolicy,
getConnectionPolicy, and getConnectionState in BluetoothHidHost, and
BluetoothMap implements AutoCloseable, its close() method is public, and
utilizes a CloseGuard.

Bug: 149238030
Test: Manual
Change-Id: I8add9e26afcaf1a988c15e3cc7f8c446491f0686
2020-02-25 12:03:48 -08:00
TreeHugger Robot
10398d29f3 Merge "Atom for when fgs accesses appop" into rvc-dev 2020-02-25 19:59:16 +00:00
Automerger Merge Worker
afbd22982b Merge "Fix widget restore flow" into rvc-dev am: 7973854504
Change-Id: I0a08e4de896c13034ca4c5349b470a469d1fb5df
2020-02-25 19:32:52 +00:00
TreeHugger Robot
7973854504 Merge "Fix widget restore flow" into rvc-dev 2020-02-25 19:31:08 +00:00
Automerger Merge Worker
81a3d0e2af Add ID to InputEvent. am: c8362b24f6
Change-Id: I1041d8f81e49b7f9653061ef98e4fbe3d581d89d
2020-02-25 19:23:13 +00:00
TreeHugger Robot
0253cc8f2f Merge changes from topics "input_events_id", "wire_input_event_id" into rvc-dev
* changes:
  Send input event ID in InputEventSender.
  Add ID to InputEvent.
2020-02-25 19:20:17 +00:00
Automerger Merge Worker
130fbe6da1 Merge "Add owners file Fixes: 150217454" into rvc-dev am: 3e4c88087d
Change-Id: I71a0763bb0a8bc83e1c87638220e5f99c4a24d56
2020-02-25 19:04:26 +00:00
Will Brockman
4f0f9d2d85 Start InstanceIDs at 1.
Protobufs make it easy to confuse default and unset values.

Test: atest NotificationManagerServiceTest
Fixes: 149760215
Change-Id: Ia27f33cb8331960369f86e75ac3cfa148dad887a
2020-02-25 18:57:32 +00:00
Julia Reynolds
3e4c88087d Merge "Add owners file Fixes: 150217454" into rvc-dev 2020-02-25 18:54:45 +00:00
Julia Reynolds
36ff1ea03f Add owners file
Fixes: 150217454

Change-Id: I80e624dd3de150cbf1cf50465cadb676256a4063
2020-02-25 18:54:36 +00:00
Automerger Merge Worker
82abc4fb3b Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev am: 81a320279e
Change-Id: I63d105659a7578774a9594609117939802b33a2d
2020-02-25 18:34:42 +00:00
Automerger Merge Worker
cdf0080354 Merge changes I756b5834,Idce09cff am: a7fdceeba2
Change-Id: I7c5e83f83518086a57525360ea25921e438bfe95
2020-02-25 18:32:29 +00:00
Automerger Merge Worker
44dc451f44 Merge "Clear registered prediction callbacks on destroy" into rvc-dev am: 086e11fdb6
Change-Id: Id7bd3935a660ffa1dc15f13e6de2a1efa454702f
2020-02-25 18:31:17 +00:00
Peter Kalauskas
81a320279e Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev
* changes:
  Disable reduced scale if reduced scale config is 0
  Store original task width and height instead of scale
2020-02-25 18:29:50 +00:00
Amit Mahajan
a7fdceeba2 Merge changes I756b5834,Idce09cff
* changes:
  Move euicc related file to telephony.
  Delete unused reference of a hidden constant.
2020-02-25 18:15:58 +00:00
Samuel Fufa
086e11fdb6 Merge "Clear registered prediction callbacks on destroy" into rvc-dev 2020-02-25 18:08:32 +00:00
Sunny Goyal
c444b514bf Removing possible user defined strings from bugreport view-dump
Bug: 64101886
Test: Verified build
Change-Id: Ifad98a268fc17a2e1572ca3e0962a89447083294
2020-02-25 10:00:37 -08:00
Automerger Merge Worker
cd98e956da Merge "Updating documentation for isDefaultApplicationIcon API" into rvc-dev am: 9962f03b77
Change-Id: Ice9d0b08a0c350a8ed3815d3f7bb7d229d8568eb
2020-02-25 17:52:39 +00:00
Kevin Hufnagle
c027fa0d0d docs: Fix spelling of "environments"
Test: make ds-docs

Bug: 150187311
Change-Id: Id8ecd7a7e4014e8256b60d6ce2f2f1085ee9cdfb
2020-02-25 17:50:14 +00:00
Sunny Goyal
9962f03b77 Merge "Updating documentation for isDefaultApplicationIcon API" into rvc-dev 2020-02-25 17:46:23 +00:00
Adam Bookatz
38767932a2 Atom for when fgs accesses appop
statsd logs when an sensitive appop is accessed while a foreground
service is held. These appops include
OP_FINE_LOCATION
OP_COARSE_LOCATION
OP_RECORD_AUDIO
OP_CAMERA

It logs the number of times each of these appops is requested per session
during which the uid holds any foreground service.
Appops requested while the app's process state is TOP are ignored.

Also, the pre-existing ForegroundServiceStateChanged atom has an
additional field that logs whether the fgs is considered 'in-use' in the
context of being allowed while-in-use permissions.

Bug: 149497535
Test: atest UidAtomTests#testForegroundServiceState UidAtomTests#testForegroundServiceAccessAppOp
Test: manually monitor: adb shell cmd stats print-logs && adb logcat -v uid -s statsd | grep "statsd  : {" | egrep '\((60|256)\)'

Change-Id: I991a427dc2ab00399188b10b266ab2d9aa92696d
Merged-In: I991a427dc2ab00399188b10b266ab2d9aa92696d
(cherry picked from commit 0c8637c067)
2020-02-25 17:09:48 +00:00
Automerger Merge Worker
dc33dcb958 Merge "Squash same ApplicationInfo's in Parcel" into rvc-dev am: 9577cd78ff
Change-Id: Idd92356c84cf7d891083f08ee2ac230a740e52c9
2020-02-25 15:20:36 +00:00