Commit Graph

7793 Commits

Author SHA1 Message Date
Himanshu Gupta
e775b14da7 Merge "Fixing Storage Volume listing for Cloned User." 2022-09-21 16:47:21 +00:00
Himanshu Gupta
4e65c53b43 Fixing Storage Volume listing for Cloned User.
Current implementation only returns the Volumes for the current user.
In case of Cloned user this causes issues as Cloned user uses Media
Provider of User 0, thereby returning only Volume 0, causing problems in
assigning projectIds, and affecting storage calculation.
The projectId assignement happens via
MediaProvider.updateExternalStorageFileQuota.

Bug: 235321217
Test: atest android.appsecurity.cts.StorageHostTest
Change-Id: I617bae9b201fd66d7b62b6cbd1c48b9f276f1924
2022-09-21 15:44:23 +01:00
Rambo Wang
617c2b0ea5 Merge "Deprecate carrier config KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL" 2022-09-20 17:27:01 +00:00
Xinyi Zhou
0ef0048f71 Merge "Add NAMESPACE_NEARBY String" am: 4339e51473 am: 9bd0f75bf4 am: f58897e737 am: f4b45a5faa am: 74cc53ca0c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219630

Change-Id: Ie01317938b694443e22655695f83a1d572f11d66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 16:07:44 +00:00
Xinyi Zhou
74cc53ca0c Merge "Add NAMESPACE_NEARBY String" am: 4339e51473 am: 9bd0f75bf4 am: f58897e737 am: f4b45a5faa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219630

Change-Id: I9df2cd99dd2a382ebda09e5acadb825fcc415798
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 15:27:56 +00:00
Phill Hayers
6120c41edf Merge "Add a virtual Dpad." 2022-09-20 12:17:08 +00:00
Phill Hayers
060ded7841 Add a virtual Dpad.
Bug: 244519097
Test: atest VirtualDpadTest and atest VirtualDeviceManagerServiceTest

Change-Id: Iafce6fccee9f761e79e8fd845bb6e9b1e1490b26
2022-09-20 08:44:40 +00:00
TreeHugger Robot
404b70e411 Merge "Makes UM.isUsersOnSecondaryDisplaysSupported() @TestApi" 2022-09-20 02:59:22 +00:00
Julia Reynolds
abe1d6ae9e Merge "Unhide CallStyle call type" 2022-09-19 17:08:58 +00:00
rambowang
6e164b4da3 Deprecate carrier config KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL
The carrier config key was introduced in Oreo release without
an implementation. It has no behavior impact when carriers
override this carrier config, mismatching what it was delared
in its documentation.

This CC key should be cleared up, not only to keep a healthy
public API surface, but also avoid confusing carriers who
may try to override the CC key to expect a behavior change.

Bug: 242755061
Test: make offline-sdk-docs
Change-Id: Ib30091753eda7dbe30ecc037d4303bf99a4ad3cc
2022-09-19 15:25:18 +00:00
Wilson Wu
5f931ecef4 Merge "Deprecate InputMethodInterface methods" 2022-09-19 07:25:56 +00:00
TreeHugger Robot
8a8c52ff39 Merge "1/ Add @TestApi on Settings.Secure.BIOMETRIC_VIRTUAL_ENABLED" 2022-09-19 06:02:44 +00:00
George Chan
a7e6eb8627 Merge "Added transparency metadata feature flag." 2022-09-17 02:46:45 +00:00
TreeHugger Robot
f19f32457c Merge "Add Android keycodes for stylus buttons" 2022-09-16 20:07:59 +00:00
Julia Reynolds
e672bbf79b Unhide CallStyle call type
Test: cts NotificationTest
Bug: 242995647
Change-Id: I4a83cb340b4f1a09a6744c628814b1600244cbb1
2022-09-16 15:34:11 -04:00
George Chan
44a5976d81 Added transparency metadata feature flag.
This is for feature gating a feature expansion to App Info -> App Details to include MBAs on top of existing Playstore Apps.

Change-Id: I7b3e296c310f19a01bc83b129b95021e92df3abb
Bug: 244215932
2022-09-16 19:05:27 +00:00
TreeHugger Robot
3226bed7fd Merge "Introduce SystemAPI MediaProjectionGlobal" 2022-09-16 16:19:23 +00:00
Prabir Pradhan
ad914db014 Add Android keycodes for stylus buttons
Ensure the new stylus buttons are not yet sent to apps.
DD: go/android-stylus-buttons

Bug: 246394583
Test: Build, Presubmit
Change-Id: I440a359ec8cffb60b9e87f2e51304c9b0320e16f
2022-09-16 15:42:23 +00:00
Chavi Weingarten
612711c345 Introduce SystemAPI MediaProjectionGlobal
This API can be used from calls outside applications to create a virtual
display for mirroring. The permission checks in system server are still
in place so the caller must have CAPTURE_VIDEO_OUTPUT permission. This
class is intented to be used by systems that to stream device content,
but not from an application. In most cases, this will be called from
Shell or a system application.

Test: MediaProjectGlobalTest
Bug: 237664947
Change-Id: I43f79c83db7c82c0b682ef174fb1a5ab83795489
2022-09-16 13:13:04 +00:00
Wilson Wu
0899552556 Deprecate InputMethodInterface methods
IME developers have no strong reason to override
InputMethodImpl and InputMethodSessionImpl methods.

Add deprecated annotation to these methods with
suggested alternatives.

Bug: 148086656
Test: presubmit
Change-Id: I4e970404a1cbf15d6b40760b7808825c0eb94736
2022-09-16 19:01:10 +08:00
Xinyi Zhou
96e7030189 Add NAMESPACE_NEARBY String
Bug: 203579197
Test: -m
Change-Id: Id28a76af6c23f85fc1d4c1e7320f533f5604930f
2022-09-15 22:46:12 -07:00
Taran Singh
0046013807 Merge "Introduce Scribe Select/DeleteRangeGesture" 2022-09-15 18:00:37 +00:00
Felipe Leme
652047ab11 Makes UM.isUsersOnSecondaryDisplaysSupported() @TestApi
Initially, UM.isUsersOnSecondaryDisplaysEnabled() was marked @TestApi,
but that's an static API meant to be used internally only.

Test: m update-api
Bug: 246003632

Change-Id: Icca31e7b82ffd03645a5cb27af27325c1bfc0bfe
2022-09-15 16:47:27 +00:00
Darrell Shi
3a8fcd0b27 DO NOT MERGE: add interim startDream api. am: 93e654d66c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19901885

Change-Id: I9a71dac740cb498ed64aaecf2e6c7556bf6fc57e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 16:11:48 +00:00
TreeHugger Robot
835d31024a Merge "Return the previous value when adding a new one." 2022-09-15 15:19:14 +00:00
TreeHugger Robot
d0efd7dbee Merge "Add unit tests for BaseInputConnection" 2022-09-15 14:06:02 +00:00
Sarp Misoglu
eea390a0e1 Add backup_and_restore namespace to DeviceConfig
Test: m
Bug: 210083465
Change-Id: I0e987e7478524a278d38839e8522245f0b96dd23
2022-09-15 08:46:07 +00:00
Lili Zou
0db6084004 Merge "Unhide constant AmbientContextEvent.EVENT_BACK_DOUBLE_TAP." 2022-09-15 05:20:49 +00:00
Taran Singh
85a57bc143 Introduce Scribe Select/DeleteRangeGesture
Add new APIs for select and delete with two rectangles.

Test: atest InputConnectionEndToEndTest
Test: atest StylusHandwritingest
Bug: 239783077

Change-Id: Ia7240d3eaac8610c774c3a4aad074a4b84b71521
2022-09-15 00:36:40 +00:00
Darrell Shi
93e654d66c DO NOT MERGE: add interim startDream api.
DreamManager#startDream has been updated on QPR and master which removes
the unnecessary component name parameter, but it breaks TM CTS tests.
The interim api added in this change will prevent breakage on TM, and
should not be merged downstream.

Test: atest DreamManagerServiceTests
Fix: 245223722
Fix: 245058392
Fix: 245070240
Change-Id: Id9e8cc67003da9fc3e03bffd6ec50643d10652b5
2022-09-14 20:42:20 +00:00
Kweku Adams
928bb445ef Return the previous value when adding a new one.
It would be nice to be able to get the previous value when
adding a new one without having to do a separate get() call.

Bug: 243987091
Test: atest CtsUtilTestCases:SparseArrayMapTest
Change-Id: I763c08443b9376f5142abd1aa817f1c61990f4be
2022-09-14 16:37:45 +00:00
Lili Zou
09e6beedf5 Unhide constant AmbientContextEvent.EVENT_BACK_DOUBLE_TAP.
Test: local build mma
Test: "atest CtsAmbientContextServiceTestCases",
Test: "atest FrameworksServicesTests:AmbientContextManagerServiceTest"
BUG: 242480433
Change-Id: I0c73ad5d416523cdb90300c8aa00ad22f901342d
2022-09-14 10:08:18 +08:00
Justin Ghan
e4c0e42c12 Merge "APIs for remove space gesture, and join or split gesture" 2022-09-13 22:35:33 +00:00
Sally Qi
bfdba14a78 Merge "Fix throw exception when using HardwareBuffer.BLOB format to create ImageReader/ImageWriter object." 2022-09-13 15:11:20 +00:00
TreeHugger Robot
e5038d35e6 Merge "Hide soft-keyboard when no editor is focused" 2022-09-13 10:38:39 +00:00
Ming-Shin Lu
a201f2123d Hide soft-keyboard when no editor is focused
In case seeing the unexpected fallback keyboard layout when focusing to
the window without an editor from the app has shown the IME.

Note that this behaviour change affects when the IME focus switching to
the next window with following configurations from an IME shown window:
  1) SOFT_INPUT_STATE_UNCHANGED state without an editor
  2) SOFT_INPUT_STATE_VISIBLE state without an editor
  3) SOFT_INPUT_STATE_ALWAYS_VISIBLE state without an editor

Also, we guarded this platform behavior with DeviceConfig platform flag
in input method manager namespace.

Fix: 240701729
Bug: 243897178
Test: manual as issue steps
  1) In Launcher, swiping up to enter all apps page.
  2) Tap the search bar to show IME
  3) Type "Keep" to show Keeps app's shortcut
  4) Tap Keeps app's shortcut
  5) Verify IME won't be shown on top of Keeps app's activity
     (As the app set SOFT_INPUT_STATE_UNCHANGED without focusing an
      editor by default)
Test: atest KeyboardVisbilityControltest#\
         ImeInvisible_softInputAdjustNothingFromImeShownApp
Change-Id: I0c502bec5c5e21dabde08d610a9a1969c1229b08
2022-09-13 10:33:40 +00:00
Chris Li
31f70c7ccb Merge "Cleanup unused TestApi in TaskFragmentOrganizer" into tm-qpr-dev am: 5ef4e81b20
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19693522

Change-Id: I1af9afb62ad4d9aa78f1c70d2d31955d26de1f9a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 05:10:20 +00:00
Chris Li
3550fa269a Cleanup unused TestApi in TaskFragmentOrganizer
The callback handling is moved to SplitController#onTransactionReady, no
longer need those TestApi.

This is different from the merged-in cl for CTS compatibility in the
current release.

Bug: 240519866
Test: pass existing
Change-Id: I66ddd51c94003254001436ff0505dde3b26d0437
Merged-In: I66ddd51c94003254001436ff0505dde3b26d0437
2022-09-13 09:38:26 +08:00
Chet Haase
03c82de028 Merge "Rename Path.iterator method to avoid AndroidX collision" 2022-09-13 00:16:25 +00:00
Sally Qi
49afba7d80 Fix throw exception when using HardwareBuffer.BLOB format to create
ImageReader/ImageWriter object.

- Internally, we should deal with HardwareBuffer.BLOB format according
  to surface's dataSpace. Directly passing BLOB format to
  getEstimatedNativeAllocBytes function will throw exception because
  BLOB format is not handled inside. Instead, use their corresponding
  imageFormat to avoid such failure in this case.

Bug: 244268240
Test: atest android.hardware.camera2.cts.ImageReaderTest, atest
android.hardware.camera2.cts.ImageWriterTest, atest
android.hardware.cts.DataSpaceTest

Change-Id: I3f18b9d3550f88be82cde75372637a3ae528b5ec
2022-09-12 12:14:12 -07:00
Justin Ghan
d12fdde387 APIs for remove space gesture, and join or split gesture
Bug: 240436909
Test: atest InputConnectionEndToEndTest
Change-Id: I2f8c511748c9de3a25bd6a17fcf33cc5017dd0e8
2022-09-12 11:13:11 -07:00
Chet Haase
7ced2599ae Rename Path.iterator method to avoid AndroidX collision
There will be an extension function in the AndroidX version
of this API with the name 'iterator'. Callers of that API
should get the extension version instead, but Kotlin defers
to the actual implementation if it exists. Changing the method
name here (and removing the new implementation of the
Iterable interface) to avoid that collision.

Bug: 223586753
Test: Changed PathIterator cts tests to suit

Change-Id: I30e2c227ddc4fd387a90d72c52c1324c9207a3a7
2022-09-12 17:46:32 +00:00
Zeyin Wu
8d937f340a Merge "Send AccessibilityEvent.CONTENT_CHANGE_TYPE_INVALID when TextView set errors" 2022-09-12 16:45:38 +00:00
lbill
460f84f8c6 1/ Add @TestApi on Settings.Secure.BIOMETRIC_VIRTUAL_ENABLED
The e2e BiometricController need to access this field to enabled
Fingerprint Virtual HAL.

Test: atest sysui-biometrics-jank
Test: atest BiometricMicrobenchmark:BiometricPromptMicroBenchmark
Bug: 236074209
Change-Id: Iab85a16777b16ac4710521a6ba4bb32737157b2d
2022-09-12 06:07:03 +00:00
Chris Li
46437e5c4e Merge "Cleanup unused TestApi in TaskFragmentOrganizer" 2022-09-09 12:32:22 +00:00
Seigo Nonaka
8a147ba6dc Merge "Implement Ctrl+B/I/U shorcut" 2022-09-09 04:19:47 +00:00
Vaibhav Devmurari
3884f99abe Merge "Add new keycodes to support keyboard backlight up/down/toggle" 2022-09-08 22:48:36 +00:00
Bill Yi
6f4e679ba0 Merge TP1A.220905.004 to aosp-master - DO NOT MERGE
Merged-In: I3f9a35cbcb4b5c93c16e9bef04739e5cdbd7ddd4
Merged-In: I496a6f28cc3c48bd595725bce9a24ac4f4e8cc2b
Change-Id: Ic62872d77e7a5a5dfd358777ed22b49d35cb7f8e
2022-09-08 14:23:19 -07:00
Zeyin Wu
7f8a4a2ff3 Send AccessibilityEvent.CONTENT_CHANGE_TYPE_INVALID when TextView set
errors

Bug: 230141621
Test: atest android.widget.cts.TextViewTest & verified on talkback_tests
Change-Id: I35f60820a5f366f186ff500cbbc77f45c278660d
2022-09-08 19:52:12 +00:00
Vaibhav Devmurari
bb12898ad3 Add new keycodes to support keyboard backlight up/down/toggle
Test: None
Bug: 245506418
Change-Id: I54b363cb8ae51e7c828cbc9d9dff1d6eb6050e6f
2022-09-08 16:25:12 +00:00