Commit Graph

104964 Commits

Author SHA1 Message Date
Sally Yuen
2e4c291096 Merge "Support sending KEYCODE_HEADSETHOOK KeyEvent from an a11y service" into rvc-dev am: fdea871287
Change-Id: Id633c979a0e98f08408f2f601a97eba09cdaf56a
2020-04-20 22:35:56 +00:00
Sally Yuen
fdea871287 Merge "Support sending KEYCODE_HEADSETHOOK KeyEvent from an a11y service" into rvc-dev 2020-04-20 22:31:04 +00:00
Julia Reynolds
896d10366d Merge "Update default for conversations in DND" into rvc-dev am: 03d5c91379
Change-Id: Ib753e997d51c382c89b07019b6c6494e135ccb6e
2020-04-20 19:50:48 +00:00
Julia Reynolds
03d5c91379 Merge "Update default for conversations in DND" into rvc-dev 2020-04-20 19:44:13 +00:00
Mark Renouf
19be640d6f Merge "Scroll Capture Framework" into rvc-dev am: 03f9a814a5
Change-Id: Ie9cc6da06f1d900a3750750df9f70fa4a9868d52
2020-04-20 19:23:54 +00:00
sallyyuen
867c6d2786 Support sending KEYCODE_HEADSETHOOK KeyEvent from an a11y service
Add a private global action to be made public in S. A service can
trigger the event by calling performGlobalAction(10) in R.

Note: Currently 10 is being used by SystemActions for the Accessibility
shortcut. Update ag/10921262 to avoid a conflict.

Bug: 154038741
Test: Tested with modified TalkBack and Youtube play/pause
Change-Id: I3ca5d25948bfb3eb8520030484cb466ec7188784
2020-04-20 12:21:21 -07:00
Mark Renouf
03f9a814a5 Merge "Scroll Capture Framework" into rvc-dev 2020-04-20 19:20:13 +00:00
TreeHugger Robot
23d07666b4 Merge "Apply intensity settings to composed vibration effects" into rvc-dev am: 896cdcca42
Change-Id: I38e330bd5728b767525b5d2c8ef4133a92c54c8b
2020-04-20 18:29:12 +00:00
TreeHugger Robot
896cdcca42 Merge "Apply intensity settings to composed vibration effects" into rvc-dev 2020-04-20 18:11:30 +00:00
Julia Reynolds
96c9c4f967 Update default for conversations in DND
Including a one time reset of dogfooders/dev preview users

Test: manual - value is reset on first boot
Test: manual - change value, reboot, value is maintained
Fixes: 154234926
Change-Id: I5e4b338d6d7cc30dec1b12d31c3f1461c6f664cc
2020-04-20 13:52:53 -04:00
Stanislav Zholnin
0807ec1f69 Merge "Allow listening for noted Ops if app is sampled for Stack trace collection." into rvc-dev am: ae4605eee8
Change-Id: I4b25c315fc7989981246c360e70b3775edde1524
2020-04-20 15:28:12 +00:00
Michael Wachenschwanz
8c4540ffcf Merge "Add permission check to UsageStatsManager#isAppInactive" into rvc-dev am: dcc388ab44
Change-Id: I0ee8681752311979bf2b8c6e569dff4a42ba9a7d
2020-04-20 15:27:38 +00:00
Stanislav Zholnin
ae4605eee8 Merge "Allow listening for noted Ops if app is sampled for Stack trace collection." into rvc-dev 2020-04-20 15:21:10 +00:00
Michael Wachenschwanz
dcc388ab44 Merge "Add permission check to UsageStatsManager#isAppInactive" into rvc-dev 2020-04-20 15:15:35 +00:00
Mark Renouf
a927929d99 Scroll Capture Framework
This is an implementation of long screenshots supporting
interactive, incremental capture of scrolling content using
a cooperative API between the app process and the system.

Design goals:

 - Provide for tile based incremental screenshots of scrolling content
 - Support existing apps without developer action
 - Provide support for non View-based Apps & UI toolkits

Bug: 148131831
Test: atest \
      FrameworksCoreTests:android.view.ScrollCaptureClientTest \
      FrameworksCoreTests:android.view.ScrollCaptureTargetResolverTest \
      FrameworksCoreTests:com.android.internal.view.ViewGroupScrollCaptureTest \
      FrameworksCoreTests:android.view.ScrollViewCaptureHelperTest \
      WmTests:com.android.server.wm.DisplayContentTest

Merged-In: I6c66a623faba274c35b8fa857d3a72030a763aea
Change-Id: I6c66a623faba274c35b8fa857d3a72030a763aea
2020-04-20 15:07:59 +00:00
Lais Andrade
bf7a301ab0 Apply intensity settings to composed vibration effects
Use the existing maxAmplitude and gamma adjustment values to apply the
relative scaling of default vibration intensity settings and user
settings on top of the PrimitiveEffect#scale value.

As a consequence, the relative scaled amplitude of a OneShot or Waveform
vibration effect should match the scaled PrimitiveEffect#scale value.

Fix: 154089649
Test: atest FrameworksCoreTests:VibrationEffectTest
Change-Id: I3ca0042a42675289a2ed8110c9dc3798055ebf4a
2020-04-20 15:02:15 +00:00
Linus Tufvesson
7745b320f3 Merge "Make ActivityViews backing virtual display private" into rvc-dev am: 3bfec32633
Change-Id: Ieb031f9be5e1813a1196a7d91d344543355ec0da
2020-04-20 14:04:09 +00:00
Linus Tufvesson
3bfec32633 Merge "Make ActivityViews backing virtual display private" into rvc-dev 2020-04-20 14:00:28 +00:00
Joanne Chung
a922f821a8 Merge "Fix app crash if the selection is from reverse direction." into rvc-dev am: 4661207775
Change-Id: I8fca05942976ccf417763e4df7909b55cc47d20e
2020-04-20 06:10:15 +00:00
Joanne Chung
4661207775 Merge "Fix app crash if the selection is from reverse direction." into rvc-dev 2020-04-20 05:55:46 +00:00
TreeHugger Robot
1bfa924804 Merge "Try to reland Ib3ee007bc" into rvc-dev am: 7f801fe0d1
Change-Id: I554f07ee937c1afbfb294e3de718e01aee4e2879
2020-04-20 00:42:44 +00:00
TreeHugger Robot
7f801fe0d1 Merge "Try to reland Ib3ee007bc" into rvc-dev 2020-04-20 00:29:45 +00:00
Lee Shombert
656bf159fd Merge "Disable binder caches in unit tests" into rvc-dev am: 9bca3a380d
Change-Id: I5c3f77f70b12ccf00909bca4f44249357c69f062
2020-04-19 19:26:27 +00:00
Lee Shombert
9bca3a380d Merge "Disable binder caches in unit tests" into rvc-dev 2020-04-19 19:07:24 +00:00
Stanislav Zholnin
d4968a0221 Allow listening for noted Ops if app is sampled for Stack trace collection.
Bug: 136134050
Test: manual verification
Change-Id: I86a70e7b0bbcb114bd28bf5ab90bbf1c625f333a
2020-04-18 21:11:22 +01:00
TreeHugger Robot
db63e03081 Merge "Cleaning up resources on mount destruction." into rvc-dev am: 4e16915321
Change-Id: I71e2456a1bcd80235aaa684f89b44fbc02474897
2020-04-18 06:45:32 +00:00
TreeHugger Robot
4e16915321 Merge "Cleaning up resources on mount destruction." into rvc-dev 2020-04-18 06:35:35 +00:00
Alex Buynytskyy
9a54579ac5 Cleaning up resources on mount destruction.
DataLoaderStub's lifetime is controlled externally, but we want to
release resources ASAP.

Bug: b/153874006
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: I34035f36d1fe4ed0e4916014d859feb7fe2c0a09
2020-04-17 22:07:10 -07:00
Hui Yu
40c8596a10 Merge "Move noteAppWidgetTapped call into AppWidgetHostView." into rvc-dev am: 4db77a9749
Change-Id: I8e077d378335a92cf414354069380ff4b3d6ac97
2020-04-18 04:35:52 +00:00
Hui Yu
4db77a9749 Merge "Move noteAppWidgetTapped call into AppWidgetHostView." into rvc-dev 2020-04-18 04:03:52 +00:00
TreeHugger Robot
def5442913 Merge "Fixed Task#getVisibility to take into account task hierarchy" into rvc-dev am: 872afaeaeb
Change-Id: I7cc51bde785b545f41707d5ae5974c5c643672f7
2020-04-18 02:25:39 +00:00
Nicholas Ambur
ac42a7c999 Merge "add KeyphraseEnrollmentInfo to TestApi" into rvc-dev am: 01b4d5cb13
Change-Id: I316ee034119f08155ac51cfc4a6e38a4287a4e35
2020-04-18 02:25:09 +00:00
TreeHugger Robot
872afaeaeb Merge "Fixed Task#getVisibility to take into account task hierarchy" into rvc-dev 2020-04-18 02:23:41 +00:00
Nicholas Ambur
01b4d5cb13 Merge "add KeyphraseEnrollmentInfo to TestApi" into rvc-dev 2020-04-18 02:04:45 +00:00
Daniel Colascione
65881b7f8c RESTRICT AUTOMERGE: Autocork package invalidations am: d59e2a9045
Change-Id: Id67e4fd118cef66fda74e018865305d7c41b30f7
2020-04-18 00:04:44 +00:00
Daniel Colascione
26218a248e RESTRICT AUTOMERGE: Add a facility for time-based cache corking am: f0e88b2f2c
Change-Id: I4b111649c54ec07a7a90cf849acc03fc41fe60ae
2020-04-18 00:02:59 +00:00
Lee Shombert
6747eaa8e5 Disable binder caches in unit tests
Bug: 152451909

Unit tests often execute server code in the context if a test process.
Such a process does not have the same permissions as formal system
processes.  In particular, such a process does not have permission to
invalidate binder caches.

This change disables all binder cache code in the current process.
This means caching is disabled and invalidation never occurs.  There
are no permission violations and the test process is also unable to
affect (through cache invalidation) the actual system processes.

Test: Ran a list of atests.  Two had security violations before the
change but were okay after the change:
 * FrameworksServicesTests
 * UserSystemPackageInstallerTest
 Ran additional tests to verify no regressions:
 * PlatformScenarioTests
 * PtsChreTestCases
 * BluetoothInstrumentationTests
 * UserLifecycleTests

Change-Id: I011ee1eb39b2d52c69b6d5164b64f7418d2bbdd4
2020-04-17 16:37:50 -07:00
TreeHugger Robot
dd08939ba8 Merge "RESTRICT AUTOMERGE: Autocork package invalidations" into rvc-dev 2020-04-17 23:26:42 +00:00
TreeHugger Robot
e185aca339 Merge changes If07d6938,I32f9b89a,Ife4f8c4e into rvc-dev
* changes:
  RESTRICT AUTOMERGE: Add a facility for time-based cache corking
  RESTRICT AUTOMERGE: Cork permission and package cache around bulk permission update
  RESTRICT AUTOMERGE: Cork package information cache invalidations during boot
2020-04-17 23:25:02 +00:00
TreeHugger Robot
bfa1ed5dc2 Merge "SurfaceView: Remove dead code" into rvc-dev am: dd4cd092b3
Change-Id: Ibf83a5dc20eb2ee64ccc395d3d474eb7feea371f
2020-04-17 22:55:58 +00:00
TreeHugger Robot
dd4cd092b3 Merge "SurfaceView: Remove dead code" into rvc-dev 2020-04-17 22:52:27 +00:00
Nicholas Ambur
d3c1f27b0c add KeyphraseEnrollmentInfo to TestApi
KeyphraseEnrollmentInfo is used for testing the system enrollment
application support within GTS.

Bug: 153264697
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases \
-t com.google.android.assist.gts.KeyphraseModelManagerTest# \
testAllSystemKeyphrasesAndLocales

Change-Id: I66558cf849f2815f2c917d128f9f9cc0673750ef
Merged-In: I66558cf849f2815f2c917d128f9f9cc0673750ef
2020-04-17 22:12:13 +00:00
Wale Ogunwale
0db64ac043 Fixed Task#getVisibility to take into account task hierarchy
Also, correct some uses of getRootHomeTask()

Fixes: 153086746
Bug: 154331729
Bug: 80414790
Test: atest WmTests:ActivityStackTests#testGetVisibility_MultiLevel
Change-Id: I8b9a38879a0b4e6c72686312b414319b8b086cd1
2020-04-17 15:05:34 -07:00
Robert Carr
b3ca38fb99 SurfaceView: Remove dead code
While debugging SurfaceView transaction usage I noticed this
code was unconditionally dead. Notice the else statement
only contains the single if statement within, so it could
be written as else-if. But then notice the condition of this
rewritten else-if is contained within the original if and
so it can never be entered.

Bug: 153120755
Test: Existing tests pass
Change-Id: I032b17911a9c71a1e3d09e3933e6f6a3d86dffb6
2020-04-17 14:14:33 -07:00
Winson Chiu
7d7fb01fce Merge "Optimization: remove duplicated flags computations for getInstalledPackages" into rvc-dev am: c7cd73aa00
Change-Id: I8593971f6e05c0ba964b54e4539a9e8fb652de23
2020-04-17 21:10:10 +00:00
Winson Chiu
c7cd73aa00 Merge "Optimization: remove duplicated flags computations for getInstalledPackages" into rvc-dev 2020-04-17 21:04:18 +00:00
TreeHugger Robot
2c43256421 Merge "Make setWallpaperZoomOut call oneway" into rvc-dev am: 061f46b9bd
Change-Id: Ifd13bdc3081630624eba5755b1a7ee04f7bbfb74
2020-04-17 20:42:38 +00:00
TreeHugger Robot
061f46b9bd Merge "Make setWallpaperZoomOut call oneway" into rvc-dev 2020-04-17 20:35:31 +00:00
Taran Singh
f301697e6f Merge "Support WIC.show(IME) from Activity#onCreate" into rvc-dev am: 104919428d
Change-Id: I9c3158d7cf35ba8cd72f592d4278918224f4d25d
2020-04-17 19:39:58 +00:00
Santiago Etchebehere
9548fd3220 Make setWallpaperZoomOut call oneway
There's no need to keep it synchronous

Bug: 154304487
Test: atest NotificationShadeWindowViewTest
Test: atest WallpaperControllerTests
Test: manual
Change-Id: I547e05fb4e2a5f2d30cfc5de354c36cd9070e65b
2020-04-17 11:53:36 -07:00