Commit Graph

117386 Commits

Author SHA1 Message Date
Zimuzo Ezeozue
2d19d79a2a Merge "Support apps sharing file:// URIs with the camera API" into rvc-dev am: efbc3f2d5e
Original change: undetermined

Change-Id: I7ac36ce2c14f1ebfb0b6ccf3e6a054b4d7a7b372
2020-06-02 10:50:34 +00:00
Antoan Angelov
267e554d5e Merge "Don't query direct share for work profile when its turned off" into rvc-dev am: 1a0d72eaa9
Original change: undetermined

Change-Id: Ida0084a4b2dc9eb400f082f526b0df5a70249b4d
2020-06-02 10:49:51 +00:00
Zimuzo Ezeozue
efbc3f2d5e Merge "Support apps sharing file:// URIs with the camera API" into rvc-dev 2020-06-02 10:45:33 +00:00
Antoan Angelov
1a0d72eaa9 Merge "Don't query direct share for work profile when its turned off" into rvc-dev 2020-06-02 10:33:55 +00:00
Martijn Coenen
5dab822067 Merge "Use killProcessGroup when killing app zygote." into rvc-dev am: 0a8ef2b45f
Original change: undetermined

Change-Id: I6033bc141efd30efb832c8cde26a2312d4f3c177
2020-06-02 07:08:35 +00:00
Martijn Coenen
0a8ef2b45f Merge "Use killProcessGroup when killing app zygote." into rvc-dev 2020-06-02 06:54:46 +00:00
Remi NGUYEN VAN
fcd1fd8f26 Merge "Allow TRANSPORT_TEST ethernet networks" into rvc-dev 2020-06-02 00:06:21 +00:00
TreeHugger Robot
6ef0f44cd6 Merge "Remove additional sf transaction when constructing a leash" into rvc-dev am: 1b2dfb04c8
Original change: undetermined

Change-Id: I92757af1f5f39b3691a074145108a18ae78ea94d
2020-06-01 23:55:49 +00:00
TreeHugger Robot
1b2dfb04c8 Merge "Remove additional sf transaction when constructing a leash" into rvc-dev 2020-06-01 23:41:12 +00:00
Evan Rosky
015fdf2638 Merge "Use boundsChangeTransaction to improve split-screen enter/exit" into rvc-dev am: 82352f9db8
Original change: undetermined

Change-Id: I13d05a0941b9f5676668c3f94bf2ffcac1dc79f3
2020-06-01 23:18:12 +00:00
Evan Rosky
82352f9db8 Merge "Use boundsChangeTransaction to improve split-screen enter/exit" into rvc-dev 2020-06-01 22:55:20 +00:00
TreeHugger Robot
2b20672580 Merge "[wm] Introduce meta-data tag (android.supports_size_changes)" into rvc-dev am: 247144d4a2
Original change: undetermined

Change-Id: I235f8efd7645edc8266b1d0def365b5c067ebbe2
2020-06-01 21:39:50 +00:00
TreeHugger Robot
247144d4a2 Merge "[wm] Introduce meta-data tag (android.supports_size_changes)" into rvc-dev 2020-06-01 21:37:21 +00:00
Steven Thomas
cf89cad345 Merge "Clarify FRAME_RATE_COMPATIBILITY_* params" into rvc-dev am: 061dec3e8d
Original change: undetermined

Change-Id: I125d7c28abd8049036c02479ea2a5245689f9caf
2020-06-01 20:58:32 +00:00
Steven Thomas
061dec3e8d Merge "Clarify FRAME_RATE_COMPATIBILITY_* params" into rvc-dev 2020-06-01 20:44:30 +00:00
Zim
c7496a3a62 Support apps sharing file:// URIs with the camera API
The camera API, MediaStore.ACTION_IMAGE_CAPTURE requires apps to pass
a content:// URI with write permissions to the camera. Unfortunately,
apps haven't been doing this and we only started hitting problems in R
for two reasons:
1. The FileUriExposedException that should crash apps when they try to
share file:// URIs acroos binder is skipped. This is because, the
image_capture intent is passed across binder as a field in a
ChooserActivity Intent and the child intents are not checked for
file URI exposed
2. Prior to R, when camera gets a file:// URI, camera issues a file
open(2) in its process. This open(2) succeeds because the camera had
write_external_storage permission which gave it write access to all
files on external storage

Now, camera targets R and (2) fails because camera does not have write
access to files owned by other apps. To workaround, we do the
following in the apps process when it targets < R:
a. When we detect a file:// URI for the camera in an Intent, we create
the file on disk if it is not already created.
b. Scan the file to insert it in the database and retrieve a
content:// URI
c. Replace the file:// URI with the content URI in the image_capture
intent

This works because, the system will ensure the camera is granted write
access to the content URI.

Test: Manual
Bug: 156336269
Change-Id: I4849ff5e806a8207650ff7534846c36ecdc6d3c0
2020-06-01 20:33:52 +01:00
Song Hu
03265c0f68 Merge "Update the default score for direct share targets." into rvc-dev am: 060eff0716
Change-Id: Iccf12b32f4e1fcaea803832491677cf775ce3871
2020-06-01 19:08:56 +00:00
Song Hu
060eff0716 Merge "Update the default score for direct share targets." into rvc-dev 2020-06-01 18:51:49 +00:00
Evan Rosky
3613854d1b Use boundsChangeTransaction to improve split-screen enter/exit
Uses applySyncTransaction to synchronize all the surface
updates during split-screen enter/exit.

In Divider, all syncTransactions are serialized and runnables
can be posted to operate on the returned transactions so
they happen all at once.

This also required adding a "merge" functionality on
WindowContainerTransactions to handle racing between rotation
and other in-flight sync transactions (because they are
serialized, sometimes they got delayed).

Bug: 153579514
Test: Enter/exit split-screen and observe no flickers
Change-Id: I57df13489247f3c4fb3ca59efa26867a872e447f
2020-06-01 11:33:27 -07:00
arangelov
9e811f9064 Don't query direct share for work profile when its turned off
Test: manual
Test: atest ChooserActivity
Test: atest ResolverActivity
Fixes: 157902213
Change-Id: I1e48d5a10ee2099c945254fce905086349ebfc41
2020-06-01 17:37:28 +01:00
Song Hu
93cefaac1c Update the default score for direct share targets.
Bug: 151112858
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: I700bebf19bbaf208efaccf97ab77472d43c1b34a
2020-06-01 09:07:19 -07:00
Kevin Chyn
9710f8eaab Merge "Send callingUserId from AuthService -> BiometricServiceBase" into rvc-dev am: 20534dcc8d
Change-Id: Ib44ff58a107d0e1e4c58b98f0d15234f1b2ea01c
2020-06-01 16:04:30 +00:00
Jeff Sharkey
459f2c806b Merge "Revert "Apps shouldn't be disabling StrictMode checks."" into rvc-dev am: c99a508218
Change-Id: I5d4a4161fa0c9e9ab8bef9a543c357bab4576408
2020-06-01 16:04:05 +00:00
Kevin Chyn
20534dcc8d Merge "Send callingUserId from AuthService -> BiometricServiceBase" into rvc-dev 2020-06-01 15:57:00 +00:00
Jeff Sharkey
c99a508218 Merge "Revert "Apps shouldn't be disabling StrictMode checks."" into rvc-dev 2020-06-01 15:55:14 +00:00
Jeff Sharkey
3080fb7c9e Revert "Apps shouldn't be disabling StrictMode checks."
This reverts commit 14e961870a.

Reason for revert: satayev@
Bug: 156336269

Change-Id: Ic0d3a650156c06f58fce4c28157191f4497469f0
2020-06-01 15:54:41 +00:00
Kwangho Lim
2141f707b7 [wm] Introduce meta-data tag (android.supports_size_changes)
Introduce meta-data tag "android.supports_size_changes" which will indicated that an activity works well with size changes like display changing size.

Test: Manual - Run by adding metadata to the app running with SizeCompatMode.
Bug: 155041354
Change-Id: I0f358f63c9e14c63294275c0bfcd08744bee1108
2020-06-01 08:34:38 -07:00
Jeff Sharkey
e42cbb8704 Merge "Support getStorageVolume() for synthetic volumes." into rvc-dev am: fd71805e1c
Change-Id: I5f6675f1514ed308014e833d28e1b3a3cbe8c93a
2020-06-01 14:38:01 +00:00
Jeff Sharkey
f05d514436 Merge "Apps shouldn't be disabling StrictMode checks." into rvc-dev am: 4d96602de0
Change-Id: Iaf92a5949c9196d5d4194322e360d114325a4eea
2020-06-01 14:37:23 +00:00
Jeff Sharkey
fd71805e1c Merge "Support getStorageVolume() for synthetic volumes." into rvc-dev 2020-06-01 14:18:32 +00:00
Jeff Sharkey
4d96602de0 Merge "Apps shouldn't be disabling StrictMode checks." into rvc-dev 2020-06-01 14:16:54 +00:00
Remi NGUYEN VAN
53be2d08d3 Allow TRANSPORT_TEST ethernet networks
Ethernet networks using tap interfaces should have TRANSPORT_TEST so
they are not considered by network selection.

Test: atest CaptivePortalApiTest FrameworksNetTests
Bug: 156319532
Original-Change: https://android-review.googlesource.com/1317238
Merged-In: I0d9477977c88aa055625ab4046577a41e76b05ff
Change-Id: I0d9477977c88aa055625ab4046577a41e76b05ff
2020-06-01 01:43:32 +00:00
Julia Reynolds
28bbd2256b Merge "Add method for Settings" into rvc-dev am: 829ac140f8
Change-Id: I7ca30e8641733595a050c3fe4056f45d43c0d60e
2020-05-31 19:08:24 +00:00
Julia Reynolds
829ac140f8 Merge "Add method for Settings" into rvc-dev 2020-05-31 18:57:41 +00:00
Charles Chen
e50d17bf16 Merge "Fix get display from display context derived context not working" into rvc-dev am: 13e3568567
Change-Id: I814dcfd418f6b7bac9396d539cfef9ed7fee809f
2020-05-30 06:51:40 +00:00
Charles Chen
13e3568567 Merge "Fix get display from display context derived context not working" into rvc-dev 2020-05-30 06:35:35 +00:00
Charles Chen
e22c4cb3c6 Fix get display from display context derived context not working
In ContextImpl, we checked the flag "mIsAssociatedWithDisplay" to
identify if a context can access a display or not. The flag wasn't
passed from outer context, and it leads to an issue that context
which created from #createConfigurationContext from display context
failed to obtain display instance.

This CL passes mIsAssociatedWithDisplay from outer context and
also add test to verify the behavior.

fixes: 157719118
Test: atest ContextTest ContextAccessTest

Change-Id: Ibeb2a08c75f90304e12dcf99293c84409c5eea34
2020-05-30 12:46:59 +08:00
Jason Hsu
540918349a Merge "Fix talkback did not speak out ReplacementSpan's content description." into rvc-dev am: dac6071aca
Change-Id: I762f05ffdba5a63e1d805beed44e28a8020fbc33
2020-05-30 01:12:12 +00:00
Jason Hsu
dac6071aca Merge "Fix talkback did not speak out ReplacementSpan's content description." into rvc-dev 2020-05-30 01:06:23 +00:00
Yara Hassan
795f3ee445 Add finish() method to DataShare Read and Write Adapters am: dc699fb8ce
Change-Id: Ie391d155a80ec2656d28bce9dc3ca2d9d0c05757
2020-05-29 23:51:08 +00:00
Ahaan Ugale
4d8efece25 Merge changes from topic "Data Share Sender Crash" into rvc-dev
* changes:
  Handle sender's crash in Data Share API
  Add finish() method to DataShare Read and Write Adapters
2020-05-29 23:32:48 +00:00
Kevin Chyn
5433cd4070 Send callingUserId from AuthService -> BiometricServiceBase
Since authenticatorIds are collected from AuthService, which is
system_server, we need to get the callingUserId before the code
enters system_server, which clears calling identity.

Test: 1) Set up work profile, install BiometricPromptDemo
      2) Enroll work profile fingerprint
      3) Open work profile version of BiometricPromptDemo
      4) Create biometric-bound keys and authenticate with fingerprint
      Before this change, key was unusable. After this change,
      the key can be used

Fixes: 157486161
Change-Id: I4ec89b9cb13caff397b1a1acd844962736290040
Merged-In: I4ec89b9cb13caff397b1a1acd844962736290040
2020-05-29 23:21:57 +00:00
Ahaan Ugale
b93b20a453 Merge "AF Inline: Notify the registered AutofillCallback, also fix filtering." into rvc-dev am: 7f3570724d
Change-Id: I40d4a4f6b99b57bd68427e82524af734615e5d8a
2020-05-29 23:07:37 +00:00
Ahaan Ugale
7f3570724d Merge "AF Inline: Notify the registered AutofillCallback, also fix filtering." into rvc-dev 2020-05-29 23:03:44 +00:00
TreeHugger Robot
4af2991795 Merge "Fixed how ShellCommand show exceptions." into rvc-dev am: 725f9cea7f
Change-Id: I2b8d3c4941c79663d5f02e16b244801bbd7d97ea
2020-05-29 23:01:16 +00:00
TreeHugger Robot
725f9cea7f Merge "Fixed how ShellCommand show exceptions." into rvc-dev 2020-05-29 22:58:03 +00:00
Joanne Chung
a65d687ac8 Merge "Update textclassifier OWNER file." am: d1182b54c3 am: e4e6a3fabb
Change-Id: Ib9657448666652e66956b2c1c3309bbcae352daa
2020-05-29 22:09:44 +00:00
Remi NGUYEN VAN
669fdbeb65 Merge "Allow TRANSPORT_TEST ethernet networks" am: 8dc6549e05 am: 0acc645912
Change-Id: I030f0aeb0f196fee213fee02a25c5a7e66618b93
2020-05-29 22:09:13 +00:00
Treehugger Robot
df04459b1d Merge "Add ParcelableHolder type" am: 7d2fc62868 am: 841a116b7e
Change-Id: Ibb9629999638c868e453889592b8290673be04c9
2020-05-29 22:08:18 +00:00
Vishnu Nair
06cff30935 Remove additional sf transaction when constructing a leash
The leash needs to be visible on creation otherwise when reparenting
the leash, the leashed layer may be hidden for a moment. This is because
Transaction#show can be deferred but Transaction#reparent cannot.

This change adds a layer flag to allow creating effect layers without
a color fill so we can avoid an additional sf transaction.

Fixes: 157646690
Test: go/wm-smoke
Test: atest SurfaceFlinger_test
Change-Id: I3d8a4f4820d7b8fb05daab697c25cff8def612c1
2020-05-29 21:59:24 +00:00