Commit Graph

116089 Commits

Author SHA1 Message Date
Leon Scroggins III
46c927ed33 Convert ScreenshotGraphicBuffer to ScreenshotHardwareBuffer
Bug: 150395371
Test: make && flashall

Bitmap is replacing methods that use a hidden GraphicBuffer with ones
that use the public HardwareBuffer. ScreenshotGraphicBuffer is just a
holder for GraphicBuffer and some metadata; switch it to hold a
HardwareBuffer (and rename to match).

Remove GraphicBuffer#createFromExisting, which was only called by
ScreenshotGraphicBuffer#createFromNative. Also remove JNI references to
that method, which were no longer in use.

Switch uses of GraphicBuffer that retrieve it from a
ScreenshotGraphicBuffer to HardwareBuffer.

Changes are almost entirely mechanical:
- (Screenshot)GraphicBuffer -> (Screenshot)HardwareBuffer
- GraphicBuffer#destroy -> HardwareBuffer#close
- getGraphicBuffer -> getHardwareBuffer

When creating a Snapshot in SurfaceFreezer, use the ColorSpace of the
ScreenshotHardwareBuffer.

Remove GraphicBuffer#createFromExisting. This is no longer necessary,
and although it was marked UnsupportedAppUsage, go/nonsdk-dash shows no
usage.

Change-Id: I41cb03fb65432d208820a428783de82a9f152035
2020-03-25 13:45:12 -04:00
TreeHugger Robot
904e79df15 Merge "Fix false positive of activity leak in NexusLauncherTests" into rvc-dev am: b04ab6ceb1 am: 629a579f79 am: 2412980dfd am: bc9b9430aa
Change-Id: I47e0cc31473a85c017889a17608fc4c13d8a77ce
2020-03-25 12:38:42 +00:00
TreeHugger Robot
2412980dfd Merge "Fix false positive of activity leak in NexusLauncherTests" into rvc-dev am: b04ab6ceb1 am: 629a579f79
Change-Id: Ida0e9b71562570678e109b63f757f0a600b44425
2020-03-25 12:11:12 +00:00
Chalard Jean
e757c4a53a Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" am: 9cbc17d75e am: 2c129e97cc am: 1e2509fd38 am: 9842c0ec80 am: 02d4758201
Change-Id: Iae957490e269729bdf2e450bcaadec84b91f95cf
2020-03-25 11:45:16 +00:00
TreeHugger Robot
b04ab6ceb1 Merge "Fix false positive of activity leak in NexusLauncherTests" into rvc-dev 2020-03-25 11:36:11 +00:00
Galia Peycheva
4584459ea1 Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev am: 389580c7da am: 1c205d5a5c am: cb6d447d00 am: 445ca4b36d
Change-Id: I6fba335b87f4dd736a938ad3894f8211f15062b0
2020-03-25 11:10:08 +00:00
Shu Chen
79812eedc1 Merge "Calculates the slop values per upper/lower line height." into rvc-dev am: 27daeb0307 am: 1bb808525d am: 06e177368b am: 01755d22e8
Change-Id: I77430e4dbcfee7bc81b6e836594dcd43d7aa453e
2020-03-25 11:08:37 +00:00
Chalard Jean
1e2509fd38 Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" am: 9cbc17d75e am: 2c129e97cc
Change-Id: Ia0f76216636ae11d1d9cbea5ed6ff0ee4e2a3f5b
2020-03-25 10:49:54 +00:00
Bernardo Rufino
32d774c9a8 Merge "Gate toast block and remove warning" into rvc-dev am: 7afc8b101b am: fed3f548d3 am: 36e998520a am: 0af032a87e
Change-Id: I4cce87e4661b9d47d2558794f54a48096206fba9
2020-03-25 10:33:58 +00:00
Chalard Jean
2c129e97cc Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" am: 9cbc17d75e
Change-Id: Ibd162792a7ab02fcbb06130f21a825a386678c05
2020-03-25 10:33:55 +00:00
Galia Peycheva
cb6d447d00 Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev am: 389580c7da am: 1c205d5a5c
Change-Id: I675643c8d47763e1d1b4f741bb930a9db750169e
2020-03-25 10:33:36 +00:00
Shu Chen
06e177368b Merge "Calculates the slop values per upper/lower line height." into rvc-dev am: 27daeb0307 am: 1bb808525d
Change-Id: I265291d390e6d3fcb7081381841a0de5877f434f
2020-03-25 10:33:13 +00:00
Aaron Huang
699aefef08 Merge "API review: make exception class and Builder final" into rvc-dev am: 9c9366b2df am: 59c7b6faf8 am: cc6d0a73a4 am: 1643ca374f
Change-Id: Ibe46c8126030c4ddf44bbb0a859c450957ba98d0
2020-03-25 10:33:09 +00:00
Galia Peycheva
824f7a88cf Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev am: 389580c7da
Change-Id: Ifdc559beace47bff1298b52431ced1bd9effff12
2020-03-25 10:28:56 +00:00
Galia Peycheva
389580c7da Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev 2020-03-25 10:23:47 +00:00
Shu Chen
256ed59b8b Merge "Calculates the slop values per upper/lower line height." into rvc-dev am: 27daeb0307
Change-Id: I91975fe6da4220322c248970f5e9ebf702047c86
2020-03-25 10:11:53 +00:00
Bernardo Rufino
36e998520a Merge "Gate toast block and remove warning" into rvc-dev am: 7afc8b101b am: fed3f548d3
Change-Id: Iebe0a02d3a1738c81ef15e30e666931b1ecc1403
2020-03-25 09:59:05 +00:00
Aaron Huang
cc6d0a73a4 Merge "API review: make exception class and Builder final" into rvc-dev am: 9c9366b2df am: 59c7b6faf8
Change-Id: I3cc16cac91d147795c717c7dd3c964c0edba1152
2020-03-25 09:58:41 +00:00
Shu Chen
27daeb0307 Merge "Calculates the slop values per upper/lower line height." into rvc-dev 2020-03-25 09:54:48 +00:00
Bernardo Rufino
5373637239 Merge "Gate toast block and remove warning" into rvc-dev am: 7afc8b101b
Change-Id: I1ab77906cf35df65e6aeedb6a6888bb041bb7010
2020-03-25 09:48:42 +00:00
Aaron Huang
838732e107 Merge "API review: make exception class and Builder final" into rvc-dev am: 9c9366b2df
Change-Id: I974be68ce205a701619a71e9ef7f43d8f8be0f8c
2020-03-25 09:47:47 +00:00
Chalard Jean
9cbc17d75e Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" 2020-03-25 09:47:03 +00:00
Bernardo Rufino
7afc8b101b Merge "Gate toast block and remove warning" into rvc-dev 2020-03-25 09:32:40 +00:00
Aaron Huang
9c9366b2df Merge "API review: make exception class and Builder final" into rvc-dev 2020-03-25 09:29:33 +00:00
Automerger Merge Worker
f70851c505 Merge "Merge "PackageManager: Restrict some camera intents to MATCH_SYSTEM_ONLY" into rvc-dev am: 9bbdb759d8" into rvc-dev-plus-aosp am: 55eec9a5b2 am: 2ef42bddeb am: 26d15c6efd
Change-Id: I810839ee443c33a64126120add9543aed999cefa
2020-03-25 09:11:51 +00:00
Charles Chen
b3230a3594 Fix false positive of activity leak in NexusLauncherTests
by postponing StrictMode.decrementExpectedActivityCount
and clear Activity reference of ActivityClientRecord

fixes: 150715257
Test: atest NexusLauncherTests
Change-Id: I0f20194fe59b45eb9954efef62a9afbcd2048ad1
2020-03-25 17:02:28 +08:00
TreeHugger Robot
f9063dcc22 Merge "PackageManager: Restrict some camera intents to MATCH_SYSTEM_ONLY" into rvc-dev am: 9bbdb759d8
Change-Id: I2445f176f13174ab78e0dadf0bd4abc0848e9e9e
2020-03-25 08:38:56 +00:00
TreeHugger Robot
9bbdb759d8 Merge "PackageManager: Restrict some camera intents to MATCH_SYSTEM_ONLY" into rvc-dev 2020-03-25 08:34:12 +00:00
Shu Chen
afbcf851d3 Calculates the slop values per upper/lower line height.
Also applies the max/min damping range for slop.
The max/min damping range includes lineHeight + slop.
Note: slop must >= zero.

Bug: 150531840
Test: manual & automated tests
  atest FrameworksCoreTests:EditorCursorDragTest
  atest FrameworksCoreTests:TextViewActivityTest

Change-Id: I26cdf69fd2cf7d4514dd2a902ed34c480c9e8781
2020-03-25 15:56:06 +08:00
TreeHugger Robot
01e55a7611 Merge "Fix the validation for showing inline suggestion in webview" into rvc-dev am: 555ae029b2 am: 53028a731d am: 1ef2520528 am: f538f4419e
Change-Id: I10b1aad0aaf0554f0230e9ed573b18c0fb1f4765
2020-03-25 07:51:41 +00:00
Chalard Jean
d134d4ff57 Allow MANAGE_TEST_NETWORKS to register limited agents
This puts in force some restrictions against test networks,
and in exchange relaxes the restrictions around registering
a network agent that provides a test network.
Test networks can only ever have transport TEST, and have
only a few capabilities available to them.

This is useful in particular to test CTS. See aosp/1253423
for first, basic usage of this capability.

Test: IpSecManagerTunnelTest
Test: new CTS aosp/1253423
Bug: 139268426
Change-Id: I47600e6097e8519e50ae771daa13bb6bb7640451
2020-03-25 16:28:50 +09:00
TreeHugger Robot
1ef2520528 Merge "Fix the validation for showing inline suggestion in webview" into rvc-dev am: 555ae029b2 am: 53028a731d
Change-Id: I7220605885b228186dd3ac534cd37138aa508acb
2020-03-25 07:14:50 +00:00
TreeHugger Robot
7582a19395 Merge "Fix the validation for showing inline suggestion in webview" into rvc-dev am: 555ae029b2
Change-Id: Iae13452312212d20efed8a363f94d5cef42dc81d
2020-03-25 07:01:39 +00:00
TreeHugger Robot
555ae029b2 Merge "Fix the validation for showing inline suggestion in webview" into rvc-dev 2020-03-25 06:46:17 +00:00
Aaron Huang
fbb485a4b3 API review: make exception class and Builder final
- InvalidPacketException exception class should be final
- NetworkCapabilities.Builder should be final

Bug: 152203926
Test: atest FrameworksNetTests
Change-Id: If9b799151aff6d41c9bcd8bb86c65a58e46bad73
2020-03-25 13:36:38 +08:00
Feng Cao
a873cd12c8 Fix the validation for showing inline suggestion in webview
Test: m -j & manual varification
Test: CtsInputMethodTestCases
Test: CtsAutoFillServiceTestCases
Bug: 151846600

Change-Id: I350b199455e77f769915e7d457dbcab31c20134d
2020-03-24 21:56:30 -07:00
Chalard Jean
80da442731 Merge "Expose netId by adding getter API" am: b2b692e157
Change-Id: Iab3bae76255fb4096aa3b2c9da8d6f12bb588d3e
2020-03-25 02:44:04 +00:00
Chalard Jean
b2b692e157 Merge "Expose netId by adding getter API" 2020-03-25 02:23:03 +00:00
TreeHugger Robot
c64217f97e Merge "V4 uses V2 digest if V3 is not available." into rvc-dev am: c6f4f74723 am: 6b9d687944 am: a6d2d73461 am: 9254c00cee
Change-Id: If95d9dd715beb1b2d896b64447298c3949cb4ed4
2020-03-25 01:59:35 +00:00
TreeHugger Robot
6b9d687944 Merge "V4 uses V2 digest if V3 is not available." into rvc-dev am: c6f4f74723
Change-Id: I5cd38afc242e6bc42a6eac708f638a0c5b086b34
2020-03-25 01:42:51 +00:00
TreeHugger Robot
c6f4f74723 Merge "V4 uses V2 digest if V3 is not available." into rvc-dev 2020-03-25 01:36:01 +00:00
Automerger Merge Worker
3be8515084 Merge "Merge changes from topic "soundtrigger-hal-error" into rvc-dev am: bf2c076c0c am: 9de51deb54" into rvc-d1-dev-plus-aosp am: f456cdadfb am: 4802f9012c
Change-Id: Iaa7ff3bec5f6f67d9cb63ef1a0a2bf6987cf9675
2020-03-25 01:18:05 +00:00
Nicholas Ambur
3b9ca67fae Merge changes from topic "soundtrigger-hal-error" into rvc-dev am: bf2c076c0c am: 9de51deb54
Change-Id: If0011c1578e34290b798488d9e367eed439877d3
2020-03-25 00:48:26 +00:00
Philip P. Moltmann
9f5b293cf8 Pipe through attributeId to notification app-op am: e4b03b589f am: 53ace23998 am: 156d820747 am: fb0f3fb69a
Change-Id: I97fdf92dbad111d4ac925529215382f24b25b163
2020-03-25 00:40:47 +00:00
Nicholas Ambur
a21dcf48ac Merge changes from topic "soundtrigger-hal-error" into rvc-dev am: bf2c076c0c
Change-Id: I11ee01789098477829c2000ea6af20ed67c110c4
2020-03-25 00:37:30 +00:00
Nicholas Ambur
bf2c076c0c Merge changes from topic "soundtrigger-hal-error" into rvc-dev
* changes:
  disable SoundTriggerService in safe mode
  Crash service on SoundTriger HAL fatal error
2020-03-25 00:31:20 +00:00
Philip P. Moltmann
53ace23998 Pipe through attributeId to notification app-op am: e4b03b589f
Change-Id: I8f9e553a0ecfcd3f332a9ec09cf8b74131c840b4
2020-03-25 00:01:01 +00:00
Philip P. Moltmann
7556065b55 Merge "Pipe through attributeId to notification app-op" into rvc-dev 2020-03-24 23:53:51 +00:00
TreeHugger Robot
c5af3035d2 Merge "Defer updating InsetsSource.mFrame while animating" into rvc-dev am: d3a0b89571 am: 8ca2881e5f am: a95886079d am: f6e99ab359
Change-Id: I6127079af0930f8ef5da59b7e176ea5c71660bfc
2020-03-24 23:01:53 +00:00
TreeHugger Robot
9c3843d0c5 Merge "Update documentation" into rvc-dev am: c01b818bae am: 336ae52021 am: aab688087e am: e267a00e8e
Change-Id: I6d5e0e320afd7c9b93484a6b0d9f3d320765c4ec
2020-03-24 23:00:25 +00:00