Commit Graph

9161 Commits

Author SHA1 Message Date
Steve Paik
94292a388c Move CarServiceHelperService (again)
Move CarServiceHelperService.java and ICarServiceHelper.aidl from
frameworks/base to frameworks/opt/car/services.

Bug: 72571496
Test: Complies and runs
Change-Id: I0f09c84e25a372dab3f170bd623f25a92f9b0f73
2018-02-06 11:55:10 -08:00
Hugo Benichi
fbbd75839d Merge "Update OWNER files for connectivity" am: 771e229a23 am: ce0c31d392
am: 9a70530107

Change-Id: I1754c7bd602db58bd6c4e72d5f0dd77786d730da
2018-02-05 00:54:50 +00:00
Hugo Benichi
9a70530107 Merge "Update OWNER files for connectivity" am: 771e229a23
am: ce0c31d392

Change-Id: I5a995856aa347874b534312212ca73ffff0193c0
2018-02-05 00:39:54 +00:00
Hugo Benichi
771e229a23 Merge "Update OWNER files for connectivity" 2018-02-04 23:18:52 +00:00
TreeHugger Robot
39d080503e Merge "Dump usb as DualDump" 2018-02-03 02:56:30 +00:00
Jeff Sharkey
5491881d77 Merge "Pass in the user defined by Context." 2018-02-03 02:12:22 +00:00
Jeff Sharkey
ad357d1839 Pass in the user defined by Context.
The majority of Manager-style classes already use Context.getUserId()
when making calls into the OS, so clean up the remaining callers to
unify behind this strategy.

This gives @SystemApi developers a nice clean interface to interact
across user boundaries, instead of manually adding "AsUser" or
"ForUser" method variants, which would quickly become unsustainable.

Test: builds, boots
Bug: 72863821
Exempt-From-Owner-Approval: trivial changes
Change-Id: Ib772ec4438e57a2ad4950821b9432f9842998451
2018-02-03 02:11:45 +00:00
Steve Paik
414a7c2b0f Merge "Revert "Move CarServiceHelperService"" 2018-02-03 01:58:15 +00:00
Steve Paik
d2fecf34f9 Revert "Move CarServiceHelperService"
This reverts commit ee47dea99a.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ie26a7b08cb2d86c71f3d8c8c509d9803d0ad293b
2018-02-03 01:54:11 +00:00
TreeHugger Robot
a46c53100c Merge "Add atom and logging for app overlay" 2018-02-03 01:17:42 +00:00
TreeHugger Robot
96080b5497 Merge "Move CarServiceHelperService" 2018-02-03 00:52:41 +00:00
Philip P. Moltmann
371a3b879b Dump usb as DualDump
This allows to dump the USB state as proto-buf. This in turn allows to
automatically process this data.

Test: adb shell dumpsys usb
      incident_report usb
      No automated test possible as no field is guaranteed to be set
Change-Id: Ifdf22bfaf9c78226c420b11c43278013ce69f849
2018-02-02 16:40:26 -08:00
TreeHugger Robot
0b89088ce2 Merge "Not using custom layout in work mode dialog" 2018-02-02 23:09:41 +00:00
Paul Mclean
3367c05bf1 Merge changes from topic "usb_connect_protocol"
* changes:
  Optimize/streamline USB audio (dis)connect
  renamed UsbAudioDevice.java to UsbAlsaDevice.java
2018-02-02 22:41:57 +00:00
TreeHugger Robot
146ea7f702 Merge "Fix checks for showing InputMethod picker" 2018-02-02 22:36:37 +00:00
Chenjie Yu
e89041951d Add atom and logging for app overlay
Test: will add cts test
Change-Id: I8573abd8ec920467047fd0db9d9ce22173d84960
2018-02-02 12:05:25 -08:00
Calin Juravle
38674ecef1 Merge changes from topics "public-prof", "dexopt_dm"
* changes:
  Allow public profile compilation for primary apks
  [framework] Pass .dm files to dexopt at install time
2018-02-02 18:05:00 +00:00
Tony Mak
894f62724a Not using custom layout in work mode dialog
Title and message are the standard things, not necessary to
use own custom layout :)

FIXES: 72794164
Test: Observe the dialog

Change-Id: I523676390bf2f79028d1327e44d9b2f60f9372e0
2018-02-02 17:25:56 +00:00
Paul McLean
16d7913d98 Optimize/streamline USB audio (dis)connect
Map from usb device "address" to ALSA card num.
Remove Alsa filespace monitor.

Bug: 72435641

Test: Connect various devices and check for correct input/out determination.
Prototype Headset, Presonus AudioBox 22VSL...

Change-Id: I9e25b3e9c1c3280c26171873c0a48c58cbb99fb5
2018-02-02 09:38:38 -07:00
Jason Monk
b715b04763 Add backup/restore for slices access
Test: various "adb shell bmgr" commands to verify behavior
Change-Id: Ic4439e0e17516462acdb8d28fe49095209a2ed6f
Fixes: 68751119
2018-02-02 10:33:19 -05:00
Calin Juravle
cc65194e8e [framework] Pass .dm files to dexopt at install time
Test: DexoptOptionsTest
      adb install foo.apk foo.dm
Bug: 30934496

Change-Id: If7e705a0efc0954a385ec3bfe7a93921c0d83351
2018-02-02 14:35:32 +00:00
Dmitry Dementyev
63e027d040 Merge "Update RecoveryController to use KeyStore grant API." 2018-02-02 05:28:29 +00:00
Hugo Benichi
1c8756154a Update OWNER files for connectivity
Test: no functional change
Change-Id: I25276c769468c37970cb1915660fee29e589008c
2018-02-02 12:49:45 +09:00
TreeHugger Robot
df07d10609 Merge "Fixes crash null exception on land/seascape pinned orientations" 2018-02-02 01:48:23 +00:00
Steve Paik
ee47dea99a Move CarServiceHelperService
Move CarServiceHelperService.java and ICarServiceHelper.aidl from
frameworks/base to frameworks/opt/car/services.

Bug: 72571496
Test: Complies and runs
Change-Id: I3e25cec3db75b5250a0dec4959c32526d6553da6
2018-02-01 17:46:52 -08:00
Dmitry Dementyev
29b9de5b8a Update RecoveryController to use KeyStore grant API.
Missing parts:
1) Whitelist locksettingsservice to use grant API.
2) Probably have similar update for recovered keys - they will live in
system service and RecoveryAgent will use getKey() method to access
them.
3) ApplicationKeyStorageTest

Bug: 66499222
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I584b89e3f777bed679b2eb5173750f3f1dee3635
2018-02-01 17:41:18 -08:00
David Srbecky
51c66ea459 Merge "Propagate the "dalvik.vm.minidebuginfo" property to ART run-time." am: ddd440b8a2 am: 8df431a8ef
am: 2eaaf25218

Change-Id: Iffc4920eacc01df241ab770bb2805f2b6fc79dce
2018-02-01 23:15:22 +00:00
Matthew Ng
9c3bce5c44 Fixes crash null exception on land/seascape pinned orientations
Reverts the revert of ag/3546427 and fixes the regression.

Didn't add the ids to the layout in landscape and seascape that caused
the crash. Also fixed a boolean parsing issue in CommandQueue and
correcting the unpin button press when it lays the buttons after
overview proxy connects to launcher.

Change-Id: I59791f6a08e11d17dfb32ab3a2733766c8cf1036
Fixes: 72800226
Test: manual, rotate screen and pin (like in play movies)
2018-02-01 14:16:11 -08:00
TreeHugger Robot
e545db013a Merge "Revert "Uses back and home button for screen pinning when recents is invisible"" 2018-02-01 21:14:02 +00:00
Jeff Sharkey
850f29a169 Merge changes Iac97c342,I52518d52
* changes:
  Enable sendfile() and splice() optimizations.
  Use sendfile() and splice() to speed up copying.
2018-02-01 21:08:52 +00:00
TreeHugger Robot
44b261f372 Merge "Use statsd constants instead of literals" 2018-02-01 20:37:29 +00:00
David Srbecky
2eaaf25218 Merge "Propagate the "dalvik.vm.minidebuginfo" property to ART run-time." am: ddd440b8a2
am: 8df431a8ef

Change-Id: Ib2c08bb7bcf5d85c15db9ec16eca1ae9c7930eb6
2018-02-01 19:25:40 +00:00
Matthew Ng
9b9d0c513a Revert "Uses back and home button for screen pinning when recents is invisible"
This reverts commit c4356fb753.

Reason for revert: Regression b/72800226

Change-Id: Iaa14de444c00a9da7c3b3a6d8828f40d66a8ac29
2018-02-01 18:04:00 +00:00
Jeff Sharkey
b18f899241 Use sendfile() and splice() to speed up copying.
There are several places across the OS where Java code is simply
copying data between two points, which requires bringing that data
out into userspace before going back into the kernel.  (That's pretty
lame.)  The patches for the recent Meltdown/Spectre security issues
have made this overhead even worse, so it's finally time to move this
copying directly into the kernel.

This change adds a couple new FileUtils.copy() methods which inspect
the given streams/FDs, and attempt to do as much optimization as
possible before falling back to a slower userspace-based copy.

Benchmarks are showing typical improvements of 44% for 32KB files,
50% for 32MB files, and 35% for 32MB pipes.

Plenty of tests are included, and there's a simple kill-switch that
can be used to enable/disable the feature if it starts causing any
trouble.  (A future CL will enable the optimizations.)

Test: bit FrameworksCoreTests:android.os.FileUtilsTest
Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/os/FileUtilsBenchmark.java
Bug: 71932978
Change-Id: I52518d529da5d961610998b9f61399064d8025cd
2018-01-31 21:47:22 -07:00
TreeHugger Robot
ab4332d616 Merge changes I855f5315,I9ac7e13e,I003837a9
* changes:
  WSA: More dead code.
  Restore pinned stack shadows.
  Nuke WSA#mClipRect/mHasClipRect
2018-02-01 04:03:36 +00:00
TreeHugger Robot
a5a4386a30 Merge "Uses back and home button for screen pinning when recents is invisible" 2018-02-01 02:13:11 +00:00
Bookatz
9086762d56 Use statsd constants instead of literals
Instead of writing StatsLog.write(StatsLog.NAME, 1), we replace the 1
with the appropriate StatsLog constant.

Bug: 72749863
Test: still compiles

Change-Id: I68c8206de49df7e77ee66333dd633e4b70c7b226
2018-01-31 17:02:20 -08:00
Matthew Ng
c4356fb753 Uses back and home button for screen pinning when recents is invisible
All the text and screen pinning hint shows tells the user that the back
and home button should be held to exit screen pinning. The hint also do
not have the recents button shown if it is invisible. The toast code has
been moved to recents and services calls through to post a toast message
depending if the recents button is visible.

Test: manual
Fixes: 72059911
Change-Id: I93abf5072b97760f33e7e77421544a4b3ad27beb
2018-01-31 15:06:02 -08:00
TreeHugger Robot
3a2e3b03dc Merge "Revert "Revert "Adds generic intent Instant App resolution""" 2018-01-31 22:38:48 +00:00
Patrick Baumann
577d402d0d Revert "Revert "Adds generic intent Instant App resolution""
This reverts commit 860b8ba719.

The original change that was reverted contained a bug that allowed an
http view/browsable intent used to query for browsers to be considered
as a candidate for instant apps. This was resulting in an attempt to
bind to the instant app resolver while holding a lock on mPackages.

This change ensures that PMS doesn't bind while checking for the browser
status of a package in both the instant app filtering code and by adding
the FLAG_IGNORE_EPHEMERAL to the canonical browser intent.

Reason for revert: Applying fix

Change-Id: I4896b3a15416a11fdc3f6c191e552c4ce8963623
Fixes: 63117034
Fixes: 71916178
Test: Manual using test app at google_experimental/users/patb/InstantAppsInP
Test: atest android.appsecurity.cts.EphemeralTest passes after modification
2018-01-31 14:00:18 -08:00
Robert Carr
32bcb10e33 Restore pinned stack shadows.
We use the approach of outsetting the stack bounds and then
insetting windows which don't have surfaceInsets by said outsets.

Test: Manual. go/wm-smoke
Bug: 72657549
Change-Id: I9ac7e13ec696f88f02794175d0d44ac870f91d33
2018-01-31 12:39:46 -08:00
TreeHugger Robot
466fb53324 Merge "Add fading to the pattern unlock screen." 2018-01-31 20:32:39 +00:00
Tarandeep Singh
eb5706183f Fix checks for showing InputMethod picker
When user tries to switch IME, IMMS.showInputMethodPickerFromClient()
is called. The call fails to validate in newly introduced
canShowInputMethodPickerLocked() in
I4f0fc21268200c64d12b31ca54416acfbf62f37b because
mCurClient.client != client.

This is happening since the new client never started input ever since
we prevented calls to startInputUncheckedLocked in
Ibf9dab3d9c138b5f04e053d41ee4fd248c78e4da.

The fix is to update mCurFocusedWindowClient.client instead of
mCurclient.client in canShowInputMethodPickerLocked()

Fixes: 72557082
Test: manually using the steps in bug
Test: atest InputMethodManagerTest
Change-Id: I4e21625c32a0ca1abc740229efb3c7fcd97141cc
2018-01-31 11:28:23 -08:00
Vishwath Mohan
dcc1f19417 Add fading to the pattern unlock screen.
This CL sets the user traced pattern on the unlock screen to fade as
it's drawn, reducing the chances of shoulder surfing.

Test: Build, set a pattern, and try.
Change-Id: I2ad37a10782d826d076dcf5142700d8facc2f52e
2018-01-31 10:28:09 -08:00
TreeHugger Robot
397c38d017 Merge "Revert "Adds generic intent Instant App resolution"" 2018-01-31 09:57:26 +00:00
TreeHugger Robot
b78bb44a87 Merge "Atom: Shutdown sequence event" 2018-01-31 02:05:26 +00:00
TreeHugger Robot
32697552f2 Merge "Minor optimization for CollectionUtils.mapNotNull" 2018-01-31 01:52:32 +00:00
Patrick Baumann
860b8ba719 Revert "Adds generic intent Instant App resolution"
This reverts commit 3e8bd0f3b5.

Reason for revert: b/72710855

Change-Id: I1378ccb5c5c16256e472e1ff7c3ad2460e091300
Fixes: 72710855
2018-01-31 01:35:13 +00:00
David Srbecky
156ed92c94 Propagate the "dalvik.vm.minidebuginfo" property to ART run-time.
Change-Id: I27e230fe91490defde4cc38ca8cbc3aa0765fed1
2018-01-30 14:37:37 +00:00
Alison Cichowlas
087fc33b05 Merge "Revert "Security model for moving sharesheet to systemui"" 2018-01-30 00:00:10 +00:00